utimens, utimensat: work around Solaris UTIME_OMIT bug
[gnulib.git] / ChangeLog
1 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
2
3         utimens, utimensat: work around Solaris UTIME_OMIT bug
4         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
5         Linux kernel 2.6.32 does.  Work around it in the same way.
6         * doc/posix-functions/futimens.texi (futimens):
7         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
8         * lib/utimens.c (fdutimens, lutimens):
9         * lib/utimensat.c (rpl_utimensat): Work around the bug.
10
11         gettext: now it's your responsibility to add -I$(top_builddir)/intl
12         Formerly, it was your responsibility to do this for all Makefile.ams
13         other than Gnulib's.  Now it's your responsibility to do it for
14         Gnulib's Makefile.am, too.
15         * NEWS: Document this.
16         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
17
18         acl: include errno.h to get errno
19         Reported by Daiki Ueno in
20         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
21         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
22
23 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24
25         tests: don't assume getdtablesize () <= 10000000
26         * modules/cloexec-tests:
27         * modules/dup2-tests:
28         * modules/dup3-tests:
29         * modules/nonblocking-tests:
30         * modules/posix_spawn_file_actions_addclose-tests:
31         * modules/posix_spawn_file_actions_adddup2-tests:
32         * modules/posix_spawn_file_actions_addopen-tests:
33         * modules/unistd-safer-tests:
34         Depend on the getdtablesize module.
35         * tests/test-cloexec.c:
36         * tests/test-dup-safer.c:
37         * tests/test-dup2.c:
38         * tests/test-dup3.c:
39         * tests/test-fcntl.c:
40         * tests/test-nonblocking.c:
41         * tests/test-posix_spawn_file_actions_addclose.c:
42         * tests/test-posix_spawn_file_actions_adddup2.c:
43         * tests/test-posix_spawn_file_actions_addopen.c:
44         Don't assume getdtablesize () <= 10000000.
45
46 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
47
48         extern-inline: work around bug in Sun c99
49         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
50         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
51
52 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
53
54         qacl: new module, broken out from the acl module
55         This is for GNU Emacs, which wants the acl functions but does
56         not want 'error' invoked when they fail.
57         * lib/acl-internal.h: Do not include error.h, quote.h.
58         (ENOSYS, ENOTSUP): Remove; no longer needed.
59         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
60         * lib/acl.h: Include <stdbool.h>.
61         (acl_errno_valid): New function.
62         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
63         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
64         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
65         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
66         (ACL_INTERNAL_INLINE): Remove; no longer needed.
67         * lib/file-has-acl.c (file_has_acl):
68         * lib/qcopy-acl.c (qcopy_acl):
69         * lib/qset-acl.c (qset_acl):
70         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
71         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
72         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
73         lib/file-has-acl.c, m4/acl.m4 to qacl module.
74         Add lib/set-acl.c.
75         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
76         Add qacl.
77         (configure.ac): Move gl_FUNC_ACL to qacl module.
78         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
79         Rename set-mode-acl.c to set-acl.c.
80         * lib/acl-errno-valid.c: New file.
81         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
82         copy_acl function remains in copy-acl.c.
83         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
84         (_): Remove; not needed.
85         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
86         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
87         * modules/qacl: New file, moved from the old modules/acl.
88         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
89         Remove set-mode-acl.c, copy-acl.c.
90         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
91
92         alignof, intprops, malloca: port better to IBM's C compiler
93         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
94         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
95         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
96
97 2013-04-25  Daiki Ueno  <ueno@gnu.org>
98
99         wctype-h: fix gettext link error on mingw
100         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
101         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
102         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
103         rpl_towupper and rpl_towupper.
104
105 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
106
107         regex-tests, regex: allow glibc re_search behavior
108         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
109         re_search input data to make the multi-character collating element
110         in it clearly visible, and treat re_search return code 0 as valid.
111         * m4/regex.m4 (gl_REGEX): Likewise.
112
113 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
114
115         stdalign: doc fix
116         * doc/posix-headers/stdalign.texi (stdalign.h):
117         Gnulib doesn't support '_Alignof expr'.
118
119 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
120
121         stdalign: port to stricter ISO C11
122         ISO C11 says that _Alignof's operand must be a parenthesized type.
123         Problem reported by Eli Zaretskii in
124         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
125         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
126         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
127
128 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
129
130         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
131         Problem reported by Marco Atzeri in
132         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
133         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
134         Simply delegate to the system <sys/select.h> in this case too.
135         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
136         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
137         be needed on Solaris either.
138         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
139         Simply delgate to the system <sys/time.h> in this case.
140
141 2013-03-19  Karl Berry  <karl@gnu.org>
142
143         * build-aux/gnupload: check for erroneous (with gnupload) use of
144         ftp-upload.gnu.org, tweak help.
145
146 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
147
148         copy-file, rpmatch: fix problems found by cppcheck
149         Reported by Arno Onken in
150         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
151         * lib/rpmatch.c (try): Fix memory leak.
152         * lib/copy-file.c: Include "ignore-value.h".
153         (qcopy_file_preserving): Ignore chown value.
154         * modules/copy-file (Depends-on): Add ignore-value.
155
156 2013-01-27  Jim Meyering  <jim@meyering.net>
157
158         prefix-gnulib-mk: give better diagnostics
159         * build-aux/prefix-gnulib-mk: Don't just "die".
160         Give better diagnostics upon failure.
161
162 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
163
164         putenv: port to Solaris 10
165         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
166         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
167         is not what is wanted here.
168         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
169         declaration, not for its existence.
170
171 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
172
173         mktime: fix configure typo
174         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
175
176 2013-03-12  Eric Blake  <eblake@redhat.com>
177
178         regex-tests: skip UTF-8 test on mingw
179         * modules/regex-tests (Depends-on): Add localcharset.
180         * tests/test-regex.c (main): Use it to skip test on mingw.
181
182 2013-03-11  Eric Blake  <eblake@redhat.com>
183
184         tests: make it easier to bypass alarm time in debugger
185         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
186         * tests/test-memmem.c (main): Likewise.
187         * tests/test-passfd.c (main): Likewise.
188         * tests/test-ptsname.c (main): Likewise.
189         * tests/test-ptsname_r.c (main): Likewise.
190         * tests/test-strcasestr.c (main): Likewise.
191         * tests/test-strstr.c (main): Likewise.
192
193         regex: port to mingw's recent addition of undeclared alarm
194         * doc/posix-functions/alarm.texi (alarm): Document that alarm
195         exists but still doesn't work in newer mingw.
196         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
197         not existence.  Ensure SIGALRM is not trapped.
198         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
199         * m4/regex.m4 (gl_REGEX): Likewise.
200         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
201         * tests/test-regex.c (main): Use correct probe for alarm.
202
203         putenv: avoid compilation warning on mingw
204         * lib/putenv.c (_unsetenv): Protect variable declaration.
205         (putenv): Fix indentation.
206
207 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
208
209         unistd: don't prevent Tru64 Unix from using gnulib strtod.
210         * lib/unistd.in.h: be careful not to include un-needed system
211         stdlib.h from here, because that prevents gnulib stdlib.h from
212         defining rpl_strtod correctly.
213
214 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
215
216         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
217         changesets, but for the 'precision 0' test.
218         * tests/test-vasprintf-posix.c (test_function): Don't insist on
219         round-to-even, since POSIX says rounding is implementation-defined
220         and OS X 10.8.2 rounds 1.51 to 1 here.
221
222         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
223         changeset.
224         * tests/test-vasprintf-posix.c (test_function): Don't insist on
225         round-to-even, since POSIX says rounding is implementation-defined
226         and OS X 10.8.2 rounds 1.5 to 1 here.
227
228 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
229
230         vasnprintf-posix-tests: allow rounding 1.5 to 1
231         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
232         round-to-even, since POSIX says rounding is implementation-defined
233         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
234         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
235
236         bootstrap: port to FreeBSD
237         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
238         that treat '--' differently.  Reported by Mats Erik Andersson in
239         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
240
241 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
242
243         regex: rename remaining __attribute calls to __attribute__.
244         2012-02-25 changed definition of __attribute, but left some uses
245         unchanged, preventing compilation of regex module on most non-gcc
246         environments.
247         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
248         (lookup_collation_sequence_value, build_range_exp)
249         (build_collating_symbol): Set attributes with newly renamed
250         __attribute__ decorator.
251         * lib/regex_internal.c (re_string_peek_byte_case)
252         (re_node_set_compare, re_node_set_contains): Likewise.
253         * lib/regexec.c (acquire_init_state_context): Likewise.
254
255 2013-03-06  Bruno Haible  <bruno@clisp.org>
256
257         execute: Revert last change, but use a different condition.
258         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
259         on Windows.
260
261 2013-03-05  Eric Blake  <eblake@redhat.com>
262
263         execute: drop dead code
264         * lib/execute.c (nonintr_close, nonintr_open): Delete.
265
266 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
267
268         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
269         * m4/non-recursive-gnulib-prefix-hack.m4
270         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
271         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
272         <http://bugs.gnu.org/10305#237>.
273
274 2013-03-04  Eric Blake  <eblake@redhat.com>
275
276         test-getsockopt: avoid compiler warning
277         * tests/test-getsockopt.c (includes): Ensure close is declared.
278
279 2013-03-02  Bruno Haible  <bruno@clisp.org>
280
281         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
282         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
283
284 2013-03-02  Bruno Haible  <bruno@clisp.org>
285
286         gettext: Update to version 0.18.2.
287         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
288         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
289                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
290
291 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
292
293         regex: merge patches from libc
294
295         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
296         * lib/regex_internal.h (__attribute__): Rename from __attribute.
297         All uses changed.
298         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
299         (re_string_wchar_at, re_string_elem_size_at):
300         Mark function as possibly unused.
301
302         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
303         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
304         elements compare against the byte sequence of it, not its name.
305
306 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
307
308         putenv: port better to native Windows
309         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
310         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
311         (_unsetenv): Use _putenv if available.
312         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
313         a bit less likely to cause damage.
314         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
315         Fix the wrong value with SetEnvironmentVariable.
316         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
317         code better.
318
319 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
320
321         regex: ignore old-style-definition warnings
322         * lib/regex.c: Add pragma to ignore these warnings.
323         Problem reported for GNU tar by Pavel Raiskup.
324
325 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
326
327         getcwd: support coreutils better
328         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
329         but this might not be correct in coreutils, which disables
330         the raw decl checks.  Problem reported by Nagendra in
331         <http://bugs.gnu.org/10305#192>.
332         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
333         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
334         Test the getcwd function, not any macro, since getcwd.c wants the
335         function.
336         * m4/getcwd.m4 (gl_FUNC_GETCWD):
337         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
338         compile, as might happen if there's a macro but no function.
339
340         strtod: support coreutils better
341         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
342         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
343         disables the raw decl checks.  This assumes there is an underlying
344         strtod, but that's a safe assumption these days.
345         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
346
347         mountlist: port to HP NonStop
348         Reported by Joachim Schmitz in
349         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
350         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
351         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
352
353 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
354
355         extern-inline: avoid compilation error with HP-UX cc
356         Reported by Richard Lloyd in
357         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
358         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
359         Suppress extern inline with HP-UX cc.  This should be safe,
360         though it may hurt performance.  Perhaps someone with some HP-UX
361         experience can come up with a higher-performance fix.
362
363 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
364
365         putenv: fix heap corruption with mixed putenv/_putenv
366         Problem reported by Michael Goffioul in
367         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
368         * lib/putenv.c (putenv) [HAVE__PUTENV]:
369         Rely on _putenv to allocate the new environment.
370         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
371         * modules/putenv (configure.ac): Use it.
372
373 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
374
375         unsetenv etc.: port to Solaris 11 + GNU Emacs
376         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
377         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
378         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
379         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
380         idea but is too painful to fix right now), and without this gnulib
381         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
382         compiling unsetenv.c on Solaris 11.  Fix the problem for
383         unsetenv.c, and fix other similar occurrences.
384
385 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
386
387         secure_getenv: fix C++ declaration typo
388         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
389         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
390         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
391
392 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
393
394         careadlinkat: stop exporting careadlinkatcwd
395         Only Emacs used it directly, and Emacs no longer needs it.
396         * NEWS: Document this simplification.
397         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
398         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
399         for readlink.
400         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
401         Don't include stdlib.h; no longer needed.
402         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
403         * lib/relocwrapper.c: Adjust comment to match new dependencies.
404         * modules/areadlink (Depends-on): Add readlink.
405         (Maintainer): Add self.
406         * modules/careadlinkat (Depends-on): Remove readlink.
407
408         extensions: port better to HP-UX
409         This is merged from git Autoconf.
410         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
411         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
412         so that it's compatible with the value used when compiling.
413
414         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
415         Problem reported by Mats Erik Andersson in
416         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
417         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
418         openpty function exists, not merely when we intend to replace it.
419         This corrects the 2013-01-31 patch, which mistakenly defined
420         HAVE_OPENPTY even on hosts that lacked it.
421
422 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
423
424         secure_getenv: fix include typo
425         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
426
427         secure_getenv: port better to FreeBSD and Solaris
428         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
429         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
430         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
431         This works better on BSDish platforms.
432         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
433         Test for issetugid if __secure_getenv is missing.
434
435 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
436
437         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
438         Some of these changes are merged in from git Autoconf.
439         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
440         When deciding whether to define _XOPEN_SOURCE, inspect the
441         preprocessor macro __hpux instead of the more-heavyweight
442         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
443         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
444         as the key for __EXTENSIONS__.
445
446         unistd: avoid namespace pollution on non-glibc systems
447         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
448         This avoids namespace pollution on non-glibc systems, by causing
449         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
450         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
451         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
452
453 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
454
455         tmpdir: use secure_getenv
456         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
457         Define to secure_getenv, not getenv.
458         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
459         as that's now secure_getenv's job.
460         * modules/tmpdir (Depends-on): Add secure_getenv.
461
462         tempname: use secure_getenv
463         * lib/tempname.c (__secure_getenv) [!_LIBC]:
464         Define to secure_getenv, not getenv.
465         * modules/tempname (Depends-on):
466         Add secure_getenv.
467
468         secure_getenv: new module
469         * MODULES.html.sh (Extra functions based on ANSI C 89):
470         Add secure_getenv.
471         * doc/glibc-functions/secure_getenv.texi: New file.
472         * doc/gnulib.texi: Include it.
473         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
474         New files.
475         * lib/stdlib.in.h (secure_getenv): New decl.
476         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
477         * modules/stdlib (stdlib.h):
478         Add secure_getenv checks.
479
480 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
481
482         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
483         Reported for OS X 10.8.2 by Assaf Gordon in
484         <http://bugs.gnu.org/13516>.
485         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
486         !HAVE_OPENAT && !HAVE_FDOPENDIR.
487         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
488         so that they can be kept in sync more easily.  Avoid PATH_MAX
489         test on the Hurd.  Sync from test-getcwd.c for errno tests after
490         mkdir or chdir failure.
491         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
492         lib/getcwd.c.
493         (test_abort_bug): Do not test for the deep directory bug unless we
494         have openat support.  Avoid PATH_MAX test on the Hurd.
495
496         regex-tests, regex: fix bug: memset undeclared
497         * tests/test-regex.c: Don't include regex.h twice.  Include
498         string.h, to declare memset.  Christensen's report also mentioned
499         this issue.
500         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
501         test-regex.c, to avoid future problems like this.  Remove
502         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
503         twice.
504
505         regex-tests: fix link errors on older Solaris
506         These need to link with @LIBINTL@ to get libintl_gettext.
507         Problem reported by Tom G. Christensen in
508         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
509         * modules/regex-tests (test_regex_LDADD): New macro.
510
511 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
512
513         regex-tests: new module
514         * modules/regex-tests, tests/test-regex.c: New files.
515
516         regex: fix off-by-one error in configure test
517         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
518
519 2013-01-31  Eric Blake  <eblake@redhat.com>
520
521         regex: avoid infinite configure test
522         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
523
524 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
525
526         openpty: fix bug where HAVE_OPENPTY wasn't defined
527         See the thread starting at:
528         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
529         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
530         openpty function exists, not merely when we intend to replace it.
531
532 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
533
534         sys_time: port to Solaris 2.6
535         There is a circularity problem on Solaris 2.6, where <time.h> includes
536         <sys/time.h> for struct timespec.  The include nesting is gnulib
537         <time.h>, system <time.h>, gnulib <sys/time.h>, system
538         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
539         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
540         <sys/siginfo.h>; the last, innermost file needs struct
541         timestruc_t, which is defined in <sys/time.h>, which has not been
542         fully parsed.  Problem reported by Tom G. Christensen in
543         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
544         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
545         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
546         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
547         uses split double-inclusion guards.
548
549 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
550
551         regex: test for buffer overrun
552         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
553         for the just-fixed regex bug.
554
555 2013-01-29  Andreas Schwab  <schwab@suse.de>
556
557         regex: fix buffer overrun in regexp matcher [BZ #15078]
558         * lib/regexec.c (extend_buffers): Add parameter min_len.
559         (check_matching): Pass minimum needed length.
560         (clean_state_log_if_needed): Likewise.
561         (get_subexp): Likewise.
562
563 2013-01-28  Pádraig Brady  <P@draigBrady.com>
564
565         mountlist: don't consider "devtmpfs" as dummy
566         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
567         as there is storage associcated with it.
568
569 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
570
571         futimens-tests, utimens-tests: Depend on gettext.
572         This works around a problem introduced in my 2013-01-12 patch,
573         which added @LIBINTL@ to these modules.
574         * modules/futimens-tests (Depends-on):
575         * modules/utimens-tests (Depends-on): Add gettext.
576
577 2013-01-26  Eric Blake  <eblake@redhat.com>
578
579         test-getpeername: fix typo
580         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
581
582 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
583
584         bootstrap: remove the need for a sorted .gitignore file
585         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
586         rename to insert_if_absent(), so that we don't need or generate
587         a sorted .gitignore file.  We do require a .gitignore with no
588         existing duplicate entries and enforce that.
589         (sort_patterns): Remove this function as we now use the simpler
590         technigue of inserting blacklist entries at the top of the file,
591         assuming gnulib won't be inserting !whitelist entries.
592
593 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
594
595         readlinkat: don't depend on gl_FUNC_OPENAT
596         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
597         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
598         renameat.m4, symlinkat.m4; but one thing at a time.
599
600         statat: new module, split out from fstatat
601         GNU Emacs needs the POSIX-specified fstatat, but not the
602         gnulib-specified statat and lstat.  Split the latter two into a
603         new module 'statat'.
604         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
605         * lib/openat.h, lib/statat.c (STATAT_INLINE):
606         Rename from FSTATAT_INLINE. All uses changed.
607         * modules/fstatat (Files): Remove lib/statat.c.
608         (gl_MODULE_INDICATOR([fstatat])): Remove.
609         (lib_SOURCES): Remove.
610         (Maintainer): Add self.
611         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
612         * tests/test-fstatat.c (BASE): Don't define if already defined.
613         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
614
615 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
616
617         tests: don't assume fd 99 is closed
618         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
619         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
620         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
621         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
622         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
623         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
624         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
625         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
626         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
627         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
628         * tests/test-fwrite.c, tests/test-getpeername.c:
629         * tests/test-getsockname.c, tests/test-getsockopt.c:
630         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
631         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
632         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
633         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
634         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
635         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
636         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
637         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
638         * tests/test-unlinkat.c, tests/test-unlockpt.c:
639         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
640         Close file descriptor 99, instead of assuming it's already closed.
641
642 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
643
644         stpncpy: port to OS X 10.8
645         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
646         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
647
648 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
649
650         unistd: port to recent mingw
651         * lib/unistd.in.h: Remove special invocation convention for mingw,
652         which breaks for the latest mingw version.  See John W. Eaton in
653         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
654
655         largefile: port better to Mac OS X 10.5
656         This patch is backported from Autoconf git.
657         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
658         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
659         with ino_t size being different for configuration time versus
660         build/run time.  Problem reported by PHO in
661         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
662
663 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
664
665         doc: clarify -Werror
666         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
667         clarify that it's intended for developers, not for ordinary builds,
668         and mention --enable-gcc-warnings as one possible use.
669
670 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
671
672         stdint: fix build with Android's Bionic fox x86
673         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
674         was already included as _SSIZE_T_DEFINED_ might also be defined
675         in include/machine/_types.h, which is included by stdio.h
676
677 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
678
679         net_if-tests: port to Solaris 7 + GCC 3.4.6
680         Problem reported by Tom G. Christensen in
681         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
682         * tests/test-net_if.c (ni): Move to next the code that uses it,
683         so that it's declared only if needed.
684
685 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
686
687         net_if-tests: port to older Solaris
688         Problem reported by Tom G. Christensen in
689         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
690         * modules/net_if-tests (NET_IF_LIB): New substitution.
691         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
692         (HAVE_IF_NAMEINDEX): New C macro.
693         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
694
695         system-quote-tests: port to older Solaris
696         Problem reported by Tom G. Christensen in
697         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
698         * tests/test-system-quote-child.c (fopen, fread): Undef.
699
700         c-xvasprintf etc.: fix link errors on older Solaris
701         These need to link with @LIBINTL@ to get libintl_gettext.
702         Problem reported by Tom G. Christensen in
703         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
704         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
705         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
706         * modules/futimens-tests (test_futimens_LDADD):
707         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
708
709 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
710
711         locale: port to Solaris 2.6 and 7 + GNU gettext
712         * lib/locale.in.h: Just include_next <locale.h> when
713         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
714         when combining the localename module with GNU gettext 0.18.2.
715         Problem reported by Tom G. Christensen in
716         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
717
718 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
719
720         stdlib: port to Solaris 2.6
721         Also, the code worked on Solaris 7 through 9 only by accident.
722         Problem reported by Tom G. Christensen in
723         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
724         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
725         simply include the system stdlib.h.
726         * lib/getopt.in.h (__need_system_stdlib_h):
727         * lib/pthread.in.h (__need_system_stdlib_h):
728         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
729         Define when including <stdlib.h>, to avoid problems at least for
730         the pthread case on Solaris 2.6 and 7.  These .h files can get by
731         with the system stdlib.h.
732
733 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
734
735         doc: update main copyright year
736         * doc/gnulib.texi: Update copyright date.
737
738         doc: improve ISO 8601 discussion
739         * doc/parse-datetime.texi (Combined date and time of day items):
740         Specify more carefully what formats are supported and what is
741         done with excess precision.
742
743 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
744
745         doc: avoid small caps
746         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
747         they're more trouble than they're worth.  Suggested by Karl Berry
748         in <http://bugs.gnu.org/13360>.
749
750         regex: conform to strict C
751         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
752         From Aharon Robbins.
753
754         gnulib-tool: fix incompatibility with autopoint 0.18.2
755         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
756         Problem reported by Tom G. Christensen in
757         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
758
759 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
760
761         fprintftime: bring back and reword fwrite comment
762         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
763
764         stdio: remove now-unnecessary stdio.c
765         Since stdio.in.h no longer uses inline functions, we no longer
766         need to compile the extern versions.
767         * lib/stdio.c: Remove.
768         * modules/stdio (Files): Remove lib/stdio.c.
769         (lib_SOURCES): Remove.
770
771         unicodeio: depend on stdio, not ignore-value
772         * lib/unicodeio.c: Do not include ignore-value.h.
773         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
774         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
775
776         fprintftime: depend on stdio, not ignore-value
777         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
778         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
779         since the stdio module arranges to silence that warning now.
780         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
781
782 2012-10-04  Simon Josefsson  <simon@josefsson.org>
783
784         stdint-tests: Fix expanded-before-required-warning.
785         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
786
787 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
788
789         fwrite: silence __wur only for older glibc versions
790         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
791         This will help us remove this workaround some time in the far future.
792
793 2013-01-03  Eric Blake  <eblake@redhat.com>
794
795         fwrite: silence __wur without using inline
796         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
797         just gcc, and in a way that avoids inline issues.
798         * modules/stdio (Depends-on): Drop extern-inline.
799
800 2013-01-03  Jim Meyering  <jim@meyering.net>
801
802         update-copyright: avoid copyright notice date corruption
803         Given a sequence of copyright year numbers in which the final
804         one was a two-digit number that happened to be a substring of
805         a preceding four-digit year number, we would mistakenly update
806         the substring (from two- to four-digit) rather than the two-digit
807         number at the end, which, combined with the addition of the current
808         4-digit year number would yield two 5-digit year numbers, e.g.,
809         here, it would convert the first "99" to "1999, 2013" rather than
810         the final one:
811           1991, 99
812           11999, 20131, 1999
813         * build-aux/update-copyright: Tighten a regexp.
814         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
815         Reported by Joseph Myers in
816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
817
818 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
819
820         regex: omit needless signed-pointer casts
821         * lib/regcomp.c (build_charclass, build_charclass_op):
822         Use char *, not unsigned char *, for class name and extra.
823         The char values are always nonnegative so there's no need to
824         insist on unsigned char * here, and using char * removes the need
825         for casts.  Reported by Aharon Robbins in
826         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
827
828         regex: support Gawk, which never uses alloca
829         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
830         Do not include in this case.  Gawk doesn't supply a substitute
831         alloca.h and doesn't need one.
832
833         regex: port __libc_lock_define usage to C89
834         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
835         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
836         does not conform to C89, as it has an empty macro argument.
837         Reported by Aharon Robbins in
838         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
839
840 2013-01-01  Eric Blake  <eblake@redhat.com>
841
842         maint: update all copyright year number ranges
843         Run "make update-copyright".
844
845         version-etc: bump copyright year reported in --version
846         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
847
848 2012-12-31  Eric Blake  <eblake@redhat.com>
849
850         sigprocmask-tests: skip test if pid is unexpectedly large
851         * tests/test-sigprocmask.c (main): Add range check.
852
853         git-version-gen: avoid test -z portability glitch
854         * build-aux/git-version-gen: Prefer portable test spelling, since
855         git-version-gen is run on more than just developer machines.
856
857 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
858
859         git-version-gen: add --fallback option to use if git is not present
860         * build-aux/git-version-gen: Add support for the new option --fallback,
861         which comes into play when there is no $tarball_version_file and
862         git is not working.
863         (scriptversion): Update.
864
865         maint.mk: handle missing git with more grace
866         * top/maint.mk (no-submodule-changes, public-submodule-commit):
867         Quietly proceed if git is not present.
868
869 2012-12-31  Eric Blake  <eblake@redhat.com>
870
871         dup2: work around cygwin bug
872         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
873         * lib/dup2.c (rpl_dup2): Work around it.
874         * doc/posix-functions/dup2.texi (dup2): Document it.
875
876 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
877
878         regex: remove unnecessary dependency on localcharset.h
879         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
880         hasn't been needed for years.
881         * modules/regex (Depends-on): Remove localcharset.
882
883         regex: revert single-byte change
884         * lib/regexec.c (check_node_accept_bytes): Revert previous change
885         to this function.  This was alredy fixed in a different way, at
886         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
887         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
888         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
889
890         regex: simplify based on Gawk version
891         * lib/regex_internal.c (re_dfa_add_node): Simplify.
892         Reported by Aharon Robbins in
893         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
894
895 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
896
897         regex: check that pattern char is single-byte
898         Reported by Aharon Robbins in
899         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
900         * lib/regexec.c (check_node_accept_bytes):
901         Return 0 if the pattern string has a multibyte character here.
902
903         regex: implement rational ranges
904         Reported by Aharon Robbins in
905         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
906         * lib/regcomp.c (build_range_exp) [!_LIBC]:
907         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
908         Implement rational ranges.
909
910         regex: avoid redefining __wctype
911         Reported by Aharon Robbins in
912         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
913         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
914         #undef before defining.
915
916         regex: port to hosts where malloc (0) == NULL
917         Reported by Aharon Robbins in
918         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
919         * lib/regex_internal.c (re_node_set_alloc):
920         Don't assume that malloc (0) yields nonnull.
921         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
922         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
923         * modules/regex (Files): Add m4/eealloc.m4.
924
925         regex: port to C89
926         Reported by Aharon Robbins in
927         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
928         * lib/regcomp.c (init_word_char): Declaration before statement.
929
930         regex: merge glibc changes
931         Also, copy the license wording from glibc.  This simplifies
932         merging changes.  gnulib-tool will change the wording to GPL as
933         appropriate, when importing it to other packages.  The only
934         glibc change made since the last merge, which needs merging, is:
935         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
936         * lib/regex_internal.h (gettext): Remove use of INTUSE.
937
938         * users.txt: Add Emacs.
939
940         doc: omit mention of version when not needed
941         * doc/gnulib-intro.texi (Portability and Application Code):
942         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
943         Don't mention particular dates or versions when not necessary, so
944         that the documentation won't go out of date so quickly.
945
946         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
947
948 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
949
950         bootstrap: pass --force to autoreconf.
951         * build-aux/bootstrap (AUTORECONFFLAGS): New.
952         Add "--force" so that Automake's ylwrap and other such tools
953         be updated at each bootstrap invocation.
954         Use it.
955
956 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
957
958         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
959         The earlier patch forgot to update one of the #if conditions, causing
960         a problem on Debian testing i386 reported by Mats Erik Andersson
961         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
962         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
963         (__argp_fmtstream_puts, argp_fmtstream_puts)
964         (__argp_fmtstream_write, argp_fmtstream_write)
965         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
966
967         * doc/gnulib-readme.texi: Minor fixups.
968         (Portability guidelines): Modernize URLs.  Remove some repetition.
969         (Indent with spaces not TABs): Reword to avoid too-long lines.
970         Remove some '@ifset standalone' stuff that isn't used.
971
972         * doc/gnulib-readme.texi (Portability guidelines):
973         ctype.h, not ctime.h.
974
975         Correct name of POSIX.1-2001.
976         * doc/posix-functions/fgetc.texi (fgetc):
977         * doc/posix-functions/fgets.texi (fgets):
978         * doc/posix-functions/fread.texi (fread):
979         * doc/posix-functions/fscanf.texi (fscanf):
980         * doc/posix-functions/getc.texi (getc):
981         * doc/posix-functions/getchar.texi (getchar):
982         * doc/posix-functions/scanf.texi (scanf):
983         POSIX.1-2001, not POSIX-2001.
984
985         doc: move README into manual
986         * README: Move contents to new file doc/gnulib-readme.texi.
987         Replace with a one-line summary.
988         * doc/gnulib.texi (Brief Overview): New section,
989         with old intro preface.  Include gnulib-readme.texi for contents.
990         (Philosophy): Rename from "Introduction", since this
991         section no longer introduces the rest.  Write a new preface.
992         * doc/gnulib-readme.texi: New file, with the old contents of
993         README texinfo-ized.  This way, the README info appears
994         in the online and printed manual.
995
996 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
997
998         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
999         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1000         c_vasprintf() prototype.
1001
1002 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1003
1004         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1005         * lib/c-vasprintf.h: Remove stray semicolon.
1006
1007 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1010         It is obsolete and is planned to be removed from Automake 1.14; see
1011         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1012         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1013         (installdirs-data, installdirs-data-yes):
1014         Use $(MKDIR_P), not $(mkdir_p).
1015         * m4/intl.m4 (AM_INTL_SUBDIR):
1016         * m4/po.m4 (AM_PO_SUBDIRS):
1017         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1018
1019 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1022         On this platform, we are not optimizing but we are using
1023         the substitute for extern inlines, so compile as if
1024         C99-style extern inline, or a substitute, is available.
1025         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1026         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1027         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1028         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1029         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1030         Declare as ARGP_FS_EI, not as extern.
1031         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1032         (__option_is_short, _option_is_end, __option_is_end)
1033         [!_LIBC && __USE_EXTERN_INLINES]:
1034         Declare as ARGP_EI, not as extern.
1035
1036 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1037
1038         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1039         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1040         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1041         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1042         ...), as the latter is fatal with older Autoconfs.
1043         Problem reported and fix suggested by Eric Blake in thread starting at
1044         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1045
1046 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1047
1048         AC_PROG_MKDIR_P: don't workaround if not buggy
1049         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1050         Define only for Autoconf versions before 2.62.
1051         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1052         undocumented m4_PACKAGE_VERSION, for consistency with the
1053         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1054         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1055         was introduced in 2.62.
1056
1057 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1058
1059         New 'c-*printf' modules for formatted output in C locale.
1060
1061         New module 'c-vasnprintf'.
1062         * modules/c-vasnprintf: New file.
1063         * lib/c-vasnprintf.c: New file.
1064         * lib/c-vasnprintf.h: New file.
1065
1066         New module 'c-snprintf'.
1067         * modules/c-snprintf: New file.
1068         * modules/c-snprintf-tests: New file.
1069         * lib/c-snprintf.c: New file.
1070         * lib/c-snprintf.h: New file.
1071         * tests/test-c-snprintf.c: New file.
1072         * tests/test-c-snprintf.sh: New file.
1073
1074         New module 'c-vsnprintf'.
1075         * modules/c-vsnprintf: New file.
1076         * modules/c-vsnprintf-tests: New file.
1077         * lib/c-vsnprintf.c: New file.
1078         * lib/c-vsnprintf.h: New file.
1079         * tests/test-c-vsnprintf.c: New file.
1080         * tests/test-c-vsnprintf.sh: New file.
1081
1082         New module 'c-vasprintf'.
1083         * modules/c-vasprintf: New file.
1084         * modules/c-vasprintf-tests: New file.
1085         * lib/c-asprintf.c: New file.
1086         * lib/c-vasprintf.c: New file.
1087         * lib/c-vasprintf.h: New file.
1088         * tests/test-c-vasprintf.c  +: New file.
1089         * tests/test-c-vasprintf.sh: New file.
1090
1091         New module 'c-xvasprintf'.
1092         * modules/c-xvasprintf: New file.
1093         * modules/c-xvasprintf-tests: New file.
1094         * lib/c-xasprintf.c: New file.
1095         * lib/c-xvasprintf.c: New file.
1096         * lib/c-xvasprintf.h: New file.
1097         * tests/test-c-xvasprintf.c: New file.
1098         * tests/test-c-xvasprintf.sh: New file.
1099
1100 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         argp: better 'inline'
1103         Use extern-inline module to declare extern inline functions.
1104         This avoids some bogus warning diagnostics.  Problem discovered
1105         when modifying GNU tar to use the manywarnings module.
1106         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1107         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1108         Define based on extern-inline.
1109         * modules/argp (Depends-on): Add extern-inline.
1110
1111 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1112
1113         filemode, sys_stat: Handle MPX files a la AIX.
1114         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1115         * lib/sys_stat.in.h (S_ISMPX): New macro.
1116         * tests/test-sys_stat.c: Add tests for MPX files.
1117
1118 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1119
1120         x-to-1: honor $PERL
1121         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1122         a chance to use his preferred version of Perl.  This is typically
1123         required by Darwin users whose default /usr/bin/perl does not have all
1124         the libraries required by help2man, and who need to use their MacPorts
1125         installation of Perl instead.
1126
1127 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1128
1129         gnu-web-doc-update: add all the new files, even in new directories
1130         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1131         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1132         Use it.
1133         (main): Don't use cvsutils to get the list of unknown files,
1134         just add all the existing files and directories.
1135
1136 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1137
1138         gnu-web-doc-update: improve --help
1139         * build-aux/gnu-web-doc-update: Move comments into --help.
1140
1141 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1142
1143         mountlist: recognize more "dummy" file systems
1144         * lib/mountlist.c (ME_DUMMY_0):
1145         Add these dummy FS names to the list:
1146         - "debugfs" virtual filesystem for kernel debugging
1147         - "devpts" PTY slave filesystem
1148         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1149         - "fusectl" control filesystem for FUSE
1150         - "mqueue" enumerates POSIX message queues
1151         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1152         - "sysfs" is for exporting kernel objects
1153         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1154
1155 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         extern-inline: avoid incompatibility with Darwin Libc
1158         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1159         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1160         Problem reported by Akim Demaille in
1161         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1162
1163 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1164
1165         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1166         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1167         let it handle password prompting.
1168
1169 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1170
1171         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1172         * lib/canonicalize.c (canonicalize_filename_mode):
1173         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1174         fetching the current directory.  Don't overrun the beginning of
1175         rpath if there's no slashes after the MS-Windows drive letter.
1176
1177 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1178
1179         maint.mk: avoid extra forks
1180         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1181         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1182         So use that instead of "$(shell test -f FILE && echo FILE)".
1183
1184 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1185
1186         vasnprintf: fix ASCII_ONLY typo
1187         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1188         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1189         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1190         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1191         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1192
1193 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1194
1195         list, oset, xlist, xoset: fix extern inline issue with C99
1196         This was introduced by my recent changes for 'inline'.
1197         Problem reported for gettext by Daiki Ueno in
1198         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1199         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1200         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1201         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1202         (gl_list_previous_node, gl_list_get_at)
1203         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1204         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1205         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1206         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1207         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1208         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1209         (gl_list_iterator_free, gl_sortedlist_search)
1210         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1211         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1212         (gl_sortedlist_remove):
1213         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1214         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1215         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1216         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1217         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1218         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1219         (gl_list_add_at, gl_sortedlist_add):
1220         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1221         Wrap these extern decls inside "#if 0", because they are implemented
1222         as inline functions, and extern inline is not what's wanted here.
1223         It would simplify these .h files to remove the extern decls entirely,
1224         although a downside would be less-clear separation between
1225         specification and implementation.
1226
1227 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1228
1229         sys_stat: no 'static inline'
1230         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1231         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1232
1233         extern-inline: no 'static inline'
1234         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1235         Do not require AC_C_INLINE.
1236         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1237         'static inline', for older compilers.
1238
1239         snippet/warn-on-use: no 'static inline'
1240         * build-aux/snippet/warn-on-use.h:
1241         Remove unnecessary 'inline' in comment.
1242
1243         rbtree-list, rbtreehash-list: no 'static inline'
1244         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1245         * lib/gl_anytree_list2.h (node_at):
1246         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1247         (gl_oset_first, add_nodes_to_buckets):
1248         Now static, not static inline.
1249
1250         regex: no 'static inline'
1251         * lib/regex_internal.c (calc_state_hash):
1252         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1253         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1254         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1255         Now static, not static inline.
1256         (inline) [__GNUC__ < 3 && _LIBC]:
1257         Remove macro; no longer needed.
1258
1259         xvasprintf: no 'static inline'
1260         * lib/xvasprintf.c (xstrcat):
1261         Now static, not static inline.
1262         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1263         Do not require AC_C_INLINE.
1264
1265         parse-datetime, parse-duration: no 'static inline'
1266         * lib/parse-datetime.y (to_uchar):
1267         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1268         (scale_n_add):
1269         Now static, not static inline.
1270         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1271         * modules/parse-duration (configure.ac):
1272         Do not require AC_C_INLINE.
1273
1274         getaddrinfo: no 'static inline'
1275         * lib/getaddrinfo.c (validate_family):
1276         Now static, not static inline.
1277         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1278         Do not require AC_C_INLINE.
1279
1280         ftruncate, fts, lstat, openat, raise: no 'static inline'
1281         * lib/ftruncate.c (chsize_nothrow):
1282         * lib/fts.c (opendirat, diropen):
1283         * lib/lstat.c (orig_lstat):
1284         * lib/openat.c (orig_openat):
1285         * lib/raise.c (raise_nothrow):
1286         Now static, not static inline.
1287         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1288         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1289         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1290         * m4/openat.m4 (gl_PREREQ_OPENAT):
1291         * m4/raise.m4 (gl_PREREQ_RAISE):
1292         Do not require AC_C_INLINE.
1293
1294         fflush, stat: no 'static inline'
1295         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1296         (clear_ungetc_buffer, disable_seek_optimization)
1297         (restore_seek_optimization, update_fpos_cache):
1298         * lib/stat.c (orig_stat):
1299         Now static, not static inline.
1300         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1301         (update_fpos_cache):
1302         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1303         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1304         * m4/stat.m4 (gl_PREREQ_STAT):
1305         Do not require AC_C_INLINE.
1306
1307         error, filevercmp: no 'static inline'
1308         * lib/error.c (is_open, flush_stdout):
1309         * lib/filevercmp.c (order):
1310         Now static, not static inline.
1311         * m4/error.m4 (gl_PREREQ_ERROR):
1312         * modules/filevercmp (configure.ac):
1313         Do not require AC_C_INLINE.
1314
1315         dup, execute, fatal-signal, etc.: no 'static inline'
1316         * lib/dup.c (dup_nothrow):
1317         * lib/execute.c (nonintr_close, nonintr_open):
1318         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1319         * lib/fopen.c (orig_fopen):
1320         * lib/freadseek.c (freadptrinc):
1321         * lib/freopen.c (orig_freopen):
1322         * lib/fstat.c (orig_fstat, fstat_nothrow):
1323         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1324         (get_rusage_as_via_iterator):
1325         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1326         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1327         * lib/isatty.c (_isatty_nothrow):
1328         * lib/open.c (orig_open):
1329         * lib/read.c (read_nothrow):
1330         * lib/sigprocmask.c (signal_nothrow):
1331         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1332         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1333         * lib/wait-process.c (unregister_slave_subprocess):
1334         * lib/write.c (write_nothrow):
1335         Now static, not static inline.
1336         * lib/spawn-pipe.c (nonintr_open): Define only if
1337         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1338         * m4/dup.m4 (gl_PREREQ_DUP):
1339         * m4/execute.m4 (gl_EXECUTE):
1340         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1341         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1342         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1343         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1344         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1345         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1346         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1347         * m4/open.m4 (gl_PREREQ_OPEN):
1348         * m4/read.m4 (gl_PREREQ_READ):
1349         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1350         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1352         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1353         * m4/write.m4 (gl_PREREQ_WRITE):
1354         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1355         Do not require AC_C_INLINE.
1356
1357         c-strtod, memcoll, readutmp: no 'static inline'
1358         * lib/c-strtod.c (c_locale):
1359         * lib/memcoll.c (strcoll_loop):
1360         * lib/readutmp.c (desirable_utmp_entry):
1361         Now static, not static inline.
1362         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1363         * m4/memcoll.m4 (gl_MEMCOLL):
1364         * m4/readutmp.m4 (gl_READUTMP):
1365         Do not require AC_C_INLINE.
1366
1367         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1368         * lib/arctwo.c (to_uchar):
1369         * lib/md4.c (set_uint32):
1370         * lib/md5.c (set_uint32):
1371         * lib/sha1.c (set_uint32):
1372         * lib/sha256.c (set_uint32):
1373         * lib/sha512.c (set_uint64):
1374         Now static, not static inline.  This is a bit simpler, and doesn't
1375         affect performance with GCC and default optimization.
1376         * m4/arctwo.m4 (gl_ARCTWO):
1377         * m4/md4.m4 (gl_MD4):
1378         * m4/md5.m4 (gl_MD5):
1379         * m4/sha1.m4 (gl_SHA1):
1380         * m4/sha256.m4 (gl_SHA256):
1381         * m4/sha512.m4 (gl_SHA512):
1382         Do not require AC_C_INLINE.
1383
1384         cond, lock, thread: better 'inline'
1385         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1386         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1387         New macros.  Use them instead of static inline, for header functions.
1388         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1389         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1390         * lib/glthread/lock.c (gl_waitqueue_init)
1391         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1392         * lib/glthread/thread.c (get_current_thread_handle):
1393         Change 'static inline' to 'inline'.
1394         * lib/glthread/cond.h, lib/glthread/thread.h:
1395         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1396         * m4/cond.m4 (gl_COND):
1397         * m4/lock.m4 (gl_PREREQ_LOCK):
1398         * m4/thread.m4 (gl_THREAD):
1399         Do not require AC_C_INLINE.
1400         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1401
1402         chdir-long, cycle-check, savewd: better 'inline'
1403         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1404         (find_non_slash):
1405         * lib/cycle-check.c (is_zero_or_power_of_two):
1406         * lib/savewd.c (savewd_delegating):
1407         Change 'static inline' to 'inline'.
1408         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1409         Replace all remaining uses of 'static inline' with it.
1410         * lib/savewd.h:
1411         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1412         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1413         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1414         * m4/savewd.m4 (gl_SAVEWD):
1415         Do not require AC_C_INLINE.
1416         * modules/savewd (Depends-on): Add extern-inline.
1417
1418         base32, base64: no need for 'inline'
1419         * lib/base32.c (to_uchar, get_8, decode_8):
1420         * lib/base64.c (to_uchar, get_4, decode_4):
1421         Change 'static inline' to 'inline'.
1422         * m4/base32.m4 (gl_PREREQ_BASE32):
1423         * m4/base64.m4 (gl_PREREQ_BASE64):
1424         Do not require AC_C_INLINE.
1425
1426         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1427         * lib/gl_array_oset.c (gl_array_nx_add_at):
1428         (gl_array_remove_at):
1429         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1430         (add_to_bucket, remove_from_bucket):
1431         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1432         Change 'static inline' to 'static', as it's simpler to omit
1433         'inline' unless there's a significant performance advantage.
1434
1435         list, oset, xlist, xoset, xsublist: simplify via extern inline
1436         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1437         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1438         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1439         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1440         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1441         New macro.  Replace all uses of 'static inline' with it.
1442         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1443         instead of as macros FOO that are defined to static inline
1444         functions FOO_inline.
1445         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1446         * lib/gl_xsublist.c:
1447         Reimplement from scratch, by defining the corresponding *_INLINE
1448         macro and including the corresponding .h file.  This is simpler.
1449         * modules/list, modules/oset, modules/xlist, modules/xoset:
1450         (Files): Remove m4/gl_list.m4.
1451         (configure.ac): Remove gl_LIST.
1452         * m4/gl_list.m4: Remove.
1453         * modules/list, modules/oset, modules/xlist, modules/xoset:
1454         * modules/xsublist:
1455         (Depends-on): Depend on extern-inline, not inline.
1456
1457         xalloc: better 'inline'
1458         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1459         New macro.  Replace all uses of 'static inline' with it.
1460         (static_inline): Remove.
1461         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1462         Let 'extern inline' do the work automatically, instead of doing
1463         it by hand.
1464         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1465         Remove.  All uses removed.
1466         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1467
1468         gethrxtime: better 'inline'
1469         * lib/xtime.c: New file.
1470         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1471         * lib/xtime.h (XTIME_INCLUDE):
1472         New macros.  Replace all uses of 'static inline' with them.
1473         * lib/gethrxtime.c (gethrxtime): Define only if
1474         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1475         this source file is now always compiled, because of the extern inline.
1476         * lib/gethrxtime.h, lib/xtime.h:
1477         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1478         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1479         if gethrtime works, as they're not needed in that case.
1480         (gl_XTIME): Do not require AC_C_INLINE.
1481         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1482         compiled now.  Move the check into gl_GETHRXTIME.
1483         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1484         (Depends-on): Add extern-inline.
1485         (configure.ac): gethrxtime is always compiled now.
1486         (lib_SOURCES): Add gethrxtime.c.
1487
1488         wctype-h: better 'inline'
1489         * lib/wctype-h.c: New file.
1490         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1491         New macro.  Replace all uses of 'static inline' with it.
1492         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1493         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1494         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1495         (Depends-on): Add extern-inline.
1496
1497         unistd: better 'inline'
1498         * lib/unistd.c: New file.
1499         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1500         New macro.  Replace all uses of 'static inline' with it.
1501         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1502         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1503         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1504         (Depends-on): Add extern-inline.
1505
1506         sys_socket: better 'inline'
1507         * lib/sys_socket.c: New file.
1508         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1509         New macro.  Replace all uses of 'static inline' with it.
1510         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1512         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1513         (Depends-on): Add extern-inline.
1514
1515         stdio: better 'inline'
1516         * lib/stdio.c: New file.
1517         * lib/stdio.in.h (_GL_STDIO_INLINE):
1518         New macro.  Replace all uses of 'static inline' with it.
1519         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1520         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1521         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1522         (Depends-on): Add extern-inline.
1523
1524         sigaction: better 'inline'
1525         * lib/sig-handler.c: New file.
1526         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1527         New macro.  Replace all uses of 'static inline' with it.
1528         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1529         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1530         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1531         (Depends-on): Add extern-inline.
1532
1533         selinux-h: better 'inline'
1534         * lib/se-context.c, lib/se-selinux.c: New files.
1535         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1536         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1537         New macro.  Replace all uses of 'static inline' with it.
1538         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1539         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1540         New macro.  Replace all uses of 'static inline' with it.
1541         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1542         * modules/selinux-h (Files, lib_SOURCES):
1543         Add lib/se-context.c, lib/se-selinux.c.
1544         (Depends-on): Add extern-inline.
1545         (configure.ac): Do not require AC_C_INLINE.
1546
1547         pthread: better 'inline'
1548         * lib/pthread.c: New file.
1549         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1550         New macro.  Replace all uses of 'static inline' with it.
1551         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1552         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1553         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1554         * modules/pthread (Files): Add lib/pthread.c.
1555         (Depends-on): Add extern-inline.
1556
1557         math: better 'inline'
1558         * lib/math.c: New file.
1559         * lib/math.in.h (_GL_MATH_INLINE):
1560         New macro.  Replace all uses of 'static inline' with it.
1561         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1562         * m4/math_h.m4 (gl_MATH_H):
1563         Do not require AC_C_INLINE.
1564         * modules/math (Files, lib_SOURCES):
1565         Add lib/math.c.
1566         (Depends-on): Add extern-inline.
1567
1568         count-one-bits: better 'inline'
1569         * lib/count-one-bits.c: New file.
1570         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1571         New macro.  Replace all uses of 'static inline' with it.
1572         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1573         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1574         Do not require AC_C_INLINE.
1575         * modules/count-one-bits (Files, lib_SOURCES):
1576         Add lib/count-one-bits.c.
1577         (Depends-on): Add extern-inline.
1578
1579         count-leading-zeros: better 'inline'
1580         * lib/count-leading-zeros.c: New file.
1581         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1582         New macro.  Replace all uses of 'static inline' with it.
1583         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1584         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1585         Do not require AC_C_INLINE.
1586         * modules/count-leading-zeros (Files, lib_SOURCES):
1587         Add lib/count-leading-zeros.c.
1588         (Depends-on): Add extern-inline.
1589
1590         bitrotate: better 'inline'
1591         * lib/bitrotate.c: New file.
1592         * lib/bitrotate.h (BITROTATE_INLINE):
1593         New macros.
1594         Replace all uses of 'static inline' with them.
1595         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1596         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1597         (Depends-on): Add extern-inline.
1598         (configure.ac): Do not require AC_C_INLINE.
1599
1600 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1601
1602         maint.mk: avoid gratuitous failure
1603         Reported by Stefano Lattarini in
1604         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1605         * top/maint.mk (public-submodule-commit): Quote more safely.
1606
1607 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1608
1609         canonicalize, canonicalize-lgpl: support MS-Windows file names
1610         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1611         for test cases, which it'd be nice to add at some point.
1612         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1613         * lib/canonicalize.c (canonicalize_filename_mode):
1614         * lib/canonicalize-lgpl.c (__realpath):
1615         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1616         slash is at the beginning of the file name.  Use ISSLASH, instead
1617         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1618         the first character with '/'.  Test for
1619         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1620         with a drive letter.
1621         * lib/canonicalize.c (SLASHES): New macro.
1622         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1623
1624 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1625
1626         fts: introduce FTS_VERBATIM
1627         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1628         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1629         * lib/fts.c (fts_open): Honor it.
1630
1631 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1632
1633         getlogin-tests: allow errno == ENXIO
1634         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1635         with errno == ENXIO (No controlling tty).
1636         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1637         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1638         with errno == ENOENT.  This was reported to happen in various
1639         situations on GNU/Linux.
1640
1641 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1642
1643         getlogin-tests: allow errno == ENOENT
1644         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1645         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1646         when running a test in an Emacs shell buffer.
1647
1648 2012-11-08  Jim Meyering  <jim@meyering.net>
1649
1650         tests/nap.h: avoid warning about unused variable
1651         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1652
1653         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1654         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1655         white space before each of the special-cased file names, to avoid
1656         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1657         in http://bugs.gnu.org/12830.
1658
1659 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1660
1661         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1662         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1663         fails with errno == EBADF when fd is opened with O_PATH.
1664         Reported by Jim Meyering in
1665         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1666         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1667         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1668
1669 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1670
1671         test-utimens: speed up by taking shorter naps
1672         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1673         New functions.
1674         (nap): Use them, to do a better job of guessing the delay.
1675         On Fedora 17 with ext4 atop md atop hard disks, this made
1676         test-utimens run 10x faster, because the test napped for
1677         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1678         <http://bugs.gnu.org/12820#11>.
1679
1680 2012-11-07  Jim Meyering  <jim@meyering.net>
1681
1682         mountlist.c: fix a compilation failure
1683         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1684         I introduced while transforming commit v0.0-7683-g613bcb6
1685
1686 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1687
1688         errno: port to LynxOS 178 2.2.2
1689         Problem reported by Joel Brobecker in
1690         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1691         * doc/posix-headers/errno.texi (errno.h): Document this.
1692         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1693         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1694         Supply a string for EILSEQ.
1695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1696
1697 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1698
1699         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1700         Linux kernel 2.6.39 introduced O_PATH (see
1701         <http://lwn.net/Articles/433854/>) and this is a better fallback
1702         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1703         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1704         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1705         * lib/fcntl.in.h (O_ACCMODE):
1706         * tests/test-fcntl-h.c (main):
1707         Do not reject O_ACCMODE merely because it has more than the
1708         minimal number of bits, as POSIX allows extensions here.
1709
1710 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1711
1712         mountlist: do not classify a bind-mounted dir entry as "dummy"
1713         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1714         the "none"-testing clause.
1715         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1716         exception for bind-mounted directories.
1717
1718 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1719
1720         quote: provide a means to escape strings with nul characters
1721         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1722         (quote, quote_n): Rename formal arguments for consistency with
1723         quotearg.
1724
1725 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1726
1727         test-raise: don't assume 199 is an invalid signal
1728         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1729
1730         sh-quote-tests: port to Solaris 9
1731         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1732         Problem reported by Dagobert Michelsen in
1733         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1734
1735 2012-10-28  Jim Meyering  <jim@meyering.net>
1736
1737         maint.mk: rename a new configurable variable
1738         * top/maint.mk (_gl_translatable_string_re): Rename from
1739         translation-markers: _gl_ prefix to insulate from user Makefile code,
1740         and the _re suffix to inform that it's a regular expression.
1741
1742 2012-10-26  Eric Blake  <eblake@redhat.com>
1743
1744         maint.mk: let packages tweak sc_po_check pattern
1745         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1746         finding files with other translation markers.
1747
1748 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1749
1750         euidaccess: speed up 'configure' on GNU hosts
1751         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1752         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1753         it's needed only in this case.  Use AC_CHECK_DECLS, not
1754         AC_CHECK_DECLS_ONCE.
1755         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1756         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1757
1758         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1759
1760 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1761
1762         fchmodat, fchownat, fstatat: port to non-inlining compilers
1763         Problem reported for FreeBSD 9 by Jim Meyering in
1764         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1765         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1766         New files, which define FCHMODAT_INLINE etc.
1767         * lib/fchmodat.c (FCHMODAT_INLINE):
1768         * lib/fchownat.c (FCHOWNAT_INLINE):
1769         * lib/fstatat.c (FSTATAT_INLINE):
1770         Remove, as chmodat.c etc. now do this.
1771         * modules/fchmodat (Files): Add lib/chmodat.c.
1772         * modules/fchownat (Files): Add lib/chownat.c.
1773         * modules/fstatat (Files): Add lib/statat.c.
1774
1775 2012-10-15  Jim Meyering  <jim@meyering.net>
1776
1777         fchmodat.c, fchownat.c: compile-impeding typos
1778         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1779         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1780         Introduced in commit v0.0-7636-gd202279.
1781
1782 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         fcntl-h: support GNU flags like O_IGNORE_CTTY
1785         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1786         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1787         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1788         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1789         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1790         Define to 0 if not already defined.
1791         * tests/test-fcntl-h.c: Test these new flags.
1792
1793 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1794
1795         faccessat, etc.: support AT_FDCWD-only use
1796         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1797         this function only if its first argument is AT_FDCWD.
1798         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1799         values other than AT_FDCWD, so it doesn't want all the openat
1800         machinery with fchdir etc.
1801         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1802         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1803         * modules/unlinkat (Files):
1804         Remove lib/openat-priv.h, as at-internal supplies this file.
1805         Removing this file here allows us to support programs like Emacs
1806         that avoid at-internal.
1807
1808         faccessat: speed up 'configure' on mainstream hosts
1809         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1810         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1811         since it's only on unusual platforms that we need to check for
1812         'access', and it's better not to slow 'configure' down on all
1813         platforms.
1814
1815         faccessat: port to Solaris 10
1816         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1817         Needed on Solaris 10, which doesn't have AT_EACCESS,
1818         so we need the Gnulib fcntl.h, which defines it.
1819
1820 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1821         canonicalize: fix C89 compilation
1822         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1823         declarations so C89 is supported.  Also remove the comment
1824         referencing memorty allocation as the suggested feature could
1825         not be implemented as suggested.
1826         Reported by Michael Goffioul.
1827
1828 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1829
1830         group-member: omit unnecessary dependencies
1831         This is for Emacs, which has its own allocator and where we
1832         don't want to use xalloc.
1833         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1834         since we no longer use xmalloc.  Do not include stdbool.h, since
1835         the changes below happen to remove the only use of bool.
1836         (GROUPBUF_SIZE): New constant.
1837         (struct group_info): Remove n_groups member.  Add groupbuf member.
1838         This lets us get the groups without using malloc, usually.
1839         (free_group_info, get_group_info): Adjust to this.
1840         (get_group_info): Return the number of groups found, or -1 on error.
1841         Use plain malloc not xmalloc, and treat its failure as if there
1842         are no groups, as the user already loses in case of error.
1843         (group_member): Simplify, based on changes to get_group_info.
1844         * modules/group-member (Depends-on): Remove dependencies on
1845         xalloc and stdbool.  Add dependency on xalloc-oversized.
1846
1847 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1848
1849         gethrxtime: port to C++
1850         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1851
1852 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1853
1854         ptsname: fix macro-name typo
1855         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1856
1857 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1858
1859         inttostr: Relax license.
1860         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1861
1862 2012-10-03  Eric Blake  <eblake@redhat.com>
1863
1864         ptsname_r: support ptys returned by FreeBSD posix_openpt
1865         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1866         lives in /dev/pts/.
1867
1868 2012-10-02  Eric Blake  <eblake@redhat.com>
1869
1870         pselect: reject invalid file descriptors
1871         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1872         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1873         * modules/pselect (Depends-on): Add dup2.
1874         * doc/posix-functions/pselect.texi (pselect): Document this.
1875
1876         select: reject invalid file descriptors
1877         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1878         * lib/select.c (rpl_select) [!win32]: Work around it.
1879         * modules/select (Depends-on): Add dup2.
1880         * doc/posix-functions/select.texi (select): Document this.
1881
1882         select: enhance test
1883         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1884         New functions.
1885         (test_function): Enhance test.
1886         (do_select_bad_fd): Avoid any stale errno values.
1887
1888         ptsname: reject invalid file descriptors
1889         http://www.austingroupbugs.net/view.php?id=503
1890         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1892         * modules/stdlib (Makefile.am): Replace witness.
1893         * lib/stdlib.in.h (ptsname): Allow for replacement.
1894         * modules/ptsname (configure.ac): Trigger replacement.
1895         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1896
1897 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1898
1899         hash-pjw-bare: new module
1900         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1901         * lib/hash-pjw-bare.h: Likewise.
1902         * modules/hash-pjw-bare: New file.
1903         * MODULES.html.sh (Misc): Add it.
1904
1905 2012-10-02  Eric Blake  <eblake@redhat.com>
1906
1907         manywarnings: cater to more gcc infelicities
1908         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1909         -Wuninitialized without -O.
1910
1911 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1912
1913         select, poll tests: Make setsockopt invocation effective.
1914         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1915         the bind() call.
1916         * tests/test-select.h (open_server_socket): Likewise.
1917
1918 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1919
1920         sockets, sys_stat: restore AC_C_INLINE
1921         This undoes the 2012-09-22 patch.
1922         * m4/sockets.m4 (gl_SOCKETS):
1923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1924         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1925         and does not support plain 'inline'.  Reported by Bruno Haible in
1926         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1927
1928 2012-09-30  Bruno Haible  <bruno@clisp.org>
1929
1930         localeconv tests: Avoid test failure on OpenIndiana.
1931         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1932         skip the 'grouping' and 'mon_grouping' tests.
1933         Reported by Jim Meyering.
1934
1935 2012-09-30  Bruno Haible  <bruno@clisp.org>
1936
1937         havelib: Follow libtool developments.
1938         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1939         Suggested by Simon Josefsson.
1940
1941 2012-09-29  Jim Meyering  <meyering@redhat.com>
1942
1943         fstatat.c: fix a compile-impeding typo
1944         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1945         Introduced in commit v0.0-7636-gd202279.
1946         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1947
1948 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1949
1950         extern-inline: provide a -Wundef safe config.h
1951         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1952         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1953         to produce a -Wundef warning free config.h.
1954
1955 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1956
1957         hash-pjw: relax license to LGPLv2+
1958         * modules/hash-pjw (License): Relax, with consent of author.
1959
1960 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1961
1962         maint.mk: fix strict vs. lazy variable issues with RELEASE
1963         * top/maint.mk (_equal): New function.
1964         (member_check): Strip the result to avoid spurious spaces.
1965         (url_dir_list): Do not use ifeq, which is strict, as it will
1966         require RELEASE_TYPE to be defined.
1967         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1968         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1969         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1970         (announcement_Cc_beta,announcement_mail_headers_beta)
1971         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1972         (release): Do not depend on $(release-type), as it forces its
1973         evaluation.  Bounce to it.
1974
1975 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1976
1977         maint.mk: formatting changes
1978         * top/maint.mk: Indent bodies of if's.
1979
1980 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1981
1982         maint.mk: factor the validation of RELEASE_TYPE
1983         With help from Jim Meyering.
1984         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1985         * top/maint.mk (_empty, _sp): Move their definition earlier.
1986         (member-check, release-type): New.
1987         Use the latter instead of $(RELEASE_TYPE).
1988         Remove now useless local checks.
1989
1990 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1991
1992         maint.mk: provide "make upload" to ease uploading
1993         See
1994         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1995         Do not depend simply on the current $(VERSION), as there may have been
1996         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1997         as "make release-commit" already does.
1998
1999         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2000         "make TYPE".
2001
2002         * top/maint.mk (upload_command, upload, release): New.
2003         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2004         (VERSION): first word of $(RELEASE) is always right.
2005         (emit_upload_commands): Adjust.
2006         * top/README-release: Update.
2007
2008 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2009
2010         maint.mk: silent rules
2011         With help from Stefano Lattarini.
2012         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2013         (announcement): Use $(AM_V_at).
2014
2015 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2016
2017         localename: port gl_locale_name_thread_unsafe to FreeBSD
2018         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2019         and use the simpler FreeBSD implementation on Mac OS X as well.
2020         Original idea suggested by Ed Maste in
2021         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2022
2023 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2024
2025         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2026         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2027         * lib/mbuiter.c, lib/xsize.c: New files.
2028         * lib/binary-io.h (BINARY_IO_INLINE):
2029         * lib/eealloc.h (EEALLOC_INLINE):
2030         * lib/mbfile.h (MBFILE_INLINE):
2031         * lib/mbiter.h (MBITER_INLINE):
2032         * lib/mbuiter.h (MBUITER_INLINE):
2033         * lib/xsize.h (XSIZE_INLINE):
2034         New macros.
2035         Replace all uses of 'static inline' with them.
2036         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2037         * m4/eealloc.m4 (gl_EEALLOC):
2038         * m4/mbfile.m4 (gl_MBFILE):
2039         * m4/mbiter.m4 (gl_MBITER):
2040         * m4/xsize.m4 (gl_XSIZE):
2041         Do not require AC_C_INLINE.
2042         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2043         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2044         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2045         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2046         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2047         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2048         * modules/binary-io, modules/eealloc, modules/mbfile:
2049         * modules/mbiter, modules/mbuiter:
2050         (Depends-on): Add extern-inline.
2051
2052         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2053         * lib/pipe-filter-aux.c: New file.
2054         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2055         Replace all uses of 'static inline' with it.
2056         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2057         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2058         (filter_retcode): No real need for inline here.
2059         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2060         (Files): Add lib/pipe-filter-aux.c.
2061         (Depends-on): Add extern-inline.
2062         (configure.ac): Do not require AC_C_INLINE.
2063         (lib_SOURCES): Add pipe-filter-aux.c.
2064
2065         fdutimensat: omit unnecessary AC_C_INLINE
2066         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2067
2068         fchmodat, fchownat, fstatat: use extern-inline
2069         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2070         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2071         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2072         New macros.
2073         * lib/openat.h:
2074         Replace all uses of 'static inline' with them.
2075         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2076         * modules/fchmodat, modules/fchownat, modules/fstatat:
2077         * modules/openat-h:
2078         (Depends-on):
2079         Add extern-inline.
2080         (configure.ac): Remove AC_C_INLINE.
2081
2082         acl, mbchar, priv-set: use extern-inline
2083         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2084         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2085         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2086         New macros.
2087         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2088         Replace all uses of 'static inline' with it.
2089         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2090         * m4/acl.m4 (gl_FUNC_ACL):
2091         * m4/mbchar.m4 (gl_MBCHAR):
2092         * m4/priv-set.m4 (gl_PRIV_SET):
2093         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2094         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2095         Add extern-inline.
2096
2097         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2098         * m4/sockets.m4 (gl_SOCKETS):
2099         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2100         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2101         environments where it's already guaranteed to work, so we needn't
2102         check for it at 'configure'-time.
2103
2104         tls-tests: omit unnecessary 'inline'
2105         * tests/test-tls.c (perhaps_yield): No longer inline.
2106         Simplicity and portability trump efficiency in test cases.
2107
2108         utimens-tests: avoid unnecessary 'inline'
2109         * modules/fdutimensat-tests (configure.ac):
2110         * modules/futimens-tests (configure.ac):
2111         * modules/utimens-tests (configure.ac):
2112         * modules/utimensat-tests (configure.ac):
2113         Remove AC_C_INLINE.
2114         * tests/test-utimens-common.h (ctime_compare):
2115         No longer inline.  Simplicity and portability trump efficiency here.
2116
2117         misc: don't limit commentary to inline functions
2118         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2119         * lib/xalloc-oversized.h, lib/xsize.h:
2120         Contrast macros to functions in general, not just to inline functions,
2121         when the commentary does not apply only to inline functions.
2122
2123 2012-09-20  Jim Meyering  <meyering@redhat.com>
2124
2125         non-recursive-gnulib-prefix-hack: new module
2126         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2127         the file that originated in Bison.
2128         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2129         largely copied from a snippet that resided in bison's configure.ac.
2130         * modules/non-recursive-gnulib-prefix-hack: New file.
2131         * MODULES.html.sh (Support for maintaining and releasing projects):
2132         Add it.
2133
2134 2012-09-18  Jim Meyering  <meyering@redhat.com>
2135
2136         maint.mk: generalize _gl_tight_scope for non-recursive make
2137         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2138         that *.h would describe additional .h files in the directory
2139         specified by $(_gl_TS_dir).  I.e., add this...
2140         (_gl_TS_other_headers): New variable.
2141
2142         maint.mk: exempt trailing blanks found in "binary" files
2143         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2144         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2145         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2146
2147 2012-09-17  Jim Meyering  <meyering@redhat.com>
2148
2149         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2150         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2151         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2152         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2153
2154 2012-09-17  Jim Meyering  <meyering@redhat.com>
2155
2156         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2157         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2158         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2159         It is not in the same category as "exit (0)" or "exit (1)", and
2160         besides, I know of no symbolic name for that 77.  Reported by
2161         Richard W.M. Jones in
2162         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2163
2164 2012-09-17  Jim Meyering  <meyering@redhat.com>
2165
2166         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2167         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2168         all uses of #define, not just those that start in column 1.
2169         Richard W.M. Jones reported a false positive in
2170         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2171
2172 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2173
2174         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2175         * lib/localcharset.c (locale_charset) [DARWIN7]:
2176         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2177         as these two values are incompatible.  Problem reported by Max Horn.
2178         For more discussion, please see
2179         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2180
2181         doc: document sticky-EOF issue
2182         * doc/posix-functions/fgetc.texi (fgetc):
2183         * doc/posix-functions/fgets.texi (fgets):
2184         * doc/posix-functions/fread.texi (fread):
2185         * doc/posix-functions/fscanf.texi (fscanf):
2186         * doc/posix-functions/getc.texi (getc):
2187         * doc/posix-functions/getchar.texi (getchar):
2188         * doc/posix-functions/scanf.texi (scanf):
2189         Mention that glibc and default Solaris do not conform to
2190         C99 and POSIX-2001 or later, with respect to how getchar
2191         etc. behave when feof reports nonzero.
2192
2193 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2194
2195         poll: fix poll(0, NULL, msec)
2196         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2197         but nfd is 0.  In that case poll should behave like select.
2198
2199 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2200             Paolo Bonzini <bonzini@gnu.org>
2201
2202         poll: fix for systems that can't recv() on a non-socket
2203         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2204         is readable.  In this case POLLHUP will not be supported.
2205         * doc/posix-functions/poll.texi: Document this.
2206
2207 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2208
2209         poll/select: document portability problems not fixed by Gnulib.
2210         * doc/posix-functions/poll.texi: poll does not work well on
2211         pipes under Windows.  It has the same limitations as select on
2212         BeOS.
2213         * doc/posix-functions/select.texi: select does not work well
2214         on pipes under Windows.
2215
2216 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2217
2218         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2219         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2220         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2221         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2222
2223 2012-09-06  Eric Blake  <eblake@redhat.com>
2224
2225         net_if: give more details about the bug being fixed
2226         * doc/posix-headers/net_if.texi: Add clarification.
2227
2228 2012-09-05  Eric Blake  <eblake@redhat.com>
2229
2230         net_if: new module
2231         * modules/net_if: New module, borrowing ideas from netinet_in.
2232         * m4/net_if_h.m4: New file.
2233         * lib/net_if.in.h: Likewise.
2234         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2235         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2236         * tests/test-net_if.c: Make function checks conditional.
2237         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2238
2239 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2240
2241         readutmp: fix non-portable UT_PID use
2242         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2243         Use `UT_PID (u) > 0' as absolute condition.
2244
2245 2012-09-04  Jim Meyering  <meyering@redhat.com>
2246
2247         fts: reduce two or more trailing spaces to just one, usually
2248         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2249         or more slashes, trim all but the final one.  But if a name consists
2250         solely of two slashes, don't modify it.  If it consists solely of
2251         three or more slashes, strip all but one.
2252
2253         This is part of the solution to a minor problem with rm:
2254         it would print a bogus ELOOP diagnostic when failing to remove
2255         the slash-decorated name of a symlink-to-directory:
2256
2257             $ mkdir d && ln -s d s && env rm -r s/
2258             rm: cannot remove 's': Too many levels of symbolic links
2259
2260         With the change below and a trivial don't-trim-trailing-slashes
2261         adjustment to remove.c, it does this:
2262
2263             $ env rm -r s/
2264             rm: cannot remove 's/': Not a directory
2265
2266         Improved by: Eric Blake
2267
2268         fts: when there is no risk of overlap, use memcpy, not memmove
2269         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2270
2271 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2272
2273         stdbool: be more compatible with mixed C/C++ compiles
2274         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2275         Define to bool, true, false, respectively, as GCC's builtin
2276         stdbool.h does.  Problem reported by Michael Goffioul in
2277         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2278
2279 2012-08-28  Jim Meyering  <meyering@redhat.com>
2280
2281         revert last change: it was not needed
2282         * tests/test-vc-list-files-git.sh: There's already a test for
2283         a working git, just below.
2284
2285 2012-08-28  Jim Meyering  <meyering@redhat.com>
2286
2287         tests: test-vc-list-files-git.sh: skip if git is not available
2288         * tests/test-vc-list-files-git.sh: Skip this test when git is
2289         not available.
2290
2291 2012-08-26  Bruno Haible  <bruno@clisp.org>
2292
2293         gnulib-tool: Remove no-op option --no-changelog.
2294         * gnulib-tool (func_usage): Don't mention --no-changelog.
2295         (do_changelog): Remove variable.
2296         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2297
2298 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2299
2300         doc: remove fdl-1.2.texi
2301         It is no longer used or maintained, and its use of @acronym
2302         is problematic.  See the thread containing
2303         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2304         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2305         * doc/old-licenses/fdl-1.2.texi: Remove.
2306
2307         execinfo: port to FreeBSD
2308         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2309         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2310         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2311         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2312
2313 2012-08-23  Jim Meyering  <meyering@redhat.com>
2314
2315         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2316         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2317         to placate gcc's -Wold-style-declaration.
2318
2319 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2320
2321         doc: do not use @acronym
2322         * doc/inet_ntoa.texi (inet_ntoa):
2323         * doc/parse-datetime.texi (Seconds since the Epoch)
2324         (Specifying time zone rules):
2325         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2326         Don't use @acronym.  Problem reported by John Darlington in
2327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2328
2329 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2330
2331         stdnoreturn: port to newer GCCs
2332         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2333         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2334         Problem reported by Jim Meyering in
2335         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2336         Also, rename the 'test' function to a void a clash with the
2337         already-supplied 'main' function; this fixes a bug that incorrectly
2338         rejected GCC 4.7.1's <stdnoreturn.h>.
2339         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2340         Document GCC problem.
2341
2342 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2343
2344         pipe-filter: fix comment typo
2345         * lib/pipe-filter.h: Mention correct function.
2346
2347 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2348
2349         execinfo: new module
2350         This is for Emacs.  Currently, it provides a no-effect stub
2351         on all platforms where it does not already work.
2352         It already works on glibc-based systems, and on Solaris 11.
2353         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2354         New files.
2355         * doc/glibc-headers/execinfo.texi (execinfo.h):
2356         * MODULES.html.sh (Misc): Document it.
2357
2358 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2359
2360         extern-inline: support old GCC 'inline'
2361         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2362         if available.  This applies to GCC versions 2.7 through 4.2, or
2363         when newer GCC is using -fgnu89-inline.  The goal is to address
2364         some of the performance issues mentioned by Bruno Haible in
2365         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2366
2367 2012-08-20  Eric Blake  <eblake@redhat.com>
2368
2369         maint.mk: avoid redundant file name in message
2370         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2371         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2372         (sc_makefile_path_separator_check): Remove bogus $(ME).
2373
2374 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2375
2376         timer-time: fix link order when static linking on glibc
2377         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2378         _after_ -lrt so that it's significant.
2379
2380 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2381
2382         timespec: omit unnecessary AC_C_INLINE
2383         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2384
2385         stat-time: omit unnecessary AC_C_INLINE
2386         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2387         Do not require AC_C_INLINE.
2388
2389         ignore-value: omit unnecessary AC_C_INLINE
2390         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2391
2392         sys_select: avoid 'static inline'
2393         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2394
2395         mktime: avoid 'static inline'
2396         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2397         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2398
2399 2012-08-19  Bruno Haible  <bruno@clisp.org>
2400
2401         gnulib-tool: Improve coding style.
2402         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2403         func_emit_lib_Makefile_am.
2404         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2405
2406 2012-08-19  Bruno Haible  <bruno@clisp.org>
2407
2408         gnulib-tool: Fix indentation.
2409         * gnulib-tool (func_import): Fix indentation.
2410
2411 2012-08-19  Bruno Haible  <bruno@clisp.org>
2412
2413         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2414         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2415         on the list of removed files.
2416
2417 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2418
2419         test-parse-datetime: avoid glibc leap-second glitch
2420         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2421         with the 2012 rules.  Problem reported by Bruce Dubbs in
2422         <http://bugs.gnu.org/12206>.
2423
2424 2012-08-14  Bruno Haible  <bruno@clisp.org>
2425
2426         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2427         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2428         from argument.
2429         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2430
2431 2012-08-14  Eric Blake  <eblake@redhat.com>
2432
2433         ldexp: relax license
2434         * modules/ldexp (License): Trivial relax, since the module only
2435         provides a permissively licensed m4 file.
2436
2437 2012-08-13  Bruno Haible  <bruno@clisp.org>
2438
2439         gnulib-tool: Fix persistence of --witness-c-macro option.
2440         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2441         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2442
2443 2012-08-11  Eric Blake  <eblake@redhat.com>
2444
2445         count-leading-zeros: use a lookup table on non-gcc compilers
2446         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2447         alternate implementation, suggested by Jim Meyering.
2448
2449 2012-08-10  Eric Blake  <eblake@redhat.com>
2450
2451         count-leading-zeros: new module
2452         * modules/count-leading-zeros: New module.
2453         * m4/count-leading-zeros.m4: New file.
2454         * lib/count-leading-zeros.h: Likewise.
2455         * modules/count-leading-zeros-tests: New test.
2456         * tests/test-count-leading-zeros.c: New file.
2457         * MODULES.html.sh (Integer arithmetic functions): Document it.
2458
2459 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2460             Jim Meyering  <meyering@redhat.com>
2461
2462         maintainer-makefile: Fix syntax error with dash.
2463         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2464         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2465
2466 2012-08-05  Jim Meyering  <meyering@redhat.com>
2467
2468         extern-inline: also ignore -Wmissing-declarations
2469         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2470         required with gcc-4.8.0-to-be.
2471
2472         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2473         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2474         for /error ?([^,]*)/.  This avoids false-positives for strings like
2475         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2476
2477 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2478
2479         gnumakefile: better interaction with Automake-NG
2480         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2481         Automake-NG always contain a definition of VPATH, even in non-VPATH
2482         builds (its value being simply '.' in that case).  So, in the
2483         'clean-GNUmakefile' rule, to determine whether running under a
2484         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2485         '$(VPATH)' expands to the empty string.
2486
2487 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2488
2489         base64: Use extern C scope in header file, for C++.
2490         * lib/base64.h: Add C++ namespace protection.
2491
2492 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2493
2494         stat-time, timespec, u64: support naive out-of-dir builds
2495         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2496         Use '#include "foo.h"', not '#include <foo.h>', when including
2497         one's own interface.  This works better when configuring with
2498         out-of-directory builds, since packages need not add an
2499         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2500
2501 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2502
2503         utimens: use extern-inline
2504         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2505         * lib/utimens.h: Add copyright notice, since this is now large enough
2506         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2507         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2508         * modules/utimens (Depends-on): Add extern-inline.
2509
2510         u64: use extern-inline
2511         * lib/u64.c: New file.
2512         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2513         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2514         * modules/u64 (Files): Add lib/u64.c.
2515         (Depends-on): Add extern-inline.
2516         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2517         does that now.
2518         (lib_SOURCES): Add u64.c.
2519
2520         timespec: use extern-inline
2521         * lib/timespec.c: New file.
2522         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2523         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2524         * modules/timespec (Files): Add lib/timespec.c.
2525         (Depends-on): Add extern-inline.
2526         (lib_SOURCES): Add timespec.c.
2527
2528         stat-time: use extern-inline
2529         * lib/stat-time.c: New file.
2530         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2531         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2532         * modules/stat-time (Files): Add lib/stat-time.c.
2533         (Depends-on): Add extern-inline.
2534         (lib_SOURCES): Add stat-time.c.
2535
2536         extern-inline: new module
2537         * modules/extern-inline, m4/extern-inline.m4: New files.
2538         This is for better support of 'extern inline' a la ISO C99,
2539         with a portable alternative on compilers that do not support
2540         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2541         of the Emacs executable, when compiled with debugging disabled,
2542         which is a typical way that Emacs is built while developing.
2543
2544 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2545
2546         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2547         * build-aux/do-release-commit-and-tag: Move variable definitions
2548         together.
2549         ($branch): Instead of defaulting to "master", default to the current
2550         branch (as gnu-web-doc-update does).
2551         (help): Display the current values of the option arguments.
2552         * top/maint.mk (release-commit): New.
2553         * top/README-release: Simplify the corresponding step.
2554
2555 2012-07-30  Eric Blake  <eblake@redhat.com>
2556
2557         passfd: fix comment on recvfd
2558         * lib/passfd.c (recvfd): Fix comment.
2559         Reported by Jann Horn <jannhorn@googlemail.com>.
2560
2561 2012-07-30  Jim Meyering  <meyering@redhat.com>
2562
2563         maint.mk: avoid a sub-shell
2564         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2565
2566 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2567
2568         maint.mk: use silent-rules support from Automake
2569         * top/maint.mk (news-check, vc-diff-check, announcement)
2570         (no-submodule-changes, alpha beta stable, release-prep)
2571         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2572
2573 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2574
2575         maint.mk: provide a web-manual-update target
2576         * top/maint.mk: here.
2577         * top/README-release: Use it to simplify the web manual update step.
2578
2579 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2580
2581         README-release: shorten the circuit to post a news
2582         * top/README-release: Point directly to the news submission form.
2583
2584 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2585
2586         gnu-web-doc-update: fix --help
2587         * build-aux/gnu-web-doc-update: The information "top level" was written
2588         twice.
2589
2590 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2591
2592         maint.mk: absolute VPATH issue
2593         * top/maint.mk (release-prep): Help Git find .git/.
2594         From Jim Meyering.
2595
2596 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2597
2598         gitlog-to-changelog: fix previous change
2599         * build-aux/gitlog-to-changelog: Fix condition.
2600         Add missing ";".
2601
2602 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2603
2604         gitlog-to-changelog: don't expect .git to be in $srcdir
2605         Reported by Bruno Haible.
2606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2607         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2608         Use it.
2609
2610 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2611
2612         maint.mk: absolute VPATH build fix
2613         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2614         $(srcdir) is not a parent of $(builddir).
2615
2616 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2617
2618         clean-temp: Fix memory leak.
2619         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2620         'files' members of tmpdir.
2621
2622 2012-07-27  Jim Meyering  <meyering@redhat.com>
2623
2624         maint.mk: new rule: refresh-gnulib-patches
2625         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2626         Use this rule to refresh them.
2627         * top/maint.mk (refresh-gnulib-patches): New rule.
2628
2629 2012-07-24  Bruno Haible  <bruno@clisp.org>
2630
2631         gnulib-tool: Fix handling of inctests variable.
2632         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2633         Reported by Nick Bowler <nbowler@elliptictech.com>.
2634
2635 2012-07-22  Bruno Haible  <bruno@clisp.org>
2636
2637         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2638         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2639         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2640         Remove exemption for getpass.h.
2641         Suggested by Eric Blake.
2642
2643 2012-07-20  Eric Blake  <eblake@redhat.com>
2644
2645         verify: document conflict with -Wnested-externs
2646         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2647
2648         maint.mk: forbid exit(-1)
2649         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2650
2651 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2652
2653         fsusage: port back to Solaris
2654         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2655         error (fsd not declared) on Solaris 10.  Reported privately by
2656         Andrew Borodin.
2657
2658 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2659
2660         gnu-web-doc-update: fix error messages
2661         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2662
2663         gnu-web-doc-update: check the requirements.
2664         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2665         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2666         * build-aux/bootstrap (find_tool): Comment change.
2667
2668 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2669
2670         maint.mk: minor simplication.
2671         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2672         for default values.
2673
2674 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2675
2676         gitlog-to-changelog: VPATH build issues
2677         If builddir is not a subdirectory of srcdir, running git from it will
2678         fail.
2679         * build-aux/gitlog-to-changelog (--srcdir): New option.
2680
2681 2012-07-15  Bruno Haible  <bruno@clisp.org>
2682
2683         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2684         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2685         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2686         Remove exemption for fpending.h.
2687         Suggested by Eric Blake.
2688
2689 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2690
2691         pthread_sigmask: fix bug on FreeBSD 9
2692         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2693         Include string.h.
2694         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2695         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2696         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2697         but pthread_sigmask (1729, NULL, NULL) returns zero.
2698         See <http://bugs.gnu.org/11884>.
2699         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2700         by inspecting whether the main call changed the old mask.
2701
2702 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2703
2704         README-release: make it more legible
2705         * top/README-release: Improve typography slightly.
2706
2707 2012-07-15  Jim Meyering  <meyering@redhat.com>
2708
2709         maint: require that each sc_... command start with "@"
2710         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2711         "make sc_maint" helps us avoid this nit.
2712
2713 2012-07-15  Jim Meyering  <meyering@redhat.com>
2714
2715         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2716         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2717
2718 2012-07-13  Eric Blake  <eblake@redhat.com>
2719
2720         maint.mk: new syntax check for HAVE_DECL checks
2721         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2722         * cfg.mk
2723         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2724         Exempt some false positives.
2725         Based on a report by Karel Zak.
2726
2727         argp: make HAVE_DECL usage consistent
2728         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2729         macros, not whether they are defined.
2730         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2731         convention with other declaration checks.
2732         Reported by Karel Zak, with suggestions from Paul Eggert.
2733
2734         stat-time: relax license to LGPLv2+
2735         * modules/stat-time (License): Relax, with consent of all authors.
2736
2737         strndup: fix m4 usage error
2738         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2739         defined, to either 0 or 1.
2740         Reported by Karel Zak.
2741
2742 2012-07-11  Jim Meyering  <meyering@redhat.com>
2743
2744         maint: enable the sc_avoid_if_before_free syntax-check rule
2745         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2746         (if_before_free_offenders_): Define.
2747         (if_before_free_basename_re_): Define.
2748         Exempt current files with useless if-before-free.
2749
2750 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2751
2752         gettext: do not assume '#define ... defined ...' behavior
2753         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2754         Do not use '#define FOO ... defined BAR ...', as the C standard says
2755         it's not portable to expect that this works after macro expansion.
2756         Problem reported for gzip by Steven M. Schweda in
2757         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2758
2759 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2760
2761         getloadavg: clean out old Emacs and Autoconf cruft
2762         See Glenn Morris in <http://bugs.gnu.org/11905>.
2763         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2764         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2765         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2766         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2767
2768 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2769
2770         bootstrap: let warn be like tests/init.sh's warn_
2771         Reported by Jim Meyering.
2772         * build-aux/bootstrap (warn): Remove, replaced by...
2773         (warnf_, warn_): these.
2774         Adjust callers.
2775         Shorten messages that no longer fit in 80 columns.
2776
2777 2012-07-09  Bruno Haible  <bruno@clisp.org>
2778
2779         getopt: Simplify after Emacs changed.
2780         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2781         (gl_GETOPT_IFELSE): Remove macro.
2782
2783 2012-07-09  Jim Meyering  <meyering@redhat.com>
2784
2785         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2786         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2787
2788         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2789         Bugs in both of those conspired to make the
2790         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2791         _sc_search_regexp's handling of non-empty $in_files would filter
2792         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2793         choice of in_files value meant there would be no match in most
2794         projects, due to the presence of two or more Makefile.in files.
2795         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2796         Fix a bug in how a non-empty $$in_files was processed:
2797         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2798         in spite of the name, it's a regexp, not a list of file names.
2799
2800 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2801
2802         getloadavg, getopt: fix commentary re configure.in
2803         Autoconf is deprecating the name 'configure.in', so change it to
2804         to the new name 'configure.ac' in a couple of places.
2805         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2806         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2807         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2808         Emacs has renamed it to configure.ac, and it no longer refers
2809         to these macros anyway.
2810
2811         timespec: mark functions with const attributes
2812         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2813         Mark with _GL_ATTRIBUTE_CONST.
2814
2815 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2816
2817         canonicalize[-lgpl]: handle "guessing" values when cross-building
2818         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2819         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2820         matches "*yes" instead of just "yes".  Regression introduced in commit
2821         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2822
2823 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2824             Bruno Haible  <bruno@clisp.org>
2825
2826         canonicalize: make the right guess when cross-compiling to GNU
2827         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2828         determine whether cross-compiling to glibc systems, so as to
2829         include GNU/Hurd.
2830
2831 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2832
2833         timespec-sub: avoid duplicate include
2834         * lib/timespec-sub.c: Do not include <config.h> twice.
2835         Reported by Juanma Barranquero.
2836
2837 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2838
2839         bootstrap: use a more consistent error reporting scheme
2840         * build-aux/bootstrap (warn, die): New.
2841         Use them.
2842
2843 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2844
2845         sys_time: allow too-wide tv_sec
2846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2847         timeval even if tv_sec is wider than time_t.  This allows
2848         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2849         as without this patch gnulib replaces struct timeval
2850         and OpenBSD futimes therefore has a type mismatch.
2851         * doc/posix-headers/sys_time.texi: Mention this.
2852
2853         pthread: check for both pthread_create and pthread_join
2854         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2855         alter the check so that it tests for both pthread_create and
2856         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2857         Suggested by Bruno Haible and Richard Yao in
2858         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2859
2860         parse-datetime: doc tuneup
2861         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2862         spacing issues.
2863
2864 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2865
2866         do-release-commit-and-tag: fix the previous commit
2867         * build-aux/do-release-commit-and-tag: Actually the test was right,
2868         but the comment and the error message were misleading.
2869         Fix comment, and improve error message.
2870         Perform check first, so that NEWS is not modified uselessly.
2871
2872         do-release-commit-and-tag: fix typo
2873         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2874         _not_ start with a stub.
2875
2876 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2877
2878         pthread: check for pthread_create, not pthread_join
2879         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2880         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2881         pthread_join in libc.  I hope this removes the need for all the
2882         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2883         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2884
2885 2012-07-04  Jim Meyering  <meyering@redhat.com>
2886
2887         parse-datetime: fix failure to diagnose invalid input
2888         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2889         rather than diagnosing the invalid input.  Now it reports this:
2890         date: invalid date '\260'
2891         * lib/parse-datetime.y (to_uchar): Define.
2892         (yylex): Don't sign-extend "other" bytes.
2893         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2894         Thanks to Bruno Haible for the patch to this file.
2895         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2896         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2897
2898 2012-07-03  Jim Meyering  <meyering@redhat.com>
2899
2900         bootstrap: do not require now-removed build-aux/missing
2901         Now that build-aux/missing is, er, missing, bootstrap would
2902         silently fail.
2903         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2904         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2905         no longer part of gnulib.
2906         Diagnose the failure.
2907
2908 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2909
2910         alloca: add support for HP NonStop TNS/E native
2911         * lib/alloca.in.h (alloca): Support the new host.
2912         From a suggestion by Joachim Schmitz in
2913         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2914
2915 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2916
2917         fsusage: remove code not needed on non GNU/Linux systems.
2918
2919         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2920         Don't include headers no longer needed in this case.
2921         * lib/fsusage.c [STAT_STATVFS &&
2922         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2923         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2924
2925 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2926
2927         fsusage: include files needed for glibc 2.6 fallback
2928         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2929         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2930         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2931         Problem reported by Ludovic Courtès in
2932         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2933
2934         fsusage: avoid needless check on GNU/Linux
2935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2936         on GNU/Linux systems, since it can't possibly work.
2937
2938 2012-07-01  Bruno Haible  <bruno@clisp.org>
2939
2940         log: Fix an autoconf >= 2.64 warning.
2941         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2942         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2943
2944 2012-06-28  Bruno Haible  <bruno@clisp.org>
2945
2946         log10f: Fix possible configuration problem.
2947         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2948         $LOGF_LIBM.
2949         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2950
2951 2012-06-28  Bruno Haible  <bruno@clisp.org>
2952
2953         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2954         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2955         not gl_cv_func_unlink_works.
2956         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2957
2958 2012-06-27  Eric Blake  <eblake@redhat.com>
2959
2960         config: drop scripts that automake says are not independent
2961         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2962         * build-aux/elisp-comp: Delete.
2963         * build-aux/missing: Likewise.
2964         * build-aux/ylwrap: Likewise.
2965         * modules/elisp-comp: Likewise.
2966         * MODULES.html.sh: Drop mention of elisp-comp.
2967         * NEWS: Mention this.
2968
2969 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2970
2971         root-uid: new module
2972         This is for portability to Tandem's NonStop Kernel.
2973         * lib/root-uid.h, modules/root-uid: New files.
2974         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2975         * lib/write-any-file.c, tests/test-sethostname2.c:
2976         Include "root-uid.h".
2977         * lib/euidaccess.c (euidaccess):
2978         * lib/pt_chown.c (main):
2979         * lib/unlinkdir.c (cannot_unlink_dir):
2980         * lib/write-any-file.c (can_write_any_file):
2981         * m4/mknod.m4 (gl_FUNC_MKNOD):
2982         * tests/test-sethostname2.c (geteuid, main):
2983         Don't assume ROOT_UID == 0.
2984         * modules/euidaccess (Depends-on):
2985         * modules/pt_chown (Depends-on):
2986         * modules/sethostname-tests (Depends-on):
2987         * modules/unlinkdir (Depends-on):
2988         * modules/write-any-file (Depends-on):
2989         Add root-uid.
2990
2991         regex: use locale-independent comparison for codeset name
2992         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2993         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2994         for codeset name.
2995         * lib/regex_internal.h: Do not include <strings.h>, since we
2996         no longer use strcasecmp.
2997         * modules/regex (Depends-on): Remove strcase.
2998
2999 2012-06-23  Bruno Haible  <bruno@clisp.org>
3000
3001         getopt-posix: No longer guarantee that option processing is resettable.
3002         * doc/posix-functions/getopt.texi: Drop description of problem with
3003         internal state. Fix info about mingw and msvc9.
3004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3005         option processing by getopt(). Run three test programs instead of one.
3006         Simplify cross-compilation guess.
3007         * NEWS: Mention the change.
3008         Reported by Rich Felker <dalias@aerifal.cx>.
3009
3010 2012-06-26  Bruno Haible  <bruno@clisp.org>
3011
3012         argp, regex: Ensure strcasecmp gets declared.
3013         * lib/argp-help.c: Include <strings.h>.
3014         * lib/regex_internal.h: Likewise.
3015         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3016
3017 2012-06-24  Bruno Haible  <bruno@clisp.org>
3018
3019         ptsname_r: Make it consistent with ptsname on AIX.
3020         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3021         implementation as for OSF/1.
3022         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3023         a pty master.
3024
3025         ptsname_r: Make it consistent with ptsname on OSF/1.
3026         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3027         OSF/1.
3028
3029 2012-06-24  Bruno Haible  <bruno@clisp.org>
3030
3031         ttyname_r: Fix result on OSF/1, Solaris.
3032         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3033
3034 2012-06-24  Bruno Haible  <bruno@clisp.org>
3035
3036         ptsname_r: Add support for Solaris.
3037         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3038         Solaris.
3039
3040         ptsname_r: Fix test failure on native Windows.
3041         * modules/ptsname_r (Depends-on): Add isatty.
3042
3043         ptsname_r: Fix test failures on IRIX, Solaris.
3044         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3045         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3046         accordingly.
3047         * lib/ptsname_r.c: Include <fcntl.h>.
3048         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3049         set errno if fd is invalid.
3050         * tests/test-isatty.c (main): Update comments.
3051
3052 2012-06-24  Bruno Haible  <bruno@clisp.org>
3053
3054         ptsname test: Extend test.
3055         * tests/test-ptsname.c: Include <errno.h>.
3056         (main): Test behaviour with invalid file descriptor.
3057
3058 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3059
3060         time: fix obsolete comment
3061         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3062         reference to HAVE_STRUCT_TIMESPEC in comment.
3063
3064 2012-06-23  Bruno Haible  <bruno@clisp.org>
3065
3066         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3068         does not handle abbreviated long options with equivalent
3069         disambiguations, set gl_replace_getopt to yes.
3070         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3071
3072 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3073
3074         time_r: fix typo that always overrode localtime_r decl
3075         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3076         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3077         not in a standard include.
3078
3079 2012-06-22  Bruno Haible  <bruno@clisp.org>
3080
3081         Write "Mac OS X" instead of "MacOS X".
3082         * README: Write "Mac OS X" instead of "MacOS X".
3083         * build-aux/bootstrap: Likewise.
3084         * build-aux/install-reloc: Likewise.
3085         * lib/acl-internal.h: Likewise.
3086         * lib/acl_entries.c: Likewise.
3087         * lib/argp-ba.c: Likewise.
3088         * lib/argp-pv.c: Likewise.
3089         * lib/config.charset: Likewise.
3090         * lib/copy-acl.c: Likewise.
3091         * lib/csharpexec.c: Likewise.
3092         * lib/euidaccess.c: Likewise.
3093         * lib/fbufmode.c: Likewise.
3094         * lib/fflush.c: Likewise.
3095         * lib/file-has-acl.c: Likewise.
3096         * lib/filemode.h: Likewise.
3097         * lib/fpurge.c: Likewise.
3098         * lib/freadable.c: Likewise.
3099         * lib/freadahead.c: Likewise.
3100         * lib/freading.c: Likewise.
3101         * lib/freadptr.c: Likewise.
3102         * lib/freadseek.c: Likewise.
3103         * lib/fseeko.c: Likewise.
3104         * lib/fseterr.c: Likewise.
3105         * lib/fsusage.c: Likewise.
3106         * lib/fwritable.c: Likewise.
3107         * lib/fwriting.c: Likewise.
3108         * lib/get-rusage-as.c: Likewise.
3109         * lib/get-rusage-data.c: Likewise.
3110         * lib/getdomainname.c: Likewise.
3111         * lib/idpriv-drop.c: Likewise.
3112         * lib/idpriv-droptemp.c: Likewise.
3113         * lib/localcharset.c: Likewise.
3114         * lib/locale.in.h: Likewise.
3115         * lib/localename.c: Likewise.
3116         * lib/mbsrtowcs-state.c: Likewise.
3117         * lib/nproc.c: Likewise.
3118         * lib/passfd.c: Likewise.
3119         * lib/posix_openpt.c: Likewise.
3120         * lib/printf-parse.c: Likewise.
3121         * lib/progreloc.c: Likewise.
3122         * lib/safe-read.h: Likewise.
3123         * lib/safe-write.h: Likewise.
3124         * lib/sched.in.h: Likewise.
3125         * lib/set-mode-acl.c: Likewise.
3126         * lib/signal.in.h: Likewise.
3127         * lib/stdint.in.h: Likewise.
3128         * lib/stdio-impl.h: Likewise.
3129         * lib/stdlib.in.h: Likewise.
3130         * lib/strtod.c: Likewise.
3131         * lib/sys_select.in.h: Likewise.
3132         * lib/tcgetsid.c: Likewise.
3133         * lib/unistd.in.h: Likewise.
3134         * lib/unlockpt.c: Likewise.
3135         * lib/vasnprintf.c: Likewise.
3136         * lib/vma-iter.c: Likewise.
3137         * lib/wcsrtombs-state.c: Likewise.
3138         * m4/acl.m4: Likewise.
3139         * m4/acosl.m4: Likewise.
3140         * m4/asinl.m4: Likewise.
3141         * m4/atanl.m4: Likewise.
3142         * m4/c-stack.m4: Likewise.
3143         * m4/cosl.m4: Likewise.
3144         * m4/expl.m4: Likewise.
3145         * m4/extensions.m4: Likewise.
3146         * m4/fdatasync.m4: Likewise.
3147         * m4/fmal.m4: Likewise.
3148         * m4/frexp.m4: Likewise.
3149         * m4/frexpf.m4: Likewise.
3150         * m4/frexpl.m4: Likewise.
3151         * m4/fsusage.m4: Likewise.
3152         * m4/getdomainname.m4: Likewise.
3153         * m4/getloadavg.m4: Likewise.
3154         * m4/getopt.m4: Likewise.
3155         * m4/gettext.m4: Likewise.
3156         * m4/gnulib-common.m4: Likewise.
3157         * m4/intdiv0.m4: Likewise.
3158         * m4/intlmacosx.m4: Likewise.
3159         * m4/largefile.m4: Likewise.
3160         * m4/ldexpl.m4: Likewise.
3161         * m4/link-follow.m4: Likewise.
3162         * m4/locale-ar.m4: Likewise.
3163         * m4/locale-fr.m4: Likewise.
3164         * m4/locale-ja.m4: Likewise.
3165         * m4/locale-tr.m4: Likewise.
3166         * m4/locale-zh.m4: Likewise.
3167         * m4/locale_h.m4: Likewise.
3168         * m4/lock.m4: Likewise.
3169         * m4/logl.m4: Likewise.
3170         * m4/mathfunc.m4: Likewise.
3171         * m4/minus-zero.m4: Likewise.
3172         * m4/mktime.m4: Likewise.
3173         * m4/mmap-anon.m4: Likewise.
3174         * m4/multiarch.m4: Likewise.
3175         * m4/nanosleep.m4: Likewise.
3176         * m4/nocrash.m4: Likewise.
3177         * m4/poll.m4: Likewise.
3178         * m4/printf-frexpl.m4: Likewise.
3179         * m4/printf.m4: Likewise.
3180         * m4/signbit.m4: Likewise.
3181         * m4/sinl.m4: Likewise.
3182         * m4/sqrtl.m4: Likewise.
3183         * m4/strerror_r.m4: Likewise.
3184         * m4/tanl.m4: Likewise.
3185         * m4/threadlib.m4: Likewise.
3186         * m4/ttyname_r.m4: Likewise.
3187         * m4/unlink.m4: Likewise.
3188         * m4/visibility.m4: Likewise.
3189         * m4/wcwidth.m4: Likewise.
3190         * tests/minus-zero.h: Likewise.
3191         * tests/test-alloca-opt.c: Likewise.
3192         * tests/test-copy-acl.sh: Likewise.
3193         * tests/test-copy-file.sh: Likewise.
3194         * tests/test-fdatasync.c: Likewise.
3195         * tests/test-file-has-acl.sh: Likewise.
3196         * tests/test-flock.c: Likewise.
3197         * tests/test-fsync.c: Likewise.
3198         * tests/test-localename.c: Likewise.
3199         * tests/test-malloca.c: Likewise.
3200         * tests/test-nonblocking-pipe.h: Likewise.
3201         * tests/test-nonblocking-socket.h: Likewise.
3202         * tests/test-openpty.c: Likewise.
3203         * tests/test-posix_openpt.c: Likewise.
3204         * tests/test-ptsname.c: Likewise.
3205         * tests/test-ptsname_r.c: Likewise.
3206         * tests/test-sameacls.c: Likewise.
3207         * tests/test-select.h: Likewise.
3208         * tests/test-set-mode-acl.sh: Likewise.
3209         * tests/test-snprintf-posix.h: Likewise.
3210         * tests/test-sprintf-posix.h: Likewise.
3211         * tests/test-strtod.c: Likewise.
3212         * tests/test-time.c: Likewise.
3213         * tests/test-vasnprintf-posix.c: Likewise.
3214         * tests/test-vasprintf-posix.c: Likewise.
3215         * doc/acl-resources.txt: Likewise.
3216         * doc/**/*.texi: Likewise.
3217         Reported by Max Horn <max@quendi.de>.
3218
3219 2012-06-22  Bruno Haible  <bruno@clisp.org>
3220
3221         grantpt: Relax requirement regarding invalid file descriptors.
3222         * lib/grantpt.c: Don't include <fcntl.h>.
3223         (grantpt): Don't verify the validity of the file descriptor.
3224         * modules/grantpt (Depends-on): Remove fcntl-h.
3225         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3226         file descriptors.
3227         * doc/posix-functions/grantpt.texi: Document more platforms on which
3228         grantpt succeeds for invalid file descriptors.
3229         Reported by Rich Felker <dalias@aerifal.cx>.
3230
3231 2012-06-22  Bruno Haible  <bruno@clisp.org>
3232
3233         fbufmode test: Don't test unportable behaviour.
3234         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3235         (main): Invoke it three times.
3236         Reported by Szabolcs Nagy <nsz@port70.net>
3237         and Rich Felker <dalias@aerifal.cx>.
3238
3239 2012-06-21  Bruno Haible  <bruno@clisp.org>
3240
3241         gnulib-tool: Refactor inctests variable.
3242         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3243         (func_modules_transitive_closure,
3244         func_modules_transitive_closure_separately,
3245         func_import, func_create_testdir): Update.
3246
3247         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3248         * gnulib-tool: Accept option --without-tests.
3249         (func_usage): Document --without-tests option. Rearrange.
3250         (inctests): Normalize according to the mode.
3251         * NEWS: Mention the change.
3252         Suggested by Simon Josefsson.
3253
3254 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3255
3256         parse-duration test: Avoid spurious output.
3257         * tests/test-parse-duration.sh: Reindent with leading tabs.
3258
3259 2012-06-21  Jim Meyering  <meyering@redhat.com>
3260
3261         maint: disable the strncpy prohibition
3262         * cfg.mk: Do not prohibit strncpy here.
3263
3264 2012-06-21  Bruno Haible  <bruno@clisp.org>
3265
3266         nonblocking: Avoid compilation error on mingw64.
3267         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3268         fscanf.
3269         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3270         * modules/vfscanf (configure.ac): Likewise.
3271         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3272         definition only if stdio.h has prepared it.
3273         Reported by Daniel P. Berrange <berrange@redhat.com>.
3274
3275 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3276
3277         gnulib-tool: Use readlink if it is available.
3278         * gnulib-tool (func_readlink): Choose function more appropriately.
3279
3280 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3281
3282         posixtm-tests: port to buggy compiler
3283         Problem reported by Simon Josefsson in
3284         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3285         * modules/posixtm-tests (Depends-on): Add stdint.
3286         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3287         Now of type int_least64_t, not int64_t, both because that's
3288         what INT64_C returns and because int_least64_t works even
3289         on 72-bit hosts.
3290         (T): Use INT64_C on constants outside the traditional int range,
3291         to work around compiler bug noted by Simon.
3292
3293         mktime: fix integer overflow in 'configure'-time test
3294         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3295         after integer overflow.  Problem reported by Rich Felker in
3296         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3297         Also, don't look for further instances of a bug if we've already
3298         found one instance; this helps 'configure' run faster.
3299
3300 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3301
3302         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3303         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3304         GetVersionEx correctly.
3305         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3306
3307 2012-06-20  Bruno Haible  <bruno@clisp.org>
3308
3309         fdopen: Allow implementations that don't reject invalid fd arguments.
3310         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3311         succeeds.
3312         Reported by Rich Felker <dalias@aerifal.cx>.
3313
3314 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3315
3316         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3317         bring in LIBINTL.
3318
3319 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3320
3321         init.sh: do not rely on autoupated PWD
3322         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3323         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3324         Although Nelson's bug was not necessarily fixed by this patch,
3325         it seems wise to make the change for safety.
3326         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3327         automagically after 'cd'; this is not reliable on older shells.
3328         (setup_): Fail if we cannot cd to temporary directory.
3329
3330 2012-06-19  Bruno Haible  <bruno@clisp.org>
3331
3332         stat, fstat: Avoid warnings on mingw64.
3333         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3334         redefining.
3335         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3336         Reported by Daniel P. Berrange <berrange@redhat.com>.
3337
3338 2012-06-19  Bruno Haible  <bruno@clisp.org>
3339
3340         stdioext: Add support for musl libc.
3341
3342         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3343         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3344
3345         * m4/fseterr.m4: New file.
3346         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3347         function exists.
3348         * modules/fseterr (Files): Add m4/fseterr.m4.
3349         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3350         __fseterr does not exist.
3351         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3352
3353         * lib/freadable.h: Update comment.
3354
3355         * lib/fwritable.h: Update comment.
3356
3357         * lib/freading.h: Update comment.
3358
3359         * lib/fwriting.h: Update comment.
3360
3361         * m4/freadahead.m4: New file.
3362         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3363         that function exists.
3364         * modules/freadahead (Files): Add m4/freadahead.m4.
3365         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3366         __freadahead does not exist.
3367         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3368
3369         * m4/freadptr.m4: New file.
3370         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3371         function exists.
3372         * modules/freadptr (Files): Add m4/freadptr.m4.
3373         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3374         __freadptr does not exist.
3375         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3376
3377         * m4/freadseek.m4: New file.
3378         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3379         exists.
3380         * modules/freadseek (Files): Add m4/freadseek.m4.
3381         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3382
3383         * lib/fpurge.c (fpurge): Update comment.
3384
3385         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3386
3387 2012-06-19  Bruno Haible  <bruno@clisp.org>
3388
3389         *printf-posix: Put more info into config.log.
3390         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3391         exit code into config.log.
3392
3393 2012-06-19  Bruno Haible  <bruno@clisp.org>
3394
3395         getopt-gnu: Fix exit code overflow in autoconf test.
3396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3397         to keep them below < 128.
3398
3399 2012-06-17  Jim Meyering  <meyering@redhat.com>
3400
3401         maint.mk: fix typo in code to derive GPG key at release time
3402         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3403
3404 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         regex: avoid warning when pointers are not long
3407         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3408         and uintptr_t, not long, for portability to hosts where pointers and
3409         long have different sizes.  Issue noted by Daniel P. Berrange in
3410         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3411         and fix suggested by Bruno Haible in
3412         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3413
3414 2012-06-17  Bruno Haible  <bruno@clisp.org>
3415
3416         dummy: Relicense into the public domain.
3417         * modules/dummy (License): Set to "public domain".
3418         Suggested by Reuben Thomas.
3419
3420 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3421
3422         announce-gen: VPATH issues
3423         * build-aux/announce-gen (--srcdir): New option, used to trim the
3424         $srcdir part of the path from $builddir to NEWS.
3425         * top/maint.mk (announcement): Adjust.
3426
3427 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3428
3429         gnu-web-doc-update: VPATH builds
3430         * build-aux/gnu-web-doc-update (--builddir): New option.
3431         Revamp the handling of options.
3432         Prefer $(...) to `...`.
3433         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3434         the template, and it is GNU mktemp specific.
3435         Prefer set -e to long series of &&.
3436         Restore the initial git branch, not "master".
3437         Properly initialize submodules (don't rely only on bootstrap).
3438         Do not reconfigure blindly, use config.status.
3439         * top/README-release: Update instructions for gnu-web-doc-update.
3440
3441 2012-06-11  Jim Meyering  <meyering@redhat.com>
3442
3443         maint.mk: revert most of the previous change re "all these"
3444         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3445         For rationale, see the discussion at
3446         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3447
3448 2012-06-10  Karl Berry  <karl@gnu.org>
3449
3450         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3451
3452         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3453
3454 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3455
3456         parse-duration: Relicense under LGPLv2+.
3457         * modules/parse-duration (License): Change to LGPLv2+.
3458
3459 2012-06-10  Jim Meyering  <meyering@redhat.com>
3460
3461         maint.mk: prohibit common grammar error: "all these"
3462         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3463         the list of prohibited word sequences.  It should be "all of these".
3464         * lib/tempname.c (__gen_tempname): Fix one of them.
3465
3466 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3467
3468         do-release-commit-and-tag: support VPATH builds
3469         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3470         (noteworthy): Defined earlier to factor its value.
3471         (noteworthy_stub): New.
3472         Use it to factor.
3473         (help_version): Split into...
3474         (help, version): these.
3475         Adjust the option processing part.
3476         Support "--option=value" in addition to "--option value".
3477         (builddir): New.
3478         (--builddir): New option.
3479         * top/README-release: Document this.
3480         Reword slightly so that the reader cannot understand that he
3481         has to do these steps before calling do-release-commit-and-tag.
3482
3483 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3484
3485         readme-release: also require announce-gen and maintainer-makefile
3486         * modules/readme-release (Depends-on): here.
3487         * modules/announce-gen, modules/do-release-commit-and-tag,
3488         modules/gnu-web-doc-update, modules/maintainer-makefile
3489         (Description): Point to readme-release.
3490
3491 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3492
3493         maint.mk: fix VPATH issues.
3494         * top/maint.mk (news-check): GNU Make understand $< very well.
3495         (release-prep): NEWS is in $(srcdir).
3496
3497 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3498
3499         readme-release: require the promoted modules.
3500         * modules/readme-release (Depends-on): Add
3501         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3502         in this text.
3503
3504 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3505             Bruno Haible  <bruno@clisp.org>
3506
3507         error, strerror-override: Support mingw64 from Fedora 17.
3508         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3509         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3510         EINPROGRESS.
3511         * lib/strerror-override.h (strerror_override): Test it.
3512         * lib/strerror-override.c (strerror_override): Likewise.
3513         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3514
3515 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3516             Bruno Haible  <bruno@clisp.org>
3517
3518         error, strerror-override: Support mingw64 from Fedora 17.
3519         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3520         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3521         * lib/strerror-override.h (strerror_override): Test it.
3522         * lib/strerror-override.c (strerror_override): Likewise.
3523
3524 2012-06-03  Bruno Haible  <bruno@clisp.org>
3525
3526         error, strerror-override: Support new errno values from POSIX:2008.
3527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3528         ENOTRECOVERABLE.
3529         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3530         platforms.
3531         * lib/strerror-override.c (strerror_override): Conditionalize the
3532         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3533         * lib/strerror-override.h (strerror_override): Declare also if
3534         GNULIB_defined_EOWNERDEAD is defined.
3535         * tests/test-errno.c (e130, e131): New variables.
3536         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3537         ENOTRECOVERABLE.
3538         Reported by Paolo Bonzini.
3539
3540 2012-05-31  Jim Meyering  <meyering@redhat.com>
3541
3542         savewd: add missing dependency on sys_wait module
3543         * modules/savewd (Depends-on): Add sys_wait, needed at least
3544         for MSVC.  Report and suggested change by Michael Goffioul.
3545
3546 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3547
3548         system-quote-tests: port to CentOS 5
3549         Problem reported by Tom G. Christensen in
3550         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3551         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3552
3553 2012-05-29  Jim Meyering  <meyering@redhat.com>
3554
3555         maint: fix typos in comments and ChangeLog
3556         Culprits identified and fixed mostly automatically using these commands:
3557         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3558         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3559         using http://github.com/lyda/misspell-check
3560         * ChangeLog: Fix typos.
3561         * doc/solaris-versions: Likewise.
3562         * lib/regexec.c (re_search_stub): Likewise.
3563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3564
3565 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3566
3567         manywarnings: remove duplicate -Wmultichar entry
3568         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3569         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3570         so keep the entry marked as documented.
3571
3572 2012-05-27  Karl Berry  <karl@gnu.org>
3573
3574         * config/srclist.txt (mktime.c): remove last libc sync,
3575         perhaps just temporarily.
3576
3577 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3578
3579         regex: don't assume uint64_t or uint32_t
3580         * lib/regcomp.c (init_word_char): Don't assume that the types
3581         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3582         them, and on some 32-bit compilers there is no uint64_t.
3583         Problem reported by Gianluigi Tiesi in
3584         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3585
3586 2012-05-25  Jim Meyering  <meyering@redhat.com>
3587
3588         maint.mk: add strncpy-prohibiting syntax-check rule
3589         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3590
3591 2012-05-24  Jim Meyering  <meyering@redhat.com>
3592
3593         maint.mk: compute $(gpg_key_ID) more portably
3594         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3595         That use of sed is not portable to some fringe systems.
3596         Reported by Paul Eggert in
3597         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3598
3599 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         mktime: sync from glibc
3602         * config/srclist.txt: Uncomment mktime.c.
3603         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3604         First, indent with tabs, since glibc uses tabs and doesn't want to
3605         change and we'd rather be identical to glibc.  Also, two small
3606         coding changes:
3607         (isdst_differ): Use &&, not &, as && is the usual style.
3608         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3609         for clarity.
3610
3611 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3612
3613         announce-gen: du -h is more portable than du --human
3614         * build-aux/announce-gen (sizes): Invoke du with -h instead
3615         of --human.  Accept leading white space in its output.
3616
3617 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3618
3619         announce-gen: Improve diagnostics.
3620         * build-aux/announce-gen: When parsing command line options,
3621         prefer "announce-gen: option --release-type requires an argument"
3622         to "Option release-type requires an argument".
3623
3624 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3625
3626         maint.mk: gpg_key_ID: use sed more portably
3627         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3628         the closing brace.
3629         (refresh-po): Fuse two sed invocations into one.
3630
3631 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3632
3633         gitlog-to-changelog: support the log message format used in Bison.
3634         * build-aux/gitlog-to-changelog: Support --strip-tab and
3635         --strip-cherry-picked.
3636
3637 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3638
3639         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3640         the rest of the current time slice to another thread in the current
3641         process. So if the thread that feeds the file decscriptor we're
3642         polling is not in the current process, we get busy-waiting.
3643         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3644         Patch from Theodore Leblond.
3645         * lib/select.c: Split polling out of the loop that sets the output
3646         fd_sets.  Check for zero result and loop if the wait timeout is
3647         infinite.
3648
3649 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3650
3651         select: Fix build error on IRIX 6.5.
3652         * lib/select.c: Include stddef.h for NULL.
3653
3654 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3655
3656         gc: fix libgcrypt detection on older machines.
3657         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3658         copyright years because the file has been distributed every year
3659         since it was created.
3660
3661 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3662
3663         crypto: fix bug in large buffer handling
3664         Problem reported by Serge Belyshev for glibc in
3665         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3666         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3667         * lib/md4.c (md4_process_block):
3668         * lib/md5.c (md5_process_block):
3669         * lib/sha1.c (sha1_process_block):
3670         * lib/sha256.c (sha256_process_block):
3671         Don't assume the buffer length is less than 2**32.
3672         * lib/sha512.c (sha512_process_block): Likewise.
3673         Here, the bug is present only in the rare case where the host does
3674         not support uint64_t or where size_t is wider than 64 bits.
3675         Use u64size to work around the problems.
3676         * lib/u64.h (u64size): New macro.
3677
3678 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3679
3680         fsusage: fix block size returned on older Linux 2.6
3681
3682         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3683         which is available since Linux 2.6.
3684         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3685         when the member is available so it can be used as a fallback.
3686         * doc/posix-functions/statvfs.texi: Mention the hang issue
3687         on Linux < 2.6.36.
3688
3689 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3690
3691         bootstrap: suppress stderr chatter
3692         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3693         Omit unnecessary chatter to stderr.  The main program chatter
3694         was there only inadvertantly.
3695
3696         bootstrap: .gitignore files created by autopoint, libtool
3697         I ran into this problem when bootstrapping the latest diffutils.
3698         After './bootstrap', 'git status' reported lots of untracked files
3699         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3700         autopoint and do not need to be version-controlled.
3701         * build-aux/bootstrap: Put into .gitignore the files that
3702         autopoint and libtool create, by keeping track of files that exist
3703         after but not before these programs are run.
3704         (version_controlled_file): Move up.  2nd arg is now full file
3705         name, not base name; this is more convenient.  Put CVS at the end,
3706         as it's now somewhat deprecated.
3707
3708 2012-05-14  Jim Meyering  <meyering@redhat.com>
3709
3710         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3711         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3712         definition.  Reported by Bruno Haible.
3713
3714 2012-05-13  Bruno Haible  <bruno@clisp.org>
3715             Paul Eggert  <eggert@cs.ucla.edu>
3716
3717         binary-io: Define set_binary_mode function.
3718         * lib/binary-io.h (set_binary_mode): New function.
3719         (SET_BINARY): Define in terms of set_binary_mode.
3720         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3721         * tests/test-binary-io.c (main): Accept an argument, and test either
3722         set_binary_mode or SET_BINARY depending on the argument.
3723         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3724         argument. Clean up also t-bin-out0.tmp.
3725
3726 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3727
3728         bootstrap: take advantage of POSIX shell features
3729
3730         The 'bootstrap' script offered by Gnulib script already uses POSIX
3731         shell features (like $((...)) arithmetic expansions) that are not
3732         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3733         means that bootstrap must already be run using a proper POSIX shell,
3734         which will thus provide more features, like ${var#pattern} parameter
3735         expansion or inversion of a command exit status with '!'.  We can
3736         thus use these features to improve the clarity and the performances
3737         of the bootstrap script.
3738
3739         Suggested by Eric Blake.
3740
3741         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3742         of sed/expr plus command substitutions, to save some forks.  While
3743         we are at it, prefer the POSIX $(...) form of command substitution,
3744         rather than the legacy form `...` (since the former is visually
3745         clearer and interacts better with quoting), and prefer the idiom:
3746           "if ! CMD; then ACTION ..."
3747         over the idiom:
3748           "if CMD; then :; else ACTION ..."
3749         which was required by legacy Bourne shells not supporting '!'.
3750
3751 2012-05-12  Bruno Haible  <bruno@clisp.org>
3752
3753         system-quote: Add more comments.
3754         * lib/system-quote.h: Add more comments about wilcards and limitations.
3755         Suggested by Eli Zaretskii <eliz@gnu.org>.
3756
3757         sh-quote, system-quote: Add comments about wildcards.
3758         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3759         * lib/system-quote.h: Likewise.
3760         Reported by Eli Zaretskii <eliz@gnu.org>.
3761
3762 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3763
3764         fsusage: check for GNU/Linux statvfs problem dynamically
3765         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3766         Define STAT_STATFS2_BSIZE too, since in this case the code now
3767         checks dynamically whether statvfs is reliable, falling back on
3768         Linux-style statfs otherwise.
3769         (statvfs_works): New function, for dynamically testing statvfs.
3770         (get_fs_usage) [STAT_STATVFS]: Use it.
3771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3772         statvfs on GNU/Linux hosts, since it's now done dynamically.
3773
3774 2012-05-10  Bruno Haible  <bruno@clisp.org>
3775
3776         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3777         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3778         '?' character.
3779         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3780         * tests/test-system-quote-main.c (check_all): Check also strings like
3781         "??????????".
3782         Reported by Eli Zaretskii <eliz@gnu.org>.
3783
3784 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3785
3786         _Noreturn: port config.h to gcc -Wundef
3787         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3788         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3789         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3790
3791 2012-05-10  Bruno Haible  <bruno@clisp.org>
3792
3793         system-quote: Refactor.
3794         * lib/system-quote.h (system_quote_copy): Fix comment.
3795         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3796         New functions, extracted from system_quote_copy.
3797         (system_quote_length, system_quote_copy): Use these functions.
3798         Reported by Paul Eggert.
3799
3800 2012-05-08  Bruno Haible  <bruno@clisp.org>
3801
3802         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3803         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3804
3805 2012-05-08  Bruno Haible  <bruno@clisp.org>
3806
3807         Tests for module 'system-quote'.
3808         * modules/system-quote-tests: New file.
3809         * tests/test-system-quote.sh: New file.
3810         * tests/test-system-quote-main.c: New file.
3811         * tests/test-system-quote-child.c: New file.
3812
3813         New module 'system-quote'.
3814         * lib/system-quote.h: New file.
3815         * lib/system-quote.c: New file.
3816         * modules/system-quote: New file.
3817
3818 2012-05-08  Bruno Haible  <bruno@clisp.org>
3819
3820         sh-quote: Make C++ safe and allow multiple inclusion.
3821         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3822         declarations in extern "C".
3823
3824 2012-05-08  Bruno Haible  <bruno@clisp.org>
3825
3826         sh-quote tests: Make tests stricter.
3827         * tests/test-sh-quote.c (check_one): Check the return value of
3828         shell_quote_copy.
3829         (main): Check a string with a CR character. Check a string that
3830         contains UCHAR_MAX.
3831
3832 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3833
3834         warnings.m4: provide a means to specify the program to compile.
3835         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3836         (gl_WARN_ADD): here.
3837         Use gl_AS_VAR_APPEND.
3838         Support an argument to specify the program to compile.
3839         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3840         AC_SUBST the WARN_CFLAGS when they are used.
3841         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3842         leave this to gl_WARN_ADD.
3843
3844 2012-05-08  Eric Blake  <eblake@redhat.com>
3845
3846         doc: recommendations on gettext version
3847         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3848         choice between versions.
3849         * DEPENDENCIES (gettext): Cover both approaches.
3850
3851 2012-05-08  Jim Meyering  <meyering@redhat.com>
3852
3853         init.sh: explain why EXEEXT support uses aliases rather than functions
3854         * tests/init.sh: Add a comment.
3855
3856         init.sh: don't let bash aliases interfere with tests
3857         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3858         is bash.  This avoids problems for those who alias standard commands to
3859         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3860         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3861
3862 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3863
3864         stdint: be more consistent with glibc, SunOS libc
3865         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3866         (gl_int_fast16_t, gl_uint_fast16_t)
3867         (gl_int_fast32_t, gl_uint_fast32_t)
3868         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3869         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3870         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3871         Be consistent with glibc by default, and with SunOS 5.10 and later
3872         if __sun is defined.  This lessens the likelihood of clashes if
3873         code compiled for older hosts is combined with code compiled for
3874         newer ones.  Problem reported by Niels Möller in
3875         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3876
3877 2012-05-07  Eric Blake  <eblake@redhat.com>
3878
3879         isatty: relax license to LGPLv2+
3880         * modules/isatty (License): Relax license.
3881
3882 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3883
3884         stat-size: comment fix
3885         * lib/stat-size.h: Remove obsolete comment about indenting.
3886
3887 2012-05-06  Bruno Haible  <bruno@clisp.org>
3888
3889         Tests for module 'sh-quote'.
3890         * modules/sh-quote-tests: New file.
3891         * tests/test-sh-quote.c: New file.
3892
3893 2012-05-06  Bruno Haible  <bruno@clisp.org>
3894
3895         sh-quote: Improve shell_quote_argv's signature.
3896         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3897         * lib/sh-quote.c (shell_quote_argv): Likewise.
3898
3899 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3900
3901         stdint: document issues with int_fast8_t etc.
3902         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3903         stdint.h substitutes may define these types differently.  See
3904         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3905
3906 2012-05-05  Bruno Haible  <bruno@clisp.org>
3907
3908         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3910         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3911         or 'guessing no (mishandles large arguments)'.
3912
3913 2012-05-05  Bruno Haible  <bruno@clisp.org>
3914
3915         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3916         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3917         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3918         set gl_cv_func_link_follows_symlink to "guessing no".
3919
3920 2012-05-05  Bruno Haible  <bruno@clisp.org>
3921
3922         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3923         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3924         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3925         "guessing no".
3926         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3927
3928 2012-05-05  Bruno Haible  <bruno@clisp.org>
3929
3930         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3931         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3932         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3933         set gl_cv_struct_dirent_d_ino to "guessing yes".
3934
3935 2012-05-05  Bruno Haible  <bruno@clisp.org>
3936
3937         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3938         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3939         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3940         "guessing yes".
3941
3942 2012-05-05  Bruno Haible  <bruno@clisp.org>
3943
3944         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3945         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3946         compiling to a glibc system, set gl_cv_func_signbit and
3947         gl_cv_func_signbit_gcc to "guessing yes".
3948
3949 2012-05-05  Bruno Haible  <bruno@clisp.org>
3950
3951         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3952         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3953         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3954         to "guessing yes".
3955         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3956         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3957
3958 2012-05-05  Bruno Haible  <bruno@clisp.org>
3959
3960         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3961         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3962         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3963         gl_cv_func_realpath_works to "guessing yes".
3964
3965 2012-05-05  Bruno Haible  <bruno@clisp.org>
3966
3967         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3968         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3969         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3970
3971 2012-05-04  Bruno Haible  <bruno@clisp.org>
3972
3973         Tweak last commit.
3974         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3975         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3976
3977 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3978
3979         unistd_h: make it easier to avoid sys_types_h
3980         This is useful for Emacs, which has its own method of porting to
3981         Windows, and which therefore does not need the sys_types_h module.
3982         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3983         code moved here from gl_SYS_TYPES_H.
3984         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3985         using the code directly.
3986         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3987         gl_SYS_TYPES_H.
3988         * modules/sys_types (Files):
3989         * modules/unistd (Files): Add m4/off_t.m4.
3990
3991 2012-05-03  Bruno Haible  <bruno@clisp.org>
3992
3993         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3994         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3995         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3996         "guessing yes" or "guessing no".
3997         (gl_FUNC_LSTAT): Update.
3998         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3999         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4000         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4001
4002 2012-05-03  Bruno Haible  <bruno@clisp.org>
4003
4004         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4005         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4006         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4007         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4008         cross-compiling, choose the first alternative on glibc systems.
4009         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4010
4011 2012-05-03  Bruno Haible  <bruno@clisp.org>
4012
4013         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4014         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4015         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4016
4017 2012-05-03  Bruno Haible  <bruno@clisp.org>
4018
4019         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4020         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4021
4022 2012-05-03  Bruno Haible  <bruno@clisp.org>
4023
4024         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4025         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4026         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4027         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4028         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4029         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4030         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4031         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4032         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4033         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4034         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4035         gl_cv_func_chown_ctime_works to "guessing yes".
4036         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4037         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4038         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4039         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4040         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4042         compiling to glibc systems, set gl_cv_func_open_directory_works to
4043         "guessing yes".
4044         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4045         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4046         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4047         "guessing yes".
4048         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4049         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4050         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4051         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4052         "guessing yes".
4053         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4054         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4055         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4056         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4057         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4058         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4059         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4060         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4061         "guessing yes".
4062         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4063         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4064         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4065         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4066         "guessing yes".
4067         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4068         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4069         "guessing yes".
4070         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4071         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4072         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4073         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4074         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4075         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4076         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4077         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4078         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4079         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4080         "guessing yes".
4081         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4082         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4083         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4084         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4085         "guessing yes".
4086         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4087         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4088         "guessing yes".
4089         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4090         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4091         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4092         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4093         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4094         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4095         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4096         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4097         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4098         "guessing yes".
4099         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4100         compiling to glibc systems, set gl_cv_func_mknod_works to
4101         "guessing yes".
4102         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4103         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4104         "guessing yes".
4105         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4106         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4107         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4108         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4109         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4110         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4111         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4112         compiling to glibc systems, set gl_cv_func_svid_putenv to
4113         "guessing yes".
4114         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4115         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4116         "guessing yes".
4117         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4118         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4119         "guessing yes".
4120         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4121         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4122         to "guessing yes".
4123         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4124         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4125         to "guessing yes".
4126         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4127         compiling to glibc systems, set gl_cv_func_rmdir_works to
4128         "guessing yes".
4129         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4130         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4131         gl_cv_func_unlink_parent_fails to "guessing yes".
4132         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4133         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4134         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4135         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4136         gl_cv_func_rename_dest_works to "guessing yes".
4137         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4138         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4140         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4141         "guessing yes".
4142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4143         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4144         "guessing yes".
4145         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4146         compiling to glibc systems, set gl_cv_func_setenv_works to
4147         "guessing yes".
4148         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4149         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4150         "guessing yes".
4151         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4152         compiling to glibc systems, set gl_cv_func_sleep_works to
4153         "guessing yes".
4154         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4155         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4156         "guessing yes".
4157         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4158         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4159         "guessing yes".
4160         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4161         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4162         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4163         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4164         "guessing yes".
4165         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4166         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4167         "guessing yes".
4168         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4169         compiling to glibc systems, set gl_cv_func_usleep_works to
4170         "guessing yes".
4171         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4172         compiling to glibc systems, set gl_cv_func_futimesat_works to
4173         "guessing yes".
4174
4175 2012-05-03  Bruno Haible  <bruno@clisp.org>
4176
4177         Say "guessing yes" or "guessing no" when cross-compiling.
4178         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4179         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4180         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4181         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4182         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4183         am_cv_func_working_getline to "guessing yes" or "guessing no".
4184         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4185         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4186         (gl_FUNC_MEMMEM): When cross-compiling, set
4187         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4188         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4189         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4191         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4192         "guessing no".
4193         (gl_FUNC_STRCASESTR): When cross-compiling, set
4194         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4195         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4196         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4197         (gl_FUNC_STRSTR): When cross-compiling, set
4198         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4199         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4200         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4201         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4202         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4203
4204 2012-05-01  Bruno Haible  <bruno@clisp.org>
4205
4206         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4207         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4208         * build-aux/reloc-ldflags: Likewise.
4209         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4210
4211 2012-05-01  Bruno Haible  <bruno@clisp.org>
4212
4213         gnulib-tool: Remove transitional code.
4214         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4215         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4216
4217 2012-05-01  Bruno Haible  <bruno@clisp.org>
4218
4219         getcwd: Fix misindentation.
4220         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4221
4222 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4223
4224         exclude: process exclude and include directives in order
4225         This restores the pre-2009 behavior, and is part of a fix of a
4226         grep bug reported by Quentin Arce in
4227         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4228         * lib/exclude.c (struct exclude): Remove 'tail' member.
4229         (new_exclude_segment): Prepend the new segment instead of appending.
4230         Return void, since that's now more convenient.
4231         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4232         (file_name_matches): Renamed from excluded_file_name_p.
4233         (file_pattern_matches, file_name_matches):
4234         Return true if the pattern matches, not if it excludes.
4235         All callers changed.
4236         (excluded_file_name): Process the list in reverse order;
4237         since the list is now reversed this restores the pre-2009 behavior.
4238         (add_exclude): Adjust to new reversed-order list.  Use local var
4239         rather than macro, for clarity.
4240         * tests/test-exclude7.sh: Adjust to corrected behavior.
4241
4242         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4243         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4244         it's not possible here.  Handle the case of \ at end of pattern
4245         without dumping core.
4246         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4247
4248         _Noreturn: future-proof non-GNU and non-MSVC compilers
4249         * build-aux/snippet/_Noreturn.h (_Noreturn):
4250         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4251         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4252         C11 or later.  This is more likely to work with random future C
4253         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4254         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4255
4256         exclude: handle wildcards with FNM_EXTMATCH
4257         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4258         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4259         comment that "has wildcards" really means "has or may have
4260         wildcards".  Simplify by avoiding the need to call strcspn.
4261
4262 2012-04-29  Bruno Haible  <bruno@clisp.org>
4263
4264         gnulib-tool: Fix list of authors.
4265         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4266
4267 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4268
4269         bootstrap: support Automake-NG in $buildreq
4270         * bootstrap (check_versions): Handle automake and aclocal from
4271         Automake-NG specially.  They can be specified as respectively
4272         the "automake-ng" and "aclocal-ng" requirements.
4273
4274 2012-04-25  Eric Blake  <eblake@redhat.com>
4275
4276         bootstrap: only force latest Makefile.in.in for gettext module
4277         * build-aux/bootstrap (with_gettext): Only install latest
4278         Makefile.in.in for projects requesting bleeding edge gettext.
4279
4280 2012-04-22  Bruno Haible  <bruno@clisp.org>
4281
4282         doc: Mention reason for replacement on glibc/Linux systems.
4283         * doc/posix-functions/dprintf.texi: Mention the problem with special
4284         'long double' values.
4285         * doc/posix-functions/fprintf.texi: Likewise.
4286         * doc/posix-functions/printf.texi: Likewise.
4287         * doc/posix-functions/snprintf.texi: Likewise.
4288         * doc/posix-functions/sprintf.texi: Likewise.
4289         * doc/posix-functions/vdprintf.texi: Likewise.
4290         * doc/posix-functions/vfprintf.texi: Likewise.
4291         * doc/posix-functions/vprintf.texi: Likewise.
4292         * doc/posix-functions/vsnprintf.texi: Likewise.
4293         * doc/posix-functions/vsprintf.texi: Likewise.
4294         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4295         platforms with F_DUPFD_CLOEXEC problems.
4296         * doc/posix-functions/glob.texi: Mention which platforms are affected
4297         by the problem with symbolic links.
4298         * doc/posix-functions/linkat.texi: Mention the problem with
4299         AT_SYMLINK_FOLLOW on Linux.
4300
4301 2012-04-22  Bruno Haible  <bruno@clisp.org>
4302
4303         pwrite: Don't replace on all platforms.
4304         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4305
4306 2012-04-22  Bruno Haible  <bruno@clisp.org>
4307
4308         rint* tests: Avoid gcc warnings.
4309         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4310         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4311         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4312
4313 2012-04-21  Bruno Haible  <bruno@clisp.org>
4314
4315         users.txt: Update.
4316         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4317         switched from CVS to git, bzr, or svn.
4318
4319 2012-04-21  Bruno Haible  <bruno@clisp.org>
4320
4321         Large File Support for native Windows platforms.
4322
4323         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4324         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4325
4326         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4327         type.
4328         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4329         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4330         * doc/posix-headers/sys_types.texi: Mention the effect of the
4331         'largefile' module.
4332
4333         * lib/fcntl.in.h: Add comments about off_t.
4334         * modules/fcntl-h (Depends-on): Add sys_types.
4335
4336         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4337         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4338         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4339         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4340         * modules/unistd (Depends-on): Add sys_types.
4341         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4342
4343         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4344         instead of lseek.
4345         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4346         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4347         * modules/lseek (Depends-on): Add sys_types.
4348
4349         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4350         msvc-nothrow.h.
4351         (SetFileSize): New function.
4352         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4353         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4354         if Large File Support is requested.
4355         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4356         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4357
4358         * lib/stdio.in.h: Add comments about off_t.
4359         * modules/stdio (Depends-on): Add sys_types.
4360
4361         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4362         instead of ftello.
4363         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4364         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4365         (gl_PREREQ_FTELLO): New macro.
4366         * modules/ftello (Depends-on): Add sys_types.
4367         (configure.ac): Incoke gl_PREREQ_FTELLO.
4368
4369         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4370         instead of fseeko.
4371         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4372         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4373         (gl_PREREQ_FSEEKO): New macro.
4374         * modules/fseeko (Depends-on): Add sys_types.
4375         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4376
4377         * lib/sys_stat.in.h: Add comments about off_t.
4378         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4379         64-bit integer for st_size in 'struct stat'.
4380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4381         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4382         * modules/sys_stat (Depends-on): Add sys_types.
4383         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4384
4385         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4386         instead of stat or _stat.
4387
4388         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4389         'struct _stati64' instead of fstat and 'struct stat'.
4390         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4391         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4392
4393         Reported by Ray Satiro <raysatiro@yahoo.com>.
4394
4395 2012-04-19  Eric Blake  <eblake@redhat.com>
4396
4397         bootstrap: accommodate older libtool
4398         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4399         Reported by Daniel P. Berrange.
4400
4401 2012-04-19  Jim Meyering  <meyering@redhat.com>
4402
4403         announce-gen: avoid failure due to lack of Digest::SHA1
4404         Even with the preferred Digest::SHA available, this script
4405         would fail when the backup module, Digest::SHA1, was not installed.
4406         * build-aux/announce-gen: Quote the conditional use of "use".
4407         Reported by Reuben Thomas in:
4408         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4409
4410         bootstrap: don't let a user's CDPATH setting affect this script
4411         When CDPATH is set, cd will sometimes generate output.
4412         When "cd" is run in a subshell whose output matters, that
4413         surprising-to-some output can cause malfunction.
4414         Unsetting CDPATH turns off this shell "feature."
4415         * build-aux/bootstrap (CDPATH): Unset.
4416         Reported by Reuben Thomas in:
4417         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4418         and inspired by his patch here:
4419         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4420
4421 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4422         and Jim Meyering  <meyering@redhat.com>
4423
4424         maint.mk: catch "see @xref{}" and similar
4425         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4426         prohibit "See also @xref{", "Also see @pxref{", and similar.
4427
4428 2012-04-16  Jim Meyering  <meyering@redhat.com>
4429
4430         bootstrap: really use gnulib's po/Makefile.in.in
4431         * build-aux/bootstrap: Correct the source file name in previous change.
4432         Reported by Akim Demaille.
4433
4434         configmake: correct minor inconsistency in Makefile rule
4435         * modules/configmake (Makefile.am): All other rules like this one
4436         run the final "mv -f ..." in the same backslash-continued command
4437         as the one that does everything else.  This one put the mv -f ...
4438         command on a separate, non-backslash-continued line.
4439         Make it like the others.
4440
4441         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4442         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4443         the one from gettext.  Reported by Akim Demaille.
4444
4445 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4446
4447         Fix recursion of install-* into po directories.
4448         Bison's install-pdf bug reported by Hans Aberg at
4449         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4450         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4451         (install-info, install-pdf, install-ps): New targets.
4452
4453 2012-04-16  Jim Meyering  <meyering@redhat.com>
4454
4455         maint: avoid spurious "make sc_maint" failure
4456         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4457         exempt all *.class file names, for lib/javaversion.class.
4458
4459 2012-04-15  Bruno Haible  <bruno@clisp.org>
4460
4461         lseek: Make configure test independent of environment.
4462         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4463         Windows, we know that lseek() on pipes is broken; skip the runtime
4464         test.
4465
4466 2012-04-14  Bruno Haible  <bruno@clisp.org>
4467
4468         stat: Bypass buggy override in mingw64.
4469         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4470         * lib/stat.c (stat) [mingw64]: Define to _stat.
4471         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4472
4473 2012-04-14  Bruno Haible  <bruno@clisp.org>
4474
4475         pathmax: Fix compilation error on MSVC 9.
4476         * modules/pathmax (Depends-on): Add unistd.
4477
4478 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4479
4480         README: document pointer comparison assumption
4481         * README (Portability guidelines): Document assumption about
4482         pointer comparisons, in response to a recent bug-gnulib comment by
4483         Jeffrey Kegler.
4484
4485 2012-04-12  Bruno Haible  <bruno@clisp.org>
4486
4487         Tests for module 'getrusage'.
4488         * modules/getrusage-tests: New file.
4489         * tests/test-getrusage.c: New file.
4490
4491         New module 'getrusage'.
4492         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4493         warn-on-use.h.
4494         (getrusage): New declaration.
4495         * lib/getrusage.c: New file.
4496         * m4/getrusage.m4: New file.
4497         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4498         is declared.
4499         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4500         HAVE_GETRUSAGE.
4501         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4502         snippet/c++defs, snippet/warn-on-use.
4503         (Makefile.am): Update generation of sys/resource.h. Substitute
4504         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4505         * modules/getrusage: New file.
4506         * doc/posix-functions/getrusage.texi: Mention the new module.
4507
4508 2012-04-12  Bruno Haible  <bruno@clisp.org>
4509
4510         Tests for module 'sys_resource'.
4511         * modules/sys_resource-tests: New file.
4512         * tests/test-sys_resource.c: New file.
4513
4514         New module 'sys_resource'.
4515         * lib/sys_resource.in.h: New file.
4516         * m4/sys_resource_h.m4: New file.
4517         * modules/sys_resource: New file.
4518         * doc/posix-headers/sys_resource.texi: Mention the new module.
4519
4520 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4521
4522         ioctl: Fix compilation error on mingw.
4523         * lib/ioctl.c: Include <windows.h>.
4524         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4525
4526 2012-04-04  Jim Meyering  <meyering@redhat.com>
4527
4528         regex: correct #pragma guard expression
4529         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4530         not 4.3.  Correct its cpp guard expression.
4531
4532 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4533
4534         regex: remove unnecessary type punning
4535         Problem reported by Vladimir Serbinenko in
4536         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4537         * lib/regex.h (struct re_pattern_buffer): Change the type of
4538         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4539         Fix comment to match code.
4540         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4541         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4542         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4543         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4544         (set_regs):
4545         Omit no-longer-necessary casts.
4546
4547 2012-04-03  Bruno Haible  <bruno@clisp.org>
4548
4549         Tests for module 'ilogbl'.
4550         * modules/ilogbl-tests: New file.
4551         * tests/test-ilogbl.c: New file.
4552
4553         New module 'ilogbl'.
4554         * lib/math.in.h (ilogbl): New declaration.
4555         * lib/ilogbl.c: New file.
4556         * m4/ilogbl.m4: New file.
4557         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4559         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4560         Split sed invocation, to avoid the limit of 100 substitutions of
4561         HP-UX 'sed'.
4562         * modules/ilogbl: New file.
4563         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4564         * doc/posix-functions/ilogbl.texi: Mention the new module.
4565
4566 2012-04-03  Bruno Haible  <bruno@clisp.org>
4567
4568         Tests for module 'ilogbf'.
4569         * modules/ilogbf-tests: New file.
4570         * tests/test-ilogbf.c: New file.
4571
4572         New module 'ilogbf'.
4573         * lib/math.in.h (ilogbf): New declaration.
4574         * lib/ilogbf.c: New file.
4575         * m4/ilogbf.m4: New file.
4576         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4578         REPLACE_ILOGBF.
4579         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4580         REPLACE_ILOGBF.
4581         * modules/ilogbf: New file.
4582         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4583         * doc/posix-functions/ilogbf.texi: Mention the new module.
4584
4585 2012-04-03  Bruno Haible  <bruno@clisp.org>
4586
4587         Tests for module 'ilogb'.
4588         * modules/ilogb-tests: New file.
4589         * tests/test-ilogb.c: New file.
4590         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4591         tests/test-logb-ieee.h.
4592
4593         New module 'ilogb'.
4594         * lib/math.in.h (ilogb): New declaration.
4595         * lib/ilogb.c: New file.
4596         * m4/ilogb.m4: New file.
4597         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4599         REPLACE_ILOGB.
4600         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4601         REPLACE_ILOGB.
4602         * modules/ilogb: New file.
4603         * tests/test-math-c++.cc: Check the declaration of ilogb.
4604         * doc/posix-functions/ilogb.texi: Mention the new module.
4605
4606 2012-04-03  Bruno Haible  <bruno@clisp.org>
4607
4608         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4609         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4610         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4611         (main): Check their values.
4612         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4613         problem.
4614
4615 2012-04-03  Bruno Haible  <bruno@clisp.org>
4616
4617         Tests for module 'logbl-ieee'.
4618         * modules/logbl-ieee-tests: New file.
4619         * tests/test-logbl-ieee.c: New file.
4620
4621         New module 'logbl-ieee'.
4622         * modules/logbl-ieee: New file.
4623
4624         Tests for module 'logb-ieee'.
4625         * modules/logb-ieee-tests: New file.
4626         * tests/test-logb-ieee.c: New file.
4627
4628         New module 'logb-ieee'.
4629         * modules/logb-ieee: New file.
4630
4631         Tests for module 'logbf-ieee'.
4632         * modules/logbf-ieee-tests: New file.
4633         * tests/test-logbf-ieee.c: New file.
4634         * tests/test-logb-ieee.h: New file.
4635
4636         New module 'logbf-ieee'.
4637         * modules/logbf-ieee: New file.
4638
4639 2012-04-03  Bruno Haible  <bruno@clisp.org>
4640
4641         Tests for module 'logbl'.
4642         * modules/logbl-tests: New file.
4643         * tests/test-logbl.c: New file.
4644
4645         New module 'logbl'.
4646         * lib/math.in.h (logbl): New declaration.
4647         * lib/logbl.c: New file.
4648         * m4/logbl.m4: New file.
4649         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4651         REPLACE_LOGBL.
4652         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4653         REPLACE_LOGBL.
4654         * modules/logbl: New file.
4655         * tests/test-math-c++.cc: Check the declaration of logbl.
4656         * doc/posix-functions/logbl.texi: Mention the new module.
4657
4658 2012-04-02  Bruno Haible  <bruno@clisp.org>
4659
4660         Tests for module 'logbf'.
4661         * modules/logbf-tests: New file.
4662         * tests/test-logbf.c: New file.
4663
4664         New module 'logbf'.
4665         * lib/math.in.h (logbf): New declaration.
4666         * lib/logbf.c: New file.
4667         * m4/logbf.m4: New file.
4668         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4670         REPLACE_LOGBF.
4671         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4672         REPLACE_LOGBF.
4673         * modules/logbf: New file.
4674         * tests/test-math-c++.cc: Check the declaration of logbf.
4675         * doc/posix-functions/logbf.texi: Mention the new module.
4676
4677 2012-04-02  Bruno Haible  <bruno@clisp.org>
4678
4679         logb tests: More tests.
4680         * tests/test-logb.h: New file, based on tests/test-logb.c and
4681         tests/test-frexp.h.
4682         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4683         (main): Just invoke test_function.
4684         * modules/logb-tests (Files): Add tests/test-logb.h,
4685         tests/minus-zero.h, tests/randomd.c.
4686         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4687
4688         logb: Provide replacement and workarounds.
4689         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4690         is 1.
4691         * lib/logb.c: New file.
4692         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4693         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4695         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4696         * modules/logb (Files): Add lib/logb.c.
4697         (Depends-on): Add isfinite, frexp, isnand.
4698         (configure.ac): Compile the replacement code logb.c if needed.
4699         * tests/test-math-c++.cc: Check the declaration of logb.
4700         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4701         with subnormal numbers.
4702
4703 2012-04-02  Bruno Haible  <bruno@clisp.org>
4704
4705         log10* tests: Speed up.
4706         * tests/test-log10.h (test_function): Reduce amount of random numbers
4707         to test.
4708
4709 2012-04-01  Bruno Haible  <bruno@clisp.org>
4710
4711         logf-ieee: Fix test whether logf works.
4712         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4713
4714 2012-04-01  Bruno Haible  <bruno@clisp.org>
4715
4716         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4717         * lib/log10l.c: Include <float.h>
4718         (log10l): On IRIX, normalize the +Infinity value.
4719         * modules/log10l (Depends-on): Add 'float'.
4720         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4721         +Infinity.
4722
4723         log10f-ieee: Work around test failure on NetBSD 5.1.
4724         * m4/log10f-ieee.m4: New file.
4725         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4726         test whether log10f works with a negative argument. Replace it if not.
4727         * lib/log10f.c (log10f): For negative arguments, return NaN.
4728         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4729         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4730         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4731
4732         log10f-ieee: Work around test failure on Solaris 9.
4733         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4734         (configure.ac): Require gl_FUNC_LOG10F.
4735
4736         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4737         * m4/log10-ieee.m4: New file.
4738         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4739         whether log10 works with a negative argument. Replace it if not.
4740         * lib/log10.c (log10): For negative arguments, return NaN.
4741         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4742         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4743         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4744
4745         Tests for module 'log10l-ieee'.
4746         * modules/log10l-ieee-tests: New file.
4747         * tests/test-log10l-ieee.c: New file.
4748
4749         New module 'log10l-ieee'.
4750         * modules/log10l-ieee: New file.
4751
4752         Tests for module 'log10-ieee'.
4753         * modules/log10-ieee-tests: New file.
4754         * tests/test-log10-ieee.c: New file.
4755
4756         New module 'log10-ieee'.
4757         * modules/log10-ieee: New file.
4758
4759         Tests for module 'log10f-ieee'.
4760         * modules/log10f-ieee-tests: New file.
4761         * tests/test-log10f-ieee.c: New file.
4762         * tests/test-log10-ieee.h: New file.
4763
4764         New module 'log10f-ieee'.
4765         * modules/log10f-ieee: New file.
4766
4767 2012-04-01  Bruno Haible  <bruno@clisp.org>
4768
4769         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4770         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4771         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4772         workaround.
4773         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4774         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4776         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4777         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4778         (Depends-on): Update conditions.
4779         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4780         IRIX 6.5, OSF/1 5.1 problems.
4781
4782 2012-04-01  Bruno Haible  <bruno@clisp.org>
4783
4784         log10f: Work around OSF/1 5.1 bug.
4785         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4786         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4787         workaround.
4788         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4789         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4791         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4792         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4793         (Depends-on): Update conditions.
4794         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4795
4796 2012-04-01  Bruno Haible  <bruno@clisp.org>
4797
4798         log10: Work around OSF/1 5.1 bug.
4799         * lib/math.in.h (log10): New declaration.
4800         * lib/log10.c: New file.
4801         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4802         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4803         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4805         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4806         * modules/log10 (Files): Add lib/log10.c.
4807         (Depends-on): Add math.
4808         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4809         * tests/test-math-c++.cc: Check the declaration of log10.
4810         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4811
4812 2012-03-31  Bruno Haible  <bruno@clisp.org>
4813
4814         log10l tests: More tests.
4815         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4816         tests/minus-zero.h, tests/randoml.c.
4817         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4818         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4819         (main): Invoke test_function.
4820
4821         log10f tests: More tests.
4822         * modules/log10f-tests (Files): Add tests/test-log10.h,
4823         tests/minus-zero.h, tests/randomf.c.
4824         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4825         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4826         (main): Invoke test_function.
4827
4828         log10 tests: More tests.
4829         * tests/test-log10.h: New file.
4830         * modules/log10-tests (Files): Add tests/test-log10.h,
4831         tests/minus-zero.h, tests/randomd.c.
4832         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4833         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4834         (main): Invoke test_function.
4835
4836 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4837
4838         fflush: Fix syntax error.
4839         * lib/fflush.c: Include unused-parameter.h, needed for
4840         _GL_UNUSED_PARAMETER.
4841         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4842
4843 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4844
4845         regex: pacify GCC when compiling GRUB
4846         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4847         a diagnostic.  Reported by Vladimir Serbinenko in
4848         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4849
4850 2012-03-29  Eric Blake  <eblake@redhat.com>
4851
4852         stdio: don't assume gets any more
4853         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4854         support.
4855         * modules/stdio (Makefile.am): Likewise.
4856         * lib/stdio-read.c (gets): Likewise.
4857         * tests/test-stdio-c++.cc: Likewise.
4858         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4859         * lib/stdio.in.h (gets): Make warning occur in more places.
4860         * doc/posix-functions/gets.texi (gets): Update documentation.
4861         Reported by Christer Solskogen.
4862
4863         maint.mk: fix syntax checks without exclusions
4864         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4865         Reported by Daniel P. Berrange.
4866
4867         strerror_r: avoid compiler warning
4868         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4869         level.
4870
4871         fflush: avoid compiler warning
4872         * lib/fflush.c (update_fpos_cache): Mark variables that are
4873         potentially unused.
4874
4875 2012-03-25  Bruno Haible  <bruno@clisp.org>
4876
4877         Tests for module 'localeconv'.
4878         * modules/localeconv-tests: New file.
4879         * tests/test-localeconv.c: New file.
4880
4881         New module 'localeconv'.
4882         * lib/locale.in.h (localeconv): New declaration.
4883         * lib/localeconv.c: New file.
4884         * m4/localeconv.m4: New file.
4885         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4886         REPLACE_LOCALECONV.
4887         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4888         REPLACE_LOCALECONV.
4889         * modules/localeconv: New file.
4890         * modules/nl_langinfo (Depends-on): Add localeconv.
4891         * modules/human (Depends-on): Likewise.
4892         * doc/posix-functions/localeconv.texi: Mention the new module.
4893
4894 2012-03-25  Bruno Haible  <bruno@clisp.org>
4895
4896         locale: Provide a complete 'struct lconv'.
4897         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4898         'struct lconv' does not contain int_p_cs_precedes.
4899         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4900         * doc/posix-headers/locale.texi: Update.
4901
4902         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4903         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4904         * doc/posix-headers/locale.texi: Update.
4905
4906         locale: Provide a working 'struct lconv'.
4907         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4908         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4909         'struct lconv' does not even contain decimal_point.
4910         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4911         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4912         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4913         * doc/posix-headers/locale.texi: Mention the problems with
4914         'struct lconv'.
4915         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4916
4917 2012-03-24  Bruno Haible  <bruno@clisp.org>
4918
4919         Enable common subexpression optimization in GCC.
4920         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4921         macros.
4922         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4923         GCC attribute 'const'.
4924         (uc_locale_language): Declare with GCC attribute 'pure'.
4925         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4926         with GCC attribute 'const'.
4927         * lib/unictype.in.h (uc_is_general_category_withtable,
4928         uc_combining_class, uc_combining_class_name,
4929         uc_combining_class_long_name, uc_bidi_class_name,
4930         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4931         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4932         uc_decimal_value, uc_digit_value, uc_numeric_value,
4933         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4934         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4935         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4936         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4937         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4938         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4939         Declare with GCC attribute 'const'.
4940         (uc_general_category_name, uc_general_category_long_name,
4941         uc_general_category_byname, uc_general_category,
4942         uc_is_general_category, uc_combining_class_byname,
4943         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4944         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4945         Declare with GCC attribute 'pure'.
4946         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4947         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4948         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4949         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4950         with GCC attribute 'pure'.
4951         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4952         'const'.
4953         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4954         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4955         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4956         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4957         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4958         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4959         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4960         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4961         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4962         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4963         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4964         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4965         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4966         GCC attribute 'pure'.
4967         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4968         'const'.
4969         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4970         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4971         u32_strwidth): Declare with GCC attribute 'pure'.
4972
4973         Enable common subexpression optimization in GCC.
4974         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4975         (alphasort): Declare with GCC attribute 'pure'.
4976         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4977         (atoll): Declare with GCC attribute 'pure'.
4978         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4979         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4980         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4981         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4982         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4983         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4984         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4985
4986 2012-03-24  Bruno Haible  <bruno@clisp.org>
4987
4988         gnulib-tool: Avoid unintended error output from 'cmp'.
4989         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4990         "cmp -s", not "cmp > /dev/null".
4991
4992 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4993
4994         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4995
4996         It's not just Automake versions < 1.9b that creates an empty
4997         pkgdatadir at installation time if pkgdata_DATA is specified
4998         to empty; modern automake versions do this as well, at least
4999         until automake 1.11.4 (not yet released at the moment of writing,
5000         but soon to appear).  That behaviour was generally considered a
5001         feature rather than a bug, at least until this discussion:
5002         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5003
5004         See also automake bugs #10997 and #11030.
5005
5006         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5007         reference to relevant automake bug numbers.
5008         (func_emit_tests_Makefile_am): Likewise.
5009
5010 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5011
5012         announce-gen: use Digest::SHA when possible
5013         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5014         back to Digest::SHA1 if necessary.
5015
5016 2012-03-20  Jim Meyering  <meyering@redhat.com>
5017
5018         tests: avoid gcc warnings about argv vs. const initializers
5019         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5020         warnings about discarding 'const' qualifier from pointer target type.
5021         * tests/test-posix_spawn2.c (main): Likewise.
5022
5023 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5024
5025         README-release: simplify slightly
5026         * top/README-release: Run "git checkout master" only once.
5027
5028 2012-03-15  Mark Wielaard  <mark@klomp.org>
5029
5030         git-merge-changelog: add specific example on how to use with hg.
5031         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5032
5033 2012-03-18  Mark Wielaard  <mark@klomp.org>
5034
5035         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5036
5037 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5038
5039         git-version-gen: don't let "prefix" envvar cause trouble
5040         * build-aux/git-version-gen (prefix): Initialize properly,
5041         so as not to use a value specified via the environment.
5042         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5043
5044 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5045
5046         regex: diagnose too-large repeat counts in EREs
5047         Previously, the code did not diagnose the too-large repeat count
5048         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5049         as if it were 'b\{1000000000}', which is unexpected.
5050         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5051         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5052         is a reasonable one for this problem.  Another option would be to
5053         create a new REG_OVERFLOW error for repeat counts that are too large.
5054         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5055         count is too large, so that the caller can distinguish the two cases.
5056         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5057         "Too large" return code, and that repeat counts are one example of this.
5058
5059 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5060
5061         doc: some glibc x32 integer width issues
5062         * doc/posix-headers/sys_types.texi (sys/types.h):
5063         * doc/posix-headers/time.texi (time.h):
5064         Mention that glibc x32 does not conform to POSIX in a couple of
5065         areas related to integer widths.
5066
5067 2012-03-15  Bruno Haible  <bruno@clisp.org>
5068
5069         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5070         * lib/fma.c (VOLATILE): New macro.
5071         (FUNC): Use it to work around a GCC compiler bug.
5072
5073 2012-03-13  Bruno Haible  <bruno@clisp.org>
5074
5075         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5076         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5077         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5078         REPLACE_HYPOTL to 1.
5079         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5080
5081 2012-03-13  Bruno Haible  <bruno@clisp.org>
5082
5083         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5084         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5085         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5086         REPLACE_REMAINDERL to 1.
5087         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5088         bug.
5089
5090 2012-03-13  Bruno Haible  <bruno@clisp.org>
5091
5092         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5093         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5094         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5095         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5096         too big rounding errors.
5097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5098         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5099         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5100         (Depends-on): Update conditions.
5101         * tests/test-sqrtl.c (my_ldexpl): New function.
5102         (main): Add test of a particular value.
5103         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5104
5105 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5106
5107         doc: Update timer_* platform portability notes.
5108         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5109         that always return ENOSYS.
5110         * doc/posix-functions/timer_delete.texi: Likewise.
5111         * doc/posix-functions/timer_gettime.texi: Likewise.
5112         * doc/posix-functions/timer_settime.texi: Likewise.
5113
5114 2012-03-13  Bruno Haible  <bruno@clisp.org>
5115
5116         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5117         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5118         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5119         REPLACE_CBRTL to 1.
5120         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5121
5122 2012-03-13  Bruno Haible  <bruno@clisp.org>
5123
5124         remainderl: Avoid compilation error on AIX >= 5.2.
5125         * lib/math.in.h (remainderl): Undefine macro from the system header.
5126
5127 2012-03-13  Bruno Haible  <bruno@clisp.org>
5128
5129         Avoid compilation errors with MSVC option -fp:strict.
5130         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5131         * lib/cbrtf.c: Likewise.
5132         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5133
5134 2012-03-12  Bruno Haible  <bruno@clisp.org>
5135
5136         uninorm: Don't crash in out-of-memory conditions.
5137         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5138         gracefully.
5139         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5140         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5141
5142 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5143
5144         quote: fix syntax-check
5145         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5146         also exports quote_quoting_options.
5147
5148 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5149
5150         Collapse list of copyright years to ranges.  See
5151         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5152         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5153         build-aux/csharpexec.sh.in, build-aux/gnupload,
5154         build-aux/install-reloc, build-aux/javacomp.sh.in,
5155         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5156         build-aux/move-if-change, build-aux/reloc-ldflags,
5157         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5158
5159 2012-03-11  Bruno Haible  <bruno@clisp.org>
5160
5161         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5162         * m4/log2f-ieee.m4: New file.
5163         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5164         whether log2f works with a minus zero argument. Replace it if not.
5165         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5166         (Depends-on): Add log2-ieee.
5167         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5168         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5169
5170         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5171         * m4/log2-ieee.m4: New file.
5172         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5173         whether log2 works with a minus zero argument. Replace it if not.
5174         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5175         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5176         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5177
5178         Tests for module 'log2l-ieee'.
5179         * modules/log2l-ieee-tests: New file.
5180         * tests/test-log2l-ieee.c: New file.
5181
5182         New module 'log2l-ieee'.
5183         * modules/log2l-ieee: New file.
5184
5185         Tests for module 'log2-ieee'.
5186         * modules/log2-ieee-tests: New file.
5187         * tests/test-log2-ieee.c: New file.
5188
5189         New module 'log2-ieee'.
5190         * modules/log2-ieee: New file.
5191
5192         Tests for module 'log2f-ieee'.
5193         * modules/log2f-ieee-tests: New file.
5194         * tests/test-log2f-ieee.c: New file.
5195         * tests/test-log2-ieee.h: New file.
5196
5197         New module 'log2f-ieee'.
5198         * modules/log2f-ieee: New file.
5199
5200 2012-03-11  Bruno Haible  <bruno@clisp.org>
5201
5202         Tests for module 'log2l'.
5203         * modules/log2l-tests: New file.
5204         * tests/test-log2l.c: New file.
5205
5206         New module 'log2l'.
5207         * lib/math.in.h (log2l): New declaration.
5208         * lib/log2l.c: New file.
5209         * m4/log2l.m4: New file.
5210         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5212         REPLACE_LOG2L.
5213         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5214         REPLACE_LOG2L.
5215         * modules/log2l: New file.
5216         * tests/test-math-c++.cc: Check the declaration of log2l.
5217         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5218         and OSF/1 problems.
5219
5220 2012-03-11  Bruno Haible  <bruno@clisp.org>
5221
5222         Tests for module 'log2f'.
5223         * modules/log2f-tests: New file.
5224         * tests/test-log2f.c: New file.
5225
5226         New module 'log2f'.
5227         * lib/math.in.h (log2f): New declaration.
5228         * lib/log2f.c: New file.
5229         * m4/log2f.m4: New file.
5230         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5232         REPLACE_LOG2F.
5233         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5234         REPLACE_LOG2F.
5235         * modules/log2f: New file.
5236         * tests/test-math-c++.cc: Check the declaration of log2f.
5237         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5238         and OSF/1 and Cygwin problems.
5239
5240 2012-03-11  Bruno Haible  <bruno@clisp.org>
5241
5242         Tests for module 'log2'.
5243         * modules/log2-tests: New file.
5244         * tests/test-log2.c: New file.
5245         * tests/test-log2.h: New file.
5246
5247         New module 'log2'.
5248         * lib/math.in.h (log2): New declaration.
5249         * lib/log2.c: New file.
5250         * m4/log2.m4: New file.
5251         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5253         REPLACE_LOG2.
5254         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5255         REPLACE_LOG2.
5256         * modules/log2: New file.
5257         * tests/test-math-c++.cc: Check the declaration of log2.
5258         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5259         and OSF/1 and Cygwin problems.
5260
5261 2012-03-11  Bruno Haible  <bruno@clisp.org>
5262
5263         exp2* tests: More tests.
5264         * tests/test-exp2.h (test_function): Test all integral arguments that
5265         don't need to overflow or denormalized numbers.
5266         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5267         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5268         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5269
5270 2012-03-10  Bruno Haible  <bruno@clisp.org>
5271
5272         log1pl-ieee: Work around test failure on AIX 7.1.
5273         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5274
5275         log1pl-ieee: Work around test failure on IRIX 6.5.
5276         * m4/log1pl-ieee.m4: New file.
5277         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5278         test whether log1pl works with a minus zero argument. Replace it if
5279         not.
5280         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5282         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5283         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5284         (Depends-on): Update conditions.
5285         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5286         m4/signbit.m4.
5287         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5288         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5289
5290         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5291         * m4/log1pf-ieee.m4: New file.
5292         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5293         test whether log1pf works with a minus zero argument. Replace it if
5294         not.
5295         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5296         m4/signbit.m4.
5297         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5298         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5299
5300         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5301         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5302         (configure.ac): Require gl_FUNC_LOG1PF.
5303
5304         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5305         * m4/log1p-ieee.m4: New file.
5306         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5307         whether log1p works with a minus zero argument. Replace it if not.
5308         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5310         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5311         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5312         (Depends-on): Update conditions.
5313         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5314         m4/signbit.m4.
5315         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5316         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5317
5318         Tests for module 'log1pl-ieee'.
5319         * modules/log1pl-ieee-tests: New file.
5320         * tests/test-log1pl-ieee.c: New file.
5321
5322         New module 'log1pl-ieee'.
5323         * modules/log1pl-ieee: New file.
5324
5325         Tests for module 'log1p-ieee'.
5326         * modules/log1p-ieee-tests: New file.
5327         * tests/test-log1p-ieee.c: New file.
5328
5329         New module 'log1p-ieee'.
5330         * modules/log1p-ieee: New file.
5331
5332         Tests for module 'log1pf-ieee'.
5333         * modules/log1pf-ieee-tests: New file.
5334         * tests/test-log1pf-ieee.c: New file.
5335         * tests/test-log1p-ieee.h: New file.
5336
5337         New module 'log1pf-ieee'.
5338         * modules/log1pf-ieee: New file.
5339
5340 2012-03-10  Bruno Haible  <bruno@clisp.org>
5341
5342         Tests for module 'log1pl'.
5343         * modules/log1pl-tests: New file.
5344         * tests/test-log1pl.c: New file.
5345
5346         New module 'log1pl'.
5347         * lib/math.in.h (log1pl): New declaration.
5348         * lib/log1pl.c: New file.
5349         * m4/log1pl.m4: New file.
5350         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5352         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5353         * modules/log1pl: New file.
5354         * tests/test-math-c++.cc: Check the declaration of log1pl.
5355         * doc/posix-functions/log1pl.texi: Mention the new module.
5356
5357 2012-03-10  Bruno Haible  <bruno@clisp.org>
5358
5359         Tests for module 'log1pf'.
5360         * modules/log1pf-tests: New file.
5361         * tests/test-log1pf.c: New file.
5362
5363         New module 'log1pf'.
5364         * lib/math.in.h (log1pf): New declaration.
5365         * lib/log1pf.c: New file.
5366         * m4/log1pf.m4: New file.
5367         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5369         REPLACE_LOG1PF.
5370         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5371         REPLACE_LOG1PF.
5372         * modules/log1pf: New file.
5373         * tests/test-math-c++.cc: Check the declaration of log1pf.
5374         * doc/posix-functions/log1pf.texi: Mention the new module.
5375
5376 2012-03-10  Bruno Haible  <bruno@clisp.org>
5377
5378         log1p tests: More tests.
5379         * tests/test-log1p.h: New file.
5380         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5381         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5382         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5383         (main): Invoke test_function.
5384
5385         log1p: Provide replacement for Minix and MSVC.
5386         * lib/math.in.h (log1p): New declaration.
5387         * lib/log1p.c: New file.
5388         * m4/log1p.m4: New file.
5389         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5391         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5392         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5393         (Depends-on): Add math, isnand, log, round.
5394         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5395         HAVE_LOG1P is 0.
5396         * tests/test-math-c++.cc: Check the declaration of log1p.
5397         * doc/posix-functions/log1p.texi: Mention the replacement.
5398
5399 2012-03-10  Bruno Haible  <bruno@clisp.org>
5400
5401         math tests: Small simplification.
5402         * tests/test-exp.h (test_function): Use the same err_bound for
5403         'double' on platforms with sizeof (long double) == sizeof (double)
5404         than on platforms with sizeof (long double) > sizeof (double).
5405         * tests/test-exp2.h (test_function): Likewise.
5406         * tests/test-expm1.h (test_function): Likewise.
5407         * tests/test-log.h (test_function): Likewise.
5408
5409 2012-03-10  Bruno Haible  <bruno@clisp.org>
5410
5411         Fix some comments.
5412         * lib/expl.c: Fix an ambiguous comment.
5413         * lib/expm1.c: Likewise.
5414         * lib/expm1l.c: Likewise.
5415         * lib/exp2.c: Likewise.
5416         * lib/exp2l.c: Likewise.
5417
5418 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5419
5420         regex: allow inclusion of <regex.h> before <limits.h>
5421         Without this patch, portable programs had to include <limits.h> before
5422         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5423         I ran into this problem with a test version of GNU grep on Solaris 8.
5424         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5425         This is done conditionally so that this change can be merged
5426         back to glibc.
5427         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5428         using the included regex.
5429
5430         fts: depend on fdopendir
5431         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5432         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5433         problem was introduced when fdopendir was split out.
5434
5435 2012-03-10  Bruno Haible  <bruno@clisp.org>
5436
5437         Remove unused variables.
5438         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5439         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5440
5441 2012-03-10  Bruno Haible  <bruno@clisp.org>
5442
5443         isnanf-nolibm: Fix last commit.
5444         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5445
5446         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5447         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5448
5449 2012-03-10  Bruno Haible  <bruno@clisp.org>
5450
5451         logf-ieee: Work around test failure on NetBSD 5.1.
5452         * m4/logf-ieee.m4: New file.
5453         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5454         whether logf works with a negative argument. Replace it if not.
5455         * lib/logf.c (logf): For negative arguments, return NaN.
5456         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5457         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5458         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5459
5460         logf-ieee: Work around test failure on Solaris 9.
5461         * modules/logf-ieee (Depends-on): Add log-ieee.
5462         (configure.ac): Require gl_FUNC_LOGF.
5463
5464         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5465         * m4/log-ieee.m4: New file.
5466         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5467         log works with a negative argument. Replace it if not.
5468         * lib/log.c (log): For negative arguments, return NaN.
5469         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5470         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5471         * doc/posix-functions/log.texi: Mention the log-ieee module.
5472
5473         Tests for module 'logl-ieee'.
5474         * modules/logl-ieee-tests: New file.
5475         * tests/test-logl-ieee.c: New file.
5476
5477         New module 'logl-ieee'.
5478         * modules/logl-ieee: New file.
5479
5480         Tests for module 'log-ieee'.
5481         * modules/log-ieee-tests: New file.
5482         * tests/test-log-ieee.c: New file.
5483
5484         New module 'log-ieee'.
5485         * modules/log-ieee: New file.
5486
5487         Tests for module 'logf-ieee'.
5488         * modules/logf-ieee-tests: New file.
5489         * tests/test-logf-ieee.c: New file.
5490         * tests/test-log-ieee.h: New file.
5491
5492         New module 'logf-ieee'.
5493         * modules/logf-ieee: New file.
5494
5495 2012-03-10  Bruno Haible  <bruno@clisp.org>
5496
5497         log: Fix bug introduced on 2012-03-09.
5498         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5499
5500 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5501
5502         timer-time: link explicitly with pthreads on glibc
5503         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5504         to support static linking, when newer glibc is
5505         detected, as that contains pthread emulation of
5506         POSIX timer functions where required.
5507         * modules/timer-time: Depend on threadlib to
5508         pull in the appropriate library to link.
5509
5510 2012-03-10  Bruno Haible  <bruno@clisp.org>
5511
5512         log* tests: More tests.
5513         * tests/test-log.h: New file.
5514         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5515         (main): Invoke test_function.
5516         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5517         (main): Invoke test_function.
5518         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5519         (main): Invoke test_function.
5520         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5521         tests/randomd.c.
5522         (Makefile.am): Add randomd.c to test_log_SOURCES.
5523         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5524         tests/randomf.c.
5525         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5526         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5527         tests/randoml.c.
5528         (Depends-on): Add 'float'.
5529         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5530
5531 2012-03-09  Bruno Haible  <bruno@clisp.org>
5532
5533         logl: Work around OSF/1 5.1 bug.
5534         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5535         * lib/logl.c (logl): If logl exists, use it and provide just the
5536         workaround.
5537         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5538         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5540         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5541         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5542         (Depends-on): Update conditions.
5543         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5544
5545 2012-03-09  Bruno Haible  <bruno@clisp.org>
5546
5547         logf: Work around OSF/1 5.1 bug.
5548         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5549         * lib/logf.c (logf): If logf exists, use it and provide just the
5550         workaround.
5551         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5552         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5554         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5555         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5556         (Depends-on): Update conditions.
5557         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5558
5559 2012-03-09  Bruno Haible  <bruno@clisp.org>
5560
5561         log: Work around OSF/1 5.1 bug.
5562         * lib/math.in.h (log): New declaration.
5563         * lib/log.c: New file.
5564         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5565         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5566         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5568         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5569         * modules/log (Files): Add lib/log.c.
5570         (Depends-on): Add math.
5571         (configure.ac): If REPLACE_LOG is 1, compile an override.
5572         * tests/test-math-c++.cc: Check the declaration of log.
5573         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5574
5575 2012-03-09  Jim Meyering  <meyering@redhat.com>
5576
5577         readtokens.c: adjust wording in a comment
5578         * lib/readtokens.c: Insert omitted "that" in a comment.
5579
5580 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5581
5582         modechange: add notations +40, 00440, etc.
5583         * lib/modechange.c (mode_compile): Support new notations
5584         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5585
5586 2012-03-08  Bruno Haible  <bruno@clisp.org>
5587
5588         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5589         * m4/exp2l-ieee.m4: New file.
5590         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5591         test whether exp2l works with a NaN argument and with a negative
5592         infinity argument. Replace it if not.
5593         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5595         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5596         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5597         (Depends-on): Update conditions.
5598         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5599         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5600         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5601
5602         Tests for module 'exp2l-ieee'.
5603         * modules/exp2l-ieee-tests: New file.
5604         * tests/test-exp2l-ieee.c: New file.
5605
5606         New module 'exp2l-ieee'.
5607         * modules/exp2l-ieee: New file.
5608
5609         Tests for module 'exp2-ieee'.
5610         * modules/exp2-ieee-tests: New file.
5611         * tests/test-exp2-ieee.c: New file.
5612
5613         New module 'exp2-ieee'.
5614         * modules/exp2-ieee: New file.
5615
5616         Tests for module 'exp2f-ieee'.
5617         * modules/exp2f-ieee-tests: New file.
5618         * tests/test-exp2f-ieee.c: New file.
5619         * tests/test-exp2-ieee.h: New file.
5620
5621         New module 'exp2f-ieee'.
5622         * modules/exp2f-ieee: New file.
5623
5624 2012-03-08  Bruno Haible  <bruno@clisp.org>
5625
5626         Tests for module 'exp2l'.
5627         * modules/exp2l-tests: New file.
5628         * tests/test-exp2l.c: New file.
5629
5630         New module 'exp2l'.
5631         * lib/math.in.h (exp2l): New declaration.
5632         * lib/exp2l.c: New file.
5633         * lib/expl-table.c: New file, extracted from lib/expl.c.
5634         * lib/expl.c (gl_expl_table): New declaration.
5635         (expl): Remove expl_table. Update reference.
5636         * m4/exp2l.m4: New file.
5637         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5639         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5640         * modules/exp2l: New file.
5641         * modules/expl (Files): Add lib/expl-table.c.
5642         (configure.ac): Compile also expl-table.c.
5643         * tests/test-math-c++.cc: Check the declaration of exp2l.
5644         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5645         problem.
5646
5647 2012-03-08  Bruno Haible  <bruno@clisp.org>
5648
5649         Tests for module 'exp2f'.
5650         * modules/exp2f-tests: New file.
5651         * tests/test-exp2f.c: New file.
5652
5653         New module 'exp2f'.
5654         * lib/math.in.h (exp2f): New declaration.
5655         * lib/exp2f.c: New file.
5656         * m4/exp2f.m4: New file.
5657         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5659         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5660         * modules/exp2f: New file.
5661         * tests/test-math-c++.cc: Check the declaration of exp2f.
5662         * doc/posix-functions/exp2f.texi: Mention the new module and the
5663         IRIX problem.
5664
5665 2012-03-08  Bruno Haible  <bruno@clisp.org>
5666
5667         Tests for module 'exp2'.
5668         * modules/exp2-tests: New file.
5669         * tests/test-exp2.c: New file.
5670         * tests/test-exp2.h: New file.
5671
5672         New module 'exp2'.
5673         * lib/math.in.h (exp2): New declaration.
5674         * lib/exp2.c: New file.
5675         * m4/exp2.m4: New file.
5676         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5678         REPLACE_EXP2.
5679         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5680         REPLACE_EXP2.
5681         * modules/exp2: New file.
5682         * tests/test-math-c++.cc: Check the declaration of exp2.
5683         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5684         and OpenBSD problems.
5685
5686 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5687
5688         savedir: fix comment typo
5689         * lib/savedir.c (savedirstream): Fix typo in comment.
5690
5691 2012-03-08  Bruno Haible  <bruno@clisp.org>
5692
5693         test-readtokens.c: use const; remove unwarranted cast
5694         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5695
5696 2012-03-08  Bruno Haible  <bruno@clisp.org>
5697
5698         fmal: Avoid compilation error on AIX.
5699         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5700         AIX 5.2..7.1.
5701
5702 2012-03-08  Bruno Haible  <bruno@clisp.org>
5703
5704         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5705         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5706         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5707         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5708         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5709         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5710         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5711
5712 2012-03-08  Bruno Haible  <bruno@clisp.org>
5713
5714         remainderf: Override buggy system function on IRIX 6.5.
5715         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5716         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5717         when it exists.
5718         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5719
5720 2012-03-08  Jim Meyering  <meyering@redhat.com>
5721
5722         test-readtokens.c: avoid const-related compilation warnings
5723         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5724
5725 2012-03-07  Jim Meyering  <meyering@redhat.com>
5726             Bruno Haible  <bruno@clisp.org>
5727
5728         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5729         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5730         tests/randomd.c.
5731         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5732         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5733         tests/randoml.c.
5734         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5735
5736 2012-03-07  Bruno Haible  <bruno@clisp.org>
5737
5738         expm1l: Avoid compilation error on AIX.
5739         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5740         AIX 5.2..7.1.
5741
5742 2012-03-07  Bruno Haible  <bruno@clisp.org>
5743
5744         expm1l: Don't override undeclared system function on IRIX 6.5.
5745         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5746         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5747         it exists. Set HAVE_DECL_EXPM1L.
5748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5749         HAVE_EXPM1L.
5750         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5751         HAVE_EXPM1L.
5752         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5753
5754 2012-03-07  Bruno Haible  <bruno@clisp.org>
5755
5756         remainderl: Don't override undeclared system function on IRIX 6.5.
5757         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5758         HAVE_REMAINDERL.
5759         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5760         declared when it exists. Set HAVE_DECL_REMAINDERL.
5761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5762         not HAVE_REMAINDERL.
5763         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5764         HAVE_REMAINDERL.
5765         * doc/posix-functions/remainderl.texi: Mention missing declaration
5766         problem.
5767
5768 2012-03-07  Bruno Haible  <bruno@clisp.org>
5769
5770         rintf: Don't override undeclared system function on IRIX 6.5.
5771         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5772         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5773         exists. Set HAVE_DECL_RINTF.
5774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5775         HAVE_RINTF.
5776         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5777         HAVE_RINTF.
5778         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5779
5780 2012-03-07  Bruno Haible  <bruno@clisp.org>
5781
5782         roundl: Avoid compilation error on AIX.
5783         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5784         AIX 5.2..7.1.
5785
5786 2012-03-07  Bruno Haible  <bruno@clisp.org>
5787
5788         roundl: Don't override undeclared system function on IRIX 6.5.
5789         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5790         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5791         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5792         * modules/roundl (configure.ac): For replacement code, test
5793         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5794         (Depends-on): Update conditions.
5795         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5796
5797 2012-03-07  Bruno Haible  <bruno@clisp.org>
5798
5799         roundf: Don't override undeclared system function on IRIX 6.5.
5800         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5801         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5802         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5803         * modules/roundf (configure.ac): For replacement code, test
5804         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5805         (Depends-on): Update conditions.
5806         * modules/roundf-ieee (Depends-on): Update conditions.
5807         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5808
5809 2012-03-07  Bruno Haible  <bruno@clisp.org>
5810
5811         round: Don't override undeclared system function on IRIX 6.5.
5812         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5813         argument.
5814         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5815         also when it is not declared. Set HAVE_ROUND. For replacement code,
5816         test HAVE_ROUND, not HAVE_DECL_ROUND.
5817         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5818         not HAVE_DECL_ROUND.
5819         (Depends-on): Update conditions.
5820         * modules/round-ieee (Depends-on): Update conditions.
5821         * doc/posix-functions/round.texi: Mention the IRIX problem.
5822
5823 2012-03-07  Bruno Haible  <bruno@clisp.org>
5824
5825         copysignf: Don't override undeclared system function on IRIX 6.5.
5826         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5827         HAVE_COPYSIGNF.
5828         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5829         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5831         not HAVE_COPYSIGNF.
5832         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5833         HAVE_COPYSIGNF.
5834         * doc/posix-functions/copysignf.texi: Mention missing declaration
5835         problem.
5836
5837 2012-03-07  Jim Meyering  <meyering@redhat.com>
5838
5839         readtokens: add tests
5840         * modules/readtokens-tests: New file.
5841         * tests/test-readtokens.c: New file.
5842
5843 2012-03-07  Jim Meyering  <meyering@redhat.com>
5844
5845         quotearg: the module must now include quote.h
5846         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5847         So must the module.
5848         * modules/quotearg (Files): Add quote.h.
5849
5850 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5851
5852         readtokens: avoid core dumps with unusual calling patterns
5853         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5854         * lib/readtokens.c: Include limits.h.
5855         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5856         (readtoken): Don't cache the delimiters; the cache code was buggy
5857         if !delim && saved_delim, or if the new n_delim differs from the old.
5858         Also, it wasn't thread-safe.
5859
5860 2012-03-07  Bruno Haible  <bruno@clisp.org>
5861
5862         quote: Adhere to common module description layout.
5863         * modules/quote (Makefile.am): Add back empty section.
5864
5865 2012-03-06  Akim Demaille  <demaille@gostai.com>
5866
5867         quote: fuse into quotearg
5868         This patch is made for the benefit of Bison.
5869         quote does not leave the choice of the quoting style to the user.
5870         quoting_style provides poor customizability, yet quoting_options,
5871         which is very rich, is hidden inside quotearg.c.  So in order to
5872         allow quote customization, move its implementation to quotearg.c.
5873         * lib/quote.c: Remove.
5874         * modules/quote: Adjust.
5875         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5876         warning: provide all the members of literal structs.
5877         (quote_quoting_options): New.
5878         (quote, quote_n): Import implementation from quote.c.
5879         * lib/quote.h: Import the comments from quote.c.
5880         (quote_quoting_options): New.
5881
5882 2012-03-06  Bruno Haible  <bruno@clisp.org>
5883
5884         Tests for module 'expm1l-ieee'.
5885         * modules/expm1l-ieee-tests: New file.
5886         * tests/test-expm1l-ieee.c: New file.
5887
5888         New module 'expm1l-ieee'.
5889         * modules/expm1l-ieee: New file.
5890
5891         Tests for module 'expm1f-ieee'.
5892         * modules/expm1f-ieee-tests: New file.
5893         * tests/test-expm1f-ieee.c: New file.
5894
5895         New module 'expm1f-ieee'.
5896         * modules/expm1f-ieee: New file.
5897
5898         Tests for module 'expm1-ieee'.
5899         * modules/expm1-ieee-tests: New file.
5900         * tests/test-expm1-ieee.c: New file.
5901         * tests/test-expm1-ieee.h: New file.
5902
5903         New module 'expm1-ieee'.
5904         * modules/expm1-ieee: New file.
5905         * m4/expm1-ieee.m4: New file.
5906         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5907         whether expm1 works with a minus zero argument. Replace it if not.
5908         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5910         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5911         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5912         (Depends-on): Update conditions.
5913         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5914         AIX problem.
5915
5916 2012-03-06  Bruno Haible  <bruno@clisp.org>
5917
5918         Work around expm1f bug on IRIX 6.5.
5919         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5920         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5921         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5922         not work.
5923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5924         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5925         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5926         (Depends-on): Update conditions.
5927         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5928
5929 2012-03-06  Bruno Haible  <bruno@clisp.org>
5930
5931         Tests for module 'expm1l'.
5932         * modules/expm1l-tests: New file.
5933         * tests/test-expm1l.c: New file.
5934
5935         New module 'expm1l'.
5936         * lib/math.in.h (expm1l): New declaration.
5937         * lib/expm1l.c: New file.
5938         * m4/expm1l.m4: New file.
5939         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5941         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5942         * modules/expm1l: New file.
5943         * tests/test-math-c++.cc: Check the declaration of expm1l.
5944         * doc/posix-functions/expm1l.texi: Mention the new module.
5945
5946 2012-03-06  Bruno Haible  <bruno@clisp.org>
5947
5948         Tests for module 'expm1f'.
5949         * modules/expm1f-tests: New file.
5950         * tests/test-expm1f.c: New file.
5951
5952         New module 'expm1f'.
5953         * lib/math.in.h (expm1f): New declaration.
5954         * lib/expm1f.c: New file.
5955         * m4/expm1f.m4: New file.
5956         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5958         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5959         * modules/expm1f: New file.
5960         * tests/test-math-c++.cc: Check the declaration of expm1f.
5961         * doc/posix-functions/expm1f.texi: Mention the new module.
5962
5963 2012-03-06  Bruno Haible  <bruno@clisp.org>
5964
5965         Tests for module 'expm1'.
5966         * modules/expm1-tests: New file.
5967         * tests/test-expm1.c: New file.
5968         * tests/test-expm1.h: New file.
5969
5970         New module 'expm1'.
5971         * lib/math.in.h (expm1): New declaration.
5972         * lib/expm1.c: New file.
5973         * m4/expm1.m4: New file.
5974         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5976         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5977         * modules/expm1: New file.
5978         * tests/test-math-c++.cc: Check the declaration of expm1.
5979         * doc/posix-functions/expm1.texi: Mention the new module.
5980
5981 2012-03-06  Bruno Haible  <bruno@clisp.org>
5982
5983         math: Ensure declarations of math functions.
5984         * modules/acosf (Depends-on): Add 'extensions'.
5985         * modules/asinf (Depends-on): Likewise.
5986         * modules/atan2f (Depends-on): Likewise.
5987         * modules/atanf (Depends-on): Likewise.
5988         * modules/cbrt (Depends-on): Likewise.
5989         * modules/cbrtf (Depends-on): Likewise.
5990         * modules/cbrtl (Depends-on): Likewise.
5991         * modules/copysignf (Depends-on): Likewise.
5992         * modules/copysignl (Depends-on): Likewise.
5993         * modules/cosf (Depends-on): Likewise.
5994         * modules/coshf (Depends-on): Likewise.
5995         * modules/expf (Depends-on): Likewise.
5996         * modules/fabsf (Depends-on): Likewise.
5997         * modules/fabsl (Depends-on): Likewise.
5998         * modules/fmaf (Depends-on): Likewise.
5999         * modules/fmal (Depends-on): Likewise.
6000         * modules/fmodf (Depends-on): Likewise.
6001         * modules/fmodl (Depends-on): Likewise.
6002         * modules/frexpf (Depends-on): Likewise.
6003         * modules/frexpl (Depends-on): Likewise.
6004         * modules/hypot (Depends-on): Likewise.
6005         * modules/hypotf (Depends-on): Likewise.
6006         * modules/hypotl (Depends-on): Likewise.
6007         * modules/ldexpf (Depends-on): Likewise.
6008         * modules/ldexpl (Depends-on): Likewise.
6009         * modules/log10f (Depends-on): Likewise.
6010         * modules/log10l (Depends-on): Likewise.
6011         * modules/log1p (Depends-on): Likewise.
6012         * modules/logb (Depends-on): Likewise.
6013         * modules/logf (Depends-on): Likewise.
6014         * modules/modff (Depends-on): Likewise.
6015         * modules/modfl (Depends-on): Likewise.
6016         * modules/powf (Depends-on): Likewise.
6017         * modules/remainderf (Depends-on): Likewise.
6018         * modules/remainderl (Depends-on): Likewise.
6019         * modules/rintf (Depends-on): Likewise.
6020         * modules/rintl (Depends-on): Likewise.
6021         * modules/sinf (Depends-on): Likewise.
6022         * modules/sinhf (Depends-on): Likewise.
6023         * modules/sqrtf (Depends-on): Likewise.
6024         * modules/tanf (Depends-on): Likewise.
6025         * modules/tanhf (Depends-on): Likewise.
6026         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6027         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6028         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6029         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6030         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6031         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6032         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6033         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6034         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6035         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6036         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6037         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6038         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6039         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6040         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6041         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6042         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6043         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6044         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6045         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6046         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6047         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6048         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6049         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6050         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6051         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6052         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6053         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6054         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6055         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6056         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6057         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6058         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6059         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6060         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6061         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6062         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6063         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6064         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6065         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6066         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6067
6068 2012-03-06  Bruno Haible  <bruno@clisp.org>
6069
6070         math: Update module names in warnings.
6071         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6072         tanl): Use specific module name in warn-on-use warning.
6073
6074 2012-03-06  Bruno Haible  <bruno@clisp.org>
6075
6076         expl: Simplify computation.
6077         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6078
6079 2012-03-05  Bruno Haible  <bruno@clisp.org>
6080
6081         exp* tests: More tests.
6082         * tests/test-exp.h: New file.
6083         * tests/test-exp.c: Include <float.h> and test-exp.h.
6084         (main): Invoke test_function.
6085         * tests/test-expf.c: Include <float.h> and test-exp.h.
6086         (main): Invoke test_function.
6087         * tests/test-expl.c: Include <float.h> and test-exp.h.
6088         (main): Invoke test_function.
6089         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6090         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6091         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6092         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6093         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6094         (Depends-on): Add 'float'.
6095         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6096
6097         expl: Fix precision of computed result.
6098         * lib/expl.c: Completely rewritten.
6099         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6100         (Maintainer): Add me.
6101         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6102
6103 2012-03-05  Bruno Haible  <bruno@clisp.org>
6104
6105         cbrt* tests: More tests.
6106         * tests/test-cbrt.h: New file.
6107         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6108         (main): Invoke test_function.
6109         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6110         (main): Invoke test_function.
6111         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6112         (main): Invoke test_function.
6113         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6114         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6115         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6116         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6117         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6118         (Depends-on): Add 'float'.
6119         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6120
6121 2012-03-05  Bruno Haible  <bruno@clisp.org>
6122
6123         hypot* tests: More tests.
6124         * tests/test-hypot.h: New file, partially extracted from
6125         tests/test-hypotl.c.
6126         * tests/test-hypot.c: Include test-hypot.h.
6127         (main): Invoke test_function.
6128         * tests/test-hypotf.c: Include test-hypot.h.
6129         (main): Invoke test_function.
6130         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6131         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6132         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6133         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6134         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6135         tests/randomf.c.
6136         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6137         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6138         tests/randoml.c.
6139         (Depends-on): Add 'fpucw', 'float'.
6140         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6141
6142 2012-03-05  Bruno Haible  <bruno@clisp.org>
6143
6144         fpucw: Doc about FreeBSD.
6145         * lib/fpucw.h: Mention FreeBSD in comments.
6146
6147 2012-03-04  Bruno Haible  <bruno@clisp.org>
6148
6149         sqrt* tests: More tests.
6150         * tests/test-sqrt.h: New file.
6151         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6152         (main): Invoke test_function.
6153         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6154         (main): Invoke test_function.
6155         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6156         (main): Invoke test_function.
6157         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6158         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6159         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6160         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6161         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6162         (Depends-on): Add 'float'.
6163         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6164
6165 2012-03-04  Bruno Haible  <bruno@clisp.org>
6166
6167         remainder* tests: More tests.
6168         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6169         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6170         (main): Invoke test_function.
6171         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6172         (main): Invoke test_function.
6173         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6174         (main): Invoke test_function.
6175         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6176         tests/randomd.c.
6177         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6178         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6179         tests/randomf.c.
6180         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6181         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6182         tests/randoml.c.
6183         (Depends-on): Add 'float'.
6184         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6185
6186 2012-03-04  Bruno Haible  <bruno@clisp.org>
6187
6188         remainder, remainderf, remainderl: Fix computation for large quotients.
6189         * lib/remainder.c: Completely rewritten.
6190         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6191         USE_FLOAT.
6192         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6193         USE_LONG_DOUBLE.
6194         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6195         isnand, isinf. Remove round, fma.
6196         * modules/remainderf (Files): Add lib/remainder.c.
6197         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6198         Remove roundf, fmaf.
6199         * modules/remainderl (Files): Add lib/remainder.c.
6200         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6201         isinf. Remove roundl, fmal.
6202         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6203         REMAINDER_LIBM.
6204         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6205         REMAINDERF_LIBM.
6206         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6207         REMAINDERL_LIBM.
6208
6209 2012-03-04  Bruno Haible  <bruno@clisp.org>
6210
6211         fmod* tests: More tests.
6212         * tests/test-fmod.h (my_ldexp): New function.
6213         (test_function): Reduce amount of random numbers to test. Add tests
6214         of very large quotients x / y.
6215         * tests/test-fmod.c (MAX_EXP): New macro.
6216         * tests/test-fmodf.c (MAX_EXP): Likewise.
6217         * tests/test-fmodl.c (MAX_EXP): Likewise.
6218
6219 2012-03-04  Bruno Haible  <bruno@clisp.org>
6220
6221         fmod, fmodl: Fix computation for large quotients x / y.
6222         * lib/fmod.c: Completely rewritten.
6223         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6224         USE_LONG_DOUBLE.
6225         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6226         isnand. Remove fma.
6227         * modules/fmodl (Files): Add lib/fmod.c.
6228         (Depends-on): Add float, isfinite, signbit, fabsl,
6229         frexpl, ldexpl, isnanl. Remove fma.
6230         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6231         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6232
6233 2012-03-03  Bruno Haible  <bruno@clisp.org>
6234
6235         fmod* tests: More tests.
6236         * tests/test-fmod.h: New file.
6237         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6238         (main): Invoke test_function.
6239         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6240         (main): Invoke test_function.
6241         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6242         (main): Invoke test_function.
6243         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6244         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6245         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6246         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6247         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6248         (Depends-on): Add 'float'.
6249         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6250
6251 2012-03-03  Bruno Haible  <bruno@clisp.org>
6252
6253         rint* tests: More tests.
6254         * tests/test-rint.h: New file, partially extracted from
6255         tests/test-rintl.c.
6256         * tests/test-rint.c: Include test-rint.h.
6257         (main): Invoke test_function.
6258         * tests/test-rintf.c: Include test-rint.h.
6259         (main): Invoke test_function.
6260         * tests/test-rintl.c: Include test-rint.h.
6261         (main): Invoke test_function.
6262         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6263         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6264         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6265         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6266         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6267         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6268
6269 2012-03-03  Bruno Haible  <bruno@clisp.org>
6270
6271         modf* tests: More tests.
6272         * tests/test-modf.h: New file.
6273         * tests/test-modf.c: Include <float.h> and test-modf.h.
6274         (main): Invoke test_function.
6275         * tests/test-modff.c: Include <float.h> and test-modf.h.
6276         (main): Invoke test_function.
6277         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6278         (main): Invoke test_function.
6279         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6280         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6281         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6282         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6283         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6284         (Depends-on): Add 'float'.
6285         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6286
6287 2012-03-03  Bruno Haible  <bruno@clisp.org>
6288
6289         fabs* tests: More tests.
6290         * tests/test-fabs.h: New file, partially extracted from
6291         tests/test-fabsl.c.
6292         * tests/test-fabs.c (RANDOM): New macro.
6293         * tests/test-fabsf.c (RANDOM): New macro.
6294         * tests/test-fabsl.c (RANDOM): New macro.
6295         * modules/fabs-tests (Files): Add tests/randomd.c.
6296         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6297         * modules/fabsf-tests (Files): Add tests/randomf.c.
6298         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6299         * modules/fabsl-tests (Files): Add tests/randoml.c.
6300         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6301
6302 2012-03-03  Bruno Haible  <bruno@clisp.org>
6303
6304         ldexp* tests: More tests.
6305         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6306         * tests/test-ldexp.c (RANDOM): New macro.
6307         * tests/test-ldexpf.c (RANDOM): New macro.
6308         * tests/test-ldexpl.c (RANDOM): New macro.
6309         * modules/ldexp-tests (Files): Add tests/randomd.c.
6310         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6311         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6312         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6313         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6314         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6315
6316 2012-03-03  Bruno Haible  <bruno@clisp.org>
6317
6318         frexp* tests: More tests.
6319         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6320         * tests/test-frexp.c (RANDOM): New macro.
6321         * tests/test-frexpf.c (RANDOM): New macro.
6322         * tests/test-frexpl.c (RANDOM): New macro.
6323         * modules/frexp-tests (Files): Add tests/randomd.c.
6324         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6325         * modules/frexpf-tests (Files): Add tests/randomf.c.
6326         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6327         * modules/frexpl-tests (Files): Add tests/randoml.c.
6328         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6329
6330 2012-03-03  Bruno Haible  <bruno@clisp.org>
6331
6332         Support for pseudo-random numbers in tests.
6333         * tests/randomf.c: New file.
6334         * tests/randomd.c: New file.
6335         * tests/randoml.c: New file.
6336         * tests/macros.h (randomf, randomd, randoml): New declarations.
6337
6338 2012-03-03  Bruno Haible  <bruno@clisp.org>
6339
6340         frexp* tests: Refactor.
6341         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6342         * tests/test-frexp.c: Include and use it.
6343         * tests/test-frexpf.c: Likewise.
6344         * tests/test-frexpl.c: Likewise.
6345         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6346         * modules/frexpf-tests (Files): Likewise.
6347         * modules/frexpl-tests (Files): Likewise.
6348
6349 2012-03-02  Jim Meyering  <meyering@redhat.com>
6350
6351         maint: don't specify XZ_OPT=-9ev in dist-related rule
6352         Using xz's -9 option is warranted only if you have a very large
6353         tarball (see xz's documentation for the sizes vs. presets), and
6354         requires 64MiB of memory at decompression time.
6355         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6356         Automake's default of just "-e" is fine.  Override on a
6357         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6358
6359 2012-03-01  Eric Blake  <eblake@redhat.com>
6360
6361         maint.mk: allow announcement for non-gnulib project
6362         * maint.mk (announcement): Skip gnulib version if not used.
6363
6364 2012-03-01  Jim Meyering  <meyering@redhat.com>
6365
6366         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6367         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6368         envvar settings cannot interfere.  Otherwise, setting envvars like
6369         prohibit=foo require=bar, etc. would cause spurious test failures.
6370
6371 2012-03-01  Eric Blake  <eblake@redhat.com>
6372
6373         maint.mk: add per-line exclusions to prohibitions
6374         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6375         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6376         (sc_const_long_option): Use it.
6377
6378 2012-03-01  Bruno Haible  <bruno@clisp.org>
6379
6380         Tests for module 'expl-ieee'.
6381         * modules/expl-ieee-tests: New file.
6382         * tests/test-expl-ieee.c: New file.
6383
6384         New module 'expl-ieee'.
6385         * modules/expl-ieee: New file.
6386
6387         Tests for module 'exp-ieee'.
6388         * modules/exp-ieee-tests: New file.
6389         * tests/test-exp-ieee.c: New file.
6390
6391         New module 'exp-ieee'.
6392         * modules/exp-ieee: New file.
6393
6394         Tests for module 'expf-ieee'.
6395         * modules/expf-ieee-tests: New file.
6396         * tests/test-expf-ieee.c: New file.
6397         * tests/test-exp-ieee.h: New file.
6398
6399         New module 'expf-ieee'.
6400         * modules/expf-ieee: New file.
6401
6402 2012-02-29  Bruno Haible  <bruno@clisp.org>
6403
6404         cbrtl-ieee: Work around test failure on IRIX 6.5.
6405         * m4/cbrtl-ieee.m4: New file.
6406         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6407         test whether cbrtl works with a minus zero argument. Replace it if not.
6408         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6410         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6411         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6412         (Depends-on): Update conditions.
6413         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6414         m4/signbit.m4.
6415         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6416         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6417         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6418
6419         Tests for module 'cbrtl-ieee'.
6420         * modules/cbrtl-ieee-tests: New file.
6421         * tests/test-cbrtl-ieee.c: New file.
6422
6423         New module 'cbrtl-ieee'.
6424         * modules/cbrtl-ieee: New file.
6425
6426         Tests for module 'cbrt-ieee'.
6427         * modules/cbrt-ieee-tests: New file.
6428         * tests/test-cbrt-ieee.c: New file.
6429
6430         New module 'cbrt-ieee'.
6431         * modules/cbrt-ieee: New file.
6432
6433         Tests for module 'cbrtf-ieee'.
6434         * modules/cbrtf-ieee-tests: New file.
6435         * tests/test-cbrtf-ieee.c: New file.
6436         * tests/test-cbrt-ieee.h: New file.
6437
6438         New module 'cbrtf-ieee'.
6439         * modules/cbrtf-ieee: New file.
6440
6441 2012-02-29  Bruno Haible  <bruno@clisp.org>
6442
6443         cbrtf: Work around bug in IRIX 6.5 system function.
6444         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6445         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6446         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6447         work.
6448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6449         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6450         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6451         (Depends-on): Update conditions.
6452         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6453
6454 2012-02-29  Bruno Haible  <bruno@clisp.org>
6455
6456         Tests for module 'cbrtl'.
6457         * modules/cbrtl-tests: New file.
6458         * tests/test-cbrtl.c: New file.
6459
6460         New module 'cbrtl'.
6461         * lib/math.in.h (cbrtl): New declaration.
6462         * lib/cbrtl.c: New file.
6463         * m4/cbrtl.m4: New file.
6464         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6466         HAVE_DECL_CBRTL.
6467         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6468         HAVE_DECL_CBRTL.
6469         * modules/cbrtl: New file.
6470         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6471         * doc/posix-functions/cbrtl.texi: Mention the new module.
6472
6473 2012-02-29  Bruno Haible  <bruno@clisp.org>
6474
6475         Tests for module 'cbrtf'.
6476         * modules/cbrtf-tests: New file.
6477         * tests/test-cbrtf.c: New file.
6478
6479         New module 'cbrtf'.
6480         * lib/math.in.h (cbrtf): New declaration.
6481         * lib/cbrtf.c: New file.
6482         * m4/cbrtf.m4: New file.
6483         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6485         HAVE_DECL_CBRTF.
6486         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6487         HAVE_DECL_CBRTF.
6488         * modules/cbrtf: New file.
6489         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6490         * doc/posix-functions/cbrtf.texi: Mention the new module.
6491
6492 2012-02-29  Bruno Haible  <bruno@clisp.org>
6493
6494         cbrt: Provide replacement on MSVC and Minix.
6495         * lib/math.in.h (cbrt): New declaration.
6496         * lib/cbrt.c: New file.
6497         * m4/cbrt.m4: New file.
6498         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6500         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6501         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6502         (Depends-on): Add dependencies.
6503         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6504         * tests/test-math-c++.cc: Check the declaration of cbrt.
6505         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6506         replacement.
6507
6508 2012-02-29  Bruno Haible  <bruno@clisp.org>
6509
6510         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6511         * m4/hypotl-ieee.m4: New file.
6512         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6513         test whether hypotl works with mixed NaN and Infinity arguments.
6514         Replace it if not.
6515         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6517         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6518         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6519         (Depends-on): Update conditions.
6520         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6521         (Depends-on): Add hypot-ieee.
6522         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6523         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6524
6525         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6526         * m4/hypotf-ieee.m4: New file.
6527         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6528         test whether hypotf works with mixed NaN and Infinity arguments.
6529         Replace it if not.
6530         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6531         (Depends-on): Add hypot-ieee.
6532         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6533         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6534
6535         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6536         * lib/math.in.h (hypot): New declaration.
6537         * lib/hypot.c: New file.
6538         * m4/hypot-ieee.m4: New file.
6539         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6540         whether hypot works with mixed NaN and Infinity arguments. Replace it
6541         if not.
6542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6543         REPLACE_HYPOT.
6544         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6545         * modules/hypot (Files): Add lib/hypot.c.
6546         (Depends-on): Add dependencies.
6547         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6548         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6549         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6550         * tests/test-math-c++.cc: Check the declaration of hypot.
6551         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6552
6553         Tests for module 'hypotl-ieee'.
6554         * modules/hypotl-ieee-tests: New file.
6555         * tests/test-hypotl-ieee.c: New file.
6556
6557         New module 'hypotl-ieee'.
6558         * modules/hypotl-ieee: New file.
6559
6560         Tests for module 'hypot-ieee'.
6561         * modules/hypot-ieee-tests: New file.
6562         * tests/test-hypot-ieee.c: New file.
6563
6564         New module 'hypot-ieee'.
6565         * modules/hypot-ieee: New file.
6566
6567         Tests for module 'hypotf-ieee'.
6568         * modules/hypotf-ieee-tests: New file.
6569         * tests/test-hypotf-ieee.c: New file.
6570         * tests/test-hypot-ieee.h: New file.
6571
6572         New module 'hypotf-ieee'.
6573         * modules/hypotf-ieee: New file.
6574
6575 2012-02-29  Bruno Haible  <bruno@clisp.org>
6576
6577         Remove unused variables.
6578         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6579         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6580         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6581         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6582
6583 2012-02-29  Eric Blake  <eblake@redhat.com>
6584
6585         termios: fix pid_t always, not just for tcgetsid
6586         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6587         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6588         just when building tcgetsid.
6589
6590 2012-02-29  Bruno Haible  <bruno@clisp.org>
6591
6592         Tests for module 'hypotl'.
6593         * modules/hypotl-tests: New file.
6594         * tests/test-hypotl.c: New file.
6595
6596         New module 'hypotl'.
6597         * lib/math.in.h (hypotl): New declaration.
6598         * lib/hypotl.c: New file.
6599         * m4/hypotl.m4: New file.
6600         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6602         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6603         * modules/hypotl: New file.
6604         * tests/test-math-c++.cc: Check the hypotl declaration.
6605         * doc/posix-functions/hypotl.texi: Mention the new module.
6606
6607 2012-02-29  Eric Blake  <eblake@redhat.com>
6608
6609         tcgetsid: fix cygwin header bug
6610         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6611
6612         docs: update cygwin progress
6613         * doc/posix-functions/llround.texi (llround): Added in cygwin
6614         1.7.8.
6615         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6616         * doc/glibc-functions/program_invocation_name.texi
6617         (program_invocation_name): Likewise.
6618         * doc/glibc-functions/program_invocation_short_name.texi
6619         (program_invocation_short_name): Likewise.
6620         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6621         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6622         Likewise.
6623         * doc/posix-functions/pthread_spin_destroy.texi
6624         (pthread_spin_destroy): Added in cygwin 1.7.10.
6625         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6626         Likewise.
6627         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6628         Likewise.
6629         * doc/posix-functions/pthread_spin_trylock.texi
6630         (pthread_spin_trylock): Likewise.
6631         * doc/posix-functions/pthread_spin_unlock.texi
6632         (pthread_spin_unlock): Likewise.
6633         * doc/posix-functions/pthread_setschedprio.texi
6634         (pthread_setschedprio): Likewise.
6635         * doc/posix-functions/pthread_attr_getstack.texi
6636         (pthread_attr_getstack): Likewise.
6637         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6638         (pthread_attr_getstackaddr): Likewise.
6639         * doc/glibc-functions/pthread_getattr_np.texi
6640         (pthread_getattr_np): Likewise.
6641         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6642         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6643         * doc/posix-functions/clock_settime.texi (clock_settime):
6644         Likewise.
6645         * doc/posix-functions/pthread_attr_getguardsize.texi
6646         (pthread_attr_getguardsize): Likewise.
6647         * doc/posix-functions/pthread_attr_setguardsize.texi
6648         (pthread_attr_setguardsize): Likewise.
6649         * doc/posix-functions/pthread_attr_setstack.texi
6650         (pthread_attr_setstack): Likewise.
6651         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6652         (pthread_attr_setstackaddr): Likewise.
6653         * doc/posix-functions/clock_getcpuclockid.texi
6654         (clock_getcpuclockid): Likewise.
6655         * doc/posix-functions/pthread_getcpuclockid.texi
6656         (pthread_getcpuclockid): Likewise.
6657         * doc/glibc-functions/error.texi (error): Likewise.
6658         * doc/glibc-functions/error_at_line.texi (error_at_line):
6659         Likewise.
6660         * doc/glibc-functions/error_message_count.texi
6661         (error_message_count): Likewise.
6662         * doc/glibc-functions/error_one_per_line.texi
6663         (error_one_per_line): Likewise.
6664         * doc/glibc-functions/error_print_progname.texi
6665         (error_print_progname): Likewise.
6666         * doc/posix-functions/pthread_condattr_getclock.texi
6667         (pthread_condattr_getclock): Likewise.
6668         * doc/posix-functions/pthread_condattr_setclock.texi
6669         (pthread_condattr_setclock): Likewise.
6670         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6671         Likewise.
6672         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6673         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6674         * doc/glibc-functions/get_current_dir_name.texi
6675         (get_current_dir_name): Likewise.
6676         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6677         Likewise.
6678         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6679         wrong return type.
6680         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6681         1.7.11.
6682
6683 2012-02-29  Bruno Haible  <bruno@clisp.org>
6684
6685         Tests for module 'hypotf'.
6686         * modules/hypotf-tests: New file.
6687         * tests/test-hypotf.c: New file.
6688
6689         New module 'hypotf'.
6690         * lib/math.in.h (hypotf): New declaration.
6691         * lib/hypotf.c: New file.
6692         * m4/hypotf.m4: New file.
6693         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6695         REPLACE_HYPOTF.
6696         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6697         REPLACE_HYPOTF.
6698         * modules/hypotf: New file.
6699         * tests/test-math-c++.cc: Check the hypotf declaration.
6700         * doc/posix-functions/hypotf.texi: Mention the new module.
6701
6702         hypot: Prepare for hypotf module.
6703         * m4/hypot.m4: New file.
6704         * modules/hypot (Files): Add m4/hypot.m4.
6705         (configure.ac): Invoke gl_FUNC_HYPOT.
6706
6707 2012-02-29  Bruno Haible  <bruno@clisp.org>
6708
6709         hypot tests: More tests.
6710         * tests/test-hypot.c: Include <float.h>.
6711         (main): Add tests about overflow and underflow.
6712
6713 2012-02-29  Bruno Haible  <bruno@clisp.org>
6714
6715         math code: Add comments.
6716         * lib/acosl.c: Add comment about related glibc source files.
6717         * lib/asinl.c: Likewise.
6718         * lib/atanl.c: Likewise.
6719         * lib/expl.c: Likewise.
6720         * lib/logl.c: Likewise.
6721         * lib/sincosl.c: Likewise.
6722         * lib/sinl.c: Likewise.
6723         * lib/tanl.c: Likewise.
6724         * lib/trigl.c: Likewise.
6725         * lib/cosl.c: Likewise. Fix comments.
6726
6727 2012-02-28  Bruno Haible  <bruno@clisp.org>
6728
6729         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6730         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6731         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6732         HUGE_VALL are defined.
6733         (numeric_equald): Renamed from numeric_equal.
6734         (numeric_equalf, numeric_equall): New functions.
6735         (main): Check also HUGE_VALF, HUGE_VALL.
6736         * modules/math-tests (Files): Add tests/macros.h.
6737         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6738         HUGE_VALL.
6739
6740 2012-02-28  Bruno Haible  <bruno@clisp.org>
6741
6742         doc: Move ISO C11 feature notes into POSIX chapters.
6743         * doc/posix-functions/aligned_alloc.texi: Renamed from
6744         doc/glibc-functions/aligned_alloc.texi.
6745         * doc/posix-functions/quick_exit.texi: Renamed from
6746         doc/glibc-functions/quick_exit.texi.
6747         * doc/posix-headers/uchar.texi: Renamed from
6748         doc/glibc-headers/uchar.texi.
6749         * doc/posix-functions/c16rtomb.texi: Renamed from
6750         doc/glibc-functions/c16rtomb.texi.
6751         * doc/posix-functions/c32rtomb.texi: Renamed from
6752         doc/glibc-functions/c32rtomb.texi.
6753         * doc/posix-functions/mbrtoc16.texi: Renamed from
6754         doc/glibc-functions/mbrtoc16.texi.
6755         * doc/posix-functions/mbrtoc32.texi: Renamed from
6756         doc/glibc-functions/mbrtoc32.texi.
6757         * doc/gnulib.texi: Update.
6758         (Glibc uchar.h): Remove section.
6759         Suggested by Eric Blake.
6760
6761 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6762
6763         stdnoreturn: port to MSVC better
6764         MSVC standard headers use __declspec(noreturn), so #define noreturn
6765         to empty on that platform.  Reported by Bruno Haible in
6766         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6767         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6768         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6769
6770 2012-02-28  Bruno Haible  <bruno@clisp.org>
6771
6772         doc: Mention new glibc headers and functions.
6773         * doc/glibc-headers/uchar.texi: New file.
6774         * doc/glibc-functions/aligned_alloc.texi: New file.
6775         * doc/glibc-functions/c16rtomb.texi: New file.
6776         * doc/glibc-functions/c32rtomb.texi: New file.
6777         * doc/glibc-functions/clock_adjtime.texi: New file.
6778         * doc/glibc-functions/fanotify_init.texi: New file.
6779         * doc/glibc-functions/fanotify_mark.texi: New file.
6780         * doc/glibc-functions/inet6_opt_append.texi: New file.
6781         * doc/glibc-functions/inet6_opt_find.texi: New file.
6782         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6783         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6784         * doc/glibc-functions/inet6_opt_init.texi: New file.
6785         * doc/glibc-functions/inet6_opt_next.texi: New file.
6786         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6787         * doc/glibc-functions/inet6_rth_add.texi: New file.
6788         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6789         * doc/glibc-functions/inet6_rth_init.texi: New file.
6790         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6791         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6792         * doc/glibc-functions/inet6_rth_space.texi: New file.
6793         * doc/glibc-functions/login.texi: New file.
6794         * doc/glibc-functions/mbrtoc16.texi: New file.
6795         * doc/glibc-functions/mbrtoc32.texi: New file.
6796         * doc/glibc-functions/name_to_handle_at.texi: New file.
6797         * doc/glibc-functions/ntp_gettimex.texi: New file.
6798         * doc/glibc-functions/open_by_handle_at.texi: New file.
6799         * doc/glibc-functions/prlimit.texi: New file.
6800         * doc/glibc-functions/process_vm_readv.texi: New file.
6801         * doc/glibc-functions/process_vm_writev.texi: New file.
6802         * doc/glibc-functions/recvmmsg.texi: New file.
6803         * doc/glibc-functions/scandirat.texi: New file.
6804         * doc/glibc-functions/sendmmsg.texi: New file.
6805         * doc/glibc-functions/setns.texi: New file.
6806         * doc/glibc-functions/timespec_get.texi: New file.
6807         * doc/gnulib.texi: Include them.
6808         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6809         sections.
6810         Reported by Eric Blake.
6811
6812 2012-02-28  Bruno Haible  <bruno@clisp.org>
6813
6814         Avoid compilation errors with MSVC option -fp:strict.
6815         * lib/floor.c: Use MSVC specific pragma fenv_access.
6816         * lib/ceil.c: Likewise.
6817         * lib/trunc.c: Likewise.
6818         * lib/round.c: Likewise.
6819         * lib/rint.c: Likewise.
6820         * lib/fma.c: Likewise.
6821         * lib/integer_length.c: Likewise.
6822         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6823         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6824         * tests/test-floor2.c: Likewise.
6825         * tests/test-floorf2.c: Likewise.
6826         * tests/test-ceil2.c: Likewise.
6827         * tests/test-ceilf2.c: Likewise.
6828         * tests/test-trunc2.c: Likewise.
6829         * tests/test-truncf2.c: Likewise.
6830         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6831
6832 2012-02-27  Bruno Haible  <bruno@clisp.org>
6833
6834         Tests for module 'sqrtl-ieee'.
6835         * modules/sqrtl-ieee-tests: New file.
6836         * tests/test-sqrtl-ieee.c: New file.
6837
6838         New module 'sqrtl-ieee'.
6839         * modules/sqrtl-ieee: New file.
6840
6841         Tests for module 'sqrt-ieee'.
6842         * modules/sqrt-ieee-tests: New file.
6843         * tests/test-sqrt-ieee.c: New file.
6844
6845         New module 'sqrt-ieee'.
6846         * modules/sqrt-ieee: New file.
6847
6848         Tests for module 'sqrtf-ieee'.
6849         * modules/sqrtf-ieee-tests: New file.
6850         * tests/test-sqrtf-ieee.c: New file.
6851         * tests/test-sqrt-ieee.h: New file.
6852
6853         New module 'sqrtf-ieee'.
6854         * modules/sqrtf-ieee: New file.
6855
6856 2012-02-27  Bruno Haible  <bruno@clisp.org>
6857
6858         remainderl-ieee: Work around test failure on OSF/1.
6859         * m4/remainderl-ieee.m4: New file.
6860         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6861         present, test whether remainderl works with a zero second argument.
6862         Replace it if not.
6863         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6865         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6866         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6867         (Depends-on): Update conditions.
6868         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6869         (Depends-on): Add remainder-ieee.
6870         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6871         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6872         module.
6873
6874         remainderf-ieee: Work around test failure on OSF/1.
6875         * m4/remainderf-ieee.m4: New file.
6876         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6877         present, test whether remainderf works with a zero second argument.
6878         Replace it if not.
6879         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6881         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6882         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6883         (Depends-on): Update conditions.
6884         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6885         (Depends-on): Add remainder-ieee.
6886         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6887         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6888         module.
6889
6890         remainder-ieee: Work around test failure on OSF/1.
6891         * m4/remainder-ieee.m4: New file.
6892         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6893         present, test whether remainder works with a zero second argument.
6894         Replace it if not.
6895         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6897         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6898         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6899         (Depends-on): Update dependencies.
6900         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6901         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6902         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6903
6904         Tests for module 'remainderl-ieee'.
6905         * modules/remainderl-ieee-tests: New file.
6906         * tests/test-remainderl-ieee.c: New file.
6907
6908         New module 'remainderl-ieee'.
6909         * modules/remainderl-ieee: New file.
6910
6911         Tests for module 'remainder-ieee'.
6912         * modules/remainder-ieee-tests: New file.
6913         * tests/test-remainder-ieee.c: New file.
6914
6915         New module 'remainder-ieee'.
6916         * modules/remainder-ieee: New file.
6917
6918         Tests for module 'remainderf-ieee'.
6919         * modules/remainderf-ieee-tests: New file.
6920         * tests/test-remainderf-ieee.c: New file.
6921         * tests/test-remainder-ieee.h: New file.
6922
6923         New module 'remainderf-ieee'.
6924         * modules/remainderf-ieee: New file.
6925
6926 2012-02-27  Bruno Haible  <bruno@clisp.org>
6927
6928         modff, modfl: Fix configure syntax error.
6929         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6930         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6931
6932 2012-02-27  Bruno Haible  <bruno@clisp.org>
6933
6934         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6935         * m4/fmodl-ieee.m4: New file.
6936         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6937         whether fmodl works with zero arguments. Replace it if not.
6938         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6939         (Depends-on): Add fmod-ieee.
6940         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6941         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6942
6943         fmodf-ieee: Work around test failure on OSF/1.
6944         * m4/fmodf-ieee.m4: New file.
6945         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6946         whether fmodf works with zero arguments. Replace it if not.
6947         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6949         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6950         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6951         (Depends-on): Update dependencies.
6952         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6953         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6954         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6955
6956         fmodf-ieee: Work around test failure on MSVC 9.
6957         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6958         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6959
6960         fmod-ieee: Work around test failures on OSF/1, mingw.
6961         * m4/fmod-ieee.m4: New file.
6962         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6963         whether fmod works with zero arguments. Replace it if not.
6964         * lib/math.in.h (fmod): New declaration.
6965         * lib/fmod.c: New file.
6966         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6968         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6969         * modules/fmod (Files): Add lib/fmod.c.
6970         (Depends-on): Add math, isinf, trunc, fma.
6971         (configure.ac): Arrange to compile lib/fmod.c if needed.
6972         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6973         m4/signbit.m4.
6974         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6975         * tests/test-math-c++.cc: Check the declaration of fmod.
6976         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6977
6978         fmodl-ieee: Fix test failures.
6979         * lib/fmodl.c (fmodl): Treat Inf specially.
6980         * modules/fmodl (Depends-on): Add isinf.
6981
6982         Tests for module 'fmodl-ieee'.
6983         * modules/fmodl-ieee-tests: New file.
6984         * tests/test-fmodl-ieee.c: New file.
6985
6986         New module 'fmodl-ieee'.
6987         * modules/fmodl-ieee: New file.
6988
6989         Tests for module 'fmod-ieee'.
6990         * modules/fmod-ieee-tests: New file.
6991         * tests/test-fmod-ieee.c: New file.
6992
6993         New module 'fmod-ieee'.
6994         * modules/fmod-ieee: New file.
6995
6996         Tests for module 'fmodf-ieee'.
6997         * modules/fmodf-ieee-tests: New file.
6998         * tests/test-fmodf-ieee.c: New file.
6999         * tests/test-fmod-ieee.h: New file.
7000
7001         New module 'fmodf-ieee'.
7002         * modules/fmodf-ieee: New file.
7003
7004 2012-02-27  Bruno Haible  <bruno@clisp.org>
7005
7006         Tests for module 'rintl-ieee'.
7007         * modules/rintl-ieee-tests: New file.
7008         * tests/test-rintl-ieee.c: New file.
7009
7010         New module 'rintl-ieee'.
7011         * modules/rintl-ieee: New file.
7012
7013         Tests for module 'rint-ieee'.
7014         * modules/rint-ieee-tests: New file.
7015         * tests/test-rint-ieee.c: New file.
7016
7017         New module 'rint-ieee'.
7018         * modules/rint-ieee: New file.
7019
7020         Tests for module 'rintf-ieee'.
7021         * modules/rintf-ieee-tests: New file.
7022         * tests/test-rintf-ieee.c: New file.
7023         * tests/test-rint-ieee.h: New file.
7024
7025         New module 'rintf-ieee'.
7026         * modules/rintf-ieee: New file.
7027
7028 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7029
7030         regex: re_search etc. should return -2 when memory exhausted
7031         This bug was uncovered when testing 'grep'.  Without the fix,
7032         re_search and friends return -1 when memory is exhausted, but -1
7033         means no match, and this causes grep to falsely report no-match
7034         instead of memory-exhaustion.  See
7035         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7036         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7037         trouble; this can occur if re_search_internal ran out of memory.
7038
7039 2012-02-26  Bruno Haible  <bruno@clisp.org>
7040
7041         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7042         * m4/modfl-ieee.m4: New file.
7043         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7044         whether modfl works with Inf. Replace it if not.
7045         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7047         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7048         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7049         (Depends-on): Update dependencies.
7050         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7051         m4/signbit.m4.
7052         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7053         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7054
7055         modfl-ieee: Fix dependencies.
7056         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7057
7058         modfl-ieee: Fix test failures.
7059         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7060         * modules/modfl (Depends-on): Add isfinite, isinf.
7061
7062         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7063         * m4/modff-ieee.m4: New file.
7064         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7065         whether modff works with NaN and Inf. Replace it if not.
7066         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7068         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7069         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7070         (Depends-on): Update dependencies.
7071         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7072         m4/signbit.m4.
7073         (Depends-on): Add modf-ieee.
7074         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7075         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7076
7077         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7078         * m4/modf-ieee.m4: New file.
7079         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7080         whether modf works with NaN and Inf. Replace it if not.
7081         * lib/math.in.h (modf): New declaration.
7082         * lib/modf.c: New file.
7083         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7084         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7085         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7086         * modules/modf (Files): Add lib/modf.c.
7087         (Depends-on): Add math, isfinite, trunc, isinf.
7088         (configure.ac): Addrange to compile lib/modf.c if needed.
7089         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7090         m4/signbit.m4.
7091         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7092         * tests/test-math-c++.cc: Check the declaration of modf.
7093         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7094
7095         Tests for module 'modfl-ieee'.
7096         * modules/modfl-ieee-tests: New file.
7097         * tests/test-modfl-ieee.c: New file.
7098
7099         New module 'modfl-ieee'.
7100         * modules/modfl-ieee: New file.
7101
7102         Tests for module 'modf-ieee'.
7103         * modules/modf-ieee-tests: New file.
7104         * tests/test-modf-ieee.c: New file.
7105
7106         New module 'modf-ieee'.
7107         * modules/modf-ieee: New file.
7108
7109         Tests for module 'modff-ieee'.
7110         * modules/modff-ieee-tests: New file.
7111         * tests/test-modff-ieee.c: New file.
7112         * tests/test-modf-ieee.h: New file.
7113
7114         New module 'modff-ieee'.
7115         * modules/modff-ieee: New file.
7116
7117 2012-02-26  Bruno Haible  <bruno@clisp.org>
7118
7119         Tests for module 'fabsl-ieee'.
7120         * modules/fabsl-ieee-tests: New file.
7121         * tests/test-fabsl-ieee.c: New file.
7122
7123         New module 'fabsl-ieee'.
7124         * modules/fabsl-ieee: New file.
7125
7126         Tests for module 'fabs-ieee'.
7127         * modules/fabs-ieee-tests: New file.
7128         * tests/test-fabs-ieee.c: New file.
7129
7130         New module 'fabs-ieee'.
7131         * modules/fabs-ieee: New file.
7132
7133         Tests for module 'fabsf-ieee'.
7134         * modules/fabsf-ieee-tests: New file.
7135         * tests/test-fabsf-ieee.c: New file.
7136         * tests/test-fabs-ieee.h: New file.
7137
7138         New module 'fabsf-ieee'.
7139         * modules/fabsf-ieee: New file.
7140
7141 2012-02-26  Bruno Haible  <bruno@clisp.org>
7142
7143         Tests for module 'fmal-ieee'.
7144         * modules/fmal-ieee-tests: New file.
7145         * tests/test-fmal-ieee.c: New file.
7146
7147         New module 'fmal-ieee'.
7148         * modules/fmal-ieee: New file.
7149
7150         Tests for module 'fma-ieee'.
7151         * modules/fma-ieee-tests: New file.
7152         * tests/test-fma-ieee.c: New file.
7153
7154         New module 'fma-ieee'.
7155         * modules/fma-ieee: New file.
7156
7157         Tests for module 'fmaf-ieee'.
7158         * modules/fmaf-ieee-tests: New file.
7159         * tests/test-fmaf-ieee.c: New file.
7160         * tests/test-fma-ieee.h: New file.
7161
7162         New module 'fmaf-ieee'.
7163         * modules/fmaf-ieee: New file.
7164
7165 2012-02-26  Bruno Haible  <bruno@clisp.org>
7166
7167         Tests for module 'ldexpl-ieee'.
7168         * modules/ldexpl-ieee-tests: New file.
7169         * tests/test-ldexpl-ieee.c: New file.
7170
7171         New module 'ldexpl-ieee'.
7172         * modules/ldexpl-ieee: New file.
7173
7174         Tests for module 'ldexp-ieee'.
7175         * modules/ldexp-ieee-tests: New file.
7176         * tests/test-ldexp-ieee.c: New file.
7177
7178         New module 'ldexp-ieee'.
7179         * modules/ldexp-ieee: New file.
7180
7181         Tests for module 'ldexpf-ieee'.
7182         * modules/ldexpf-ieee-tests: New file.
7183         * tests/test-ldexpf-ieee.c: New file.
7184         * tests/test-ldexp-ieee.h: New file.
7185
7186         New module 'ldexpf-ieee'.
7187         * modules/ldexpf-ieee: New file.
7188
7189 2012-02-26  Bruno Haible  <bruno@clisp.org>
7190
7191         Refactor frexp*-ieee tests.
7192         * tests/test-frexp-ieee.h: New file.
7193         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7194         (main): Just call test_function.
7195         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7196         (main): Just call test_function.
7197         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7198         (main): Just call test_function.
7199         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7200         * modules/frexp-ieee-tests (Files): Likewise.
7201         * modules/frexpl-ieee-tests (Files): Likewise.
7202
7203         Tests for module 'frexpl-ieee'.
7204         * modules/frexpl-ieee-tests: New file.
7205         * tests/test-frexpl-ieee.c: New file.
7206
7207         New module 'frexpl-ieee'.
7208         * modules/frexpl-ieee: New file.
7209
7210         Tests for module 'frexp-ieee'.
7211         * modules/frexp-ieee-tests: New file.
7212         * tests/test-frexp-ieee.c: New file.
7213
7214         New module 'frexp-ieee'.
7215         * modules/frexp-ieee: New file.
7216
7217         Tests for module 'frexpf-ieee'.
7218         * modules/frexpf-ieee-tests: New file.
7219         * tests/test-frexpf-ieee.c: New file.
7220
7221         New module 'frexpf-ieee'.
7222         * modules/frexpf-ieee: New file.
7223
7224 2012-02-26  Bruno Haible  <bruno@clisp.org>
7225
7226         roundl-ieee tests: More tests.
7227         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7228         (main): Add tests for [MX] shaded specification in POSIX.
7229         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7230         (Depends-on): Add isnanl-nolibm.
7231
7232         round-ieee tests: More tests.
7233         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7234         (main): Add tests for [MX] shaded specification in POSIX.
7235         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7236         (Depends-on): Add isnand-nolibm.
7237
7238         roundf-ieee tests: More tests.
7239         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7240         (main): Add tests for [MX] shaded specification in POSIX.
7241         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7242         (Depends-on): Add isnanf-nolibm.
7243
7244         truncl-ieee tests: More tests.
7245         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7246         (main): Add tests for [MX] shaded specification in POSIX.
7247         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7248         (Depends-on): Add isnanl-nolibm.
7249
7250         trunc-ieee tests: More tests.
7251         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7252         (main): Add tests for [MX] shaded specification in POSIX.
7253         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7254         (Depends-on): Add isnand-nolibm.
7255
7256         truncf-ieee tests: More tests.
7257         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7258         (main): Add tests for [MX] shaded specification in POSIX.
7259         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7260         (Depends-on): Add isnanf-nolibm.
7261
7262         ceill-ieee tests: More tests.
7263         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7264         (main): Add tests for [MX] shaded specification in POSIX.
7265         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7266         (Depends-on): Add isnanl-nolibm.
7267
7268         ceil-ieee tests: More tests.
7269         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7270         (main): Add tests for [MX] shaded specification in POSIX.
7271         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7272         (Depends-on): Add isnand-nolibm.
7273
7274         ceilf-ieee tests: More tests.
7275         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7276         (main): Add tests for [MX] shaded specification in POSIX.
7277         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7278         (Depends-on): Add isnanf-nolibm.
7279
7280         floorl-ieee tests: More tests.
7281         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7282         (main): Add tests for [MX] shaded specification in POSIX.
7283         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7284         (Depends-on): Add isnanl-nolibm.
7285
7286         floor-ieee tests: More tests.
7287         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7288         (main): Add tests for [MX] shaded specification in POSIX.
7289         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7290         (Depends-on): Add isnand-nolibm.
7291
7292         floorf-ieee tests: More tests.
7293         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7294         (main): Add tests for [MX] shaded specification in POSIX.
7295         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7296         (Depends-on): Add isnanf-nolibm.
7297
7298 2012-02-26  Bruno Haible  <bruno@clisp.org>
7299
7300         fpieee: More comments.
7301         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7302
7303 2012-02-25  Bruno Haible  <bruno@clisp.org>
7304
7305         Tests for module 'log10l'.
7306         * modules/log10l-tests: New file.
7307         * tests/test-log10l.c: New file.
7308         * tests/test-math-c++.cc: Check the declaration of log10l.
7309
7310         New module 'log10l'.
7311         * lib/math.in.h (log10l): New declaration.
7312         * lib/log10l.c: New file.
7313         * m4/log10l.m4: New file.
7314         * modules/log10l: New file.
7315         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7317         HAVE_DECL_LOG10L.
7318         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7319         HAVE_DECL_LOG10L.
7320         * doc/posix-functions/log10l.texi: Mention the new module.
7321
7322 2012-02-25  Bruno Haible  <bruno@clisp.org>
7323
7324         fmodl, remainder*: Avoid wrong results due to rounding errors.
7325         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7326         expected bounds.
7327         * lib/remainderf.c (remainderf): Likewise.
7328         * lib/remainder.c (remainder): Likewise.
7329         * lib/remainderl.c (remainderl): Likewise.
7330
7331 2012-02-25  Bruno Haible  <bruno@clisp.org>
7332
7333         Tests for module 'remainderl'.
7334         * modules/remainderl-tests: New file.
7335         * tests/test-remainderl.c: New file.
7336         * tests/test-math-c++.cc: Check the declaration of remainderl.
7337
7338         New module 'remainderl'.
7339         * lib/math.in.h (remainderl): New declaration.
7340         * lib/remainderl.c: New file.
7341         * m4/remainderl.m4: New file.
7342         * modules/remainderl: New file.
7343         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7345         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7346         HAVE_REMAINDERL.
7347         * doc/posix-functions/remainderl.texi: Mention the new module.
7348
7349 2012-02-25  Bruno Haible  <bruno@clisp.org>
7350
7351         Tests for module 'remainderf'.
7352         * modules/remainderf-tests: New file.
7353         * tests/test-remainderf.c: New file.
7354         * tests/test-math-c++.cc: Check the declaration of remainderf.
7355
7356         New module 'remainderf'.
7357         * lib/math.in.h (remainderf): New declaration.
7358         * lib/remainderf.c: New file.
7359         * m4/remainderf.m4: New file.
7360         * modules/remainderf: New file.
7361         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7363         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7364         HAVE_REMAINDERF.
7365         * doc/posix-functions/remainderf.texi: Mention the new module.
7366
7367 2012-02-25  Bruno Haible  <bruno@clisp.org>
7368
7369         remainder: Support for MSVC.
7370         * lib/math.in.h (remainder): New declaration.
7371         * lib/remainder.c: New file.
7372         * m4/remainder.m4: New file.
7373         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7374         (Depends-on): Add math, round, fma.
7375         (configure.ac): Use results of gl_FUNC_REMAINDER.
7376         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7378         HAVE_DECL_REMAINDER.
7379         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7380         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7381         * tests/test-math-c++.cc: Check the declaration of remainder.
7382         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7383         problems are fixed.
7384
7385 2012-02-25  Bruno Haible  <bruno@clisp.org>
7386
7387         Tests for module 'fmodl'.
7388         * modules/fmodl-tests: New file.
7389         * tests/test-fmodl.c: New file.
7390         * tests/test-math-c++.cc: Check the declaration of fmodl.
7391
7392         New module 'fmodl'.
7393         * lib/math.in.h (fmodl): New declaration.
7394         * lib/fmodl.c: New file.
7395         * m4/fmodl.m4: New file.
7396         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7398         REPLACE_FMODL.
7399         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7400         REPLACE_FMODL.
7401         * modules/fmodl: New file.
7402         * doc/posix-functions/fmodl.texi: Mention the new module.
7403
7404 2012-02-25  Bruno Haible  <bruno@clisp.org>
7405
7406         Tests for module 'modfl'.
7407         * modules/modfl-tests: New file.
7408         * tests/test-modfl.c: New file.
7409         * tests/test-math-c++.cc: Check the declaration of modfl.
7410
7411         New module 'modfl'.
7412         * lib/math.in.h (modfl): New declaration.
7413         * lib/modfl.c: New file.
7414         * m4/modfl.m4: New file.
7415         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7417         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7418         * modules/modfl: New file.
7419         * doc/posix-functions/modfl.texi: Mention the new module.
7420
7421 2012-02-25  Bruno Haible  <bruno@clisp.org>
7422
7423         Tests for module 'fabsl'.
7424         * modules/fabsl-tests: New file.
7425         * tests/test-fabsl.c: New file.
7426         * tests/test-math-c++.cc: Check the declaration of fabsl.
7427
7428         New module 'fabsl'.
7429         * lib/math.in.h (fabsl): New declaration.
7430         * lib/fabsl.c: New file.
7431         * m4/fabsl.m4: New file.
7432         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7434         REPLACE_FABSL.
7435         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7436         REPLACE_FABSL.
7437         * modules/fabsl: New file.
7438         * doc/posix-functions/fabsl.texi: Mention the new module.
7439
7440 2012-02-25  Bruno Haible  <bruno@clisp.org>
7441
7442         fabs tests: More tests.
7443         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7444         (zero): New variable.
7445         (main): Add tests for signed zero.
7446         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7447
7448         fabsf tests: More tests.
7449         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7450         (zero): New variable.
7451         (main): Add tests for signed zero.
7452         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7453
7454 2012-02-24  Bruno Haible  <bruno@clisp.org>
7455
7456         atanl: Provide function definition on MSVC.
7457         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7458         function pointer.
7459         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7460
7461 2012-02-24  Bruno Haible  <bruno@clisp.org>
7462
7463         acosl: Provide function definition on MSVC.
7464         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7465         function pointer.
7466         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7467
7468 2012-02-24  Bruno Haible  <bruno@clisp.org>
7469
7470         asinl: Provide function definition on MSVC.
7471         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7472         function pointer.
7473         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7474
7475 2012-02-24  Bruno Haible  <bruno@clisp.org>
7476
7477         tanl: Provide function definition on MSVC.
7478         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7479         function pointer.
7480         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7481
7482 2012-02-24  Bruno Haible  <bruno@clisp.org>
7483
7484         cosl: Provide function definition on MSVC.
7485         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7486         function pointer.
7487         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7488
7489 2012-02-24  Bruno Haible  <bruno@clisp.org>
7490
7491         sinl: Provide function definition on MSVC.
7492         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7493         function pointer.
7494         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7495
7496 2012-02-24  Bruno Haible  <bruno@clisp.org>
7497
7498         logl: Provide function definition on MSVC.
7499         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7500         function pointer.
7501         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7502
7503 2012-02-24  Bruno Haible  <bruno@clisp.org>
7504
7505         expl: Provide function definition on MSVC.
7506         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7507         function pointer.
7508         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7509
7510 2012-02-24  Bruno Haible  <bruno@clisp.org>
7511
7512         sqrtl: Provide function definition on MSVC.
7513         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7514         a function pointer.
7515         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7516
7517 2012-02-24  Bruno Haible  <bruno@clisp.org>
7518
7519         ceill: Provide function definition on MSVC.
7520         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7521         used as a function pointer.
7522         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7523
7524 2012-02-24  Bruno Haible  <bruno@clisp.org>
7525
7526         floorl: Provide function definition on MSVC.
7527         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7528         used as a function pointer.
7529         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7530
7531 2012-02-24  Bruno Haible  <bruno@clisp.org>
7532
7533         ceilf: Provide function definition on MSVC.
7534         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7535         used as a function pointer.
7536         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7537
7538 2012-02-24  Bruno Haible  <bruno@clisp.org>
7539
7540         floorf: Provide function definition on MSVC.
7541         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7542         used as a function pointer.
7543         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7544
7545 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7546
7547         stdnoreturn: new module
7548         This implements a replacement for C11's <stdnoreturn.h>.
7549         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7550         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7551         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7552         * tests/test-stdnoreturn.c: New files.
7553
7554 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7555
7556         regex: fix false multibyte matches in some regular expressions
7557         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7558         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7559         * lib/regex_internal.c (re_string_skip_chars):
7560         Fix miscomputation of remain_len that may cause incomplete
7561         multi-byte character and false match.
7562
7563 2012-02-24  Jim Meyering  <meyering@redhat.com>
7564
7565         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7566         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7567         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7568         Remove now-unnecessary str''cmp obfuscation.
7569         Suggested by Akim Demaille.
7570
7571 2012-02-24  Bruno Haible  <bruno@clisp.org>
7572
7573         streq: Rename macro.
7574         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7575         * NEWS: Mention the change.
7576         * lib/mbrtowc.c (mbrtowc): Update.
7577         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7578         * lib/wcwidth.c (wcwidth): Update.
7579         Suggested by Akim Demaille and Jim Meyering.
7580
7581 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7582
7583         regex: fix typo in definition of MIN
7584         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7585         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7586
7587 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7588             Bruno Haible  <bruno@clisp.org>
7589
7590         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7591         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7592         entries into a stack-allocated buffer directly.
7593         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7594
7595 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7596             Bruno Haible  <bruno@clisp.org>
7597
7598         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7599
7600          - There were several instances of this pattern:
7601
7602              for (;;) {
7603                n = acl (f, GETACLCNT, 0, NULL);
7604                [ allocate an array A of size N ]
7605                if (acl (f, GETACL, n, a) == n)
7606                  break;
7607              }
7608
7609            This loop might never terminate if some other process is constantly
7610            manipulating the file's ACL.  The loop should be rewritten to
7611            terminate.
7612
7613          - The acl (... GETACLNT ...) call is merely an optimization; its value
7614            is merely a hint as to how big to make the array.  A better
7615            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7616            and just guess a reasonably-big size, growing the size and trying
7617            again if it's not large enough.  This guarantees termination, and
7618            saves a system call.
7619
7620         * lib/acl-internal.h: Include <limits.h>.
7621         (MIN, SIZE_MAX): New macros.
7622         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7623         a stack-allocated buffer, and use malloc if it does not fit. Don't
7624         use GETACLCNT.
7625         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7626
7627 2012-02-19  Bruno Haible  <bruno@clisp.org>
7628
7629         acl: Fix endless loop on Solaris with vxfs.
7630         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7631         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7632         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7633         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7634         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7635         Reported by Bill Jones in
7636         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7637
7638 2012-02-19  Bruno Haible  <bruno@clisp.org>
7639
7640         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7641         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7642         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7643         that this function returns 0 in some more cases.
7644
7645 2012-02-19  Bruno Haible  <bruno@clisp.org>
7646
7647         acl: Update doc references.
7648         * doc/acl-resources.txt: Update links to Solaris documentation.
7649
7650 2012-02-19  Bruno Haible  <bruno@clisp.org>
7651
7652         Fix test failure in many locales on Solaris 11.
7653         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7654         'tr' arguments.
7655         * tests/test-pipe-filter-ii1.c (main): Likewise.
7656         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7657         expressions in the C locale.
7658         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7659         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7660
7661 2012-02-19  Bruno Haible  <bruno@clisp.org>
7662
7663         gnulib-tool: Improve usage message.
7664         * gnulib-tool (func_usage): Move doc of --help and --version to the
7665         section "Operation modes".
7666
7667 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7668
7669         README-release: make it easier to execute commands
7670         * top/README-release: break commands out on to separate lines.
7671
7672 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7673
7674         GNUmakefile: simplify detection of unconfigured trees
7675         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7676         whether the tree make is being run from is already configured or
7677         not.  Related simplifications.
7678
7679 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7680
7681         * gnulib-tool (func_usage): Document --help and --version.
7682
7683 2012-02-11  Jim Meyering  <meyering@redhat.com>
7684
7685         bootstrap: don't exit 0 upon gnulib-tool failure
7686         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7687         its exit status, not 0.
7688
7689 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7690
7691         README-release: various improvements
7692         * top/README-release: Give a command to push changes for the
7693         release.  Add "distcheck" to list of other pre-release checks.
7694         Fix instance of "make stable" which should be "make TYPE".
7695
7696 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7697
7698         maint: replace FSF snail-mail addresses with URLs
7699         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7700         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7701         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7702         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7703         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7704         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7705         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7706         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7707         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7708         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7709         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7710         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7711         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7712         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7713         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7714         * lib/glthread/thread.c, lib/glthread/thread.h:
7715         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7716         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7717         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7718         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7719         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7720         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7721         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7722         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7723         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7724         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7725         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7726         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7727         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7728         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7729         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7730         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7731         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7732         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7733         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7734         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7735         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7736         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7737         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7738         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7739         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7740         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7741         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7742         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7743         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7744         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7745         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7746         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7747         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7748         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7749         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7750         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7751         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7752         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7753         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7754         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7755         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7756         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7757         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7758         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7759         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7760         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7761         * tests/test-poll.c, tests/test-quotearg-simple.c:
7762         * tests/test-quotearg.c, tests/test-quotearg.h:
7763         * tests/test-round-ieee.c, tests/test-round1.c:
7764         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7765         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7766         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7767         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7768         * tests/test-strerror.c, tests/test-strerror_r.c:
7769         * tests/test-strsignal.c, tests/test-strverscmp.c:
7770         * tests/test-xmemdup0.c:
7771         Replace FSF snail mail addresses with URLs, as per GNU coding
7772         standards.  See glibc bug
7773         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7774
7775 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7776
7777         README-release: capitalize a word and split a line
7778         * top/README-release: Fix punctuation and spacing.
7779
7780 2012-02-08  Akim Demaille  <demaille@gostai.com>
7781
7782         fatal-signal: use C prototypes (with explicit void).
7783         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7784         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7785
7786 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7787
7788         regex: spelling fix
7789         * lib/regexec.c: spelling fix
7790
7791         regex: rely on stdint.h for SIZE_MAX
7792         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7793
7794 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7795
7796         regex: merge glibc changes
7797
7798         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7799         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7800         (init_word_char): Work even if bitset words are not exactly 32 or
7801         64 bits wide.  Don't assume there are no padding bits.
7802         * lib/regex.c [_LIBC]: Do not include <config.h>.
7803         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7804         and -Wtype-limits.
7805         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7806         needless disagreement with glibc.  All uses changed.  Define it to
7807         1 only if _GNU_SOURCE, to match glibc.
7808         (_REG_RM_NAME): Remove; no longer needed, since the names in
7809         question are now all protected by __USE_GNU.
7810         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7811         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7812         * lib/regex_internal.h (MIN): New macro.
7813
7814         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7815         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7816
7817         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7818         * lib/regex_internal.c (re_string_fetch_byte_case):
7819         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7820         is miscompiled, and it turns out it is because of an incorrect
7821         attribute on re_string_fetch_byte_case.  Unlike
7822         re_string_peek_byte_case, this one is really not pure, it modifies
7823         memory (increments pstr->cur_idx), and with the pure attribute GCC
7824         assumed it doesn't and it cached the presumed value of
7825         regexp->cur_idx in a variable across the
7826          for (;; ++i)
7827            {
7828              if (i >= BRACKET_NAME_BUF_SIZE)
7829                return REG_EBRACK;
7830              if (token->type == OP_OPEN_CHAR_CLASS)
7831                ch = re_string_fetch_byte_case (regexp);
7832              else
7833                ch = re_string_fetch_byte (regexp);
7834              if (re_string_eoi(regexp))
7835                return REG_EBRACK;
7836              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7837                break;
7838              elem->opr.name[i] = ch;
7839            }
7840
7841         2011-11-29 Andreas Schwab <schwab@redhat.com>
7842         * lib/regcomp.c (build_equiv_class):
7843         Fix access after end of search string in regex matcher.
7844
7845         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7846         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7847
7848         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7849         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7850
7851         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7852         * lib/regcomp.c (parse_branch, parse_sub_exp):
7853         More regex memory leak fixes and tests.
7854         (parse_sub_exp, parse_bracket_exp):
7855         Fix memory leak for some invalid regular expressions.
7856
7857         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7858         * lib/regex_internal.c, lib/regexec.c:
7859         Fix unnecessary overallocation due to incomplete character.  When
7860         incomplete characters are found at the end of a string the code
7861         ran amok and allocated lots of memory.  Stricter limits are now in
7862         place.
7863
7864         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7865         * lib/regex.h: Update documentation.
7866
7867         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7868         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7869
7870         2010-05-05 Andreas Schwab <schwab@redhat.com>
7871         * lib/regexec.c (find_collation_sequence_value):
7872         Fix lookup of collation sequence value during regexp matching.
7873
7874         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7875         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7876
7877         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7878         * lib/regex.h: Cleanup namespace.
7879
7880         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7881         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7882
7883         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7884         * lib/regex_internal.h: Prevent some declarations and definitions
7885         to be seen when used in tests.
7886
7887         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7888         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7889         __libc_lock_* macros if not _LIBC.
7890         (struct re_dfa_t): Add lock.
7891
7892 2012-02-07  Eric Blake  <eblake@redhat.com>
7893
7894         maint.mk: also prohibit lower-case @var@
7895         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7896         lower case, like @top_srcdir@.
7897
7898 2012-02-04  Eric Blake  <eblake@redhat.com>
7899
7900         canonicalize: avoid uninitialized memory use
7901         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7902         random '/' left in dest.
7903         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7904
7905 2012-02-04  Bruno Haible  <bruno@clisp.org>
7906
7907         isatty: Fix test failure of ptsname_r on native Windows.
7908         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7909         and don't set errno.
7910         (isatty): Test first whether fd is valid. Set errno when returning 0.
7911
7912 2012-02-04  Bruno Haible  <bruno@clisp.org>
7913
7914         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7915         * tests/test-spawn-pipe-main.c: Include progname.h.
7916         (main): Invoke set_program_name.
7917         * modules/spawn-pipe-tests (Depends-on): Add progname.
7918
7919         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7920         * tests/test-nonblocking-socket-main.c: Include progname.h.
7921         (main): Invoke set_program_name.
7922         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7923
7924         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7925         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7926         (main): Invoke set_program_name.
7927         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7928
7929 2012-02-04  Eric Blake  <eblake@redhat.com>
7930
7931         canonicalize-lgpl: fix // handling
7932         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7933
7934         canonicalize: fix // handling
7935         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7936         /// to //, since only // is special.
7937
7938 2012-02-04  Bruno Haible  <bruno@clisp.org>
7939
7940         ioctl: Fix test failure on native Windows.
7941         * lib/ioctl.c: Include msvc-nothrow.h.
7942         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7943
7944 2012-02-04  Bruno Haible  <bruno@clisp.org>
7945
7946         fsync: Avoid test failure on native Windows.
7947         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7948         read-only.
7949
7950 2012-02-04  Bruno Haible  <bruno@clisp.org>
7951
7952         sys_select: Avoid syntax error on OpenBSD 5.0.
7953         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7954         currently being included, just include the system's <sys/select.h>.
7955
7956 2012-02-04  Bruno Haible  <bruno@clisp.org>
7957
7958         sys_select: Avoid syntax error on OpenBSD 5.0.
7959         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7960         <sys/select.h>, not before.
7961         Reported by Jiri B <jirib@devio.us>.
7962
7963 2012-02-04  Bruno Haible  <bruno@clisp.org>
7964
7965         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7966         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7967         global variables.
7968         * tests/test-get-rusage-data.c (main): Likewise.
7969         Reported by Jim Meyering.
7970
7971 2012-02-04  Bruno Haible  <bruno@clisp.org>
7972
7973         stdioext: Fix last commit.
7974         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7975
7976 2012-02-03  Bruno Haible  <bruno@clisp.org>
7977
7978         stdioext: Add tentative support for Plan9.
7979         * lib/stdio-impl.h: Include <errno.h>.
7980         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7981         * lib/freadable.c (freadable): Likewise.
7982         * lib/fwritable.c (fwritable): Likewise.
7983         * lib/fbufmode.c (fbufmode): Likewise.
7984         * lib/freading.c (freading): Likewise.
7985         * lib/fwriting.c (fwriting): Likewise.
7986         * lib/freadptr.c (freadptr): Likewise.
7987         * lib/freadseek.c (freadptrinc): Likewise.
7988         * lib/freadahead.c (freadahead): Likewise.
7989         * lib/fpurge.c (fpurge): Likewise.
7990         * lib/fseeko.c (rpl_fseeko): Likewise.
7991         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7992         Reported by Jens Staal <staal1978@gmail.com>.
7993
7994 2012-02-02  Jim Meyering  <meyering@redhat.com>
7995
7996         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7997         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7998         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7999         not even to try to add the attribute.  Instead, add a pragma to suppress
8000         the suggestion/warning.
8001
8002 2012-01-31  Karl Berry  <karl@gnu.org>
8003
8004         setstate doc: typo.
8005         * doc/posix-functions/setstate.texi (setstate): { not (.
8006
8007 2012-01-31  Bruno Haible  <bruno@clisp.org>
8008
8009         popen: Make more robust on Windows.
8010         * lib/popen.c: On native Windows, use the _popen based code even if
8011         HAVE_POPEN is set.
8012         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8013         environment variable on native Windows.
8014
8015 2012-01-30  Bruno Haible  <bruno@clisp.org>
8016
8017         pclose: Fix typo.
8018         * lib/stdio.in.h (pclose): Fix typo in warning message.
8019
8020 2012-01-30  Bruno Haible  <bruno@clisp.org>
8021
8022         doc about getlogin_r, setstate.
8023         * doc/posix-functions/getlogin_r.texi: List the incompatible
8024         declaration problem under "not fixed by gnulib".
8025         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8026         problem on Solaris 11 and other platforms.
8027
8028 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8029             Bruno Haible  <bruno@clisp.org>
8030
8031         poll tests: Make test more robust.
8032         * tests/test-poll.c: Include macros.h.
8033         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8034         return value of various I/O operations.
8035         * modules/poll-tests (Files): Add tests/macros.h.
8036
8037 2012-01-30  Bruno Haible  <bruno@clisp.org>
8038
8039         sys_stat: Fix support for mingw64 and MSVC.
8040         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8041         header files already do it.
8042         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8043         stat itself.
8044         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8045
8046 2012-01-30  Bruno Haible  <bruno@clisp.org>
8047
8048         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8050         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8051
8052 2012-01-29  Bruno Haible  <bruno@clisp.org>
8053
8054         quotearg: Fix test failure on MacOS X 10.5.
8055         * tests/test-quotearg-simple.c: Include localcharset.h.
8056         (main): If the locale encoding is not ASCII, bypass the tests of
8057         locale_quoting_style and clocale_quoting_style.
8058         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8059
8060 2012-01-29  Jim Meyering  <meyering@redhat.com>
8061
8062         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8063         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8064         detect uses of canonicalize_file_name.
8065
8066 2012-01-28  Bruno Haible  <bruno@clisp.org>
8067
8068         test-framework-sh: Fix test failure with AIX 7.1 diff.
8069         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8070         in column 1, like 'diff -c' does.
8071         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8072         whether 'diff -u' is used. Instead, test whether the output contains
8073         some '@' character.
8074
8075 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8076
8077         strtoimax: eliminate need for stdint.h, inttypes.h checks
8078         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8079         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8080         the prerequisites for a recently-introduced strtoimax test.
8081         I guess this might cause strtoimax to be replaced when not
8082         strictly necessary on older hosts, but this shouldn't introduce
8083         any bugs and it should make Emacs 'configure' faster on typical
8084         modern hosts.  Problem discovered when importing the latest gnulib
8085         to an Emacs test version.
8086         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8087
8088 2012-01-28  Bruno Haible  <bruno@clisp.org>
8089
8090         sys_time: Override 'struct timeval' on some native Windows platforms.
8091         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8092         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8093         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8094         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8095         needs to be overridden.
8096         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8097         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8098         * tests/test-sys_select.c: Check that the tv_sec member has the same
8099         size as a 'time_t'.
8100         * tests/test-sys_time.c: Likewise.
8101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8102         is set, set also REPLACE_GETTIMEOFDAY.
8103         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8104         convert the resulting 'struct timeval' before returning.
8105         * lib/select.c: Include <sys/time.h>.
8106         (select, timeval): Undefine at the right place.
8107         * modules/select (Depends-on): Add sys_time.
8108         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8109         some Windows platforms.
8110         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8111
8112 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8113
8114         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8115         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8116         an integer.
8117         * lib/fcntl.c (dupfd): Likewise.
8118         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8119
8120 2012-01-28  Bruno Haible  <bruno@clisp.org>
8121
8122         fcntl: Avoid compilation error on native Windows.
8123         * modules/fcntl (Depends-on): Add 'close'.
8124
8125 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8126
8127         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8128         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8129         pointer to an integer.
8130         * lib/poll.c (IsConsoleHandle): Likewise.
8131         * lib/isatty.c (IsConsoleHandle): Likewise.
8132
8133 2012-01-28  Jim Meyering  <meyering@redhat.com>
8134
8135         doc: clarify README-release
8136         * top/README-release: Clarify: you should make a point to have
8137         the latest stable versions of build tools in your PATH, and the
8138         reference to buildreq is solely for its list of tool names, not
8139         for its minimal-functional version numbers.
8140         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8141
8142         maint.mk: use more readable (yet functionally equivalent) quoting
8143         It is common to quote a single quote in a single quoted string like
8144         this:  '...'\''...'.  Unless you know the idiom, that looks like
8145         gibberish, so prefer to double-quote the string when possible.
8146         Then you can use a more readable, lone single quote: "...'..."
8147         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8148         "don't" is more readable than the equivalent 'don'\''t'.
8149         (sc_cast_of_x_alloc_return_value): Likewise.
8150         (sc_cast_of_alloca_return_value): Likewise.
8151         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8152         rather than '\'':'\''.
8153
8154 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8155
8156         stdalign: relax _Alignof and tighten _Alignas test
8157         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8158         as it was too strict: alignof must divide offsetof, but it need
8159         not equal offsetof.  Inspired by Joseph S. Myers's comment
8160         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8161         Conversely, tighten the _Alignas test a bit, as the resulting
8162         alignment must be exactly 8.
8163
8164 2012-01-27  Bruno Haible  <bruno@clisp.org>
8165
8166         stdalign: Document the last change.
8167         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8168
8169 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8170
8171         stdalign: check that alignof and offsetof are consistent
8172         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8173         Problem reported for gnulib by Richard W.M. Jones in
8174         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8175
8176 2012-01-27  Jim Meyering  <meyering@redhat.com>
8177
8178         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8179         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8180         convert a sequence with gaps to the minimal containing range.
8181         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8182         * tests/test-update-copyright.sh: Test for this.
8183         The FSF confirmed it is ok to do this, assuming there is at
8184         least one significant change per year in the affected range:
8185         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8186
8187 2012-01-26  Bruno Haible  <bruno@clisp.org>
8188
8189         pipe2: refine doc about thread-safety
8190         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8191         multithread-safety problem.
8192         * doc/glibc-functions/accept4.texi: Likewise.
8193
8194 2012-01-26  Bruno Haible  <bruno@clisp.org>
8195
8196         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8197         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8198         In the test program, include <fcntl.h>, for O_RDONLY.
8199
8200 2012-01-26  Eric Blake  <eblake@redhat.com>
8201
8202         pipe2: document lack of thread-safety in replacement
8203         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8204         issue in replacement.
8205         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8206         Based on a report by Eric Wong.
8207
8208 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8209             Bruno Haible  <bruno@clisp.org>
8210
8211         malloca: Avoid warnings on x86_64 mingw64.
8212         * lib/malloca.c: Include <stdint.h>.
8213         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8214         * modules/malloca (Depends-on): Add stdint.
8215         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8216
8217 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8218
8219         obstack: remove __STDC__ conditionals
8220         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8221         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8222         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8223         m4/include_next.m4 as the only gnulib-maintained places that still
8224         refer to __STDC__.
8225
8226 2012-01-24  Bruno Haible  <bruno@clisp.org>
8227
8228         havelib: Modern quoting.
8229         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8230         the recent change to the GNU coding standards.
8231
8232 2012-01-24  Bruno Haible  <bruno@clisp.org>
8233
8234         stdint: Improve support for Android.
8235         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8236         Reported by Simon Josefsson <simon@josefsson.org>.
8237
8238 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8239
8240         doc: omit trailing empty lines from INSTALL etc.
8241         * doc/Makefile (INSTALL): Omit trailing empty lines.
8242         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8243         omit trailing empty lines.  This simplifies the build procedure.
8244
8245 2012-01-23  Jim Meyering  <meyering@redhat.com>
8246
8247         tests: avoid spurious warnings about gl_sockets_startup
8248         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8249         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8250         reporting a "statement with no effect".
8251         * tests/test-accept.c (main): Mark as "(void)".
8252         * tests/test-accept4.c (main): Likewise.
8253         * tests/test-bind.c (main): Likewise.
8254         * tests/test-connect.c (main): Likewise.
8255         * tests/test-getpeername.c (main): Likewise.
8256         * tests/test-getsockname.c (main): Likewise.
8257         * tests/test-getsockopt.c (main): Likewise.
8258         * tests/test-listen.c (main): Likewise.
8259         * tests/test-recv.c (main): Likewise.
8260         * tests/test-recvfrom.c (main): Likewise.
8261         * tests/test-send.c (main): Likewise.
8262         * tests/test-sendto.c (main): Likewise.
8263         * tests/test-setsockopt.c (main): Likewise.
8264         * tests/test-shutdown.c (main): Likewise.
8265
8266 2012-01-21  Bruno Haible  <bruno@clisp.org>
8267
8268         locale-fr.m4: Fix for Android.
8269         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8270         failure of the test program on Bionic libc.
8271
8272 2012-01-21  Jim Meyering  <meyering@redhat.com>
8273
8274         bootstrap: fail when bootstrap_post_import_hook fails
8275         Otherwise, it's far too easy to miss diagnostics emitted
8276         between gnulib-tool's output and that of running configure.
8277         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8278
8279 2012-01-17  Jim Meyering  <meyering@redhat.com>
8280
8281         maint: enable sc_trailing_blank
8282         * build-aux/pmccabe.css: Remove trailing blanks.
8283         * doc/acl-cygwin.txt: Likewise.
8284         * doc/gnu-oids.texi: Likewise
8285         * cfg.mk: Enable sc_trailing_blank.
8286         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8287
8288 2012-01-17  Jim Meyering  <meyering@redhat.com>
8289
8290         maint: enable sc_prohibit_openat_without_use
8291         * cfg.mk: Enable sc_prohibit_openat_without_use.
8292         Exempt lib/selinux-at.c.
8293
8294 2012-01-17  Jim Meyering  <meyering@redhat.com>
8295
8296         maint: enable sc_prohibit_cloexec_without_use
8297         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8298         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8299
8300 2012-01-17  Jim Meyering  <meyering@redhat.com>
8301
8302         maint: enable sc_prohibit_intprops_without_use
8303         * cfg.mk: Enable sc_prohibit_intprops_without_use
8304         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8305
8306 2012-01-17  Jim Meyering  <meyering@redhat.com>
8307
8308         maint: enable sc_prohibit_hash_pjw_without_use
8309         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8310         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8311         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8312         following " (".
8313
8314 2012-01-17  Jim Meyering  <meyering@redhat.com>
8315
8316         maint: enable double-word-prohibiting rule
8317         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8318         Exempt three files.
8319
8320 2012-01-17  Jim Meyering  <meyering@redhat.com>
8321
8322         maint: remove empty lines at EOF, but excluding modules/*
8323         Apply syntax rules at home as well as abroad.  Most changes
8324         were induced by running this:
8325           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8326             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8327             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8328         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8329         Exempt modules/* and two binary files.
8330         Also exempt doc/INSTALL*, per request from Bruno Haible.
8331         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8332         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8333         * doc/Copyright/request-assign.future: Likewise.
8334         * doc/Copyright/request-disclaim.changes: Likewise.
8335         * doc/INSTALL: Likewise.
8336         * doc/INSTALL.ISO: Likewise.
8337         * doc/INSTALL.UTF-8: Likewise.
8338         * doc/acl-cygwin.txt: Likewise.
8339         * doc/acl-resources.txt: Likewise.
8340         * doc/fdl-1.2.texi: Likewise.
8341         * doc/fdl-1.3.texi: Likewise.
8342         * doc/fdl.texi: Likewise.
8343         * lib/argp-pin.c: Likewise.
8344         * lib/round.c: Likewise.
8345         * lib/unicase/u16-totitle.c: Likewise.
8346         * lib/unictype/block_test.c: Likewise.
8347         * lib/uninorm/canonical-decomposition.c: Likewise.
8348         * m4/README: Likewise.
8349         * m4/relocatable-lib.m4: Likewise.
8350         * tests/test-isnand-nolibm.c: Likewise.
8351         * tests/test-isnand.c: Likewise.
8352         * tests/uninorm/NormalizationTest.txt: Likewise.
8353
8354 2012-01-17  Jim Meyering  <meyering@redhat.com>
8355
8356         maint: add framework to run syntax-check rules against gnulib sources
8357         * cfg.mk: New file, to disable all currently-failing tests.
8358         We'll enable them one by one, as they are made to pass.
8359         * Makefile (sc_maint): New rule.
8360
8361 2012-01-21  Bruno Haible  <bruno@clisp.org>
8362
8363         stdint: Add support for Android.
8364         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8365         include the system's <stdint.h>.
8366         Reported by Simon Josefsson <simon@josefsson.org>.
8367
8368 2012-01-19  Jim Meyering  <meyering@redhat.com>
8369
8370         bootstrap: add bootstrap_post_import_hook
8371         Bison does still need something like the gnulib_mk_hook whose
8372         invocation I had to remove along with slurp in commit 767ccd40.
8373         Technically, we could get along without it, but doing so would
8374         have required living with a warning and a mandatory post-bootstrap
8375         automake rerun.
8376         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8377         (bootstrap_post_import_hook): New function.
8378         Invoke it after gnulib-tool --import and before autoreconf.
8379
8380 2012-01-18  Jim Meyering  <meyering@redhat.com>
8381
8382         gitlog-to-changelog: don't use "no_"-prefixed variable name
8383         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8384         to enable both --cluster and --no-cluster.  Change variable name,
8385         s/\$no_cluster/$cluster/, and reverse usage to match.
8386
8387         gitlog-to-changelog: use "||", not "or" in expressions
8388         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8389         expressions.
8390
8391 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8392
8393         gitlog-to-changelog: new option --no-cluster
8394         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8395         clustering of adjacent commit messages.
8396
8397 2012-01-17  Jim Meyering  <meyering@redhat.com>
8398
8399         maint: spell file systems with two words, not one
8400         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8401         two words, not one.
8402
8403 2012-01-16  Jim Meyering  <meyering@redhat.com>
8404
8405         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8406         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8407
8408 2012-01-16  Eric Blake  <eblake@redhat.com>
8409
8410         bootstrap: cater to autoconf 2.59
8411         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8412         is not available.
8413
8414         bootstrap: properly check for libtool
8415         * build-aux/bootstrap (libtoolize): Also run libtool when older
8416         usage is detected.
8417
8418 2012-01-15  Bruno Haible  <bruno@clisp.org>
8419
8420         Improve support for MSVC 9.
8421         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8422         clashes on MSVC.
8423         * lib/fcntl.in.h: Likewise.
8424         * lib/stdlib.in.h: Likewise.
8425         * lib/sys_stat.in.h: Likewise.
8426
8427 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8428
8429         gnupload: we hold the master copy of this script now
8430         For motivation and more information, see:
8431         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8432         * build-aux/gnupload: Make it clear in the heading comments that the
8433         master copy of this file is maintained by gnulib.  Since we are at
8434         it, bump its copyright year and ...
8435         ($scriptversion): ... the date in its version.
8436         ($usage): Patches and bug reports should be sent to the gnulib list,
8437         not the automake one.
8438         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8439         anymore.
8440
8441 2012-01-15  Bruno Haible  <bruno@clisp.org>
8442
8443         Fix module 'random'.
8444         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8445         initstate, setstate are declared.
8446
8447 2012-01-14  Bruno Haible  <bruno@clisp.org>
8448
8449         Tests for module 'random'.
8450         * modules/random-tests: New file.
8451         * tests/test-random.c: New file, based on tests/test-random_r.c.
8452
8453         New module 'random'.
8454         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8455         declarations.
8456         * lib/random.c: New file, based on glibc/stdlib/random.c.
8457         * m4/random.m4: New file.
8458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8459         HAVE_RANDOM.
8460         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8461         * modules/random: New file.
8462         * config/srclist.txt: Add an entry for random.c.
8463         * doc/posix-functions/random.texi: Mention the 'random' module.
8464         * doc/posix-functions/initstate.texi: Likewise.
8465         * doc/posix-functions/setstate.texi: Likewise.
8466         * doc/posix-functions/srandom.texi: Likewise.
8467
8468 2012-01-12  Bruno Haible  <bruno@clisp.org>
8469
8470         random_r: Use common idioms.
8471         * lib/random_r.c: Include <stdlib.h> first.
8472
8473         random_r: Override incompatible API on AIX, OSF/1.
8474         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8475         Override the system function if REPLACE_RANDOM_R is 1.
8476         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8477         and OSF/1, set REPLACE_RANDOM_R.
8478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8479         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8480         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8481         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8482         * doc/glibc-functions/random_r.texi: Likewise.
8483         * doc/glibc-functions/setstate_r.texi: Likewise.
8484
8485         random_r: Support for MSVC 9.
8486         * lib/random_r.c: Include stdint.h, not inttypes.h.
8487
8488 2012-01-12  Eric Blake  <eblake@redhat.com>
8489
8490         inet_ntop: guard extra work by IF_LINT
8491         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8492         better code generation when not checking for warnings.
8493         Suggested by Paul Eggert and Jim Meyering.
8494
8495         strptime: fix regression on mingw
8496         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8497         Fix regression.  Reported by Bruno Haible.
8498
8499 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8500             Bruno Haible  <bruno@clisp.org>
8501
8502         copy-file: add error-code-returning variant.
8503         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8504         (qcopy_file_preserving): New declaration.
8505         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8506         copy_file_preserving. Change return type to 'int'. Don't emit an error
8507         message here.
8508         (copy_file_preserving): New function.
8509         * tests/test-copy-file.c: Include <stdlib.h>.
8510         (main): Test qcopy_file_preserving if the environment variable
8511         NO_STDERR_OUTPUT is set.
8512         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8513         with NO_STDERR_OUTPUT
8514         * tests/test-copy-file-2.sh: Likewise.
8515
8516 2012-01-10  Bruno Haible  <bruno@clisp.org>
8517
8518         copy-file: Use 'quote' module consistently.
8519         * lib/copy-file.c (copy_file_preserving): Use quote().
8520
8521         copy-file: Refactor.
8522         * lib/copy-file.c: Include quote.h.
8523         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8524         message here.
8525         * modules/copy-file (Depends-on): Add quote.
8526
8527         acl: Export qcopy_acl.
8528         * lib/acl.h (qcopy_acl): New declaration.
8529         * lib/copy-acl.c (qcopy_acl): Make non-static.
8530
8531         acl: Rename a local variable.
8532         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8533
8534         acl: Align return values of copy_acl and qcopy_acl.
8535         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8536         maybe < -1.
8537
8538 2012-01-11  Eric Blake  <eblake@redhat.com>
8539
8540         strptime: silence gcc warnings
8541         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8542         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8543         Reported by Daniel P. Berrange.
8544
8545         inet_ntop: silence gcc warning
8546         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8547         Reported by Daniel P. Berrange.
8548
8549 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8550
8551         getloadavg test: skip the test on GNU/Linux without /proc mounted
8552         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8553         file.  When /proc is not mounted, it always fails with ENOENT.
8554         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8555         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8556
8557 2012-01-10  Bruno Haible  <bruno@clisp.org>
8558
8559         regex: Avoid link error on MSVC 9.
8560         * modules/regex (Depends-on): Add wctype.
8561
8562 2012-01-10  Bruno Haible  <bruno@clisp.org>
8563
8564         doc: Mention --with-tests option.
8565         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8566         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8567         --with-tests.
8568         Reported by Reuben Thomas.
8569
8570 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8571
8572         users.txt: order package names lexicographically.
8573         * users.txt: Order package names lexicographically.
8574
8575 2012-01-10  Jim Meyering  <meyering@redhat.com>
8576
8577         maint.mk: fix description in comment
8578         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8579
8580         ignore-value: remove deprecated ignore_ptr function
8581         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8582         * NEWS: Note this.
8583
8584 2012-01-09  Jim Meyering  <meyering@redhat.com>
8585
8586         test-init.sh: avoid a subshell
8587         * tests/test-init.sh: Remove protective subshell.
8588         Suggested by Bernhard Voelker.  While a subshell is normally
8589         required to protect against older shells (Solaris, FreeBSD) that
8590         warn about a missing program before performing redirection, the
8591         shell-selection tests performed by init.sh probably exclude any
8592         offending shell.
8593
8594 2012-01-08  Bruno Haible  <bruno@clisp.org>
8595
8596         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8597         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8598         variable.
8599
8600 2012-01-08  Bruno Haible  <bruno@clisp.org>
8601
8602         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8603         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8604         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8605         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8606         macro.
8607         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8608         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8609         * lib/spawn_faction_addopen.c: Add workaround implementation if
8610         HAVE_WORKING_POSIX_SPAWN.
8611         * modules/spawn (Makefile): Substitute
8612         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8613         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8614         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8615         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8616         (Depends-on): Update conditions.
8617         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8618         the Solaris 11 bug.
8619
8620 2012-01-08  Bruno Haible  <bruno@clisp.org>
8621
8622         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8623         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8624         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8625         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8626         macro.
8627         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8628         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8629         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8630         HAVE_WORKING_POSIX_SPAWN.
8631         * modules/spawn (Makefile): Substitute
8632         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8633         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8634         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8635         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8636         (Depends-on): Update conditions.
8637         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8638         the Solaris 11 bug.
8639
8640 2012-01-08  Bruno Haible  <bruno@clisp.org>
8641
8642         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8643         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8644         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8645         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8646         HAVE_WORKING_POSIX_SPAWN.
8647         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8648         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8649         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8650         * lib/spawn_faction_addclose.c: Add workaround implementation if
8651         HAVE_WORKING_POSIX_SPAWN.
8652         * modules/spawn (Makefile): Substitute
8653         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8654         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8655         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8656         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8657         (Depends-on): Update conditions.
8658         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8659         the Solaris 11 bug.
8660
8661 2012-01-08  Bruno Haible  <bruno@clisp.org>
8662
8663         doc: Update for Solaris 11 2011-11.
8664         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8665         * m4/printf.m4: Update comments.
8666
8667 2012-01-08  Bruno Haible  <bruno@clisp.org>
8668
8669         mktime: Avoid compilation error on Solaris 11.
8670         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8671
8672 2012-01-08  Bruno Haible  <bruno@clisp.org>
8673
8674         doc: Small fix.
8675         * doc/posix-headers/nl_types.texi: Correct platforms list.
8676
8677 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8678
8679         Add lgpl-3.0 module.
8680         * MODULES.html.sh (Support for building documentation): Add
8681         lgpl-3.0.
8682         * modules/lgpl-3.0: New file.
8683
8684 2012-01-08  Jim Meyering  <meyering@redhat.com>
8685
8686         select.c: indent with spaces, not TABs
8687         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8688
8689 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8690
8691         quotearg: do not use grave accent for left quote
8692         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8693         locale_quoting_style.
8694         (quotearg_buffer_restyled): Fix example.
8695         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8696
8697 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8698
8699         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8700         Most programs do not have translation catalogs for English and much
8701         less separate catalogs for British and American English.  Drop the
8702         suggestion to translators about these two, and provide it
8703         automatically for Unicode locales.  Like most programs, even those
8704         using American English, we use single quotation marks.  This conflicts
8705         with the American typographic convention, but works better when you
8706         cite the entire error message within double quotes.  It also tries not
8707         to clash with established practice and with what non-gnulib programs
8708         will usually do.
8709         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8710         using an UTF-8 or GB-18030 locale.  The list of other locales with
8711         quotes was provided by Bruno Haible.
8712         (quotearg_buffer_restyled): Adjust instructions to translators.
8713         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8714         text, since this would be wrong when using Unicode.
8715         * modules/quotearg: Depend on c-strcaseeq.
8716
8717 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8718
8719         quotearg: fix Wikipedia link
8720         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8721
8722 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8723
8724         Fix for mingw with MSVC9.
8725         * m4/ld-version-script.m4: Check that compiler rejects version
8726         scripts with syntax errors.  Reported by Bruno Haible
8727         <bruno@clisp.org>.
8728
8729 2012-01-06  Bruno Haible  <bruno@clisp.org>
8730
8731         Talk about "native Windows API", not "Woe32".
8732         * lib/accept4.c: Update comments to mention native Windows.
8733         * lib/execute.c: Likewise.
8734         * lib/fatal-signal.c: Likewise.
8735         * lib/localcharset.c: Likewise.
8736         * lib/nanosleep.c: Likewise.
8737         * lib/nl_langinfo.c: Likewise.
8738         * lib/pclose.c: Likewise.
8739         * lib/pipe-filter-gi.c: Likewise.
8740         * lib/pipe-filter-ii.c: Likewise.
8741         * lib/pipe.c: Likewise.
8742         * lib/pipe2.c: Likewise.
8743         * lib/popen.c: Likewise.
8744         * lib/progreloc.c: Likewise.
8745         * lib/relocatable.c: Likewise.
8746         * lib/sigaction.c: Likewise.
8747         * lib/sigprocmask.c: Likewise.
8748         * lib/spawn-pipe.h: Likewise.
8749         * lib/spawn-pipe.c: Likewise.
8750         * lib/spawni.c: Likewise.
8751         * lib/stat-time.h: Likewise.
8752         * lib/w32spawn.h: Likewise.
8753         * tests/test-isatty.c: Likewise.
8754         * lib/config.charset: More comments.
8755         * doc/gnulib-intro.texi: Mention native Windows.
8756         * doc/posix-functions/_Exit_C99.texi: Likewise.
8757         * doc/posix-headers/fcntl.texi: Likewise.
8758
8759 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8760
8761         argp: Avoid crash if translator uses % characters in a translation.
8762         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8763         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8764
8765 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8766
8767         doc: C11 and C++11 are now official
8768         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8769         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8770         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8771         * modules/stdalign:
8772         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8773
8774 2012-01-06  Bruno Haible  <bruno@clisp.org>
8775
8776         uc-is-grapheme-break tests: Tweak.
8777         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8778         message.
8779
8780 2012-01-06  Bruno Haible  <bruno@clisp.org>
8781
8782         test-init.sh: correct the test for diff -u
8783         * tests/test-init.sh: Also redirect stdout to /dev/null.
8784
8785 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8786
8787         Use ', not `, for quoting output.
8788         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8789         (print_changelog_deltas, get_tool_versions, main program):
8790         * build-aux/git-version-gen:
8791         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8792         * build-aux/move-if-change (help):
8793         * build-aux/useless-if-before-free (usage, main program):
8794         * check-module (parse_module_file, usage)
8795         (find_included_lib_files, check_module):
8796         * lib/argmatch.c (main) [TEST]:
8797         * lib/argp-help.c (_help):
8798         * lib/getopt1.c (main) [TEST]:
8799         * lib/git-merge-changelog.c (usage):
8800         * lib/xstrtol-error.c (xstrtol_error):
8801         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8802         * m4/argz.m4 (gl_FUNC_ARGZ):
8803         * m4/bison.m4 (gl_BISON):
8804         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8805         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8806         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8807         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8808         * m4/gc-random.m4 (gl_GC_RANDOM):
8809         * m4/intl.m4 (gt_CHECK_DECL):
8810         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8811         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8812         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8813         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8814         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8815         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8816         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8817         * tests/test-dirname.c (main):
8818         * tests/test-getpass.c (main):
8819         * tests/test-iconvme.c (main):
8820         * tests/test-parse-datetime.c (LOG):
8821         * tests/test-xstrtoimax.sh:
8822         * tests/test-xstrtol.sh:
8823         * tests/test-xstrtoll.sh:
8824         * tests/test-xstrtoumax.sh:
8825         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8826         * top/GNUmakefile (abort-due-to-no-makefile):
8827         Quote 'like this', not `like this', as per the recent change to
8828         the GNU coding standards.
8829
8830 2012-01-05  Bruno Haible  <bruno@clisp.org>
8831
8832         strtoimax: Don't force a replacement on systems where intmax_t is int.
8833         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8834         'intmax_t' is not larger than 'int'.
8835         Reported by Pádraig Brady <P@draigBrady.com>.
8836
8837 2012-01-05  Bruno Haible  <bruno@clisp.org>
8838
8839         doc: Mention NetBSD bugs.
8840         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8841         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8842
8843 2012-01-05  Bruno Haible  <bruno@clisp.org>
8844
8845         strtoumax tests: Enhance tests.
8846         * tests/test-strtoumax.c (main): Add tests for large values.
8847
8848 2012-01-05  Bruno Haible  <bruno@clisp.org>
8849
8850         strtoimax: Work around AIX 5.1 bug.
8851         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8852         definition.
8853         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8854         Set HAVE_STRTOIMAX.
8855         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8856         REPLACE_STRTOIMAX.
8857         * modules/inttypes-incomplete (Makefile.am): Substitute
8858         REPLACE_STRTOIMAX.
8859         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8860         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8861         (Depends-on): Update conditions.
8862         * tests/test-strtoimax.c (main): Add tests for large values.
8863         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8864
8865 2012-01-05  Bruno Haible  <bruno@clisp.org>
8866
8867         inttypes: Modernize.
8868         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8869         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8870         (Makefile.am): Update inttypes.h rule.
8871
8872 2012-01-05  Jim Meyering  <meyering@redhat.com>
8873
8874         init.sh: don't waste a subshell just to redirect stderr
8875         * tests/init.sh: In testing for diff -u and diff -c, use a
8876         stderr-redirecting exec inside `...` rather than a subshell.
8877
8878         test-init.sh: avoid failure on HP-UX 11.00
8879         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8880         resolves to diff -c or cmp.  Reported by Bruno Haible.
8881
8882 2012-01-05  Bruno Haible  <bruno@clisp.org>
8883
8884         Tests for module 'strtoull'.
8885         * modules/strtoull-tests: New file.
8886         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8887
8888 2012-01-05  Bruno Haible  <bruno@clisp.org>
8889
8890         Tests for module 'strtoll'.
8891         * modules/strtoll-tests: New file.
8892         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8893
8894 2012-01-05  Bruno Haible  <bruno@clisp.org>
8895
8896         Tests for module 'strtoul'.
8897         * modules/strtoul-tests: New file.
8898         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8899
8900 2012-01-05  Bruno Haible  <bruno@clisp.org>
8901
8902         Tests for module 'strtol'.
8903         * modules/strtol-tests: New file.
8904         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8905
8906 2012-01-04  Jim Meyering  <meyering@redhat.com>
8907
8908         test-init.sh: accommodate Solaris 5.10's different diff -u output
8909         * tests/test-init.sh: Also exempt @@ lines from the comparison
8910         of diff output, since Solaris 5.10 and GNU diff formats differ.
8911         Reported by Stefano Lattarini.
8912
8913 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8914
8915         test-posixtm: don't assume signed integer wraparound
8916         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8917         after signed integer overflow.  Inspired by (though it may not
8918         fix) Bruno Haible's bug report in
8919         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8920
8921         Spell out "Windows 9x" and "Windows XP".
8922         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8923         "Windows 9x" and "WinXP" with "Windows XP".
8924
8925 2012-01-04  Jim Meyering  <meyering@redhat.com>
8926
8927         test-vc-list-files-cvs.sh: remove obsolete comment
8928         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8929         double exit.  Now that's all encapsulated via skip_ and Exit.
8930
8931 2012-01-04  Bruno Haible  <bruno@clisp.org>
8932
8933         Talk about "native Windows API", not "Win32".
8934         * lib/classpath.c: Update comments to mention native Windows.
8935         * lib/csharpexec.c: Likewise.
8936         * lib/dup2.c: Likewise.
8937         * lib/error.c: Likewise.
8938         * lib/fcntl.c: Likewise.
8939         * lib/filename.h: Likewise.
8940         * lib/findprog.c: Likewise.
8941         * lib/get-rusage-as.c: Likewise.
8942         * lib/get-rusage-data.c: Likewise.
8943         * lib/getpagesize.c: Likewise.
8944         * lib/javaexec.c: Likewise.
8945         * lib/msvc-inval.c: Likewise.
8946         * lib/msvc-nothrow.c: Likewise.
8947         * lib/nanosleep.c: Likewise.
8948         * lib/nonblocking.c: Likewise.
8949         * lib/printf-parse.c: Likewise.
8950         * lib/setlocale.c: Likewise.
8951         * lib/sigaction.c: Likewise.
8952         * lib/strerror_r.c: Likewise.
8953         * lib/tmpdir.c: Likewise.
8954         * lib/vasnprintf.c: Likewise.
8955         * lib/w32spawn.h: Likewise.
8956         * lib/waitpid.c: Likewise.
8957         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8958         * m4/locale-ar.m4: Likewise.
8959         * m4/locale-fr.m4: Likewise.
8960         * m4/locale-ja.m4: Likewise.
8961         * m4/locale-tr.m4: Likewise.
8962         * m4/locale-zh.m4: Likewise.
8963         * m4/printf.m4: Likewise.
8964         * tests/test-cloexec.c: Likewise.
8965         * tests/test-copy-acl.sh: Likewise.
8966         * tests/test-copy-file.sh: Likewise.
8967         * tests/test-file-has-acl.sh: Likewise.
8968         * tests/test-set-mode-acl.sh: Likewise.
8969         * tests/test-dup-safer.c: Likewise.
8970         * tests/test-dup2.c: Likewise.
8971         * tests/test-dup3.c: Likewise.
8972         * tests/test-fcntl.c: Likewise.
8973         * tests/test-nonblocking-pipe.h: Likewise.
8974         * tests/test-nonblocking-socket.h: Likewise.
8975         * tests/test-pipe.c: Likewise.
8976         * tests/test-pipe2.c: Likewise.
8977         * tests/test-spawn-pipe-child.c: Likewise.
8978         * doc/acl-resources.txt: Likewise.
8979         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8980         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8981         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8982         * lib/localcharset.c: Update comments to mention native Windows.
8983         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8984         * lib/localename.c: Likewise.
8985         * lib/progreloc.c: Likewise.
8986         * lib/relocatable.c: Likewise.
8987         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8988         (windows_compute_revents): Renamed from win32_compute_revents.
8989         (windows_compute_revents_socket): Renamed from
8990         win32_compute_revents_socket.
8991         * lib/select.c: Update comments to mention native Windows.
8992         (windows_poll_handle): Renamed from win32_poll_handle.
8993         * m4/threadlib.m4: Update comments to mention native Windows.
8994         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8995         --enable-threads=windows instead of --enable-threads=win32. Set
8996         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8997         * lib/glthread/lock.h: Update comments to mention native Windows.
8998         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8999         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9000         USE_WIN32_THREADS.
9001         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9002         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9003         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9004         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9005         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9006         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9007         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9008         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9009         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9010         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9011         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9012         * tests/test-tls.c: Likewise.
9013         Rationale:
9014         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9015         on both 32-bit and 64-bit Windows systems.
9016         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9017         line of distinction is between "native Windows" on one side and Unix/
9018         POSIX systems on the other side. More details in
9019         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9020         Suggested by Paul Eggert.
9021
9022 2012-01-03  Bruno Haible  <bruno@clisp.org>
9023
9024         isatty: Support for MSVC 9.
9025         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9026         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9027         (_isatty_nothrow): New function.
9028         (isatty): Use it instead of _isatty.
9029         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9030         * lib/poll.c (IsConsoleHandle): Likewise.
9031         * lib/select.c (IsConsoleHandle): Likewise.
9032         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9033         (gl_PREREQ_ISATTY): New macro.
9034         * modules/isatty (Depends-on): Add msvc-inval.
9035         (configure.ac): Invoke gl_PREREQ_ISATTY.
9036
9037 2012-01-03  Jim Meyering  <meyering@redhat.com>
9038
9039         maint.mk: remove temporary transition aid from over 1.5 years ago
9040         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9041         purpose was to aid in the transition (avoiding silent malfunction)
9042         from that old name to the new _sc_search_regexp.  This shim was
9043         added by commit 219c504b.
9044
9045         init.sh: do not try to accommodate compare arguments starting with "-"
9046         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9047         compare arguments that start with "-".  Besides, we do not worry
9048         about this when invoking diff or cmp; why start now with sed?
9049         Using "--" to separate options from argument would trigger sed
9050         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9051         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9052
9053 2012-01-02  Bruno Haible  <bruno@clisp.org>
9054
9055         Enhance tests for module 'isatty'.
9056         * modules/isatty-tests (Depends-on): Add pipe-posix.
9057         * tests/test-isatty.c: Include <fcntl.h>.
9058         (DEV_NULL): New macro.
9059         (main): Test the resut of isatty() also on regular files, pipes, and
9060         /dev/null.
9061
9062         New module 'isatty'.
9063         * lib/unistd.in.h (isatty): New declaration.
9064         * lib/isatty.c: New file, based on an idea of
9065         Bastien Roucariès <roucaries.bastien@gmail.com>.
9066         * m4/isatty.m4: New file.
9067         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9068         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9069         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9070         REPLACE_ISATTY.
9071         * modules/isatty: New file.
9072         * doc/posix-functions/isatty.texi: Mention the new module.
9073         Suggested by Paolo Bonzini.
9074
9075 2012-01-02  Bruno Haible  <bruno@clisp.org>
9076
9077         canonicalize: Tweak 2011-12-29 commit.
9078         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9079         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9080
9081 2012-01-02  Jim Meyering  <meyering@redhat.com>
9082
9083         gitlog-to-changelog: describe input syntax in --help output
9084         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9085
9086         gitlog-to-changelog: fix typo in --help: show backslash before email @
9087         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9088         in sources, but not in actual output.
9089
9090 2011-12-30  Jim Meyering  <meyering@redhat.com>
9091
9092         gitlog-to-changelog: don't malfunction when name contains %-directive
9093         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9094         in a name string cause trouble.  E.g., with a user name of "%s",
9095         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9096
9097 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9098
9099         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9100         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9101         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9102         the "  (tiny change)" notation that is appended to the standard
9103         ChangeLog "date  name  email" header line.
9104
9105 2012-01-01  Jim Meyering  <meyering@redhat.com>
9106
9107         test-framework-sh: init.sh: fix "make dist" failure
9108         When using gnulib-tool's --with-tests option and any module that
9109         depends on test-framework-sh, "make dist" would fail due to the
9110         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9111         in the gltests directory, and not in the gllib/ directory.
9112         One way to work around that is to move the EXTRA_DIST += init.sh
9113         from the primary module to the -tests one:
9114         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9115         * modules/test-framework-sh (Makefile.am): ...not here.
9116         Reported by Tom G. Christensen in
9117         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9118
9119         version-etc: update copyright year reported by --version
9120         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9121
9122 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9123
9124         canonicalize: only stat() if required
9125         * lib/canonicalize.c (canonicalize_filename_mode):
9126         Avoid calling l?stat() when both CAN_MISSING,
9127         and CAN_NOLINKS are set, as we neither need
9128         to resolve symlinks or test component existence.
9129
9130 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9131
9132         doc: cover st_ino issues once; add OpenVMS etc.
9133         * doc/posix-functions/stat.texi (stat):
9134         * doc/posix-functions/lstat.texi (lstat):
9135         * doc/posix-functions/fstatat.texi (fstatat):
9136         * doc/posix-functions/fstat.texi (fstat):
9137         Move general 'struct stat' stuff to sys_stat.texi,
9138         leaving behind a pointer.
9139         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9140         Merge duplicate info about 'struct stat' problems into here.
9141         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9142         and suggest partial workarounds.
9143
9144         same-inode: port to OpenVMS
9145         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9146         three st_ino values.
9147
9148 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9149
9150         canonicalize: fix references to stat() and lstat()
9151         * lib/canonicalize.c (canonicalize_filename_mode):
9152         Ensure references always resolve to a replacement
9153         function if required (even via a macro).
9154
9155 2011-12-30  Jim Meyering  <meyering@redhat.com>
9156
9157         gitlog-to-changelog: remove a little duplication
9158         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9159         rather than twice.
9160
9161 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9162
9163         canonicalize: add support for not resolving symlinks
9164         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9165         indicate we don't want to follow symlinks.  Also
9166         provide CAN_MODE_MASK to aid setting these existing
9167         mutually exclusive values.
9168         * lib/canonicalize.c (canonicalize_filename_mode):
9169         Extract the flags from can_mode parameter, which
9170         are currently just used to select between stat()
9171         and lstat().  Also ensure that mutually exclusive
9172         values are flagged immediately as invalid.
9173         * tests/test-canonicalize.c: Verify symlinks are
9174         not followed, and that invalid flag combinations
9175         are diagnosed.
9176
9177 2011-12-25  Jim Meyering  <meyering@redhat.com>
9178
9179         gitlog-to-changelog: do not clump multi-paragraph entries
9180         Identical header lines (date,name,email+coauthors) are suppressed,
9181         thus putting all entries with those same characteristics under
9182         a single header.  However, when a log entry consists of two or
9183         more paragraphs, it may not be clear where it starts and ends.
9184         This change makes it so that such an entry is always separated
9185         from others by a header line, even when that header would
9186         otherwise be suppressed.
9187         * build-aux/gitlog-to-changelog: Implement the above.
9188         Inspired by a related request from Stefano Lattarini in
9189         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9190
9191 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9192
9193         announce-gen: fix `cmd' typo in diagnostic
9194         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9195         diagnostic: a missing '$' meant that the command was not output.
9196
9197 2011-12-23  Jim Meyering  <meyering@redhat.com>
9198
9199         test-framework-sh: distribute init.sh
9200         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9201         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9202         fail due to the lack of init.sh.
9203
9204         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9205         * modules/atexit-tests: Rather than listing tests/init.sh,
9206         now that there's a module for it, simply depend on that new module.
9207         * modules/closein-tests: Likewise.
9208         * modules/exclude-tests: Likewise.
9209         * modules/getcwd-tests: Likewise.
9210         * modules/perror-tests: Likewise.
9211         * modules/pread-tests: Likewise.
9212         * modules/pwrite-tests: Likewise.
9213         * modules/vc-list-files-tests: Likewise.
9214         * modules/verify-tests: Likewise.
9215         * modules/xalloc-die-tests: Likewise.
9216         * modules/xstrtoimax-tests: Likewise.
9217         * modules/xstrtol-tests: Likewise.
9218         * modules/xstrtoll-tests: Likewise.
9219         * modules/xstrtoumax-tests: Likewise.
9220         * modules/yesno-tests: Likewise.
9221
9222 2011-12-22  Jim Meyering  <meyering@redhat.com>
9223
9224         test-framework-sh: add minimal tests of init.sh's compare function
9225         * modules/test-framework-sh-tests: New file.
9226         * tests/test-init.sh: New file.
9227
9228         test-framework-sh: new module
9229         * modules/test-framework-sh: New file.
9230         * MODULES.html.sh (Support for maintaining and releasing projects):
9231         List it.
9232
9233         init.sh: do not emit simulated diff output to stderr
9234         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9235
9236 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9237
9238         .gitignore: ignore gnulib.dvi and regex.info
9239         * doc/.gitignore:add gnulib.dvi and regex.info
9240
9241 2011-12-22  Jim Meyering  <meyering@redhat.com>
9242
9243         init.sh: correct previous change
9244         * tests/init.sh (compare): My previous change was wrong.
9245         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9246
9247         init.sh: avoid unwarranted test failure when using "set -e"
9248         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9249         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9250         a use like "compare exp out" would get evoke an unconditional failure.
9251
9252 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9253
9254         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9255         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9256         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9257         autoreconf that did not.
9258         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9259         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9260
9261 2011-12-17  Jim Meyering  <meyering@redhat.com>
9262
9263         bootstrap: remove some now-unneeded code
9264         This script arose back when gnulib-tool was young.
9265         Since then, it has seen improvements that render much of this
9266         script unnecessary.  In particular, it can now make symlinks
9267         to the files it uses.  Also, I no longer see as much value in
9268         marking files as read-only via comments.
9269         If you relied on the symlink-creation feature of the preceding
9270         version of this script, you can get most of that functionality
9271         by adding the --symlink option to the definition of
9272         gnulib_tool_option_extras in your bootstrap.conf file.
9273         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9274         Run autopoint and libtoolize *before* gnulib-tool.
9275         After it, run an abbreviated autoreconf, rather than a loop around
9276         all tools.
9277         (slirp, bt_mark_as_generated): Remove functions.
9278
9279 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9280
9281         ftoastr: fix typo
9282         * lib/ftoastr.h: Fix misspelling in comment.
9283
9284 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9285
9286         * top/README-release: fix punctuation.
9287
9288 2011-12-17  Jim Meyering  <meyering@redhat.com>
9289
9290         bootstrap: correct the recent buildreq change
9291         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9292         had no effect.
9293         * build-aux/bootstrap (buildreq): Bracket each search term with
9294         "*...*", so that the shell "case" statement works as intended.
9295         Add comments.
9296
9297 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9298
9299         build: let bootstrap resort to wget when downloading .po files
9300         * build-aux/bootstrap (download_po_files): Fallback to wget when
9301         downloading the .po files via rsync fails.  This is necessary to
9302         bootstrap from behind a strict firewall.
9303
9304 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         stdint: don't assume C++11 when compiling with g++
9307         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9309         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9310         work also in C++ before C++11, as that improperly inhibits
9311         generating a substitute stdint.h for that case.
9312
9313 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9314
9315         alloca: protect comment from gnulib-tool
9316         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9317         that gnulib-tool doesn't think it's a license, and munge it to
9318         say "GCC version 3".
9319
9320 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9321
9322         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9323         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9324         $(abs_top_builddir) instead of $(top_builddir).
9325
9326 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9327
9328         strftime-tests: also test nanoseconds
9329         * tests/test-strftime.c (T): Add a test of %N.
9330
9331 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9332
9333         inttypes, stdint: add C++11 support
9334         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9335         when including inttypes.h and stdint.h.  Support this change to
9336         the standard.
9337         * doc/posix-headers/inttypes.texi (inttypes.h):
9338         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9339         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9340         Define if not defined already, for the benefit of pre-C++11 hosts.
9341         Define the standard format macros (e.g., PRId8) always.
9342         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9343         Likewise, if __cpluspus.  Define the standard constant and limit
9344         macros (e.g., INT8_C, INT8_MAX) always.
9345         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9346         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9347         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9348         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9349         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9350         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9351         Likewise.
9352
9353 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         nonblocking tests: Fix test failure on Linux/PPC.
9356         Suggested by Prerna Saxena in
9357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9358         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9359         Set to 1100000.
9360
9361 2011-12-12  Jim Meyering  <meyering@redhat.com>
9362
9363         argmatch: don't hard-code `' when listing valid option arguments
9364         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9365         use the quote function to add quotes.  Use fputs rather than
9366         fprintf for the format string with no format directive.
9367
9368 2011-12-07  Eric Blake  <eblake@redhat.com>
9369
9370         bootstrap: detect tools required by gnulib-tool
9371         * build-aux/bootstrap (buildreq): Provide minimum implicit
9372         dependencies.
9373         * DEPENDENCIES: Mention patch as a prereq.
9374
9375 2011-12-04  Bruno Haible  <bruno@clisp.org>
9376
9377         sethostname: Port to Windows platforms.
9378         * lib/sethostname.c: Provide an alternate implementation for Windows
9379         platforms.
9380         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9381         (main): Skip the test if sethostname() fails with EPERM. On Windows
9382         platforms, don't check the result of gethostname().
9383
9384 2011-12-04  Bruno Haible  <bruno@clisp.org>
9385             Jim Meyering  <meyering@redhat.com>
9386
9387         tests: Avoid spurious error message on platforms without mktemp program.
9388         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9389
9390 2011-12-04  Bruno Haible  <bruno@clisp.org>
9391
9392         sethostname: Fix documentation.
9393         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9394         "not fixed" section.
9395
9396 2011-12-03  Bruno Haible  <bruno@clisp.org>
9397
9398         gnulib-tool: Verify that the License field is present and non-empty.
9399         * gnulib-tool (func_get_license_raw): New function, extracted from
9400         func_get_license.
9401         (func_get_license): Use it. Warn if the module is not a test module and
9402         has no license.
9403         Suggested by Jim Meyering.
9404
9405 2011-12-03  Bruno Haible  <bruno@clisp.org>
9406
9407         sethostname tests: Fix link error on mingw.
9408         * tests/test-sethostname1.c: New file, extracted from
9409         tests/test-sethostname.c.
9410         * tests/test-sethostname2.c: New file, extracted from
9411         tests/test-sethostname.c.
9412         * tests/test-sethostname.c: Remove file.
9413         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9414         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9415         (Depends-on): Add gethostname.
9416         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9417         Link the latter with $(GETHOSTNAME_LIB).
9418
9419         sethostname tests: Fix compilation error on mingw.
9420         * tests/test-sethostname.c: Don't include <sys/types.h>.
9421         (geteuid): Use a dummy value without uid_t.
9422         * modules/sethostname-tests (Depends-on): Remove sys_types.
9423
9424         sethostname tests: Avoid a gcc warning.
9425         * tests/test-sethostname.c (main): Remove an unused variable.
9426
9427         Tweak last commit.
9428         * modules/sethostname-tests (Files): Sort by decreasing importance.
9429         (configure.ac): Check for geteuid.
9430         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9431         the test when there's nothing to test. Drop an unnecessary cast.
9432         Improve an error message. Verify that the final sethostname() call
9433         succeeds.
9434
9435 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9436
9437         Add a test suite for the sethostname module.
9438         * modules/sethostname-tests: New file.  A test program
9439         for the sethostname module.
9440         * tests/test-sethostname.c: Likewise.
9441
9442 2011-12-03  Bruno Haible  <bruno@clisp.org>
9443
9444         Tweak last commit.
9445         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9446         Fix preprocessor directives indentation. Fix typos.
9447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9448         * modules/unistd (Makefile): Likewise.
9449
9450 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9451
9452         Integrate the sethostname module into unistd.
9453         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9454         into the unistd.h header.
9455         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9456         preprocessor directives.
9457         * modules/unistd: Setup the Makefile substitutions of the
9458         SETHOSTNAME preprocessor directives.
9459
9460 2011-12-03  Bruno Haible  <bruno@clisp.org>
9461
9462         Tweak last commit.
9463         * lib/sethostname.c: Don't include <string.h>.
9464         (sethostname): No need to copy the argument string to the stack. Don't
9465         call clearerr. Preserve errno when fprintf failed.
9466         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9467         Don't invoke AC_REPLACE_FUNCS.
9468         * modules/sethostname (Link): Remove empty section.
9469         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9470         failure problem.
9471
9472 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9473
9474         New module 'sethostname'.
9475         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9476         for systems that lack it.
9477         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9478         sethostname declaration and function.
9479         * modules/sethostname: New file.  Define the sethostname module.
9480
9481 2011-12-03  Bruno Haible  <bruno@clisp.org>
9482
9483         Tweak last commit.
9484         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9485
9486 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9487
9488         Split the HOST_NAME_MAX detection into a separate m4 macro.
9489         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9490         macro so it can be used by the pending sethostname module.
9491
9492 2011-12-03  Bruno Haible  <bruno@clisp.org>
9493
9494         Fix module descriptions syntax.
9495         * modules/argv-iter (License): Fix syntax.
9496         * modules/di-set (License): Likewise.
9497         * modules/ino-map (License): Likewise.
9498         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9499
9500 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9501
9502         stdalign: port to Clang 3.0
9503         Problem reported by Simon Josefsson in
9504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9505         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9506         which has <stdalign.h> but which does not define alignof.
9507         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9508
9509 2011-12-01  Eric Blake  <eblake@redhat.com>
9510
9511         mktempd: silence dd usage
9512         * build-aux/mktempd (rand_bytes): Silence dd.
9513
9514 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9515
9516         manywarnings: Don't mention gcc version in docstring.
9517         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9518         Jim Meyering <meyering@redhat.com>.
9519
9520 2011-11-30  Jim Meyering  <meyering@redhat.com>
9521
9522         hash: mark a few floating point constants with "f" suffix
9523         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9524         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9525         floating point constants with "f", since they're destined to be
9526         saved/used as "float"s.
9527
9528 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9529
9530         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9531         * tests/test-float.c (test_long_double): Correct and re-enable the
9532         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9533
9534 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9535
9536         Avoid subtracting two pointers that don't point into the same block.
9537         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9538         only pointers into the same memory block are subtracted. We cannot
9539         assume that sizeof (ptrdiff_t) == sizeof (void *).
9540
9541 2011-11-29  Eric Blake  <eblake@redhat.com>
9542
9543         maint.mk: add syntax check for use of compare from init.sh
9544         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9545         moved here from coreutils.
9546
9547         manywarnings: drop -Wunsuffixed-float-constants
9548         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9549         '1.0D', which is the only way to silence this warning for 'double'.
9550
9551 2011-11-29  Jim Meyering  <meyering@redhat.com>
9552
9553         hash: mark compute_bucket_size with the pure attribute
9554         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9555
9556         quotearg, propername: correct pragma guard expression
9557         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9558         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9559
9560 2011-11-28  Jim Meyering  <meyering@redhat.com>
9561
9562         propername: do not mark proper_name with the const attribute
9563         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9564         since it examines data pointed to by its parameter.
9565         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9566         the suggestion from -Wsuggest-attribute=const.
9567
9568         propername: mark one more function as const
9569         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9570
9571 2011-11-27  Jim Meyering  <meyering@redhat.com>
9572
9573         mark functions with const and pure attributes
9574
9575         Mark functions per suggestions from gcc-4.6 when using these options:
9576         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9577         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9578         Follow these guidelines: when possible, apply the attribute to
9579         an extern declaration, not to its definition.  Apply it to the
9580         definition only when the definition is static.
9581         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9582         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9583         * lib/base64.h (isbase64): Likewise.
9584         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9585         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9586         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9587         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9588         (c_tolower, c_toupper): Likewise.
9589         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9590         * lib/chdir-long.c (find_non_slash): Likewise.
9591         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9592         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9593         * lib/file-type.h (file_type): Likewise.
9594         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9595         * lib/filevercmp.c (verrevcmp): Likewise.
9596         * lib/freadahead.h (freadahead): Likewise.
9597         * lib/fts.c (fts_maxarglen): Likewise.
9598         * lib/hash-pjw.h (hash_pjw): Likewise.
9599         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9600         * lib/hash.c (is_prime, next_prime): Likewise.
9601         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9602         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9603         (hash_table_ok, hash_get_first, hash_string): Likewise.
9604         (compute_bucket_size): Likewise.
9605         * lib/i-ring.h (i_ring_empty): Likewise.
9606         * lib/isnan.c (isnanl): Likewise.
9607         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9608         * lib/memcasecmp.h (memcasecmp): Likewise.
9609         * lib/memchr2.h (memchr2): Likewise.
9610         * lib/memcmp2.h (memcmp2): Likewise.
9611         * lib/parse-datetime.y (lookup_zone): Likewise.
9612         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9613         [!WINDOWS_SOCKETS]: Likewise.
9614         * lib/strnlen1.h (strnlen1): Likewise.
9615         * lib/uniwidth.in.h (uc_width): Likewise.
9616         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9617         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9618         (quoting_options_from_style): Add a comment.
9619         * lib/propername.h (proper_name): Add a comment.
9620
9621 2011-11-27  Bruno Haible  <bruno@clisp.org>
9622
9623         Remove unused macros from !_LIBC code in glibc-borrowed files.
9624         * lib/fnmatch.c (STRCOLL): Remove macro.
9625         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9626         * lib/glob.c (__stat, __readdir64): Remove macros.
9627         * lib/tempname.c (__open64, __xstat64): Remove macros.
9628         Suggested by Paul Eggert.
9629
9630 2011-11-27  Bruno Haible  <bruno@clisp.org>
9631
9632         getcwd: Fix link error on MSVC 9.
9633         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9634
9635 2011-11-27  Bruno Haible  <bruno@clisp.org>
9636
9637         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9638         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9639         HAVE_OPENDIR is 0.
9640         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9641         HAVE_CLOSEDIR is 0.
9642         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9643         is 0.
9644         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9645
9646 2011-11-27  Bruno Haible  <bruno@clisp.org>
9647
9648         getcwd: Fix bug from 2011-08-17.
9649         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9650         platforms that need it.
9651         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9652         code of 4 to be a failure, not a success. This ensures that
9653         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9654
9655 2011-11-27  Bruno Haible  <bruno@clisp.org>
9656
9657         binary-io tests: Avoid test failure on mingw when libtool is used.
9658         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9659         Don't verify the size of t-bin-out1.tmp here.
9660         * tests/test-binary-io.sh: Verify it here.
9661         Reported by Simon Josefsson.
9662
9663 2011-11-26  Bruno Haible  <bruno@clisp.org>
9664
9665         Fix conflict between two instantiations of module 'unistd'.
9666         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9667         ${include_guard_prefix} also in the autoconf snippet.
9668         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9670         GNULIB_UNISTD_H_GETOPT.
9671         * modules/getopt-posix (configure.ac): Set the
9672         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9673         * modules/getopt-gnu (configure.ac): Likewise.
9674         * modules/unistd (Makefile.am): Change the substitution value of
9675         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9676         Reported by Simon Josefsson.
9677
9678 2011-11-25  Bruno Haible  <bruno@clisp.org>
9679
9680         pagealign_alloc: Doc and comments.
9681         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9682         module.
9683         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9684
9685 2011-11-25  Jim Meyering  <meyering@redhat.com>
9686
9687         test-update-copyright.sh: avoid false-positive failure
9688         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9689         around false positive failure on Cygwin/Windows.  The latter was
9690         matching erroneously-created files with names like
9691         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9692
9693 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9694
9695         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9696         * m4/valgrind-tests.m4: Check that the parameters that will be
9697         used works, not just a subset of them.  Reported by Bruno Haible
9698         <bruno@clisp.org>.
9699
9700 2011-11-24  Jim Meyering  <meyering@redhat.com>
9701
9702         test-stdalign.c: comment out long double tests
9703         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9704         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9705         error: '_Alignas' specifiers cannot reduce alignment of \
9706         'static_longdouble_alignas'.
9707
9708 2011-11-22  Jim Meyering  <meyering@redhat.com>
9709
9710         init.sh: make "compare /dev/null FILE" output more readable
9711         * tests/init.sh (compare_): Document the preferred order of arguments.
9712         (emit_diff_u_header_): New function.
9713         (compare_dev_null_): Emit a simulated diff, rather than just the
9714         contents of the unexpected file.  Suggestion from Bruno Haible.
9715
9716 2011-11-21  Jim Meyering  <meyering@redhat.com>
9717             Eric Blake  <eblake@redhat.com>
9718
9719         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9720         * tests/init.sh: Make our compare function slightly more portable.
9721         Reported by Bruno Haible in
9722         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9723
9724 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9725
9726         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9727         before using it, in code that ends up in config.h.
9728
9729 2011-11-20  Bruno Haible  <bruno@clisp.org>
9730
9731         getcwd: Work around getcwd bug on AIX 5..7.
9732         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9733         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9734         Use a different value for gl_cv_func_getcwd_path_max. Move the
9735         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9736         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9737         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9738         Define HAVE_MINIMALLY_WORKING_GETCWD.
9739         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9740         where it is not even minimally working, that is, on AIX.
9741         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9742         m4/getcwd-path-max.m4.
9743         (main): Update exit code computation.
9744         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9745         getcwd does not handle long file names.
9746
9747 2011-11-20  Bruno Haible  <bruno@clisp.org>
9748
9749         getcwd: Fix bug from 2009-09-10.
9750         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9751         like "no".
9752
9753 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9754
9755         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9756
9757 2011-11-20  Bruno Haible  <bruno@clisp.org>
9758
9759         fma tests: Avoid shadowing local variables.
9760         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9761         expected.
9762
9763 2011-11-20  Bruno Haible  <bruno@clisp.org>
9764
9765         copysignf tests: Fix.
9766         * tests/test-copysignf.c: Fix signature check.
9767
9768 2011-11-20  Bruno Haible  <bruno@clisp.org>
9769
9770         fma: Remove unused code.
9771         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9772         unused macros.
9773
9774 2011-11-20  Bruno Haible  <bruno@clisp.org>
9775
9776         sethostname: Fix doc about AIX.
9777         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9778         sethostname; it has it.
9779
9780         sethostname: Mention more portability problems.
9781         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9782         problem.
9783         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9784
9785 2011-11-19  Bruno Haible  <bruno@clisp.org>
9786
9787         Depend on module fcntl-h when AT_FDCWD is used.
9788         * modules/utimens (Depends-on): Add fcntl-h.
9789         * modules/areadlinkat (Depends-on): Likewise.
9790         * modules/areadlinkat-with-size (Depends-on): Likewise.
9791         * modules/faccessat (Depends-on): Likewise.
9792         * modules/fchmodat (Depends-on): Likewise.
9793         * modules/fchownat (Depends-on): Likewise.
9794         * modules/getcwd (Depends-on): Likewise.
9795         * modules/mkdirat (Depends-on): Likewise.
9796         * modules/mkfifoat (Depends-on): Likewise.
9797         * modules/readlinkat (Depends-on): Likewise.
9798         * modules/symlinkat (Depends-on): Likewise.
9799         * modules/dup2-tests (Depends-on): Likewise.
9800         * modules/fdutimensat-tests (Depends-on): Likewise.
9801         * modules/futimens-tests (Depends-on): Likewise.
9802
9803 2011-11-19  Bruno Haible  <bruno@clisp.org>
9804
9805         euidaccess: Update a comment.
9806         * lib/euidaccess.c: Update comment about platforms with faccessat.
9807
9808 2011-11-19  Bruno Haible  <bruno@clisp.org>
9809
9810         openat: Fix file list.
9811         * modules/openat (Files): Remove lib/at-func.c.
9812
9813 2011-11-19  Bruno Haible  <bruno@clisp.org>
9814
9815         fstatat: Simplify.
9816         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9817         gnulib should define rpl_fstatat, there is a
9818         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9819
9820 2011-11-19  Bruno Haible  <bruno@clisp.org>
9821
9822         Ensure 'inline' can be used in tests/test-utimens-common.h.
9823         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9824         * modules/futimens-tests (configure.ac): Likewise.
9825         * modules/utimens-tests (configure.ac): Likewise.
9826         * modules/utimensat-tests (configure.ac): Likewise.
9827
9828 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9829
9830         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9831         not hash_insert0.
9832         (hash_insert_if_absent): Doc fix.
9833
9834 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9835
9836         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9837
9838 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9839
9840         test-getcwd: disambiguate exit status
9841         * tests/test-getcwd.c (test_long_name): Return 0..7.
9842         (main): Exit with an unambiguous exit status.  The old
9843         code yielded a mysterious mixture of two failure codes.
9844
9845         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9846         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9847         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9848         rpl_fstatat or fstatat.  This should fix the other problem
9849         reported by Kai Habel in
9850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9851         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9853         and I reproduced it on a Solaris 8 host we still have in production.
9854
9855 2011-11-18  Jim Meyering  <meyering@redhat.com>
9856
9857         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9858         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9859         Add a sentence to the comment.
9860         (hash_insert0): New function that simply calls hash_insert_if_absent.
9861         * lib/hash.h (hash_insert_if_absent): Declare it.
9862         (hash_insert0): Add deprecation attribute.
9863         (_GL_ATTRIBUTE_DEPRECATED): Define.
9864         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9865         not hash_insert0.
9866         * NEWS: Mention it, even though it's not really an incompatible change.
9867
9868 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9869
9870         openat: avoid compilation failure due to lack of <errno.h> inclusion
9871         * lib/openat.c: Include <errno.h>.
9872
9873 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9874
9875         * modules/getcwd (Depends-on): Add fdopendir.
9876         This fixes one of the two problems reported by Kai Habel in
9877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9878
9879         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9880         stdalign problem reported by Ian Beckwith in
9881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9882         * modules/crypto/gc-arcfour (Depends-on):
9883         Depend conditionally on crypto/arcfour.
9884         * modules/crypto/gc-arctwo (Depends-on):
9885         Depend conditionally on crypto/arctwo.
9886         * modules/crypto/gc-des (Depends-on):
9887         Depend conditionally on crypto/des.
9888         * modules/crypto/gc-hmac-md5 (Depends-on):
9889         Depend conditionally on crypto/hmac-md5.
9890         * modules/crypto/gc-hmac-sha1 (Depends-on):
9891         Depend conditionally on crypto/hmac-sha1.
9892         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9893         * modules/crypto/gc-md4 (Depends-on):
9894         Depend conditionally on crypto/md4.
9895         * modules/crypto/gc-md5 (Depends-on):
9896         Depend conditionally on crypto/md5.
9897         * modules/crypto/gc-rijndael (Depends-on):
9898         Depend conditionally on crypto/rijndael.
9899         * modules/crypto/gc-sha1 (Depends-on):
9900         Depend conditionally on crypto/sha1.
9901         * modules/crypto/gc-arcfour:
9902         * modules/crypto/gc-arctwo:
9903         * modules/crypto/gc-des:
9904         * modules/crypto/gc-hmac-md5:
9905         * modules/crypto/gc-hmac-sha1:
9906         * modules/crypto/gc-md2:
9907         * modules/crypto/gc-md4:
9908         * modules/crypto/gc-md5:
9909         * modules/crypto/gc-rijndael:
9910         * modules/crypto/gc-sha1:
9911         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9912         now that the conditional dependencies do the work for us.
9913
9914 2011-11-17  Jim Meyering  <meyering@redhat.com>
9915
9916         tests: factor st_ctime-comparison out of two headers
9917         * tests/test-utimens-common.h (ctime_compare): Define.
9918         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9919         * tests/test-lutimens.h (test_lutimens): Likewise.
9920         * tests/test-utimens.h (test_utimens): Likewise.
9921
9922         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9923         Invoke the test program via an init.sh-using wrapper.
9924         * tests/test-getcwd.sh: New file.
9925         * modules/getcwd-tests (Files): Add it.
9926         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9927
9928 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9929
9930         gitlog-to-changelog: support multi-author commits.
9931         The FSF cares about keeping track of all authors of patches to its
9932         projects, but Git doesn't provide obvious support for multi-author
9933         changesets. Consensus seems to be forming around the use of extra
9934         Signed-off-by inspired lines in the log message formatted as
9935         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9936         multi-author commits between version control systems.
9937         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9938         log message and output in standard ChangeLog multi-author format.
9939         Reported by Peter Rosin <peda@lysator.liu.se>
9940
9941 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9942             Bruno Haible  <bruno@clisp.org>
9943
9944         Fix some modules' file list.
9945         * modules/fstatat (Files): Add m4/lstat.m4.
9946         * modules/openat (Files): Likewise.
9947         * modules/unlinkat (Files): Likewise.
9948
9949 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9950
9951         maint.mk: fix tight-scope.mk generation in VPATH builds.
9952         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9953         reference with $(srcdir) so that the file is found correctly even
9954         when running `make syntax-check' in a VPATH build.
9955
9956 2011-11-13  Bruno Haible  <bruno@clisp.org>
9957             Jim Meyering  <meyering@redhat.com>
9958
9959         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9960         * tests/init.sh (compare): Remove "No differences encountered" or
9961         synonymous output from the 'diff' program.
9962
9963 2011-11-13  Bruno Haible  <bruno@clisp.org>
9964
9965         Makefile: Tweak indentation.
9966         * Makefile: Use tab as first character in every line that contains rule
9967         commands.
9968
9969 2011-11-13  Bruno Haible  <bruno@clisp.org>
9970
9971         Syntax check for copyright statements.
9972         * check-copyright: New file.
9973         * Makefile (sc_check_copyright): New rule.
9974
9975 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9976
9977         * build-aux/git-version-gen: Add --prefix to configure the tag
9978         match string.
9979
9980 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9981
9982         * build-aux/git-version-gen: Add --help and --version.
9983
9984 2011-11-12  Jim Meyering  <meyering@redhat.com>
9985
9986         revamp the other test-exclude?.sh scripts to use init.sh, too
9987         * tests/test-exclude1.sh: Use init.sh.
9988         * tests/test-exclude2.sh: Likewise.
9989         * tests/test-exclude3.sh: Likewise.
9990         * tests/test-exclude4.sh: Likewise.
9991         * tests/test-exclude5.sh: Likewise.
9992         * tests/test-exclude6.sh: Likewise.
9993         * tests/test-exclude7.sh: Likewise.
9994         * tests/test-exclude8.sh: Likewise.
9995         * modules/exclude-tests (Files): List init.sh.
9996
9997         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9998         These shell scripts ignored failure of the binary test-exclude,
9999         so making the latter return 77 didn't cause them to be skipped.
10000         * tests/test-exclude5.sh: Exit with test-exclude's error status
10001         when that program fails.  Revamp to use init.sh.
10002         * tests/test-exclude2.sh: Likewise.
10003
10004         test-exclude: fix a typo
10005         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10006
10007 2011-11-11  Bruno Haible  <bruno@clisp.org>
10008
10009         obstack: Fix compilation error on MSVC 9.
10010         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10011
10012 2011-11-11  Jim Meyering  <meyering@redhat.com>
10013
10014         test-exclude: skip tests rather than failing on deficient systems
10015         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10016         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10017         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10018         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10019
10020 2011-11-10  Bruno Haible  <bruno@clisp.org>
10021
10022         ptsname_r test: Avoid gcc warning on glibc systems.
10023         * tests/test-ptsname_r.c (null_ptr): New function.
10024         (test_errors): Use it.
10025
10026 2011-11-10  Bruno Haible  <bruno@clisp.org>
10027
10028         ptsname_r: Avoid compilation error on OSF/1 5.1.
10029         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10031         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10032         function is not declared or incompatibly declared.
10033         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10034         * modules/ptsname_r (Depends-on, configure.ac): Update.
10035         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10036
10037 2011-11-10  Bruno Haible  <bruno@clisp.org>
10038
10039         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10040         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10041         When cross-compiling, guess yes on all platforms except AIX.
10042         Reported by Ludovic Courtès <ludo@gnu.org>.
10043
10044 2011-11-09  Bruno Haible  <bruno@clisp.org>
10045
10046         ptsname_r tests: Fix bugs.
10047         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10048         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10049
10050 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10051
10052         fstatat: work with cross-compilation
10053         Problem reported by Ludovic Courtès in
10054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10055         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10056         "cross-compiling" and assume the bug is present.  Replace
10057         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10058         an inverted sense, to be more conservative about our assumptions.
10059         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10060
10061 2011-11-09  Bruno Haible  <bruno@clisp.org>
10062
10063         Improve MODULES.html output.
10064         * modules/mkfifoat (Description): Use the word "function".
10065         * modules/readlinkat (Description): Likewise.
10066         * modules/symlinkat (Description): Likewise.
10067
10068 2011-11-09  Eric Blake  <eblake@redhat.com>
10069
10070         ptsname_r-tests: new test module
10071         * modules/ptsname_r-tests: New module.
10072         * tests/test-ptsname_r.c: New file.
10073
10074         ptsname_r: new module
10075         * modules/ptsname_r: New module.
10076         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10077         * lib/ptsname.c (__ptsname_r): Split...
10078         * lib/ptsname_r.c: ...into new file.
10079         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10080         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10081         * modules/stdlib (Makefile.am): Substitute witnesses.
10082         * lib/stdlib.in.h (ptsname_r): Declare it.
10083         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10084         * MODULES.html.sh (Misc): Likewise.
10085         * modules/ptsname (Depends-on): Alter dependency.
10086         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10087
10088 2011-11-09  Jim Meyering  <meyering@redhat.com>
10089
10090         announce-gen: be more concise when there's only one URL+tarball
10091         * build-aux/announce-gen (get_tool_versions): When you distribute
10092         only one type of tarball, combine the first two "Here are..."
10093         sections and make the key-checking grammar independent of
10094         how many tarballs there are.
10095
10096 2011-11-09  Eric Blake  <eblake@redhat.com>
10097
10098         openpty: provide a stub on mingw
10099         * lib/pty.in.h (includes): Provide forward declarations.
10100         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10101
10102         raise: fix mingw handling of SIGPIPE
10103         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10104
10105 2011-11-08  Bruno Haible  <bruno@clisp.org>
10106
10107         More conditional dependencies.
10108         * modules/faccessat (Depends-on): Add conditions.
10109         * modules/fchmodat (Depends-on): Likewise.
10110         * modules/fchownat (Depends-on): Likewise.
10111         * modules/fstatat (Depends-on): Likewise.
10112         * modules/mkfifoat (Depends-on): Likewise.
10113         * modules/readlinkat (Depends-on): Likewise.
10114         * modules/symlinkat (Depends-on): Likewise.
10115         * modules/unlinkat (Depends-on): Likewise.
10116         * modules/utimensat (Depends-on): Likewise.
10117         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10118         * modules/linkat (Depends-on): Refine the conditions.
10119         * modules/renameat (Depends-on): Likewise.
10120
10121 2011-11-08  Bruno Haible  <bruno@clisp.org>
10122
10123         faccessat: Move AC_LIBOBJ invocation to module description.
10124         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10125         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10126         invocation from here...
10127         * modules/faccessat (configure.ac): ... to here. Invoke
10128         gl_PREREQ_FACCESSAT.
10129
10130 2011-11-08  Bruno Haible  <bruno@clisp.org>
10131
10132         faccessat: Simplify autoconf macro.
10133         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10134         gl_FUNC_EUIDACCESS.
10135
10136 2011-11-08  Bruno Haible  <bruno@clisp.org>
10137
10138         renameat: Fix dependencies.
10139         * modules/renameat (Depends-on): Add stdbool.
10140
10141 2011-11-08  Bruno Haible  <bruno@clisp.org>
10142
10143         mkfifoat: Fix module description.
10144         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10145         not gl_UNISTD_MODULE_INDICATOR.
10146
10147 2011-11-08  Bruno Haible  <bruno@clisp.org>
10148
10149         fstatat: Remove unused dependency.
10150         * modules/fstatat (Depends-on): Remove fstat.
10151
10152 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10153
10154         GNUmakefile: behave when Makefile is missing.
10155         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10156
10157 2011-11-08  Bruno Haible  <bruno@clisp.org>
10158
10159         openat: Conditionalize dependencies.
10160         * lib/openat.c: Reduce the scope of some #includes.
10161         * modules/openat (Depends-on): Add conditions.
10162
10163 2011-11-07  Jim Meyering  <meyering@redhat.com>
10164
10165         maint.mk: extract GPG key ID without using a temporary file
10166         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10167         without using a temporary file.  Based on a suggestion from Werner Koch
10168         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10169
10170 2011-11-07  Eric Blake  <eblake@redhat.com>
10171
10172         grantpt: fix typo
10173         * lib/stdlib.in.h (grantpt): Check correct function.
10174
10175         maint.mk: silence new syntax check
10176         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10177
10178 2011-11-06  Bruno Haible  <bruno@clisp.org>
10179
10180         Doc about floating-point and math API.
10181         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10182         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10183
10184 2011-11-06  Bruno Haible  <bruno@clisp.org>
10185
10186         stdalign tests: Skip the test when compiled by Sun C.
10187         * tests/test-stdalign.c (main): Skip the test on Sun C.
10188
10189 2011-11-06  Bruno Haible  <bruno@clisp.org>
10190
10191         ansi-c++-opt: Complete the 2011-06-05 change.
10192         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10193         does not support namespaces, set the variable to "no", not to ":".
10194
10195 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10196
10197         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10198
10199 2011-11-06  Bruno Haible  <bruno@clisp.org>
10200
10201         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10202         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10203         (minus_zerol) [HP-UX]: New macro.
10204         (unary_minus) [HP-UX]: New function.
10205         (copysignl) [HP-UX]: Use unary_minus function.
10206
10207 2011-11-06  Bruno Haible  <bruno@clisp.org>
10208
10209         ldexp, ldexpf, ldexpl: Enhance tests.
10210         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10211         and tests/test-ldexpl.c.
10212         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10213         LDEXP, MIN_EXP, MAX_EXP): New macros.
10214         Include test-ldexp.h.
10215         (main): Just call test_function.
10216         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10217         infinity.h, nan.h.
10218         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10219         MAX_EXP): New macros.
10220         Include test-ldexp.h.
10221         (x, y): Remove variables.
10222         (main): Just call test_function.
10223         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10224         infinity.h, nan.h.
10225         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10226         MAX_EXP): New macros.
10227         Include test-ldexp.h.
10228         (x, y): Remove variables.
10229         (main): Just call test_function.
10230         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10231         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10232         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10233         (Depends-on): Add isnand-nolibm, signbit, float.
10234         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10235         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10236         (Depends-on): Add isnanf-nolibm, signbit, float.
10237
10238 2011-11-06  Bruno Haible  <bruno@clisp.org>
10239
10240         math tests: Cosmetics.
10241         * tests/test-math-c++.cc: Reorder declarations.
10242
10243 2011-11-05  Bruno Haible  <bruno@clisp.org>
10244
10245         fma*: Simplify test.
10246         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10247         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10248
10249         Tests for module 'fmal'.
10250         * modules/fmal-tests: New file.
10251         * tests/test-fmal1.c: New file.
10252         * tests/test-fmal2.c: New file.
10253
10254         New module 'fmal'.
10255         * lib/math.in.h (fmal): New declaration.
10256         * lib/fmal.c: New file.
10257         * m4/fmal.m4: New file.
10258         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10260         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10261         REPLACE_FMAL.
10262         * modules/fmal: New file.
10263         * doc/posix-functions/fmal.texi: Mention the new module and the various
10264         bugs.
10265
10266         Tests for module 'fmaf'.
10267         * modules/fmaf-tests: New file.
10268         * tests/test-fmaf1.c: New file.
10269         * tests/test-fmaf2.c: New file.
10270
10271         New module 'fmaf'.
10272         * lib/math.in.h (fmaf): New declaration.
10273         * lib/fmaf.c: New file.
10274         * m4/fmaf.m4: New file.
10275         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10277         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10278         REPLACE_FMAF.
10279         * modules/fmaf: New file.
10280         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10281         bugs.
10282
10283         Tests for module 'fma'.
10284         * modules/fma-tests: New file.
10285         * tests/test-fma1.c: New file.
10286         * tests/test-fma1.h: New file.
10287         * tests/test-fma2.c: New file.
10288         * tests/test-fma2.h: New file.
10289
10290         New module 'fma'.
10291         * lib/math.in.h (fma): New declaration.
10292         * lib/fma.c: New file.
10293         * m4/fma.m4: New file.
10294         * m4/fegetround.m4: New file.
10295         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10297         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10298         REPLACE_FMA.
10299         * modules/fma: New file.
10300         * doc/posix-functions/fma.texi: Mention the new module and the various
10301         bugs.
10302
10303         Extend gl_MATHFUNC.
10304         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10305         Support 'void' as argument type.
10306         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10307
10308 2011-11-05  Jim Meyering  <meyering@redhat.com>
10309
10310         maint.mk: also prohibit inclusion of dirent.h without use
10311         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10312
10313 2011-11-05  Bruno Haible  <bruno@clisp.org>
10314
10315         ldexpl tests: Avoid test failure on MSVC 9.
10316         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10317         value. Needed in order to enforce the conversion from a value greater
10318         than LDBL_MAX to Infinity.
10319
10320 2011-11-05  Bruno Haible  <bruno@clisp.org>
10321
10322         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10323         * modules/at-internal: New file, extracted from modules/openat.
10324         * modules/openat-h: New file.
10325         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10326         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10327         * modules/openat (Description): Add reference to POSIX function.
10328         (Files): Remove lib/openat.h, lib/openat-proc.c.
10329         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10330         intprops, unistd.
10331         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10332         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10333         gl_FCNTL_MODULE_INDICATOR.
10334         (Include): Remove unistd.h, openat.h.
10335         * modules/areadlinkat (Files): Add lib/at-func.c.
10336         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10337         openat-die, openat-h, save-cwd.
10338         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10339         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10340         openat-die, openat-h, save-cwd, unistd.
10341         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10342         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10343         openat-h, save-cwd. Remove fcntl-h, openat.
10344         * modules/fchmodat (Files): Remove lib/openat.h.
10345         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10346         openat, stdbool, unistd.
10347         * modules/fchownat (Files): Remove lib/openat.h.
10348         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10349         openat, stdbool, sys_stat.
10350         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10351         lib/openat-proc.c.
10352         (Depends-on): Add at-internal.
10353         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10354         * modules/fstatat (Files): Remove lib/openat.h.
10355         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10356         stdbool, unistd.
10357         * modules/fts (Depends-on): Add openat-h.
10358         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10359         openat.
10360         * modules/mkdirat (Files): Remove lib/openat.h.
10361         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10362         openat, stdbool, sys_stat.
10363         * modules/mkfifoat (Files): Add lib/at-func.c.
10364         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10365         openat-h, save-cwd. Remove fcntl-h, openat.
10366         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10367         * modules/readlinkat (Files): Add lib/at-func.c.
10368         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10369         openat-h, save-cwd. Remove fcntl-h, openat.
10370         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10371         openat.
10372         * modules/selinux-at (Files): Add lib/at-func.c.
10373         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10374         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10375         * modules/symlinkat (Files): Add lib/at-func.c.
10376         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10377         openat-h, save-cwd. Remove fcntl-h, openat.
10378         * modules/unlinkat (Files): Remove lib/openat.h.
10379         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10380         stdbool.
10381         * modules/utimensat (Files): Add lib/at-func.c.
10382         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10383         openat-die, openat-h, save-cwd.
10384         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10385         * modules/fdutimensat-tests (Depends-on): Add openat.
10386         * modules/fstatat-tests (Depends-on): Add openat-h.
10387         * modules/readlinkat-tests (Depends-on): Add openat.
10388         * modules/symlinkat-tests (Depends-on): Add openat.
10389
10390 2011-11-05  Bruno Haible  <bruno@clisp.org>
10391
10392         openat: Include <stdbool.h>.
10393         * lib/openat.c: Include <stdbool.h>.
10394
10395 2011-11-04  Bruno Haible  <bruno@clisp.org>
10396
10397         fchownat, renameat, unlinkat: Fix dependencies.
10398         * modules/fchownat (Depends-on): Add fstatat.
10399         * modules/renameat (Depends-on): Likewise.
10400         * modules/unlinkat (Depends-on): Likewise.
10401
10402 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         openat: remove direct dependency on dirent
10405         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10406         and hasn't been needed ever since fdopendir was split into its own
10407         module on 2009-08-31.
10408         * modules/openat (Depends-on): Remove dirent.
10409
10410 2011-11-04  Bruno Haible  <bruno@clisp.org>
10411
10412         renameat: Optimize code size.
10413         * modules/renameat (configure.ac): Don't compile at-func2.c if
10414         REPLACE_RENAMEAT is 1.
10415
10416 2011-11-04  Bruno Haible  <bruno@clisp.org>
10417
10418         openat tests: Fix file list.
10419         * modules/openat-tests (Files): Add tests/test-open.h.
10420
10421 2011-11-04  Bruno Haible  <bruno@clisp.org>
10422
10423         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10424         * modules/fchmodat (Depends-on): Add openat-die.
10425         * modules/fchownat (Depends-on): Likewise.
10426         * modules/linkat (Depends-on): Likewise.
10427         * modules/renameat (Depends-on): Likewise.
10428         * modules/openat (Depends-on): Add dirent.
10429
10430 2011-11-04  Jim Meyering  <meyering@redhat.com>
10431
10432         at-func*.c: fix comments
10433         * lib/at-func2.c: Correct/improve first-line comment.
10434         * lib/at-func.c: Correct grammar in first-line comment.
10435
10436 2011-11-04  Bruno Haible  <bruno@clisp.org>
10437
10438         New module 'mkdirat', split off from module 'openat'.
10439         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10440         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10441         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10442         * modules/mkdirat: New file, extracted from modules/openat.
10443         * modules/openat (Files): Remove lib/mkdirat.c.
10444         (Depends-on): Remove mkdir.
10445         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10446         (Include): Remove <sys/stat.h>.
10447         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10448         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10449         tests/test-mkdir.h.
10450         (Depends-on): Remove ignore-value.
10451         (Makefile.am): Remove rules for test-mkdirat.
10452         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10453         of module 'openat'.
10454         * NEWS: Mention the change.
10455
10456 2011-11-04  Bruno Haible  <bruno@clisp.org>
10457
10458         closedir: Avoid warning on mingw.
10459         * lib/closedir.c: Include <unistd.h>.
10460
10461 2011-11-04  Bruno Haible  <bruno@clisp.org>
10462
10463         New module 'fstatat', split off from module 'openat'.
10464         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10465         defined.
10466         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10467         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10468         gl_FUNC_FSTATAT.
10469         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10470         * modules/fstatat: New file, extracted from modules/openat.
10471         * modules/openat (Files): Remove lib/fstatat.c.
10472         (Depends-on): Remove lstat.
10473         (configure.ac): Remove AC_LIBOBJ of fstatat.
10474         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10475         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10476         tests/test-lstat.h, tests/test-stat.h.
10477         (Depends-on): Remove getcwd-lgpl.
10478         (Makefile.am): Remove rules for test-fstatat.
10479         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10480         of module 'openat'.
10481         * NEWS: Mention the change.
10482         * modules/getcwd (Depends-on): Add fstatat.
10483         * modules/linkat (Depends-on): Likewise.
10484         * modules/mkfifoat-tests (Depends-on): Likewise.
10485         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10486
10487 2011-11-03  Bruno Haible  <bruno@clisp.org>
10488
10489         New module 'unlinkat', split off from module 'openat'.
10490         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10491         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10492         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10493         * modules/unlinkat: New file, extracted from modules/openat. Correct
10494         the dependency conditions.
10495         * modules/openat (Files): Remove lib/unlinkat.c.
10496         (Depends-on): Remove rmdir, unlink.
10497         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10498         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10499         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10500         tests/test-rmdir.h, tests/test-unlink.h.
10501         (Depends-on): Remove unlinkdir.
10502         (Makefile.am): Remove rules for test-unlinkat.
10503         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10504         of module 'openat'.
10505         * NEWS: Mention the change.
10506         * modules/linkat-tests (Depends-on): Add unlinkat.
10507         * modules/mkfifoat-tests (Depends-on): Likewise.
10508         * modules/readlinkat-tests (Depends-on): Likewise.
10509
10510 2011-11-02  Bruno Haible  <bruno@clisp.org>
10511
10512         New module 'fchmodat', split off from module 'openat'.
10513         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10514         defined.
10515         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10516         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10517         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10518         * modules/fchmodat: New file, extracted from modules/openat.
10519         * modules/openat (Files): Remove lib/fchmodat.c.
10520         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10521         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10522         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10523         (Makefile.am): Remove rules for test-fchmodat.
10524         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10525         of module 'openat'.
10526         * NEWS: Mention the change.
10527
10528 2011-11-02  Jim Meyering  <meyering@redhat.com>
10529
10530         putenv: indent #definition of "environ" to placate cppi
10531         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10532
10533         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10534         Git logs are often treated as immutable, because editing them
10535         changes the SHA1 checksums of all descendants.  Thus, errors in
10536         git logs tend to stay there forever.  However, when we generate
10537         a ChangeLog file -- typically for distribution -- from that git log,
10538         we can actually make corrections in the generated file.  The key
10539         lies in recording in machine-readable/applicable form the desired
10540         corrections.  See --help for description and an example.
10541         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10542         (usage): Describe it; alphabetize option descriptions.
10543         (main): Honor the new option, carefully.
10544
10545 2011-11-01  Jim Meyering  <meyering@redhat.com>
10546
10547         gitlog-to-changelog: avoid an infloop
10548         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10549         that ends up being empty.
10550
10551 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10554         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10555         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10556         contains (possibly-quoted) backslashes.  This should avoid
10557         all-too-common shell bugs if COMPLICATED contains backslashes in
10558         the "wrong" places.  Reported by David Evans in
10559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10560         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10561         because we want ASCII ranges.  Is there some reason we don't use
10562         the C locale everywhere in this script?
10563         (func_module, top level): Avoid unwanted pathname expansion when
10564         $repo_url_prefix or $repo_url_suffix_repl contain shell
10565         metacharacters like '?' and '*'.
10566
10567 2011-11-01  Bruno Haible  <bruno@clisp.org>
10568
10569         fchownat: Improve description.
10570         * modules/fchownat (Description): Add link to function.
10571
10572 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10573
10574         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10575         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10577         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10578
10579 2011-11-01  Bruno Haible  <bruno@clisp.org>
10580
10581         alignof: Avoid collision with stdalign module.
10582         * lib/alignof.h (alignof): Remove macro.
10583         * NEWS: Mention the change.
10584         Reported by Paul Eggert.
10585
10586 2011-11-01  Bruno Haible  <bruno@clisp.org>
10587
10588         New module 'fchownat', split off from module 'openat'.
10589         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10590         defined.
10591         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10592         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10593         invoke gl_FUNC_FCHOWNAT.
10594         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10595         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10596         * modules/fchownat: New file, extracted from modules/openat.
10597         * modules/openat (Files): Remove lib/fchownat.c.
10598         (Depends-on): Remove lchown.
10599         (configure.ac): Remove AC_LIBOBJ of fchownat.
10600         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10601         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10602         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10603         (Depends-on): Remove mgetgroups, usleep, stat-time.
10604         (configure.ac): Remove test for getegid.
10605         (Makefile.am): Remove rules for test-fchownat.
10606         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10607         of module 'openat'.
10608         * NEWS: Mention the change.
10609
10610 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10611
10612         stdalign: port better to MSVC and to Sun C 5.11
10613         This fixes some of the problems reported by Bruno Haible in
10614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10615         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10616         shortcomings of MSVC and of Sun C 5.11.
10617         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10618         around __declspec arg.
10619         * modules/stdalign-tests (Files): Add tests/macros.h.
10620         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10621         Include macros.h, for ASSERT.
10622         (DECLARE_ALIGNED): Remove.
10623         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10624         to catch bug), and to 1 if not (simplifies the rest of the code).
10625         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10626         (CHECK_AUTO): Remove.
10627         (CHECK_ALIGNED): Check only the alignment of the static vars,
10628         since auto var alignment isn't supported by Sun C 5.11.
10629         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10630         ASSERT failures are easier to diagnose.
10631
10632 2011-10-31  Bruno Haible  <bruno@clisp.org>
10633
10634         doc about some IRIX 5.3 problems.
10635         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10636         on IRIX 5.3.
10637         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10638         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10639         5.3.
10640         * doc/posix-functions/grantpt.texi: Likewise.
10641         * doc/posix-functions/unlockpt.texi: Likewise.
10642         * doc/posix-functions/lgamma.texi: Likewise.
10643         * doc/posix-functions/nextafter.texi: Likewise.
10644         * doc/posix-functions/remainder.texi: Likewise.
10645         * doc/posix-functions/select.texi: Mention misplaced declaration on
10646         IRIX 5.3.
10647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10648
10649 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10650
10651         gitlog-to-changelog: fix git-log invocation.
10652         git-log mishandles date strings before 1970-01-01 UTC, and there is
10653         no use to specify --since=1970-01-01 by default anyway.
10654         * build-aux/gitlog-to-changelog: By default, when no --since option
10655         was given, do not specify explicit --since option to git-log.
10656
10657 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10658
10659         gitlog-to-changelog: new option --append-dot.
10660         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10661         first non-blank line of each commit message terminated with a dot.
10662
10663 2011-10-30  Bruno Haible  <bruno@clisp.org>
10664
10665         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10666         * lib/ffsl.h: Include <config.h>.
10667         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10668
10669 2011-10-30  Jim Meyering  <meyering@redhat.com>
10670
10671         GNUmakefile: reenable "make syntax-check" for most projects
10672         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10673         build-aux variable", "syntax-check" would do nothing but succeed with
10674         the "No version control files detected..." diagnostic (unless you
10675         happened to override _build-aux via cfg.mk).
10676         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10677         to precede inclusion of maint.mk.  Otherwise, these variables would
10678         be used undefined in any project that does not override the default.
10679
10680 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10681
10682         gitlog-to-changelog: treat a message with only blank lines as empty.
10683         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10684         trailing blank lines before the code that issues a warning about an
10685         empty commit message.
10686
10687 2011-10-30  Jim Meyering  <meyering@redhat.com>
10688
10689         test-parse-datetime.c: avoid new DST-related false positive test failure
10690         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10691         based on the time/date we'll convert, not the current time.
10692         Otherwise, the moment we cross a DST boundary like today's in
10693         Europe, (CEST to CET), that offset ends up being one hour off.
10694
10695 2011-10-27  Bruno Haible  <bruno@clisp.org>
10696
10697         fstat: Tweak documentation.
10698         * modules/fstat (Description): More precise description.
10699
10700 2011-10-27  Bruno Haible  <bruno@clisp.org>
10701
10702         Update documentation regarding 'largefile' module.
10703         * doc/posix-functions/fstat.texi: Tweak wording.
10704         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10705         problems with huge directories and/or small ino_t types.
10706         * doc/posix-functions/readdir.texi: Likewise.
10707         * doc/posix-functions/rewinddir.texi: Likewise.
10708
10709 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10710
10711         maint.mk: don't maintain a second build-aux variable.
10712         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10713         depends on GNUmakefile, which already maintains a cfg.mk
10714         overridable $(_build-aux) for projects with a non-standard
10715         build-aux directory location, although without the $(srcdir)
10716         prefix.  Use that variable consistently instead of introducing a
10717         second one.  Adjust all call sites.
10718
10719 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10720
10721         Add stdalign module and use it in other modules.
10722         This is based on a previous proposal by Bruno Haible
10723         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10724
10725         stdalign: new module
10726         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10727         * modules/stdalign: New files.
10728         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10729         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10730
10731         stdalign-tests: new module
10732         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10733
10734         argp: use stdalign
10735         * lib/argp-parse.c: Include <stdalign.h>.
10736         (alignof): Remove.
10737         * modules/argp (Depends-on): Add stdalign.
10738
10739         crypto libraries: use stdalign
10740         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10741         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10742         Do not include <stdlib.h> twice, in md4.c.
10743         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10744         because we are accessing a pointer's bit-pattern, not a size.
10745         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10746         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10747         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10748         * modules/crypto/sha512: Likewise.
10749
10750         sys_socket: use stdalign, not alignof
10751         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10752         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10753
10754 2011-10-27  Bruno Haible  <bruno@clisp.org>
10755
10756         raise test: Avoid a test failure on Linux/MIPS.
10757         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10758         because 99 is a valid signal on Linux/MIPS.
10759
10760 2011-10-27  Bruno Haible  <bruno@clisp.org>
10761
10762         nonblocking tests: Fix test failure on Linux/MIPS.
10763         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10764         Set to 270000.
10765
10766 2011-10-27  Bruno Haible  <bruno@clisp.org>
10767
10768         utimensat: Work around problem on Linux/hppa.
10769         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10770         values.
10771         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10772
10773 2011-10-25  Jim Meyering  <meyering@redhat.com>
10774
10775         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10776         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10777         after symbols like NULL, size_t, etc.
10778         Reported by Alfred M. Szmidt.
10779
10780         maint.mk: exempt ENODATA from a syntax-check rule
10781         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10782         from the sc_prohibit_always-defined_macros syntax-check rule.
10783         Add a comment.  See this for more details:
10784         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10785
10786 2011-10-23  Jim Meyering  <meyering@redhat.com>
10787
10788         fts: close parent dir FD before returning from post-traversal fts_read
10789         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10790         unlink A, even though an FD open on A remained.  This is suboptimal
10791         (holding a file descriptor open longer than needed), but otherwise not
10792         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10793         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10794         that represents a real problem: it causes the removal of A to fail
10795         with e.g., "rm: cannot remove `A': Device or resource busy"
10796
10797         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10798         directory file descriptors.  After completing the final, FTS_DP,
10799         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10800         cache, but then proceeded to add a new FD to it via the subsequent
10801         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10802         final file descriptor would be closed only via fts_close's call to
10803         fd_ring_clear.  Now, it is usually closed earlier, via the final
10804         FTS_DP-returning fts_read call.
10805         * lib/fts.c (restore_initial_cwd): New function, converted from
10806         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10807         Update callers.
10808         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10809         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10810
10811 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10812             Bruno Haible  <bruno@clisp.org>
10813             Jim Meyering  <jim@meyering.net>
10814
10815         readme-release: improve safety of release prep instructions.
10816         * README-release: Don't git pull all branches when only master
10817         is needed for the release process.
10818         Run make maintainer-clean before changing trees and merging.
10819         Don't try to run ./configure right after git pull in case files
10820         that influence the bootstrap process have changed, move the
10821         ./configure step to after running ./bootstrap.
10822         Don't bootstrap "one last time"... it's the first time!
10823
10824 2011-10-22  Bruno Haible  <bruno@clisp.org>
10825
10826         errno, strerror-override: Support for MSVC 10.
10827         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10828         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10829         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10830         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10831         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10832         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10833         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10834         Assign values compatible with MSVC 10.
10835         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10836         New macros.
10837         (GNULIB_defined_EWINSOCK): New macro.
10838         * lib/strerror-override.c (strerror_override): Update accordingly.
10839         * lib/strerror-override.h: Likewise.
10840         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10841         longer equal to the corresponding errno value.
10842         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10843
10844 2011-10-22  Bruno Haible  <bruno@clisp.org>
10845
10846         perror: Recognize when test program crashes.
10847         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10848         strerror, set gl_cv_func_perror_works to no.
10849         Reported by Daniel Richard G. <skunk@iskunk.org>.
10850
10851         perror: Fix indentation.
10852         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10853
10854 2011-10-22  Bruno Haible  <bruno@clisp.org>
10855
10856         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10857         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10858         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10859         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10860         functions, not as a macro.
10861         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10862         macros.
10863         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10864         absence of macro.
10865         Suggested by Eric Blake.
10866         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10867
10868 2011-10-21  Bruno Haible  <bruno@clisp.org>
10869
10870         relocatable-prog-wrapper: Don't leave object files behind.
10871         * build-aux/install-reloc: Re-synchronize list of .o files to be
10872         removed with list of compilation units.
10873
10874 2011-10-20  Bruno Haible  <bruno@clisp.org>
10875
10876         openpty, posix_openpt: Remove code duplication.
10877         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10878         * lib/openpty.c: Include <stdlib.h>.
10879         (openpty): Use posix_openpt on all platforms except IRIX.
10880         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10881
10882 2011-10-20  Bruno Haible  <bruno@clisp.org>
10883
10884         unlockpt: Detect invalid argument.
10885         * lib/unlockpt.c: Include <fcntl.h>.
10886         (unlockpt): Check whether fd is valid, using fcntl().
10887         * modules/unlockpt (Depends-on): Add fcntl-h.
10888
10889 2011-10-20  Bruno Haible  <bruno@clisp.org>
10890
10891         openpty: Avoid compilation error on AIX 6.1.
10892         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10893
10894 2011-10-20  Bruno Haible  <bruno@clisp.org>
10895
10896         posix_openpt: Support for OpenBSD.
10897         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10898         (posix_openpt) [OpenBSD]: New code.
10899         * lib/grantpt.c: Include <fcntl.h>.
10900         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10901         * modules/grantpt (Depends-on): Add fcntl-h.
10902
10903 2011-10-20  Bruno Haible  <bruno@clisp.org>
10904
10905         posix_openpt test: Coding style.
10906         * tests/test-posix_openpt.c: Use GNU coding style.
10907
10908 2011-10-20  Bruno Haible  <bruno@clisp.org>
10909
10910         grantpt: Support --avoid=pt_chown.
10911         * modules/grantpt (Files): Add lib/pty-private.h.
10912
10913 2011-10-20  Bruno Haible  <bruno@clisp.org>
10914
10915         posix_openpt: Fix autoconf macro.
10916         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10917         unneeded check for _getpty.
10918
10919 2011-10-20  Bruno Haible  <bruno@clisp.org>
10920
10921         openpty: Update comments.
10922         * lib/openpty.c: Add comments about Minix.
10923
10924 2011-10-19  Eric Blake  <eblake@redhat.com>
10925
10926         openpty: relax license
10927         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10928
10929         pt_chown: use configmake to simplify build
10930         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10931
10932         ptsname and others: relax license
10933         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10934         * modules/unlockpt (License): Likewise.
10935         * modules/pt_chown (License): Likewise.
10936         * modules/ptsname (License): Likewise.
10937         * modules/ttyname_r (License): Likewise.
10938
10939 2011-10-19  Jim Meyering  <meyering@redhat.com>
10940
10941         posix_openpt: remove spurious #endif
10942         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10943
10944 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10945
10946         maint.mk: Respect $(build_aux) in web-manual rule.
10947         * top/maint.mk (web-manual): Find gen-announce script in user's
10948         $(build_aux) directory instead of hard-coding 'build-aux'.
10949
10950 2011-10-19  Bruno Haible  <bruno@clisp.org>
10951
10952         posix_openpt: Fix compilation error.
10953         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10954         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10955         Mention the openpty module as an alternative.
10956
10957 2011-10-19  Bruno Haible  <bruno@clisp.org>
10958
10959         Support for old NeXTstep 3.3 frexp().
10960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10961         execution time of the test to 5 seconds.
10962         Reported by Daniel Richard G. <skunk@iskunk.org>.
10963
10964 2011-10-19  Bruno Haible  <bruno@clisp.org>
10965
10966         Support for old NeXTstep 3.3 sed.
10967         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10968         part, use /.../, not \|...|. Escape periods in the header file name.
10969         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10970         Reported by Daniel Richard G. <skunk@iskunk.org>.
10971
10972 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10973
10974         Support for old NeXTstep 3.3 gcc.
10975         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10976         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10977         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10978         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10979         * lib/regex.h (_Restrict_arr_): Likewise.
10980         * lib/regex_internal.h (re_token_t): Likewise.
10981         * lib/regexec.c (check_node_accept_bytes): Likewise.
10982         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10983
10984 2011-10-18  Eric Blake  <eblake@redhat.com>
10985
10986         posix_openpt: new module
10987         * modules/posix_openpt: New module.
10988         * m4/posix_openpt.m4: New file.
10989         * lib/posix_openpt.c: Likewise.
10990         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10991         (gl_STDLIB_H_DEFAULTS): Set defaults.
10992         * modules/stdlib (Makefile.am): Substitute macros.
10993         * lib/stdlib.in.h (posix_openpt): Declare.
10994         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10995         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10996         * modules/posix_openpt-tests: New test module.
10997         * tests/test-posix_openpt.c: New test.
10998
10999 2011-10-15  Bruno Haible  <bruno@clisp.org>
11000
11001         xstrtoll: Fix compilation failure.
11002         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11003         from lib/strtol.c.
11004         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11005         some platforms.
11006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11007
11008 2011-10-15  Bruno Haible  <bruno@clisp.org>
11009
11010         vasnprintf: Optimize bit search operation.
11011         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11013         gl_DOUBLE_EXPONENT_LOCATION.
11014         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11015         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11016         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11017         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11018         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11019         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11020         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11021         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11022         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11023
11024 2011-10-15  Bruno Haible  <bruno@clisp.org>
11025
11026         vasnprintf: Fix comments.
11027         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11028
11029 2011-10-14  Bruno Haible  <bruno@clisp.org>
11030
11031         Tests for module 'integer_length_ll'.
11032         * modules/integer_length_ll-tests: New file.
11033         * tests/test-integer_length_ll.c: New file.
11034
11035         New module 'integer_length_ll'.
11036         * lib/integer_length_ll.c: New file.
11037         * modules/integer_length_ll: New file.
11038
11039 2011-10-14  Bruno Haible  <bruno@clisp.org>
11040
11041         Tests for module 'integer_length_l'.
11042         * modules/integer_length_l-tests: New file.
11043         * tests/test-integer_length_l.c: New file.
11044
11045         New module 'integer_length_l'.
11046         * lib/integer_length_l.c: New file.
11047         * modules/integer_length_l: New file.
11048
11049 2011-10-14  Bruno Haible  <bruno@clisp.org>
11050
11051         Tests for module 'integer_length'.
11052         * modules/integer_length-tests: New file.
11053         * tests/test-integer_length.c: New file.
11054
11055         New module 'integer_length'.
11056         * lib/integer_length.h: New file.
11057         * lib/integer_length.c: New file.
11058         * modules/integer_length: New file.
11059
11060 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11061
11062         popen: Fix dependency conditions.
11063         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11064
11065 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11066
11067         perror: Fix autoconf test.
11068         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11069         <stdlib.h> and <string.h>.
11070
11071 2011-10-14  Bruno Haible  <bruno@clisp.org>
11072
11073         ffsl: Optimize on 64-bit platforms.
11074         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11075         unrolling.
11076
11077 2011-10-13  Bruno Haible  <bruno@clisp.org>
11078
11079         ffsl: Optimize on 32-bit platforms.
11080         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11081         use ffs() without a loop.
11082
11083         ffsl, ffsll: Optimize for GCC.
11084         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11085         * lib/ffsl.c (GCC_BUILTIN): New macro.
11086         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11087
11088 2011-10-13  Bruno Haible  <bruno@clisp.org>
11089
11090         ffs, bcopy, memset: Support symbol renaming via config.h.
11091         * lib/ffs.c: Include <config.h>.
11092         * lib/bcopy.c: Likewise.
11093         * lib/memset.c: Likewise.
11094
11095 2011-10-10  Bruno Haible  <bruno@clisp.org>
11096
11097         atanl: Simplify for platforms where 'long double' == 'double'.
11098         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11099         alternative implementation.
11100         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11101         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11102         * modules/atanl (Depends-on): Add atan. Update conditions.
11103
11104 2011-10-10  Bruno Haible  <bruno@clisp.org>
11105
11106         acosl: Simplify for platforms where 'long double' == 'double'.
11107         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11108         alternative implementation.
11109         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11110         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11111         * modules/acosl (Depends-on): Add acos. Update conditions.
11112
11113 2011-10-10  Bruno Haible  <bruno@clisp.org>
11114
11115         asinl: Simplify for platforms where 'long double' == 'double'.
11116         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11117         alternative implementation.
11118         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11119         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11120         * modules/asinl (Depends-on): Add asin. Update conditions.
11121
11122 2011-10-10  Bruno Haible  <bruno@clisp.org>
11123
11124         tanl: Simplify for platforms where 'long double' == 'double'.
11125         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11126         implementation.
11127         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11128         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11129         * modules/tanl (Depends-on): Add tan. Update conditions.
11130         (configure.ac): Don't compile trigl.c if
11131         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11132
11133 2011-10-10  Bruno Haible  <bruno@clisp.org>
11134
11135         cosl: Simplify for platforms where 'long double' == 'double'.
11136         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11137         implementation.
11138         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11139         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11140         * modules/cosl (Depends-on): Add cos. Update conditions.
11141         (configure.ac): Don't compile sincosl.c and trigl.c if
11142         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11143
11144 2011-10-10  Bruno Haible  <bruno@clisp.org>
11145
11146         sinl: Simplify for platforms where 'long double' == 'double'.
11147         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11148         implementation.
11149         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11150         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11151         * modules/sinl (Depends-on): Add sin. Update conditions.
11152         (configure.ac): Don't compile sincosl.c and trigl.c if
11153         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11154
11155 2011-10-10  Bruno Haible  <bruno@clisp.org>
11156
11157         logl: Simplify for platforms where 'long double' == 'double'.
11158         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11159         implementation.
11160         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11161         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11162         * modules/logl (Depends-on): Add log. Update conditions.
11163
11164 2011-10-10  Bruno Haible  <bruno@clisp.org>
11165
11166         expl: Simplify for platforms where 'long double' == 'double'.
11167         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11168         implementation.
11169         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11170         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11171         * modules/expl (Depends-on): Add exp. Update conditions.
11172
11173 2011-10-10  Bruno Haible  <bruno@clisp.org>
11174
11175         sqrtl: Simplify for platforms where 'long double' == 'double'.
11176         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11177         alternative implementation.
11178         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11179         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11180         * modules/sqrtl (Depends-on): Update conditions.
11181
11182 2011-10-10  Bruno Haible  <bruno@clisp.org>
11183
11184         ldexpl: Simplify for platforms where 'long double' == 'double'.
11185         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11186         alternative implementation.
11187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11188         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11189         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11190
11191 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11192
11193         ffsll: set correct witness
11194         * modules/ffsll (configure.ac): Fix typo.
11195
11196 2011-10-10  Bruno Haible  <bruno@clisp.org>
11197
11198         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11199         * lib/printf-frexpl.c: Include <config.h>.
11200         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11201         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11202         second time.
11203         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11204         gl_LONG_DOUBLE_VS_DOUBLE.
11205         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11206         conditions.
11207
11208 2011-10-10  Bruno Haible  <bruno@clisp.org>
11209
11210         frexpl: Simplify for platforms where 'long double' == 'double'.
11211         * lib/frexpl.c: Include <config.h>.
11212         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11213         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11214         time.
11215         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11216         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11217         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11218         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11219         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11220         conditions.
11221
11222 2011-10-10  Jim Meyering  <meyering@redhat.com>
11223
11224         test-renameat: don't leave behind a temporary file
11225         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11226           ERROR: files left in build directory after distclean:
11227           ./gltests/test-renameat.too
11228           make[1]: *** [distcleancheck] Error 1
11229         Reported by Tom G. Christensen.
11230
11231 2011-10-09  Bruno Haible  <bruno@clisp.org>
11232
11233         rint: Determine RINT_LIBM correctly on AIX 7.
11234         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11235         directly, not only through a function pointer. Also accept an optional
11236         4th argument with extra code.
11237         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11238         rintf() call by gcc when optimizing.
11239
11240         mathfunc.m4: Refactor.
11241         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11242         m4 variable.
11243
11244 2011-10-09  Bruno Haible  <bruno@clisp.org>
11245
11246         rintl: Simplify for platforms where 'long double' == 'double'.
11247         * lib/rintl.c: Include <config.h>.
11248         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11249         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11250         time.
11251         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11252         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11253         * modules/rintl (Depends-on): Add rint. Update conditions.
11254
11255 2011-10-09  Bruno Haible  <bruno@clisp.org>
11256
11257         roundl: Simplify for platforms where 'long double' == 'double'.
11258         * lib/roundl.c: Include <config.h>.
11259         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11260         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11261         time.
11262         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11263         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11264         * modules/roundl (Depends-on): Add round. Update conditions.
11265
11266 2011-10-09  Bruno Haible  <bruno@clisp.org>
11267
11268         truncl: Simplify for platforms where 'long double' == 'double'.
11269         * lib/truncl.c: Include <config.h>.
11270         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11271         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11272         time.
11273         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11274         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11275         * modules/truncl (Depends-on): Add trunc. Update conditions.
11276
11277 2011-10-09  Bruno Haible  <bruno@clisp.org>
11278
11279         ceill: Simplify for platforms where 'long double' == 'double'.
11280         * lib/ceill.c: Include <config.h>.
11281         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11282         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11283         time.
11284         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11285         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11286         * modules/ceill (Depends-on): Add ceil. Update conditions.
11287
11288 2011-10-09  Bruno Haible  <bruno@clisp.org>
11289
11290         floorl: Simplify for platforms where 'long double' == 'double'.
11291         * lib/floorl.c: Include <config.h>.
11292         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11293         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11294         time.
11295         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11296         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11297         * modules/floorl (Depends-on): Add floor. Update conditions.
11298
11299 2011-10-09  Bruno Haible  <bruno@clisp.org>
11300
11301         rint: Fix ordering constraints.
11302         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11303         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11304         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11305
11306 2011-10-09  Bruno Haible  <bruno@clisp.org>
11307
11308         copysignl: Simplify for platforms where 'long double' == 'double'.
11309         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11310         alternative.
11311         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11312         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11313         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11314
11315 2011-10-09  Bruno Haible  <bruno@clisp.org>
11316
11317         Tests for module 'rintl'.
11318         * modules/rintl-tests: New file.
11319         * tests/test-rintl.c: New file.
11320
11321         New module 'rintl'.
11322         * lib/math.in.h (rintl): New declaration.
11323         * lib/rintl.c: New file.
11324         * m4/rintl.m4: New file.
11325         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11327         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11328         * modules/rintl: New file.
11329         * tests/test-math-c++.cc: Check the declaration of rintl.
11330         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11331         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11332         * doc/posix-functions/rintl.texi: Mention the new module.
11333
11334 2011-10-09  Bruno Haible  <bruno@clisp.org>
11335
11336         Tests for module 'rintf'.
11337         * modules/rintf-tests: New file.
11338         * tests/test-rintf.c: New file.
11339
11340         New module 'rintf'.
11341         * lib/math.in.h (rintf): New declaration.
11342         * lib/rintf.c: New file.
11343         * m4/rintf.m4: New file.
11344         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11346         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11347         * modules/rintf: New file.
11348         * tests/test-math-c++.cc: Check the declaration of rintf.
11349         * doc/posix-functions/rintf.texi: Mention the new module.
11350
11351 2011-10-09  Bruno Haible  <bruno@clisp.org>
11352
11353         rint: Support for MSVC.
11354         * lib/math.in.h (rint): New declaration.
11355         * lib/rint.c: New file.
11356         * m4/rint.m4: New file.
11357         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11359         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11360         * modules/rint (Description): Fix.
11361         (Files): Add lib/rint.c, m4/rint.m4.
11362         (Depends-on): Add math.
11363         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11364         gl_MATH_MODULE_INDICATOR.
11365         * tests/test-math-c++.cc: Check the declaration of rint.
11366         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11367         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11368         * doc/posix-functions/rint.texi: Mention the replacement provided by
11369         the module.
11370
11371         rint tests: More tests.
11372         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11373         minus-zero.h, infinity.h, nan.h.
11374         (main): Skip the test if the current rounding mode is not standard. Add
11375         tests for negative numbers, minus zero, infinity, NaN.
11376         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11377         tests/nan.h.
11378         (Depends-on): Add isnand-nolibm.
11379
11380 2011-10-09  Bruno Haible  <bruno@clisp.org>
11381
11382         Tests for module 'copysignl'.
11383         * modules/copysignl-tests: New file.
11384         * tests/test-copysignl.c: New file.
11385
11386         New module 'copysignl'.
11387         * lib/math.in.h (copysignl): New declaration.
11388         * lib/copysignl.c: New file.
11389         * m4/copysignl.m4: New file.
11390         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11392         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11393         HAVE_COPYSIGNL.
11394         * modules/copysignl: New file.
11395         * tests/test-math-c++.cc: Check the declaration of copysignl.
11396         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11397         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11398         * doc/posix-functions/copysignl.texi: Mention the new module.
11399
11400 2011-10-09  Bruno Haible  <bruno@clisp.org>
11401
11402         Tests for module 'copysignf'.
11403         * modules/copysignf-tests: New file.
11404         * tests/test-copysignf.c: New file.
11405
11406         New module 'copysignf'.
11407         * lib/math.in.h (copysignf): New declaration.
11408         * lib/copysignf.c: New file.
11409         * m4/copysignf.m4: New file.
11410         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11412         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11413         HAVE_COPYSIGNF.
11414         * modules/copysignf: New file.
11415         * tests/test-math-c++.cc: Check the declaration of copysignf.
11416         * doc/posix-functions/copysignf.texi: Mention the new module.
11417
11418 2011-10-09  Bruno Haible  <bruno@clisp.org>
11419
11420         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11421         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11422         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11423         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11424         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11425         gl_SIGNAL_H_DEFAULTS.
11426
11427 2011-10-09  Bruno Haible  <bruno@clisp.org>
11428
11429         poll: Make macro safer.
11430         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11431         ac_cv_header_poll_h is not set.
11432
11433 2011-10-09  Bruno Haible  <bruno@clisp.org>
11434
11435         copysign: Provide replacement.
11436         * lib/math.in.h (copysign): New declaration.
11437         * lib/copysign.c: New file.
11438         * m4/copysign.m4: New file.
11439         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11441         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11442         HAVE_COPYSIGN.
11443         * modules/copysign (Description): Clarify.
11444         (Files): Add lib/copysign.c, m4/copysign.m4.
11445         (Depends-on): Add math, signbit.
11446         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11447         gl_MATH_MODULE_INDICATOR.
11448         * tests/test-math-c++.cc: Check the declaration of copysign.
11449         * doc/posix-functions/copysign.texi: Mention the effects of the module
11450         on Minix and MSVC.
11451
11452 2011-10-09  Bruno Haible  <bruno@clisp.org>
11453
11454         isinf: Ensure macro on AIX 5.1.
11455         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11456         macro.
11457         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11458
11459 2011-10-09  Bruno Haible  <bruno@clisp.org>
11460
11461         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11462         * modules/snprintf-posix-tests (configure.ac): Require
11463         gl_LONG_DOUBLE_VS_DOUBLE.
11464         * modules/sprintf-posix-tests (configure.ac): Likewise.
11465         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11466         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11467         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11468         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11469         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11470         tests on platforms where 'long double' is the same as 'double'.
11471         * tests/test-sprintf-posix.h (test_function): Likewise.
11472         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11473         * tests/test-vasprintf-posix.c (test_function): Likewise.
11474
11475         *printf: Fix for platforms where 'long double' == 'double'.
11476         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11477         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11478         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11479         * modules/fprintf-posix (Files): Likewise.
11480         * modules/obstack-printf-posix (Files): Likewise.
11481         * modules/snprintf-posix (Files): Likewise.
11482         * modules/sprintf-posix (Files): Likewise.
11483         * modules/vasnprintf (Files): Likewise.
11484         * modules/vasnprintf-posix (Files): Likewise.
11485         * modules/vasprintf-posix (Files): Likewise.
11486         * modules/vdprintf-posix (Files): Likewise.
11487         * modules/vfprintf-posix (Files): Likewise.
11488         * modules/vsnprintf-posix (Files): Likewise.
11489         * modules/vsprintf-posix (Files): Likewise.
11490         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11491         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11492         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11493         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11494         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11495         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11496         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11497
11498         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11499         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11500         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11501         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11502         'long double'.
11503         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11504
11505         isinf: Fix for platforms where 'long double' == 'double'.
11506         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11507         Don't blindly assume 80-bit 'long double'.
11508
11509         isfinite: Fix for platforms where 'long double' == 'double'.
11510         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11511         Don't blindly assume 80-bit 'long double'.
11512
11513         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11514         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11515         * modules/isfinite-tests (configure.ac): Require
11516         gl_LONG_DOUBLE_VS_DOUBLE.
11517         * modules/isinf-tests (configure.ac): Likewise.
11518         * modules/isnan-tests (configure.ac): Likewise.
11519         * modules/isnanl-tests (configure.ac): Likewise.
11520         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11521         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11522         tests on platforms where 'long double' is the same as 'double'.
11523         * tests/test-isinf.c (test_isinfl): Likewise.
11524         * tests/test-isnan.c (test_long_double): Likewise.
11525         * tests/test-isnanl.h (main): Likewise.
11526
11527 2011-10-08  Bruno Haible  <bruno@clisp.org>
11528
11529         Tests for module 'tanhf'.
11530         * modules/tanhf-tests: New file.
11531         * tests/test-tanhf.c: New file.
11532
11533         New module 'tanhf'.
11534         * lib/math.in.h (tanhf): New declaration.
11535         * lib/tanhf.c: New file.
11536         * m4/tanhf.m4: New file.
11537         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11539         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11540         * modules/tanhf: New file.
11541         * tests/test-math-c++.cc: Check the declaration of tanhf.
11542         * doc/posix-functions/tanhf.texi: Mention the new module.
11543
11544         tanh: Use a .m4 file.
11545         * m4/tanh.m4: New file.
11546         * modules/tanh (Files): Add it.
11547         (configure.ac): Just invoke gl_FUNC_TANH.
11548
11549 2011-10-08  Bruno Haible  <bruno@clisp.org>
11550
11551         Tests for module 'coshf'.
11552         * modules/coshf-tests: New file.
11553         * tests/test-coshf.c: New file.
11554
11555         New module 'coshf'.
11556         * lib/math.in.h (coshf): New declaration.
11557         * lib/coshf.c: New file.
11558         * m4/coshf.m4: New file.
11559         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11561         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11562         * modules/coshf: New file.
11563         * tests/test-math-c++.cc: Check the declaration of coshf.
11564         * doc/posix-functions/coshf.texi: Mention the new module.
11565
11566         cosh: Use a .m4 file.
11567         * m4/cosh.m4: New file.
11568         * modules/cosh (Files): Add it.
11569         (configure.ac): Just invoke gl_FUNC_COSH.
11570
11571 2011-10-08  Bruno Haible  <bruno@clisp.org>
11572
11573         Tests for module 'sinhf'.
11574         * modules/sinhf-tests: New file.
11575         * tests/test-sinhf.c: New file.
11576
11577         New module 'sinhf'.
11578         * lib/math.in.h (sinhf): New declaration.
11579         * lib/sinhf.c: New file.
11580         * m4/sinhf.m4: New file.
11581         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11583         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11584         * modules/sinhf: New file.
11585         * tests/test-math-c++.cc: Check the declaration of sinhf.
11586         * doc/posix-functions/sinhf.texi: Mention the new module.
11587
11588         sinh: Use a .m4 file.
11589         * m4/sinh.m4: New file.
11590         * modules/sinh (Files): Add it.
11591         (configure.ac): Just invoke gl_FUNC_SINH.
11592
11593 2011-10-08  Bruno Haible  <bruno@clisp.org>
11594
11595         Tests for module 'atan2f'.
11596         * modules/atan2f-tests: New file.
11597         * tests/test-atan2f.c: New file.
11598
11599         New module 'atan2f'.
11600         * lib/math.in.h (atan2f): New declaration.
11601         * lib/atan2f.c: New file.
11602         * m4/atan2f.m4: New file.
11603         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11605         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11606         * modules/atan2f: New file.
11607         * tests/test-math-c++.cc: Check the declaration of atan2f.
11608         * doc/posix-functions/atan2f.texi: Mention the new module.
11609
11610         atan2: Use a .m4 file.
11611         * m4/atan2.m4: New file.
11612         * modules/atan2 (Files): Add it.
11613         (configure.ac): Just invoke gl_FUNC_ATAN2.
11614
11615 2011-10-08  Bruno Haible  <bruno@clisp.org>
11616
11617         Tests for module 'atanf'.
11618         * modules/atanf-tests: New file.
11619         * tests/test-atanf.c: New file.
11620
11621         New module 'atanf'.
11622         * lib/math.in.h (atanf): New declaration.
11623         * lib/atanf.c: New file.
11624         * m4/atanf.m4: New file.
11625         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11627         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11628         * modules/atanf: New file.
11629         * tests/test-math-c++.cc: Check the declaration of atanf.
11630         * doc/posix-functions/atanf.texi: Mention the new module.
11631
11632         atan: Use a .m4 file.
11633         * m4/atan.m4: New file.
11634         * modules/atan (Files): Add it.
11635         (configure.ac): Just invoke gl_FUNC_ATAN.
11636
11637 2011-10-08  Bruno Haible  <bruno@clisp.org>
11638
11639         Tests for module 'acosf'.
11640         * modules/acosf-tests: New file.
11641         * tests/test-acosf.c: New file.
11642
11643         New module 'acosf'.
11644         * lib/math.in.h (acosf): New declaration.
11645         * lib/acosf.c: New file.
11646         * m4/acosf.m4: New file.
11647         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11649         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11650         * modules/acosf: New file.
11651         * tests/test-math-c++.cc: Check the declaration of acosf.
11652         * doc/posix-functions/acosf.texi: Mention the new module.
11653
11654         acos: Use a .m4 file.
11655         * m4/acos.m4: New file.
11656         * modules/acos (Files): Add it.
11657         (configure.ac): Just invoke gl_FUNC_ACOS.
11658
11659 2011-10-08  Bruno Haible  <bruno@clisp.org>
11660
11661         Tests for module 'asinf'.
11662         * modules/asinf-tests: New file.
11663         * tests/test-asinf.c: New file.
11664
11665         New module 'asinf'.
11666         * lib/math.in.h (asinf): New declaration.
11667         * lib/asinf.c: New file.
11668         * m4/asinf.m4: New file.
11669         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11671         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11672         * modules/asinf: New file.
11673         * tests/test-math-c++.cc: Check the declaration of asinf.
11674         * doc/posix-functions/asinf.texi: Mention the new module.
11675
11676         asin: Use a .m4 file.
11677         * m4/asin.m4: New file.
11678         * modules/asin (Files): Add it.
11679         (configure.ac): Just invoke gl_FUNC_ASIN.
11680
11681 2011-10-08  Bruno Haible  <bruno@clisp.org>
11682
11683         Tests for module 'tanf'.
11684         * modules/tanf-tests: New file.
11685         * tests/test-tanf.c: New file.
11686
11687         New module 'tanf'.
11688         * lib/math.in.h (tanf): New declaration.
11689         * lib/tanf.c: New file.
11690         * m4/tanf.m4: New file.
11691         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11693         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11694         * modules/tanf: New file.
11695         * tests/test-math-c++.cc: Check the declaration of tanf.
11696         * doc/posix-functions/tanf.texi: Mention the new module.
11697
11698         tan: Use a .m4 file.
11699         * m4/tan.m4: New file.
11700         * modules/tan (Files): Add it.
11701         (configure.ac): Just invoke gl_FUNC_TAN.
11702
11703 2011-10-08  Bruno Haible  <bruno@clisp.org>
11704
11705         Tests for module 'cosf'.
11706         * modules/cosf-tests: New file.
11707         * tests/test-cosf.c: New file.
11708
11709         New module 'cosf'.
11710         * lib/math.in.h (cosf): New declaration.
11711         * lib/cosf.c: New file.
11712         * m4/cosf.m4: New file.
11713         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11715         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11716         * modules/cosf: New file.
11717         * tests/test-math-c++.cc: Check the declaration of cosf.
11718         * doc/posix-functions/cosf.texi: Mention the new module.
11719
11720         cos: Use a .m4 file.
11721         * m4/cos.m4: New file.
11722         * modules/cos (Files): Add it.
11723         (configure.ac): Just invoke gl_FUNC_COS.
11724
11725 2011-10-08  Bruno Haible  <bruno@clisp.org>
11726
11727         Tests for module 'sinf'.
11728         * modules/sinf-tests: New file.
11729         * tests/test-sinf.c: New file.
11730
11731         New module 'sinf'.
11732         * lib/math.in.h (sinf): New declaration.
11733         * lib/sinf.c: New file.
11734         * m4/sinf.m4: New file.
11735         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11737         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11738         * modules/sinf: New file.
11739         * tests/test-math-c++.cc: Check the declaration of sinf.
11740         * doc/posix-functions/sinf.texi: Mention the new module.
11741
11742         sin: Use a .m4 file.
11743         * m4/sin.m4: New file.
11744         * modules/sin (Files): Add it.
11745         (configure.ac): Just invoke gl_FUNC_SIN.
11746
11747 2011-10-08  Bruno Haible  <bruno@clisp.org>
11748
11749         Tests for module 'powf'.
11750         * modules/powf-tests: New file.
11751         * tests/test-powf.c: New file.
11752
11753         New module 'powf'.
11754         * lib/math.in.h (powf): New declaration.
11755         * lib/powf.c: New file.
11756         * m4/powf.m4: New file.
11757         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11759         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11760         * modules/powf: New file.
11761         * tests/test-math-c++.cc: Check the declaration of powf.
11762         * doc/posix-functions/powf.texi: Mention the new module.
11763
11764         pow: Use a .m4 file.
11765         * m4/pow.m4: New file.
11766         * modules/pow (Files): Add it.
11767         (configure.ac): Just invoke gl_FUNC_POW.
11768
11769 2011-10-08  Bruno Haible  <bruno@clisp.org>
11770
11771         Tests for module 'log10f'.
11772         * modules/log10f-tests: New file.
11773         * tests/test-log10f.c: New file.
11774
11775         New module 'log10f'.
11776         * lib/math.in.h (log10f): New declaration.
11777         * lib/log10f.c: New file.
11778         * m4/log10f.m4: New file.
11779         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11781         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11782         * modules/log10f: New file.
11783         * tests/test-math-c++.cc: Check the declaration of log10f.
11784         * doc/posix-functions/log10f.texi: Mention the new module.
11785
11786         log10: Use a .m4 file.
11787         * m4/log10.m4: New file.
11788         * modules/log10 (Files): Add it.
11789         (configure.ac): Just invoke gl_FUNC_LOG10.
11790
11791 2011-10-08  Bruno Haible  <bruno@clisp.org>
11792
11793         Tests for module 'logf'.
11794         * modules/logf-tests: New file.
11795         * tests/test-logf.c: New file.
11796
11797         New module 'logf'.
11798         * lib/math.in.h (logf): New declaration.
11799         * lib/logf.c: New file.
11800         * m4/logf.m4: New file.
11801         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11803         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11804         * modules/logf: New file.
11805         * tests/test-math-c++.cc: Check the declaration of logf.
11806         * doc/posix-functions/logf.texi: Mention the new module.
11807
11808         log: Use a .m4 file.
11809         * m4/log.m4: New file.
11810         * modules/log (Files): Add it.
11811         (configure.ac): Just invoke gl_FUNC_LOG.
11812
11813 2011-10-08  Bruno Haible  <bruno@clisp.org>
11814
11815         Tests for module 'expf'.
11816         * modules/expf-tests: New file.
11817         * tests/test-expf.c: New file.
11818
11819         New module 'expf'.
11820         * lib/math.in.h (expf): New declaration.
11821         * lib/expf.c: New file.
11822         * m4/expf.m4: New file.
11823         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11825         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11826         * modules/expf: New file.
11827         * tests/test-math-c++.cc: Check the declaration of expf.
11828         * doc/posix-functions/expf.texi: Mention the new module.
11829
11830         exp: Use a .m4 file.
11831         * m4/exp.m4: New file.
11832         * modules/exp (Files): Add it.
11833         (configure.ac): Just invoke gl_FUNC_EXP.
11834
11835 2011-10-08  Bruno Haible  <bruno@clisp.org>
11836
11837         Tests for module 'sqrtf'.
11838         * modules/sqrtf-tests: New file.
11839         * tests/test-sqrtf.c: New file.
11840
11841         New module 'sqrtf'.
11842         * lib/math.in.h (sqrtf): New declaration.
11843         * lib/sqrtf.c: New file.
11844         * m4/sqrtf.m4: New file.
11845         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11847         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11848         * modules/sqrtf: New file.
11849         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11850         * doc/posix-functions/sqrtf.texi: Mention the new module.
11851
11852 2011-10-08  Bruno Haible  <bruno@clisp.org>
11853
11854         Tests: Avoid link failures w.r.t. libintl.
11855         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11856         $(LIBINTL).
11857         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11858         $(LIBINTL).
11859         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11860         against $(LIBINTL).
11861         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11862         $(LIBINTL).
11863         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11864         $(LIBINTL).
11865         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11866
11867 2011-10-08  Bruno Haible  <bruno@clisp.org>
11868
11869         pow tests: Defeat compiler optimizations.
11870         * tests/test-pow.c (main): Assign arguments to x and y before use.
11871
11872 2011-10-08  Bruno Haible  <bruno@clisp.org>
11873
11874         gnulib-tool: Improve last commit.
11875         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11876         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11877         ignore dependencies that are not among the modules list.
11878
11879 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11880
11881         gnulib-tool: don't follow dependencies to avoided modules
11882         This fixes a bug that is related to the previous one.
11883         * gnulib-tool (func_modules_transitive_closure)
11884         (func_emit_autoconf_snippets):
11885         Check whether a dependency is acceptable before using it.
11886         (--extract-dependencies): Report an error if --avoid is also used,
11887         since this combination of options is not yet supported.
11888
11889         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11890         Problem reported by Peter Dyballa in
11891         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11892         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11893         when echoing "$condition".
11894
11895 2011-10-07  Bruno Haible  <bruno@clisp.org>
11896
11897         Fix documentation about math functions on MacOS X.
11898         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11899         MacOS X 10.5.
11900         * doc/posix-functions/fdim.texi: Likewise.
11901         * doc/posix-functions/feclearexcept.texi: Likewise.
11902         * doc/posix-functions/fegetenv.texi: Likewise.
11903         * doc/posix-functions/fegetround.texi: Likewise.
11904         * doc/posix-functions/feholdexcept.texi: Likewise.
11905         * doc/posix-functions/feraiseexcept.texi: Likewise.
11906         * doc/posix-functions/fesetenv.texi: Likewise.
11907         * doc/posix-functions/fesetround.texi: Likewise.
11908         * doc/posix-functions/fetestexcept.texi: Likewise.
11909         * doc/posix-functions/feupdateenv.texi: Likewise.
11910         * doc/posix-functions/fmax.texi: Likewise.
11911         * doc/posix-functions/fmin.texi: Likewise.
11912         * doc/posix-functions/log2.texi: Likewise.
11913         * doc/posix-functions/modff.texi: Likewise.
11914         * doc/posix-functions/nan.texi: Likewise.
11915         * doc/posix-functions/nanf.texi: Likewise.
11916         * doc/posix-functions/nextafterf.texi: Likewise.
11917         * doc/posix-functions/remquo.texi: Likewise.
11918
11919 2011-10-07  Bruno Haible  <bruno@clisp.org>
11920
11921         modff: Drop assumption about library that defines modff.
11922         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11923         AC_CHECK_FUNCS.
11924         * modules/modff (Files): Add m4/mathfunc.m4.
11925
11926 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11927
11928         raise tests: Avoid a GCC warning.
11929         * tests/test-raise.c (handler): Use _Noreturn.
11930
11931 2011-10-07  Bruno Haible  <bruno@clisp.org>
11932
11933         Tests for module 'ldexpf'.
11934         * modules/ldexpf-tests: New file.
11935         * tests/test-ldexpf.c: New file.
11936
11937         New module 'ldexpf'.
11938         * lib/math.in.h (ldexpf): New declaration.
11939         * lib/ldexpf.c: New file.
11940         * m4/ldexpf.m4: New file.
11941         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11943         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11944         * modules/ldexpf: New file.
11945         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11946         * doc/posix-functions/ldexpf.texi: Mention the new module.
11947
11948 2011-10-06  Bruno Haible  <bruno@clisp.org>
11949
11950         frexpf: Work around problems on IRIX and mingw.
11951         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11953         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11954         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11955         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11956         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11957         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11958
11959 2011-10-06  Bruno Haible  <bruno@clisp.org>
11960
11961         fabsf: Drop assumption about library that defines fabsf.
11962         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11963         AC_CHECK_FUNCS.
11964         * modules/fabsf (Files): Add m4/mathfunc.m4.
11965
11966 2011-10-06  Bruno Haible  <bruno@clisp.org>
11967
11968         frexpf: Drop assumption about library that defines frexpf.
11969         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11970         'int *', 'float *', 'long double *', 'float', 'long double'.
11971         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11972         AC_CHECK_FUNCS.
11973         * modules/frexpf (Files): Add m4/mathfunc.m4.
11974
11975         Tests for module 'frexpf'.
11976         * modules/frexpf-tests: New file.
11977         * tests/test-frexpf.c: New file.
11978
11979         New module 'frexpf'.
11980         * lib/math.in.h (frexpf): New declaration.
11981         * lib/frexpf.c: New file.
11982         * m4/frexpf.m4: New file.
11983         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11985         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11986         * modules/frexpf: New file.
11987         * tests/test-math-c++.cc: Check the declaration of frexpf.
11988         * doc/posix-functions/frexpf.texi: Mention the new module.
11989
11990 2011-10-06  Bruno Haible  <bruno@clisp.org>
11991
11992         math: Sort function declarations of math.in.h.
11993         * lib/math.in.h (frexp, logb): Move declarations.
11994
11995 2011-10-05  Bruno Haible  <bruno@clisp.org>
11996
11997         Tests for module 'modff'.
11998         * modules/modff-tests: New file.
11999         * tests/test-modff.c: New file.
12000
12001         New module 'modff'.
12002         * lib/math.in.h (modff): New declaration.
12003         * lib/modff.c: New file.
12004         * m4/modff.m4: New file.
12005         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12007         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12008         * modules/modff: New file.
12009         * tests/test-math-c++.cc: Check the declaration of modff.
12010         * doc/posix-functions/modff.texi: Mention the new module.
12011
12012         modf tests: Make test sharper.
12013         * tests/test-modf.c (main): Strengthen upper bound.
12014
12015         modf: Use a .m4 file.
12016         * m4/modf.m4: New file.
12017         * modules/modf (Files): Add it.
12018         (configure.ac): Just invoke gl_FUNC_MODF.
12019
12020 2011-10-05  Bruno Haible  <bruno@clisp.org>
12021
12022         Tests for module 'fmodf'.
12023         * modules/fmodf-tests: New file.
12024         * tests/test-fmodf.c: New file.
12025
12026         New module 'fmodf'.
12027         * lib/math.in.h (fmodf): New declaration.
12028         * lib/fmodf.c: New file.
12029         * m4/fmodf.m4: New file.
12030         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12032         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12033         * modules/fmodf: New file.
12034         * tests/test-math-c++.cc: Check the declaration of fmodf.
12035         * doc/posix-functions/fmodf.texi: Mention the new module.
12036
12037         fmod: Use a .m4 file.
12038         * m4/fmod.m4: New file.
12039         * modules/fmod (Files): Add it.
12040         (configure.ac): Just invoke gl_FUNC_FMOD.
12041
12042 2011-10-05  Bruno Haible  <bruno@clisp.org>
12043
12044         Tests for module 'fabsf'.
12045         * modules/fabsf-tests: New file.
12046         * tests/test-fabsf.c: New file.
12047
12048         New module 'fabsf'.
12049         * lib/math.in.h (fabsf): New declaration.
12050         * lib/fabsf.c: New file.
12051         * m4/fabsf.m4: New file.
12052         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12054         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12055         * modules/fabsf: New file.
12056         * tests/test-math-c++.cc: Check the declaration of fabsf.
12057         * doc/posix-functions/fabsf.texi: Mention the new module.
12058
12059         fabs: Use a .m4 file.
12060         * m4/fabs.m4: New file.
12061         * modules/fabs (Files): Add it.
12062         (configure.ac): Just invoke gl_FUNC_FABS.
12063
12064 2011-10-05  Jim Meyering  <meyering@redhat.com>
12065
12066         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12067         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12068         ls -lL regression introduced in coreutils-8.12, it does so at the
12069         cost of an additional stat call in the common case.  Besides, now
12070         that the kernel change that prompted commit 95f7c57f has been reverted
12071         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12072         we have no use for commit 95f7c57f, "file-has-acl: use
12073         acl_extended_file_nofollow if available".
12074
12075 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12076
12077         file-has-acl: revert unintended change in behavior of ls -L
12078         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12079         derived from...
12080         (file_has_acl): ...code here.  Call it.
12081         This problem was introduced with 2011-07-22 commit 95f7c57f,
12082         "file-has-acl: use acl_extended_file_nofollow if available".
12083         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12084
12085 2011-10-03  Bruno Haible  <bruno@clisp.org>
12086
12087         poll: Avoid link errors on MSVC.
12088         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12089         * modules/poll (Depends-on): Add sockets.
12090         (Link): New section.
12091         * NEWS: Mention the change.
12092         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12093         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12094         $(LIB_POLL) instead of $(LIBSOCKET).
12095
12096 2011-10-03  Bruno Haible  <bruno@clisp.org>
12097
12098         sys_select tests: Fix link error on MSVC 9.
12099         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12100         with $(LIB_SELECT) instead of $(LIBSOCKET).
12101
12102 2011-10-03  Bruno Haible  <bruno@clisp.org>
12103
12104         sys_select: Fix compilation error on mingw.
12105         * lib/sys_select.in.h: On native Windows, include <io.h>.
12106
12107 2011-10-03  Bruno Haible  <bruno@clisp.org>
12108
12109         wmemset: Support for MSVC.
12110         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12111         whether wmemset() exists.
12112
12113 2011-10-03  Bruno Haible  <bruno@clisp.org>
12114
12115         wmemmove: Support for MSVC.
12116         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12117         whether wmemmove() exists.
12118
12119 2011-10-03  Bruno Haible  <bruno@clisp.org>
12120
12121         wmemcpy: Support for MSVC.
12122         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12123         whether wmemcpy() exists.
12124
12125 2011-10-03  Bruno Haible  <bruno@clisp.org>
12126
12127         wmemcmp: Support for MSVC.
12128         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12129         whether wmemcmp() exists.
12130
12131 2011-10-03  Bruno Haible  <bruno@clisp.org>
12132
12133         wmemchr: Support for MSVC.
12134         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12135         whether wmemchr() exists.
12136
12137 2011-10-03  Bruno Haible  <bruno@clisp.org>
12138
12139         glthread/*, strsignal: Support for MSVC.
12140         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12141         including <winsock.h> on MSVC 9.
12142         * lib/glthread/lock.h: Likewise.
12143         * lib/glthread/thread.h: Likewise.
12144         * lib/glthread/tls.h: Likewise.
12145         * lib/glthread/yield.h: Likewise.
12146         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12147         if HAVE_UNISTD_H is false.
12148         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12149
12150 2011-10-03  Bruno Haible  <bruno@clisp.org>
12151
12152         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12153         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12154         Set to 100000.
12155
12156 2011-10-03  Bruno Haible  <bruno@clisp.org>
12157
12158         acl: Fix specification.
12159         * lib/file-has-acl.c (file_has_acl): Fix specification.
12160
12161 2011-10-03  Bruno Haible  <bruno@clisp.org>
12162
12163         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12164         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12165         (compute_curr_prefix, shared_library_fullname,
12166         find_shared_library_fullname, get_shared_library_fullname, relocate):
12167         Use it together with PIC && INSTALLDIR.
12168         Reported by <jojelino@gmail.com>
12169         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12170
12171 2011-10-01  Jim Meyering  <meyering@redhat.com>
12172
12173         maint.mk: adjust a release-related rule not to require use of gzip
12174         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12175         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12176         projects that build only .tar.xz files.  Also fix an erroneous test.
12177
12178         test-linkat: don't leave behind a temporary file
12179         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12180         Otherwise, coreutils' "make distcheck" would fail with this:
12181           Only in /c/cu/tests/torture/coreutils/test/\
12182             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12183           make[2]: *** [my-distcheck] Error 1
12184
12185         float, math: add omitted file
12186         * lib/itold.c: Add file, required for yesterday's float change.
12187
12188 2011-10-01  Bruno Haible  <bruno@clisp.org>
12189
12190         isinf: Fix for OpenBSD/x86.
12191         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12192         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12193         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12194
12195 2011-10-01  Bruno Haible  <bruno@clisp.org>
12196
12197         isfinite: Fix syntax error in configure test.
12198         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12199
12200         isfinite: Fix typo.
12201         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12202         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12203
12204 2011-10-01  Bruno Haible  <bruno@clisp.org>
12205
12206         nonblocking tests: Fix test failure on Linux/IA-64.
12207         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12208         Set to 270000.
12209
12210 2011-10-01  Bruno Haible  <bruno@clisp.org>
12211
12212         mkfifoat tests: Fix a test failure on mingw.
12213         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12214         with error ENOSYS.
12215
12216 2011-09-30  Bruno Haible  <bruno@clisp.org>
12217
12218         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12219         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12220         'long double'. Set REPLACE_ITOLD.
12221         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12222         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12223         * lib/itold.c: New file.
12224         * modules/float (Files): Add lib/itold.c.
12225         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12226         (Makefile.am): Substitute REPLACE_ITOLD.
12227         * modules/math (Depends-on): Add float.
12228         (Makefile.am): Substitute REPLACE_ITOLD.
12229         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12230         * doc/posix-headers/math.texi: Likewise.
12231         * doc/posix-functions/logl.texi: Likewise.
12232
12233 2011-09-30  Bruno Haible  <bruno@clisp.org>
12234
12235         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12236         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12237         Set to 140000.
12238
12239 2011-09-30  Bruno Haible  <bruno@clisp.org>
12240
12241         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12242         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12243         invocation, say "right after AC_PROG_CC_STDC", not "right after
12244         AC_PROG_CC".
12245         Reported by Gary V. Vaughan <gary@gnu.org>.
12246
12247 2011-09-30  Bruno Haible  <bruno@clisp.org>
12248
12249         Centralize C99 requirement.
12250         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12251         * modules/stdarg (configure.ac-early): Invoke it instead of
12252         AC_PROG_CC_STDC.
12253         Reported by Gary V. Vaughan and Paul Eggert.
12254
12255 2011-09-29  Bruno Haible  <bruno@clisp.org>
12256
12257         float: Fix LDBL_MAX value on Linux/PowerPC.
12258         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12259         on Linux/PowerPC.
12260         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12261         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12262         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12263         platform.
12264         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12265
12266 2011-09-29  Bruno Haible  <bruno@clisp.org>
12267
12268         doc: Improve doc about gl_EARLY.
12269         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12270         AC_PROG_CC_STDC invocation.
12271         Reported by Gary V. Vaughan <gary@gnu.org>.
12272
12273 2011-09-28  Bruno Haible  <bruno@clisp.org>
12274
12275         fgetc, fputc, fread, fwrite tests: Fix link error.
12276         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12277         on non-MSVC platforms.
12278         * tests/test-fputc.c (main): Likewise.
12279         * tests/test-fread.c (main): Likewise.
12280         * tests/test-fwrite.c (main): Likewise.
12281         Reported by Jim Meyering.
12282
12283 2011-09-27  Bruno Haible  <bruno@clisp.org>
12284
12285         fputc, fwrite tests: Avoid test failure on MSVC.
12286         * tests/test-fgetc.c: Include msvc-inval.h.
12287         (main): Invoke gl_msvc_inval_ensure_handler.
12288         * tests/test-fputc.c: Include msvc-inval.h.
12289         (main): Invoke gl_msvc_inval_ensure_handler.
12290         * tests/test-fread.c: Include msvc-inval.h.
12291         (main): Invoke gl_msvc_inval_ensure_handler.
12292         * tests/test-fwrite.c: Include msvc-inval.h.
12293         (main): Invoke gl_msvc_inval_ensure_handler.
12294         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12295         * modules/fputc-tests (Depends-on): Likewise.
12296         * modules/fread-tests (Depends-on): Likewise.
12297         * modules/fwrite-tests (Depends-on): Likewise.
12298
12299 2011-09-27  Bruno Haible  <bruno@clisp.org>
12300
12301         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12302         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12303         (raise): Remove older, duplicated declaration.
12304         (_gl_raise_SIGPIPE): New declaration.
12305         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12306         (rpl_raise): Remove function.
12307         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12308         a gnulib-defined SIGPIPE here.
12309         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12310         'sigprocmask' has detected missing signal-blocking and the module
12311         'sigpipe' is enabled.
12312         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12313
12314 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12315
12316         base64-tests: avoid memory leak
12317         * tests/test-base64.c (main): Plug memory leak.
12318
12319         base32: new module
12320         * modules/base32: New module.
12321         * lib/base32.c: New file.
12322         * lib/base32.h: Likewise.
12323         * m4/base32.m4: Likewise.
12324         * modules/base32-tests: New test.
12325         * tests/test-base32.c: Likewise.
12326         * MODULES.html.sh (Misc): Mention it.
12327
12328 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12329
12330         gnulib: use more-standard license notice wording
12331         * gnulib-tool (func_emit_copyright_notice): When emitting a
12332         license notice into a file, use the standard wording as suggested
12333         by the current information for GNU maintainers, except say "file"
12334         rather than "program".  The new wording gives a license version
12335         number, which addresses an issue raised by Glenn Morris in
12336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12337         * m4/onceonly.m4: Use that same wording here, too.
12338
12339         dup2: minor simplification
12340         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12341         as lib/dup2.c no longer uses 'inline'.
12342
12343 2011-09-25  Bruno Haible  <bruno@clisp.org>
12344
12345         strings: Fix compilation error on MSVC.
12346         * lib/strings.in.h: Include <stddef.h> for size_t.
12347
12348 2011-09-25  Bruno Haible  <bruno@clisp.org>
12349
12350         fflush et al.: Document limitation on MSVC.
12351         * doc/posix-functions/fflush.texi: Document possible crash in handling
12352         mode other than DEFAULT_HANDLING.
12353         * doc/posix-functions/fgetc.texi: Likewise.
12354         * doc/posix-functions/fputc.texi: Likewise.
12355         * doc/posix-functions/fread.texi: Likewise.
12356         * doc/posix-functions/fwrite.texi: Likewise.
12357
12358 2011-09-25  Bruno Haible  <bruno@clisp.org>
12359
12360         msvc-inval: Allow three invalid parameter handling modes.
12361         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12362         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12363         macros.
12364         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12365         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12366         SANE_LIBRARY_HANDLING as a no-op.
12367         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12368         <stdlib.h>.
12369         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12370
12371 2011-09-25  Bruno Haible  <bruno@clisp.org>
12372
12373         msvc-inval: Make handler multithread-safe.
12374         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12375         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12376         declarations.
12377         (gl_msvc_inval_current): New declaration.
12378         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12379         Operate on the structure returned by gl_msvc_inval_current().
12380         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12381         Remove varaiables.
12382         (tls_index, tls_initialized): New variables.
12383         (not_per_thread): New variable.
12384         (gl_msvc_inval_current): New function.
12385         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12386         returned by gl_msvc_inval_current().
12387
12388 2011-09-25  Bruno Haible  <bruno@clisp.org>
12389
12390         msvc-inval: Install handler globally.
12391         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12392         !_MSC_VER.
12393         (gl_msvc_invalid_parameter_handler): Remove declaration.
12394         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12395         declarations.
12396         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12397         Install the handler globally, don't uninstall it.
12398         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12399         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12400         currently valid, call RaiseException instead.
12401         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12402         for !_MSC_VER.
12403
12404 2011-09-25  Bruno Haible  <bruno@clisp.org>
12405
12406         strerror_r-posix: Fix for MSVC 9.
12407         * lib/strerror_r.c (local_snprintf): New function.
12408         (snprintf): Define to local_snprintf, not to _snprintf.
12409
12410 2011-09-25  Bruno Haible  <bruno@clisp.org>
12411
12412         ftruncate: Support for MSVC 9.
12413         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12414         (chsize_nothrow): New function.
12415         (chsize): Redefine as a macro.
12416         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12417         * modules/ftruncate (Depends-on): Add msvc-inval.
12418
12419 2011-09-25  Bruno Haible  <bruno@clisp.org>
12420
12421         New module 'fstat'.
12422         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12423         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12424         * lib/fchdir.c (rpl_fstat): Remove function.
12425         * m4/fstat.m4: New file.
12426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12427         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12428         declared.
12429         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12430         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12431         * modules/fstat: New file.
12432         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12433         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12434         is set.
12435         * doc/posix-functions/fstat.texi: Mention the new module and the
12436         problem on MSVC.
12437         * NEWS: Mention the change.
12438         * modules/acl (Depends-on): Add fstat.
12439         * modules/chdir-safer (Depends-on): Likewise.
12440         * modules/chown (Depends-on): Likewise.
12441         * modules/copy-file (Depends-on): Likewise.
12442         * modules/fchdir (Depends-on): Likewise.
12443         * modules/fdopendir (Depends-on): Likewise.
12444         * modules/fopen (Depends-on): Likewise.
12445         * modules/fts (Depends-on): Likewise.
12446         * modules/getcwd (Depends-on): Likewise.
12447         * modules/isapipe (Depends-on): Likewise.
12448         * modules/linkat (Depends-on): Likewise.
12449         * modules/lseek (Depends-on): Likewise.
12450         * modules/mkdir-p (Depends-on): Likewise.
12451         * modules/open (Depends-on): Likewise.
12452         * modules/openat (Depends-on): Likewise.
12453         * modules/read-file (Depends-on): Likewise.
12454         * modules/renameat (Depends-on): Likewise.
12455         * modules/utimens (Depends-on): Likewise.
12456
12457 2011-09-25  Bruno Haible  <bruno@clisp.org>
12458
12459         linkat: Fix compilation on MSVC 9.
12460         * lib/linkat.c: Don't include <stdint.h>.
12461
12462 2011-09-25  Bruno Haible  <bruno@clisp.org>
12463
12464         fclose: Support for MSVC 9.
12465         * lib/fclose.c: Include msvc-inval.h.
12466         (fclose_nothrow): New function.
12467         (rpl_fclose): Use it.
12468         * modules/fclose (Depends-on): Add msvc-inval.
12469         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12470
12471 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12472
12473         dup2: minor simplifications
12474         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12475         that it's a performance win.
12476         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12477         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12478
12479 2011-09-24  Jim Meyering  <meyering@redhat.com>
12480
12481         test-futimens: avoid a warning from gcc -Wshadow
12482         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12483         to avoid a shadowing warning.
12484
12485 2011-09-24  Bruno Haible  <bruno@clisp.org>
12486
12487         fdopen: Support for MSVC 9.
12488         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12489         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12490         * lib/fdopen.c: Include msvc-inval.h.
12491         (fdopen_nothrow): New function.
12492         (rpl_fdopen): Use it.
12493         * modules/fdopen (Depends-on): Add msvc-inval.
12494         * modules/fclose-tests (Depends-on): Add fdopen.
12495         * modules/fflush-tests (Depends-on): Likewise.
12496         * modules/fgetc-tests (Depends-on): Likewise.
12497         * modules/fputc-tests (Depends-on): Likewise.
12498         * modules/fread-tests (Depends-on): Likewise.
12499         * modules/freopen-tests (Depends-on): Likewise.
12500         * modules/fseeko-tests (Depends-on): Likewise.
12501         * modules/ftello-tests (Depends-on): Likewise.
12502         * modules/fwrite-tests  (Depends-on): Likewise.
12503         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12504
12505 2011-09-24  Bruno Haible  <bruno@clisp.org>
12506
12507         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12508         * modules/fgetc-tests (Depends-on): Add unistd.
12509         * modules/fputc-tests (Depends-on): Likewise.
12510         * modules/fread-tests (Depends-on): Likewise.
12511         * modules/fwrite-tests (Depends-on): Likewise.
12512
12513 2011-09-24  Bruno Haible  <bruno@clisp.org>
12514
12515         dup: Simplify autoconf test.
12516         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12517         on gl_MSVC_INVAL's result.
12518
12519 2011-09-24  Bruno Haible  <bruno@clisp.org>
12520
12521         Tests for function fwrite().
12522         * modules/fwrite-tests: New file.
12523         * tests/test-fwrite.c: New file.
12524         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12525
12526         Tests for function fread().
12527         * modules/fread-tests: New file.
12528         * tests/test-fread.c: New file.
12529         * modules/stdio-tests (Depends-on): Add fread-tests.
12530
12531         Activate fputc tests.
12532         * modules/stdio-tests (Depends-on): Add fputc-tests.
12533
12534         Enhance fgetc, fputc tests.
12535         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12536         * tests/test-fputc.c (main): Likewise.
12537
12538 2011-09-24  Bruno Haible  <bruno@clisp.org>
12539
12540         write: Support for MSVC 9.
12541         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12542         is not 1.
12543         * lib/write.c (write_nothrow): New function.
12544         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12545         not 1. Use write_nothrow.
12546         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12547         invalid parameter handler.
12548         (gl_PREREQ_WRITE): New macro.
12549         * modules/write (Depends-on): Add msvc-inval.
12550         (configure.ac): Invoke gl_PREREQ_WRITE.
12551         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12552
12553 2011-09-24  Bruno Haible  <bruno@clisp.org>
12554
12555         read: Fix last commit.
12556         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12557
12558 2011-09-24  Bruno Haible  <bruno@clisp.org>
12559
12560         dup2: Fix last commit.
12561         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12562         (rpl_dup2): Disable fcntl workaround on native Windows.
12563
12564         sigprocmask: Make code safer.
12565         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12566         section that changes macro definitions for this compilation unit.
12567
12568 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12569
12570         dup2: clarify by coalescing Windows-specific material
12571         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12572         "msvc-nothrow.h"' to the Windows-specific section, so that the
12573         Emacs source need not contain these include files.
12574         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12575         Windows-specific fixes into this function rather than just the
12576         nothrow fix, as this shortens and clarifies the code.  Always
12577         define as a function, as that's a bit cleaner than having it be
12578         sometimes a function and sometimes a macro.
12579         (rpl_dup2): Move the Windows-specific stuff out of here and into
12580         ms_windows_dup2.  Don't protect the Haiku-related fix with
12581         "#if !defined __linux__", as the same code also works around
12582         a Linux kernel bug, and it doesn't add any system calls on any
12583         platform.  Add comment about FreeBSD 6.1.
12584
12585         sigprocmask: move #include directive
12586         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12587         Windows-specific section, so that the Emacs source need not
12588         contain msvc-inval.h.
12589
12590 2011-09-23  Bruno Haible  <bruno@clisp.org>
12591
12592         read: Support for MSVC 9.
12593         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12594         is not 1.
12595         * lib/read.c (read_nothrow): New function.
12596         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12597         read_nothrow.
12598         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12599         invalid parameter handler.
12600         (gl_PREREQ_READ): New macro.
12601         * modules/read (Depends-on): Add msvc-inval.
12602         (configure.ac): Invoke gl_PREREQ_READ.
12603         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12604
12605 2011-09-23  Bruno Haible  <bruno@clisp.org>
12606
12607         close: Support for MSVC 9.
12608         * lib/close.c: Include <errno.h>, msvc-inval.h.
12609         (close_nothrow): New function.
12610         (rpl_close): Use it.
12611         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12612         invalid parameter handler.
12613         * modules/close (Depends-on): Add msvc-inval.
12614         * modules/dup2-tests (Depends-on): Add close.
12615         * modules/dup3-tests (Depends-on): Likewise.
12616         * modules/fcntl-tests (Depends-on): Likewise.
12617         * modules/spawn-pipe-tests (Depends-on): Likewise.
12618         * modules/unistd-safer-tests (Depends-on): Likewise.
12619         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12620
12621 2011-09-23  Bruno Haible  <bruno@clisp.org>
12622
12623         New module 'dup'.
12624         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12625         Allow replacement.
12626         * lib/dup.c: New file.
12627         * lib/fchdir.c (rpl_dup): Remove function.
12628         * m4/dup.m4: New file.
12629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12630         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12631         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12632         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12633         * modules/dup: New file.
12634         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12635         'dup' module is in use.
12636         * modules/fdopendir (Depends-on): Add dup.
12637         * modules/fdutimensat-tests (Depends-on): Likewise.
12638         * modules/fts (Depends-on): Likewise.
12639         * modules/futimens-tests (Depends-on): Likewise.
12640         * modules/posix_spawnp-tests (Depends-on): Likewise.
12641         * modules/unistd-safer-tests (Depends-on): Likewise.
12642         * modules/utimens-tests (Depends-on): Likewise.
12643         * doc/posix-functions/dup.texi: Mention the new module and the problem
12644         on MSVC.
12645
12646 2011-09-23  Bruno Haible  <bruno@clisp.org>
12647
12648         getdtablesize: Support for MSVC 9.
12649         * lib/getdtablesize.c: Include msvc-inval.h.
12650         (_setmaxstdio_nothrow): New function.
12651         (_setmaxstdio): Redefine it.
12652         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12653         * modules/getdtablesize (Depends-on): Add msvc-inval.
12654         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12655
12656 2011-09-23  Bruno Haible  <bruno@clisp.org>
12657
12658         signal-h: Rename from signal.
12659         * modules/signal-h: Renamed from modules/signal.
12660         * modules/pthread_sigmask (Depends-on): Update.
12661         * modules/raise (Depends-on): Likewise.
12662         * modules/sigaction (Depends-on): Likewise.
12663         * modules/sigpipe (Depends-on): Likewise.
12664         * modules/sigprocmask (Depends-on): Likewise.
12665         * modules/sys_select (Depends-on): Likewise.
12666         * modules/signal-h-tests: Renamed from modules/signal-tests.
12667         (Files, Depends-on, Makefile.am): Update.
12668         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12669         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12670         (Files, Makefile.am): Update.
12671         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12672         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12673         * modules/signal: New placeholder file.
12674         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12675         * doc/posix-headers/signal.texi: Update.
12676         * NEWS: Mention the change.
12677
12678 2011-09-23  Bruno Haible  <bruno@clisp.org>
12679
12680         sigprocmask: Avoid crashes through signal() on MSVC 9.
12681         * lib/sigprocmask.c: Include msvc-inval.h.
12682         (signal_nothrow): New function.
12683         (signal): Redefine it.
12684         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12685         * modules/sigprocmask (Depends-on): Add msvc-inval.
12686         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12687
12688 2011-09-23  Bruno Haible  <bruno@clisp.org>
12689
12690         Tests for module 'raise'.
12691         * modules/raise-tests: New file.
12692         * tests/test-raise.c: New file.
12693
12694         raise: Support for MSVC.
12695         * lib/signal.in.h (raise): New declaration.
12696         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12697         for native Windows platforms.
12698         * m4/raise.m4: New file.
12699         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12700         HAVE_RAISE, REPLACE_RAISE.
12701         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12702         REPLACE_RAISE.
12703         * modules/raise (Status, Notice): Remove fields.
12704         (Files): Add m4/raise.m4.
12705         (Depends-on): Add signal, msvc-inval.
12706         (configure.ac): Use the common idioms.
12707         (Maintainer): Add me.
12708         * tests/test-signal-c++.cc: Check the signature of raise.
12709         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12710
12711 2011-09-23  Bruno Haible  <bruno@clisp.org>
12712
12713         pipe2: Fix compilation on pre-C99 compilers.
12714         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12715
12716 2011-09-23  Bruno Haible  <bruno@clisp.org>
12717
12718         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12719         * lib/msvc-nothrow.h: New file.
12720         * lib/msvc-nothrow.c: New file.
12721         * m4/msvc-nothrow.m4: New file.
12722         * modules/msvc-nothrow: New file.
12723         * lib/dup2.c: Include msvc-nothrow.h.
12724         (rpl_dup2): No need to protect _get_osfhandle call here.
12725         * lib/accept4.c: Include msvc-nothrow.h.
12726         * lib/error.c: Likewise.
12727         * lib/fcntl.c: Likewise.
12728         * lib/lseek.c: Likewise.
12729         * lib/nonblocking.c: Likewise.
12730         * lib/poll.c: Likewise.
12731         * lib/read.c: Likewise.
12732         * lib/select.c: Likewise.
12733         * lib/sockets.h: Likewise.
12734         * lib/sockets.c: Likewise.
12735         * lib/stdio-read.c: Likewise.
12736         * lib/stdio-write.c: Likewise.
12737         * lib/write.c: Likewise.
12738         * lib/w32sock.h: Likewise.
12739         * lib/w32spawn.h: Likewise.
12740         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12741         * lib/fsync.c: Likewise.
12742         * lib/isapipe.c: Likewise.
12743         * modules/dup2 (Depends-on): Add msvc-nothrow.
12744         * modules/accept4 (Depends-on): Likewise.
12745         * modules/error (Depends-on): Likewise.
12746         * modules/fcntl (Depends-on): Likewise.
12747         * modules/lseek (Depends-on): Likewise.
12748         * modules/nonblocking (Depends-on): Likewise.
12749         * modules/poll (Depends-on): Likewise.
12750         * modules/read (Depends-on): Likewise.
12751         * modules/select (Depends-on): Likewise.
12752         * modules/sockets (Depends-on): Likewise.
12753         * modules/sigpipe (Depends-on): Likewise.
12754         * modules/write (Depends-on): Likewise.
12755         * modules/accept (Depends-on): Likewise.
12756         * modules/bind (Depends-on): Likewise.
12757         * modules/connect (Depends-on): Likewise.
12758         * modules/gethostname (Depends-on): Likewise.
12759         * modules/getpeername (Depends-on): Likewise.
12760         * modules/getsockname (Depends-on): Likewise.
12761         * modules/getsockopt (Depends-on): Likewise.
12762         * modules/ioctl (Depends-on): Likewise.
12763         * modules/listen (Depends-on): Likewise.
12764         * modules/recv (Depends-on): Likewise.
12765         * modules/recvfrom (Depends-on): Likewise.
12766         * modules/send (Depends-on): Likewise.
12767         * modules/sendto (Depends-on): Likewise.
12768         * modules/setsockopt (Depends-on): Likewise.
12769         * modules/shutdown (Depends-on): Likewise.
12770         * modules/socket (Depends-on): Likewise.
12771         * modules/execute (Depends-on): Likewise.
12772         * modules/spawn-pipe (Depends-on): Likewise.
12773         * modules/flock (Depends-on): Likewise.
12774         * modules/fsync (Depends-on): Likewise.
12775         * modules/isapipe (Depends-on): Likewise.
12776         * tests/test-cloexec.c: Include msvc-nothrow.h.
12777         * tests/test-dup-safer.c: Likewise.
12778         * tests/test-dup2.c: Likewise.
12779         * tests/test-dup3.c: Likewise.
12780         * tests/test-fcntl.c: Likewise.
12781         * tests/test-pipe.c: Likewise.
12782         * tests/test-pipe2.c: Likewise.
12783         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12784         * modules/unistd-safer-tests (Depends-on): Likewise.
12785         * modules/dup2-tests (Depends-on): Likewise.
12786         * modules/dup3-tests (Depends-on): Likewise.
12787         * modules/fcntl-tests (Depends-on): Likewise.
12788         * modules/pipe-posix-tests (Depends-on): Likewise.
12789         * modules/pipe2-tests (Depends-on): Likewise.
12790
12791 2011-09-23  Bruno Haible  <bruno@clisp.org>
12792
12793         dup2: Make code more maintainable.
12794         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12795         (rpl_dup2): Use it.
12796         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12797         * modules/dup2 (configure.ac): Invoke it.
12798         Reported by Paul Eggert.
12799
12800 2011-09-23  Bruno Haible  <bruno@clisp.org>
12801
12802         msvc-inval: Fix compilation error.
12803         * lib/msvc-inval.h: Include <excpt.h>.
12804
12805 2011-09-23  Bruno Haible  <bruno@clisp.org>
12806
12807         mkdir: Tweak for MSVC 9.
12808         * lib/sys_stat.in.h: Update comments.
12809         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12810
12811         Tests for module 'chdir'.
12812         * modules/chdir-tests: New file.
12813         * tests/test-chdir.c: New file.
12814
12815         New module 'chdir'.
12816         * modules/chdir: New file.
12817         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12818         (chdir): New declaration.
12819         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12820         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12821         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12822         * tests/test-unistd-c++.cc: Check signature of chdir.
12823         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12824         * modules/chdir-long (Depends-on): Add chdir.
12825         * modules/fchdir (Depends-on): Likewise.
12826         * modules/rename (Depends-on): Likewise.
12827         * modules/savewd (Depends-on): Likewise.
12828
12829         rmdir: Support for mingw, MSVC 9.
12830         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12831         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12832
12833         getcwd: Tweak for MSVC 9.
12834         * lib/unistd.in.h: Update comments.
12835         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12836
12837 2011-09-22  Bruno Haible  <bruno@clisp.org>
12838
12839         strerror_r-posix: Avoid a link error on MSVC.
12840         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12841         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12842
12843 2011-09-22  Bruno Haible  <bruno@clisp.org>
12844
12845         select: Avoid link errors on MSVC.
12846         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12847         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12848         * modules/pselect (Link): Likewise.
12849         * NEWS: Mention the change.
12850         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12851         test-select-stdin against $(LIB_SELECT).
12852         * modules/pselect-tests (Makefile.am): Link test-pselect against
12853         $(LIB_SELECT).
12854
12855 2011-09-22  Bruno Haible  <bruno@clisp.org>
12856
12857         select: Avoid compilation error on MSVC.
12858         * lib/select.c: Don't include <stdbool.h>.
12859
12860 2011-09-21  Bruno Haible  <bruno@clisp.org>
12861
12862         Consolidate all uses of PATH_MAX in *.m4 files.
12863         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12864         macros.
12865         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12866         and gl_PATHMAX_SNIPPET.
12867         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12869         * modules/chdir-long (Files): Add m4/pathmax.m4.
12870         * modules/getcwd (Files): Likewise.
12871
12872 2011-09-21  Bruno Haible  <bruno@clisp.org>
12873
12874         ftruncate: Un-deprecate, concentrate on Win32 support.
12875         * modules/ftruncate (Status, Notice): Remove sections.
12876         (Depends-on): Add largefile.
12877         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12878         non-mingw platforms.
12879         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12880         include <io.h>.
12881         * modules/perror-tests (Depends-on): Add ftruncate.
12882         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12883         'ftruncate' module.
12884
12885 2011-09-21  Bruno Haible  <bruno@clisp.org>
12886
12887         Add dependencies to new dirent related modules.
12888         * modules/opendir (Depends-on): Add closedir.
12889         * modules/getcwd (Depends-on): Add opendir, closedir.
12890         * modules/dirent-safer-tests (Depends-on): Likewise.
12891         * modules/fdopendir-tests (Depends-on): Likewise.
12892         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12893         * modules/renameat-tests (Depends-on): Likewise.
12894
12895 2011-09-21  Bruno Haible  <bruno@clisp.org>
12896
12897         opendir: Avoid compilation error on mingw.
12898         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12899         * modules/opendir (Depends-on): Add unistd.
12900
12901 2011-09-21  Bruno Haible  <bruno@clisp.org>
12902
12903         ftruncate tests: Avoid a test failure on mingw.
12904         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12905
12906 2011-09-21  Bruno Haible  <bruno@clisp.org>
12907
12908         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12909         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12910         native Windows.
12911
12912 2011-09-21  Bruno Haible  <bruno@clisp.org>
12913
12914         New module 'fdopen'.
12915         * lib/stdio.in.h (fdopen): New declaration.
12916         * lib/fdopen.c: New file.
12917         * m4/fdopen.m4: New file.
12918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12919         REPLACE_FDOPEN.
12920         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12921         REPLACE_FDOPEN.
12922         * modules/fdopen: New file.
12923         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12924         * tests/test-stdio-c++.cc: Check signature of fdopen.
12925         * doc/posix-functions/fdopen.texi: Mention the new module.
12926
12927 2011-09-21  Bruno Haible  <bruno@clisp.org>
12928
12929         unlockpt tests: Avoid test failure on NetBSD 5.1.
12930         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12931         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12932
12933 2011-09-21  Bruno Haible  <bruno@clisp.org>
12934
12935         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12936         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12937         * tests/test-getlogin_r.c (main): Likewise.
12938
12939 2011-09-20  Bruno Haible  <bruno@clisp.org>
12940
12941         time tests: Don't require pid_t.
12942         * doc/posix-headers/time.texi: Revert last change.
12943         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12944         * tests/test-time.c: Comment out the check for pid_t.
12945
12946 2011-09-20  Bruno Haible  <bruno@clisp.org>
12947
12948         fsync tests: Avoid a test failure on mingw.
12949         * tests/test-fsync.c (main): Allow a failure with EIO.
12950
12951 2011-09-20  Bruno Haible  <bruno@clisp.org>
12952
12953         euidaccess: Update comments.
12954         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12955
12956 2011-09-20  Bruno Haible  <bruno@clisp.org>
12957
12958         Ensure EBADF returns for socket functions on mingw.
12959         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12960         descriptor is invalid.
12961         * lib/bind.c (rpl_bind): Likewise.
12962         * lib/connect.c (rpl_connect): Likewise.
12963         * lib/getpeername.c (rpl_getpeername): Likewise.
12964         * lib/getsockname.c (rpl_getsockname): Likewise.
12965         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12966         * lib/listen.c (rpl_listen): Likewise.
12967         * lib/recv.c (rpl_recv): Likewise.
12968         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12969         * lib/send.c (rpl_send): Likewise.
12970         * lib/sendto.c (rpl_sendto): Likewise.
12971         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12972         * lib/shutdown.c (rpl_shutdown): Likewise.
12973
12974 2011-09-20  Bruno Haible  <bruno@clisp.org>
12975
12976         select tests: EBADF tests.
12977         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12978         test_bad_fd): New functions.
12979         (test_function): Invoke also test_bad_fd.
12980
12981 2011-09-20  Bruno Haible  <bruno@clisp.org>
12982
12983         Tests for module 'posix_spawn_file_actions_addopen.
12984         * modules/posix_spawn_file_actions_addopen-tests: New file.
12985         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12986
12987         Tests for module 'posix_spawn_file_actions_adddup2'.
12988         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12989         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12990
12991         Tests for module 'posix_spawn_file_actions_addclose'.
12992         * modules/posix_spawn_file_actions_addclose-tests: New file.
12993         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12994
12995 2011-09-20  Bruno Haible  <bruno@clisp.org>
12996
12997         Tests for module 'unlockpt'.
12998         * modules/unlockpt-tests: New file.
12999         * tests/test-unlockpt.c: New file.
13000         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13001
13002         Tests for module 'grantpt'.
13003         * modules/grantpt-tests: New file.
13004         * tests/test-grantpt.c: New file.
13005         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13006
13007 2011-09-20  Bruno Haible  <bruno@clisp.org>
13008
13009         freopen tests: EBADF tests.
13010         * tests/test-freopen.c: Include errno.h, unistd.h.
13011         (main): Add tests for EBADF, commented out for the moment.
13012
13013         fclose tests: EBADF tests.
13014         * tests/test-fclose.c (main): Add tests for EBADF.
13015
13016         fflush tests: EBADF tests.
13017         * tests/test-fflush.c: Include errno.h, macros.h.
13018         (main): Add tests for EBADF.
13019
13020         ftello tests: EBADF tests.
13021         * tests/test-ftello4.sh: New file.
13022         * tests/test-ftello4.c: New file.
13023         * modules/ftello-tests (Files): Add them.
13024         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13025
13026         fseeko tests: EBADF tests.
13027         * tests/test-fseeko4.sh: New file.
13028         * tests/test-fseeko4.c: New file.
13029         * modules/fseeko-tests (Files): Add them.
13030         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13031
13032         Tests for function fputc().
13033         * modules/fputc-tests: New file.
13034         * tests/test-fputc.c: New file.
13035         * modules/stdio-tests (Depends-on): Add fputc-tests.
13036
13037         Tests for function fgetc().
13038         * modules/fgetc-tests: New file.
13039         * tests/test-fgetc.c: New file.
13040         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13041
13042         Tests for function fdopen().
13043         * modules/fdopen-tests: New file.
13044         * tests/test-fdopen.c: New file.
13045         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13046
13047         Tests for module 'vdprintf'.
13048         * modules/vdprintf-tests: New file.
13049         * tests/test-vdprintf.c: New file.
13050
13051         Tests for module 'dprintf'.
13052         * modules/dprintf-tests: New file.
13053         * tests/test-dprintf.c: New file.
13054
13055 2011-09-20  Bruno Haible  <bruno@clisp.org>
13056
13057         Tests for module 'ioctl'.
13058         * modules/ioctl-tests: New file.
13059         * tests/test-ioctl.c: New file.
13060
13061 2011-09-20  Bruno Haible  <bruno@clisp.org>
13062
13063         fcntl tests: EBADF tests.
13064         * tests/test-fcntl.c (main): Add more tests for EBADF.
13065
13066 2011-09-20  Bruno Haible  <bruno@clisp.org>
13067
13068         utimensat tests: EBADF tests.
13069         * tests/test-utimensat.c (main): Add tests for EBADF.
13070
13071         renameat tests: EBADF tests.
13072         * tests/test-renameat.c (main): Add tests for EBADF.
13073
13074         mkfifoat tests: EBADF tests.
13075         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13076
13077         readlinkat tests: EBADF tests.
13078         * tests/test-readlinkat.c (main): Add tests for EBADF.
13079
13080         symlinkat tests: EBADF tests.
13081         * tests/test-symlinkat.c (main): Add tests for EBADF.
13082
13083         linkat tests: EBADF tests.
13084         * tests/test-linkat.c (main): Add tests for EBADF.
13085
13086         Tests for module 'faccessat'.
13087         * modules/faccessat-tests: New file.
13088         * tests/test-faccessat.c: New file.
13089
13090         fdopendir tests: EBADF tests.
13091         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13092
13093         openat tests: EBADF tests.
13094         * tests/test-fchownat.c (main): Add tests for EBADF.
13095         * tests/test-fstatat.c (main): Likewise.
13096         * tests/test-mkdirat.c (main): Likewise.
13097         * tests/test-openat.c (main): Likewise.
13098         * tests/test-unlinkat.c (main): Likewise.
13099         * tests/test-fchmodat.c: New file.
13100         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13101         (Makefile.am): Also run 'test-fchmodat'.
13102
13103 2011-09-20  Bruno Haible  <bruno@clisp.org>
13104
13105         utimens, futimens, fdutimensat tests: EBADF tests.
13106         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13107
13108         Tests for function fstat().
13109         * modules/fstat-tests: New file.
13110         * tests/test-fstat.c: New file.
13111         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13112
13113 2011-09-20  Bruno Haible  <bruno@clisp.org>
13114
13115         test-ttyname_r tests: EBADF tests.
13116         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13117
13118         Tests for module 'isatty'.
13119         * modules/isatty-tests: New file.
13120         * tests/test-isatty.c: New file.
13121
13122         Tests for module 'write'.
13123         * modules/write-tests: New file.
13124         * tests/test-write.c: New file.
13125
13126         Tests for module 'read'.
13127         * modules/read-tests: New file.
13128         * tests/test-read.c: New file.
13129
13130         pwrite tests: EBADF tests.
13131         * tests/test-pwrite.c (main): Add tests for EBADF.
13132
13133         pread tests: EBADF tests.
13134         * tests/test-pread.c (main): Add tests for EBADF.
13135
13136         lseek tests: EBADF tests.
13137         * tests/test-lseek.c (main): Add more tests for EBADF.
13138
13139         Tests for module 'ftruncate'.
13140         * modules/ftruncate-tests: New file.
13141         * tests/test-ftruncate.sh: New file.
13142         * tests/test-ftruncate.c: New file.
13143
13144         fsync tests: EBADF tests.
13145         * tests/test-fsync.c (main): Add more tests for EBADF.
13146
13147         fdatasync tests: EBADF tests.
13148         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13149
13150         Tests for module 'fchown'.
13151         * modules/fchown-tests: New file.
13152         * tests/test-fchown.c: New file.
13153
13154         Tests for module 'fchmod'.
13155         * modules/fchmod-tests: New file.
13156         * tests/test-fchmod.c: New file.
13157
13158         fchdir tests: EBADF tests.
13159         * tests/test-fchdir.c (main): Add more tests for EBADF.
13160
13161         dup2 tests: EBADF tests.
13162         * tests/test-dup2.c (main): Add more tests for EBADF.
13163
13164         Tests for module 'dup'.
13165         * modules/dup-tests: New file.
13166         * tests/test-dup.c: New file.
13167
13168         Tests for module 'close'.
13169         * modules/close-tests: New file.
13170         * tests/test-close.c: New file.
13171
13172 2011-09-20  Bruno Haible  <bruno@clisp.org>
13173
13174         Tests for module 'shutdown'.
13175         * modules/shutdown-tests: New file.
13176         * tests/test-shutdown.c: New file.
13177
13178         Tests for module 'setsockopt'.
13179         * modules/setsockopt-tests: New file.
13180         * tests/test-setsockopt.c: New file.
13181
13182         Tests for module 'sendto'.
13183         * modules/sendto-tests: New file.
13184         * tests/test-sendto.c: New file.
13185
13186         Tests for module 'send'.
13187         * modules/send-tests: New file.
13188         * tests/test-send.c: New file.
13189
13190         Tests for module 'recvfrom'.
13191         * modules/recvfrom-tests: New file.
13192         * tests/test-recvfrom.c: New file.
13193
13194         Tests for module 'recv'.
13195         * modules/recv-tests: New file.
13196         * tests/test-recv.c: New file.
13197
13198         Tests for module 'listen'.
13199         * modules/listen-tests: New file.
13200         * tests/test-listen.c: New file.
13201
13202         Tests for module 'getsockopt'.
13203         * modules/getsockopt-tests: New file.
13204         * tests/test-getsockopt.c: New file.
13205
13206         Tests for module 'getsockname'.
13207         * modules/getsockname-tests: New file.
13208         * tests/test-getsockname.c: New file.
13209
13210         Tests for module 'getpeername'.
13211         * modules/getpeername-tests: New file.
13212         * tests/test-getpeername.c: New file.
13213
13214         Tests for module 'connect'.
13215         * modules/connect-tests: New file.
13216         * tests/test-connect.c: New file.
13217
13218         Tests for module 'bind'.
13219         * modules/bind-tests: New file.
13220         * tests/test-bind.c: New file.
13221
13222         accept4 tests: Fix for native Windows.
13223         * tests/test-accept4.c: Include sockets.h.
13224         (main): Invoke gl_sockets_startup.
13225         * modules/accept4-tests (Depends-on): Add sockets.
13226
13227         accept tests: Fix for native Windows.
13228         * tests/test-accept.c: Include sockets.h.
13229         (main): Invoke gl_sockets_startup.
13230         * modules/accept-tests (Depends-on): Add sockets.
13231
13232 2011-09-19  Bruno Haible  <bruno@clisp.org>
13233
13234         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13235         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13236         do...while(0).
13237         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13238         Suggested by Paul Eggert.
13239
13240 2011-09-19  Bruno Haible  <bruno@clisp.org>
13241
13242         sched: Ensure pid_t is defined.
13243         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13244         not define pid_t.
13245         * lib/sched.in.h: Include <sys/types.h>.
13246         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13248
13249 2011-09-19  Bruno Haible  <bruno@clisp.org>
13250
13251         msvc-inval: Ensure the entire expansion is a single statement.
13252         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13253         of braces.
13254
13255 2011-09-19  Jim Meyering  <meyering@redhat.com>
13256
13257         tests: use printf, not echo in init.sh's warn_ function
13258         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13259         misbehave when given strings containing a backslash or starting
13260         with e.g., -n.  James Youngman suggested setting IFS.
13261
13262 2011-09-19  Eric Blake  <eblake@redhat.com>
13263
13264         futimens: enhance test
13265         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13266         closed non-negative fd.
13267
13268         date: accept 'hence' as opposite of 'ago'
13269         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13270         * tests/test-parse-datetime.c (main): Enhance test.
13271         Suggested by Jesse Wilson.
13272
13273 2011-09-19  Jim Meyering  <meyering@redhat.com>
13274
13275         getcwd: don't fail in a deep directory on a system without openat
13276         Before this change, getcwd would fail when called from a directory
13277         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13278         the non-openat implementation used "..", "../..", "../../..", etc.
13279         to access ancestor directories.  With too many, that string would
13280         be longer than PATH_MAX.
13281         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13282         using gnulib's openat replacement.
13283         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13284         we're using the replacement function.
13285
13286 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13287
13288         maint.mk: avoid warnings from perl about missing files
13289         * top/maint.mk (def_sym_regex): Ignore files listed in
13290         $(gl_other_headers_) that do not exist, say because a project
13291         does not use a corresponding module.
13292
13293 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13294
13295         stat: use pathmax.h only if needed
13296         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13297         This is better for Emacs, which does not have a mingw port and
13298         therefore can avoid the pathmax module.
13299
13300         utimens: remove dependency on dup2
13301         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13302         to work around the Linux kernel bug.
13303         * modules/utimens (Depends-on): Remove dup2.
13304
13305 2011-09-18  Bruno Haible  <bruno@clisp.org>
13306
13307         inet_ntop, inet_pton: Look for it also in libresolv.
13308         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13309         libnsl, search for it in libresolv.
13310         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13311         Needed on Solaris 7.
13312
13313 2011-09-18  Bruno Haible  <bruno@clisp.org>
13314
13315         accept, accept4 tests: Avoid link error on Solaris.
13316         * modules/accept-tests (Makefile.am): Link test-accept against
13317         $(LIBSOCKET).
13318         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13319         $(LIBSOCKET).
13320
13321         accept4: Avoid link error on Solaris.
13322         * modules/accept4 (Link): New section.
13323
13324         socket functions: Avoid link errors on Solaris.
13325         * modules/accept (Depends-on): Add socketlib.
13326         (Link): New section.
13327         * modules/bind (Depends-on): Add socketlib.
13328         (Link): New section.
13329         * modules/connect (Depends-on): Add socketlib.
13330         (Link): New section.
13331         * modules/getpeername (Depends-on): Add socketlib.
13332         (Link): New section.
13333         * modules/getsockname (Depends-on): Add socketlib.
13334         (Link): New section.
13335         * modules/getsockopt (Depends-on): Add socketlib.
13336         (Link): New section.
13337         * modules/listen (Depends-on): Add socketlib.
13338         (Link): New section.
13339         * modules/recv (Depends-on): Add socketlib.
13340         (Link): New section.
13341         * modules/recvfrom (Depends-on): Add socketlib.
13342         (Link): New section.
13343         * modules/send (Depends-on): Add socketlib.
13344         (Link): New section.
13345         * modules/sendto (Depends-on): Add socketlib.
13346         (Link): New section.
13347         * modules/setsockopt (Depends-on): Add socketlib.
13348         (Link): New section.
13349         * modules/shutdown (Depends-on): Add socketlib.
13350         (Link): New section.
13351         * modules/socket (Depends-on): Add socketlib.
13352         (Link): New section.
13353
13354 2011-09-18  Bruno Haible  <bruno@clisp.org>
13355
13356         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13357         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13358         than 5 seconds.
13359         * modules/ptsname-tests (configure.ac): Test for alarm.
13360
13361 2011-09-18  Bruno Haible  <bruno@clisp.org>
13362
13363         posix_spawn_file_actions_add*: Fix module dependencies.
13364         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13365         posix_spawn_file_actions_init.
13366         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13367         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13368
13369 2011-09-18  Bruno Haible  <bruno@clisp.org>
13370
13371         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13372         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13373         * tests/test-renameat.c (main): Likewise.
13374
13375 2011-09-18  Bruno Haible  <bruno@clisp.org>
13376
13377         Tests for module 'accept4'.
13378         * modules/accept4-tests: New file.
13379         * tests/test-accept4.c: New file.
13380
13381 2011-09-18  Bruno Haible  <bruno@clisp.org>
13382
13383         Tests for module 'accept'.
13384         * modules/accept-tests: New file.
13385         * tests/test-accept.c: New file.
13386
13387 2011-09-18  Bruno Haible  <bruno@clisp.org>
13388
13389         dup2: Support for MSVC.
13390         * lib/dup2.c: Include msvc-inval.h.
13391         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13392         _get_osfhandle calls.
13393         * modules/dup2 (Depends-on): Add msvc-inval.
13394         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13395
13396         New module 'msvc-inval'.
13397         * lib/msvc-inval.h: New file.
13398         * lib/msvc-inval.c: New file.
13399         * m4/msvc-inval.m4: New file.
13400         * modules/msvc-inval: New file.
13401
13402 2011-09-17  Bruno Haible  <bruno@clisp.org>
13403
13404         Tests for module 'pclose'.
13405         * modules/pclose-tests: New file.
13406
13407         New module 'pclose'.
13408         * lib/stdio.in.h (pclose): New declaration.
13409         * lib/pclose.c: New file.
13410         * m4/pclose.m4: New file.
13411         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13412         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13413         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13414         * modules/pclose: New file.
13415         * modules/popen-tests (Depends-on): Add pclose.
13416         * modules/popen-safer-tests (Depends-on): Likewise.
13417         * doc/posix-functions/pclose.texi: Mention the new module.
13418
13419 2011-09-17  Bruno Haible  <bruno@clisp.org>
13420
13421         popen: Support for MSVC.
13422         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13423         * lib/popen.c (popen): Provide alternate definition for native Windows.
13424         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13426         * modules/popen (Depends-on, configure.ac): Update condition.
13427         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13428         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13429         fixed.
13430
13431 2011-09-17  Bruno Haible  <bruno@clisp.org>
13432
13433         isnanl, isnand, isnanf: Work around MSVC bug.
13434         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13435
13436 2011-09-17  Bruno Haible  <bruno@clisp.org>
13437
13438         sys_socket tests: Fix recent mistake.
13439         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13440
13441 2011-09-17  Bruno Haible  <bruno@clisp.org>
13442
13443         putenv: Support for MSVC.
13444         * modules/putenv (Depends-on): Add environ.
13445         * lib/putenv.c (environ): Disable declaration.
13446         * lib/unistd.in.h: Update comment.
13447
13448 2011-09-17  Bruno Haible  <bruno@clisp.org>
13449
13450         math: Avoid macro redefinition warnings on MSVC.
13451         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13452         Undefine before redefining.
13453
13454 2011-09-17  Bruno Haible  <bruno@clisp.org>
13455
13456         doc: Mention functions which are declared as macros.
13457         * doc/posix-functions/*[fl].texi: Mention that some functions are
13458         defined as macros with arguments only.
13459
13460 2011-09-17  Bruno Haible  <bruno@clisp.org>
13461
13462         Add dependencies to new dirent related modules.
13463         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13464         * modules/fts (Depends-on): Likewise.
13465         * modules/glob (Depends-on): Likewise.
13466         * modules/savedir (Depends-on): Likewise.
13467         * modules/scandir (Depends-on): Likewise.
13468         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13469         * modules/fdopendir (Depends-on): Add opendir.
13470
13471 2011-09-17  Bruno Haible  <bruno@clisp.org>
13472
13473         inet_pton: Support for MSVC on Windows Vista or newer.
13474         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13475         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13476         HAVE_DECL_INET_PTON is defined.
13477         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13478         On platforms with <winsock2.h>, test whether inet_pton is declared in
13479         <ws2tcpip.h>. If so, arrange to replace it.
13480         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13481         REPLACE_INET_PTON.
13482         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13483         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13484         (Depends-on, configure.ac): Update condition.
13485         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13486
13487 2011-09-17  Bruno Haible  <bruno@clisp.org>
13488
13489         inet_ntop: Support for MSVC on Windows Vista or newer.
13490         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13491         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13492         HAVE_DECL_INET_NTOP is defined.
13493         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13494         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13495         <ws2tcpip.h>. If so, arrange to replace it.
13496         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13497         REPLACE_INET_NTOP.
13498         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13499         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13500         (Depends-on, configure.ac): Update condition.
13501         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13502
13503 2011-09-16  Eric Blake  <eblake@redhat.com>
13504
13505         test-fsync: yet another enhancement
13506         * tests/test-fsync.c (main): Also test behavior on read-only text
13507         file.
13508
13509 2011-09-16  Bruno Haible  <bruno@clisp.org>
13510
13511         Enhance fsync, fdatasync tests.
13512         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13513         * tests/test-fdatasync.c (main): Likewise.
13514
13515 2011-09-16  Bruno Haible  <bruno@clisp.org>
13516
13517         Support for MSVC compiler: Ensure mode_t gets defined.
13518         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13519         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13520         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13521         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13522         * tests/test-fcntl-h.c: Check that mode_t is defined.
13523         * tests/test-sys_stat.c: Likewise.
13524         * tests/test-sys_types.c: Likewise.
13525         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13526         * doc/posix-headers/sys_stat.texi: Likewise.
13527         * doc/posix-headers/sys_types.texi: Likewise.
13528
13529 2011-09-16  Bruno Haible  <bruno@clisp.org>
13530
13531         sys_stat: Support for MSVC.
13532         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13533         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13534         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13535         MSVC.
13536
13537 2011-09-16  Bruno Haible  <bruno@clisp.org>
13538
13539         Support for MSVC compiler: Ensure off_t gets defined.
13540         * lib/unistd.in.h: Include <sys/types.h>.
13541         * tests/test-fcntl-h.c: Check that off_t is defined.
13542         * tests/test-sys_stat.c: Likewise.
13543         * tests/test-sys_types.c: Likewise.
13544
13545 2011-09-16  Eric Blake  <eblake@redhat.com>
13546
13547         fdatasync: port to Solaris
13548         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13549         * modules/fdatasync (Link): Document it.
13550         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13551
13552         fdatasync: port to MacOS X 10.7
13553         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13554         declared.
13555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13556         * modules/unistd (Makefile.am): Substitute it.
13557         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13558         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13559
13560         fdatasync: minor improvements
13561         * modules/fdatasync (Depends-on): Add condition for fsync.
13562         * lib/fdatasync.c (fdatasync): Add comment.
13563         * tests/test-unistd-c++.cc: Test fdatasync.
13564
13565         unistd: update refs to newer POSIX
13566         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13567         Suggested by Bruno Haible.
13568
13569         fdatasync: new module
13570         * modules/fsync (Description): Document difference to fdatasync.
13571         * modules/fdatasync: New module.
13572         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13573         * lib/fdatasync.c (fdatasync): Likewise.
13574         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13575         defaults.
13576         * modules/unistd (Makefile.am): Set witnesses.
13577         * lib/unistd.in.h (fdatasync): Declare.
13578         * MODULES.html.sh: Document it.
13579         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13580         * modules/fdatasync-tests: New test.
13581         * tests/test-fdatasync.c: Likewise.
13582
13583 2011-09-16  Eric Blake  <eblake@redhat.com>
13584
13585         test-fsync: enhance tests
13586         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13587         * tests/test-fsync.c (main): Enhance test.
13588
13589 2011-09-15  Bruno Haible  <bruno@clisp.org>
13590
13591         Support for MSVC compiler: Ensure ssize_t gets defined.
13592         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13593         * doc/posix-headers/stdio.texi: Likewise.
13594         * modules/stdio (Depends-on): Add ssize_t.
13595         * modules/sys_socket (Depends-on): Likewise.
13596         * modules/sys_types (Depends-on): Likewise.
13597         * modules/sys_uio (Depends-on): Likewise.
13598         * modules/unistd (Depends-on): Likewise.
13599         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13600         * tests/test-sys_types.c: Check that ssize_t is defined.
13601
13602 2011-09-14  Bruno Haible  <bruno@clisp.org>
13603
13604         Avoid using #, the m4 comment starter character, near brackets.
13605         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13606         delimiter character in sed expressions.
13607         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13608         Suggested by Eric Blake.
13609
13610         Properly quote AC_CHECK_DECLS' 4th argument.
13611         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13612         argument.
13613         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13614         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13616         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13617         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13618         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13620         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13621         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13622         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13623         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13624         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13625         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13626         * m4/isinf.m4 (gl_ISINF): Likewise.
13627         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13628         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13629         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13630         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13632         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13633         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13634         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13635         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13636         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13637         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13638         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13640         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13642         Reported by Eric Blake.
13643
13644         Properly quote AC_CHECK_DECL's 4th argument.
13645         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13646         argument.
13647         * m4/argp.m4 (gl_ARGP): Likewise.
13648         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13649         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13650         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13651         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13652         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13653         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13655         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13656         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13657         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13658         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13659         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13660         Reported by Eric Blake.
13661
13662 2011-09-14  Eric Blake  <eblake@redhat.com>
13663
13664         opendir: avoid compile warning
13665         * lib/opendir.c (includes): Always include errno.h.
13666         Reported by Tatsuro MATSUOKA.
13667
13668 2011-09-14  Jim Meyering  <meyering@redhat.com>
13669
13670         maint.mk: sc_tight_scope: propagate failure from sub-make
13671         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13672         Reported by Martin von Gagern.
13673
13674 2011-09-13  Bruno Haible  <bruno@clisp.org>
13675
13676         tempname: Support for MSVC.
13677         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13678         MSVC.
13679         * modules/tempname (Depends-on): Add fcntl-h.
13680
13681 2011-09-13  Bruno Haible  <bruno@clisp.org>
13682
13683         sys_time: Support for MSVC.
13684         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13685         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13686         include <winsock2.h>.
13687         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13688         function declarations that collide with POSIX.
13689         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13690         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13691
13692 2011-09-13  Bruno Haible  <bruno@clisp.org>
13693
13694         stat: Support for MSVC.
13695         * lib/stat.c: Include pathmax.h.
13696         * modules/stat (Depends-on): Add pathmax.
13697
13698         pathmax: Support for native Windows.
13699         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13700
13701 2011-09-12  Bruno Haible  <bruno@clisp.org>
13702
13703         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13704         * lib/dirent.in.h (struct dirent): New type.
13705         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13706         DT_WHT): New macros.
13707         (DIR): New type.
13708         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13709         (readdir, rewinddir): New declarations.
13710         * lib/dirent-private.h: New file.
13711         * lib/opendir.c: New file.
13712         * lib/readdir.c: New file.
13713         * lib/rewinddir.c: New file.
13714         * lib/closedir.c: New file.
13715         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13716         * m4/opendir.m4: New file.
13717         * m4/readdir.m4: New file.
13718         * m4/rewinddir.m4: New file.
13719         * m4/closedir.m4: New file.
13720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13721         REPLACE_CLOSEDIR here.
13722         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13723         readdir, rewinddir are declared.
13724         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13725         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13726         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13727         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13728         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13729         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13730         * modules/opendir: New file.
13731         * modules/readdir: New file.
13732         * modules/rewinddir: New file.
13733         * modules/closedir: New file.
13734         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13735         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13736         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13737         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13738         * NEWS: Mention the 'fchdir' change.
13739
13740 2011-09-11  Bruno Haible  <bruno@clisp.org>
13741
13742         asm-underscore.m4: Support for MSVC.
13743         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13744         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13745
13746 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13747
13748         Doc about crypt functions.
13749         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13750         needing for _GNU_SOURCE to get crypt.
13751         * doc/posix-functions/encrypt.texi: Likewise.
13752         * doc/posix-functions/setkey.texi: Likewise.
13753
13754 2011-09-11  Bruno Haible  <bruno@clisp.org>
13755
13756         doc: Update regarding MSVC 9.
13757         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13758         tested".
13759         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13760         * doc/posix-headers/*.texi: Likewise.
13761         * doc/pastposix-functions/*.texi: Likewise.
13762         * doc/glibc-functions/*.texi: Likewise.
13763         * doc/glibc-headers/*.texi: Likewise.
13764
13765 2011-09-11  Bruno Haible  <bruno@clisp.org>
13766
13767         unistd et al.: Don't assume <unistd.h> exists.
13768         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13769         does not exist.
13770         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13771         exist. But include <stdlib.h>.
13772         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13773         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13774         symlink() does not exist.
13775         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13776         include <io.h> instead.
13777         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13778         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13779         include <direct.h> instead.
13780         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13781         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13782         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13783         <io.h> instead.
13784         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13785         correctly if the system does not have hard links.
13786         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13787         <direct.h> instead.
13788         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13789         it when looking for function declarations.
13790         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13791         <direct.h> and <io.h> instead.
13792         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13793
13794 2011-09-11  Bruno Haible  <bruno@clisp.org>
13795
13796         strcase: Support for MSVC.
13797         * modules/strcase (Status, Notice): Remove obsoletion mark.
13798         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13799         * doc/posix-functions/strncasecmp.texi: Likewise.
13800
13801         strings: Don't assume <strings.h> exists.
13802         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13803         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13804         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13805         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13806
13807 2011-09-11  Bruno Haible  <bruno@clisp.org>
13808
13809         dirent: Don't assume <dirent.h> exists.
13810         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13811         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13812         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13813         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13814
13815 2011-09-11  Bruno Haible  <bruno@clisp.org>
13816
13817         Fix wint_t on MSVC.
13818         * lib/wchar.in.h (wint_t): On MSVC, override it.
13819         * lib/wctype.in.h (wint_t): Likewise.
13820         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13821         MSVC.
13822         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13823         * doc/posix-headers/wctype.texi: Likewise.
13824
13825 2011-09-11  Bruno Haible  <bruno@clisp.org>
13826
13827         sys_types: Fix typo.
13828         * lib/sys_types.in.h: Fix typo in comment.
13829         Reported by Paul Eggert.
13830
13831         Support for MSVC compiler: Ensure size_t gets defined.
13832         * modules/strings (Depends-on): Add 'sys_types'.
13833         * modules/sys_uio (Depends-on): Likewise.
13834         * lib/sys_uio.in.h: Update comment.
13835
13836         C++ tests for module 'sys_types'.
13837         * modules/sys_types-c++-tests: New file.
13838         * tests/test-sys_types-c++.cc: New file.
13839
13840         Tests for module 'sys_types'.
13841         * modules/sys_types-tests: New file.
13842         * tests/test-sys_types.c: New file.
13843
13844         New module 'sys_types'.
13845         * lib/sys_types.in.h: New file.
13846         * m4/sys_types_h.m4: New file.
13847         * modules/sys_types: New file.
13848         * doc/posix-headers/sys_types.texi: Mention the new module and the
13849         size_t problem on MSVC 9.
13850
13851 2011-09-11  Bruno Haible  <bruno@clisp.org>
13852
13853         Support for MSVC compiler: Avoid division by a literal 0.
13854         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13855         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13856         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13857         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13858         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13859         * tests/infinity.h: New file.
13860         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13861         on MSVC.
13862         * tests/test-ceilf1.c: Include infinity.h.
13863         (main): Use Infinityf.
13864         * tests/test-ceil1.c: Include infinity.h.
13865         (main): Use Infinityd.
13866         * tests/test-ceill.c: Include infinity.h.
13867         (main): Use Infinityl.
13868         * tests/test-dprintf-posix.c: Include infinity.h.
13869         (test_function): Use Infinityd.
13870         * tests/test-floorf1.c: Include infinity.h.
13871         (main): Use Infinityf.
13872         * tests/test-floor1.c: Include infinity.h.
13873         (main): Use Infinityd.
13874         * tests/test-floorl.c: Include infinity.h.
13875         (main): Use Infinityl.
13876         * tests/test-fprintf-posix.c: Include infinity.h.
13877         (test_function): Use Infinityd.
13878         * tests/test-frexp.c: Include infinity.h.
13879         (main): Use Infinityd.
13880         * tests/test-frexpl.c: Include infinity.h.
13881         (main): Use Infinityl.
13882         * tests/test-isfinite.c: Include infinity.h.
13883         (test_isfinitef): Use Infinityf.
13884         (test_isfinited): Use Infinityd.
13885         (test_isfinitel): Use Infinityl.
13886         * tests/test-isinf.c: Include infinity.h.
13887         (test_isinff): Use Infinityf.
13888         (test_isinfd): Use Infinityd.
13889         (test_isinfl): Use Infinityl.
13890         * tests/test-isnan.c: Include infinity.h.
13891         (test_float): Use Infinityf.
13892         (test_double): Use Infinityd.
13893         (test_long_double): Use Infinityl.
13894         * tests/test-isnanf.h: Include infinity.h.
13895         (main): Use Infinityf.
13896         * tests/test-isnand.h: Include infinity.h.
13897         (main): Use Infinityd.
13898         * tests/test-isnanl.h: Include infinity.h.
13899         (main): Use Infinityl.
13900         * tests/test-ldexpl.c: Include infinity.h.
13901         (main): Use Infinityl.
13902         * tests/test-printf-posix.h: Include infinity.h.
13903         (test_function): Use Infinityd.
13904         * tests/test-roundf1.c: Include infinity.h.
13905         (main): Use Infinityf.
13906         * tests/test-round1.c: Include infinity.h.
13907         (main): Use Infinityd.
13908         * tests/test-roundl.c: Include infinity.h.
13909         (main): Use Infinityl.
13910         * tests/test-signbit.c: Include infinity.h.
13911         (test_signbitf): Use Infinityf.
13912         (test_signbitd): Use Infinityd.
13913         (test_signbitl): Use Infinityl.
13914         * tests/test-snprintf-posix.h: Include infinity.h.
13915         (test_function): Use Infinityd, Infinityl.
13916         * tests/test-sprintf-posix.h: Include infinity.h.
13917         (test_function): Use Infinityd, Infinityl.
13918         * tests/test-truncf1.c: Include infinity.h.
13919         (main): Use Infinityf.
13920         * tests/test-trunc1.c: Include infinity.h.
13921         (main): Use Infinityd.
13922         * tests/test-truncl.c: Include infinity.h.
13923         (main): Use Infinityl.
13924         * tests/test-vasnprintf-posix.c: Include infinity.h.
13925         (test_function): Use Infinityd, Infinityl.
13926         * tests/test-vasprintf-posix.c: Include infinity.h.
13927         (test_function): Use Infinityd, Infinityl.
13928         * modules/ceilf-tests (Files): Add tests/infinity.h.
13929         * modules/ceil-tests (Files): Likewise.
13930         * modules/ceill-tests (Files): Likewise.
13931         * modules/dprintf-posix-tests (Files): Likewise.
13932         * modules/floorf-tests (Files): Likewise.
13933         * modules/floor-tests (Files): Likewise.
13934         * modules/floorl-tests (Files): Likewise.
13935         * modules/fprintf-posix-tests (Files): Likewise.
13936         * modules/frexp-tests (Files): Likewise.
13937         * modules/frexp-nolibm-tests (Files): Likewise.
13938         * modules/frexpl-tests (Files): Likewise.
13939         * modules/frexpl-nolibm-tests (Files): Likewise.
13940         * modules/isfinite-tests (Files): Likewise.
13941         * modules/isinf-tests (Files): Likewise.
13942         * modules/isnan-tests (Files): Likewise.
13943         * modules/isnanf-tests (Files): Likewise.
13944         * modules/isnanf-nolibm-tests (Files): Likewise.
13945         * modules/isnand-tests (Files): Likewise.
13946         * modules/isnand-nolibm-tests (Files): Likewise.
13947         * modules/isnanl-tests (Files): Likewise.
13948         * modules/isnanl-nolibm-tests (Files): Likewise.
13949         * modules/ldexpl-tests (Files): Likewise.
13950         * modules/printf-posix-tests (Files): Likewise.
13951         * modules/roundf-tests (Files): Likewise.
13952         * modules/round-tests (Files): Likewise.
13953         * modules/roundl-tests (Files): Likewise.
13954         * modules/signbit-tests (Files): Likewise.
13955         * modules/snprintf-posix-tests (Files): Likewise.
13956         * modules/sprintf-posix-tests (Files): Likewise.
13957         * modules/truncf-tests (Files): Likewise.
13958         * modules/trunc-tests (Files): Likewise.
13959         * modules/truncl-tests (Files): Likewise.
13960         * modules/vasnprintf-posix-tests (Files): Likewise.
13961         * modules/vasprintf-posix-tests (Files): Likewise.
13962         * modules/vdprintf-posix-tests (Files): Likewise.
13963         * modules/vfprintf-posix-tests (Files): Likewise.
13964         * modules/vprintf-posix-tests (Files): Likewise.
13965         * modules/vsnprintf-posix-tests (Files): Likewise.
13966         * modules/vsprintf-posix-tests (Files): Likewise.
13967         * modules/xprintf-posix-tests (Files): Likewise.
13968
13969 2011-09-11  Bruno Haible  <bruno@clisp.org>
13970
13971         Ensure pid_t gets defined.
13972         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13973         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13974         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13975         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13976         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13977         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13978         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13979         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13980         * tests/test-fcntl-h.c: Check that pid_t is defined.
13981         * tests/test-sched.c: Likewise.
13982         * tests/test-termios.c: Likewise.
13983         * tests/test-time.c: Likewise.
13984         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13985         * doc/posix-headers/signal.texi: Likewise.
13986         * doc/posix-headers/sys_types.texi: Likewise.
13987         * doc/posix-headers/time.texi: Likewise.
13988
13989 2011-09-11  Bruno Haible  <bruno@clisp.org>
13990
13991         acl: Fix compilation on Solaris 10 (older version).
13992         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13993         of ACE_EVERYONE.
13994         * lib/set-mode-acl.c (qset_acl): Likewise.
13995         Reported by Christian Jullien <eligis@orange.fr>.
13996
13997 2011-09-10  Bruno Haible  <bruno@clisp.org>
13998
13999         iconv, unsetenv: Add support for MSVC compiler.
14000         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14001         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14002
14003 2011-09-10  Bruno Haible  <bruno@clisp.org>
14004
14005         *printf: Add support for MSVC compiler.
14006         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14007         handles the exception caused by the %n directive. When cross-compiling,
14008         guess no on native Windows.
14009         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14010         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14011         emulate it through vsnprintf.
14012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14013         * doc/posix-functions/dprintf.texi: Update documentation regarding
14014         MSVC 9.
14015         * doc/posix-functions/fprintf.texi: Likewise.
14016         * doc/posix-functions/printf.texi: Likewise.
14017         * doc/posix-functions/snprintf.texi: Likewise.
14018         * doc/posix-functions/sprintf.texi: Likewise.
14019         * doc/posix-functions/swprintf.texi: Likewise.
14020         * doc/posix-functions/vdprintf.texi: Likewise.
14021         * doc/posix-functions/vfprintf.texi: Likewise.
14022         * doc/posix-functions/vprintf.texi: Likewise.
14023         * doc/posix-functions/vsnprintf.texi: Likewise.
14024         * doc/posix-functions/vsprintf.texi: Likewise.
14025         * doc/glibc-functions/asprintf.texi: Likewise.
14026         * doc/glibc-functions/obstack_printf.texi: Likewise.
14027         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14028         * doc/glibc-functions/vasprintf.texi: Likewise.
14029
14030 2011-09-10  Bruno Haible  <bruno@clisp.org>
14031
14032         nocrash: Add support for native Windows.
14033         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14034
14035 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14036             Bruno Haible  <bruno@clisp.org>
14037
14038         absolute-header, include-next: Add support for MSVC compiler.
14039         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14040         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14041         directory separator in #line directives.
14042         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14043         recognize also backslash as directory separator in #line directives.
14044
14045 2011-09-08  Jim Meyering  <meyering@redhat.com>
14046
14047         maint.mk: mark the post-release commit log with "maint: " prefix
14048         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14049         one-line commit-log summary.
14050
14051 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14052             Bruno Haible  <bruno@clisp.org>
14053
14054         Doc about crypt functions.
14055         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14056         systems.
14057         * doc/posix-functions/encrypt.texi: Likewise.
14058         * doc/posix-functions/setkey.texi: Likewise.
14059
14060 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14061
14062         * lib/gc.h: Fix copyright header.
14063
14064 2011-09-07  Bruno Haible  <bruno@clisp.org>
14065
14066         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14067         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14068         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14069
14070 2011-09-07  Bruno Haible  <bruno@clisp.org>
14071
14072         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14073         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14074         * lib/freopen.c: Likewise.
14075         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14076         * lib/lstat.c: Likewise.
14077         * lib/stat.c: Likewise.
14078         * lib/open.c: Use different syntax for include of <fcntl.h>.
14079         * lib/openat.c: Include fcntl.h again, explicitly.
14080
14081 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14082
14083         parse-datetime: document the newly accepted format
14084         * doc/parse-datetime.texi (Combined date and time of day items):
14085         New section.
14086
14087 2011-09-06  Bruno Haible  <bruno@clisp.org>
14088
14089         acl: Fix a test failure on newer Solaris 10 with ZFS.
14090         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14091         ENOSYS as no ACL.
14092         Reported by Jim Meyering.
14093
14094 2011-09-06  Bruno Haible  <bruno@clisp.org>
14095
14096         acl: Update for AIX >= 5.3 with NFS.
14097         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14098         ENOSYS as no ACL.
14099
14100         acl: Fix a test failure on AIX >= 5.3 with NFS.
14101         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14102         as no ACL.
14103
14104 2011-09-06  Bruno Haible  <bruno@clisp.org>
14105
14106         acl: Fix a test failure on IRIX 6.5 with NFS.
14107         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14108         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14109         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14110         * lib/copy-acl.c (qcopy_acl): Likewise.
14111
14112 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14113
14114         openat: port to AIX 7.1 with large files
14115         AIX 7.1 does a "#define openat open64at" if large files are in use,
14116         so we can't simply #undef openat.  Use the orig_openat trick (similar
14117         to orig_open in lib/open.c) to work around the problem.  Problem
14118         reported by Kevin Brott for GNU tar, in the thread containing
14119         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14120         * lib/openat.c (__need_system_fcntl_h): Define first.
14121         Include <fcntl.h> and <sys/types.h> before undefining.
14122         (orig_openat) [HAVE_OPENAT]: New inline function.
14123         (openat) [HAVE_OPENAT]: Do not undef.
14124         (rpl_openat): Use orig_openat, not openat.
14125
14126 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14127             Bruno Haible  <bruno@clisp.org>
14128
14129         acl: Avoid errors on NonStop Kernel.
14130         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14131         ENOTSUP errors.
14132
14133 2011-09-05  Bruno Haible  <bruno@clisp.org>
14134
14135         acl: Clean up Solaris code.
14136         * lib/acl-internal.h: Remove no-op #if.
14137         * lib/file-has-acl.c: Likewise.
14138         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14139         * lib/copy-acl.c (qcopy_acl): Likewise.
14140
14141 2011-09-05  Bruno Haible  <bruno@clisp.org>
14142
14143         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14144         binaries built on the original Solaris 10.
14145         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14146         trivial.
14147
14148 2011-09-05  Bruno Haible  <bruno@clisp.org>
14149
14150         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14151         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14152         10.
14153         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14154         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14155         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14156         instead of acl_get, facl_get, acl_set, facl_set.
14157
14158 2011-09-05  Bruno Haible  <bruno@clisp.org>
14159
14160         copy-file: Try unit tests on more file systems.
14161         * tests/test-copy-file-1.sh: New file.
14162         * tests/test-copy-file-2.sh: New file.
14163         * modules/copy-file-tests (Files): Add them.
14164         (Makefile.am): Add them to TESTS.
14165
14166         acl: Try unit tests on more file systems.
14167         * tests/test-file-has-acl-1.sh: New file.
14168         * tests/test-file-has-acl-2.sh: New file.
14169         * tests/test-set-mode-acl-1.sh: New file.
14170         * tests/test-set-mode-acl-2.sh: New file.
14171         * tests/test-copy-acl-1.sh: New file.
14172         * tests/test-copy-acl-2.sh: New file.
14173         * modules/acl-tests (Files): Add them.
14174         (Makefile.am): Add them to TESTS.
14175
14176 2011-09-04  Bruno Haible  <bruno@clisp.org>
14177
14178         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14179         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14180         10.
14181         (OLD_ALLOW, OLD_DENY): New macros.
14182         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14183         ACE_ACCESS_ALLOWED_ACE_TYPE.
14184         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14185         ACE_ACCESS_DENIED_ACE_TYPE.
14186         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14187         (NEW_ACE_EXECUTE): Fix value.
14188         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14189         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14190         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14191         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14192         NEW_ACE_SYNCHRONIZE): New macros.
14193         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14194         instead of acl_fromtext, acl_set, facl_set.
14195         Fixes a coreutils/tests/cp/perm failure.
14196
14197 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14198
14199         openat: test for fstatat (..., 0) bug
14200         Further testing with tar suggests that fstatat (..., 0)
14201         does not work in general, on AIX 7.1; see
14202         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14203         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14204         replacement fstatat (which is what older AIX releases were using
14205         anyway).
14206         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14207         use is now changed to orig_fstatat.  This was probably the right
14208         thing to do anyway.
14209         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14210         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14211         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14212         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14213         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14214         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14215         if the bug is found.
14216
14217         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14218         This tests for another fstatat bug on AIX 7.1:
14219         fstatat (AT_FDCWD, ..., 0) does not work.  See
14220         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14221         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14222         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14223         (rpl_fstatat): Adjust so that it works around either (or both)
14224         bugs if present.
14225         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14226
14227 2011-09-03  Karl Berry  <karl@gnu.org>
14228
14229         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14230         in index entries.
14231
14232 2011-09-02  Bruno Haible  <bruno@clisp.org>
14233
14234         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14235         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14236         values of AR, ARFLAGS, RANLIB.
14237         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14238
14239 2011-09-02  Bruno Haible  <bruno@clisp.org>
14240
14241         Find 'ar' program that fits with --host argument.
14242         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14243
14244 2011-09-02  Bruno Haible  <bruno@clisp.org>
14245
14246         tests: init.sh: Support any non-GNU diff.
14247         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14248         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14249         Solaris 8.
14250
14251 2011-09-02  Bruno Haible  <bruno@clisp.org>
14252
14253         tests: init.sh: work also with any non-GNU diff that supports -u
14254         * tests/init.sh: Relax check for diff -u support.
14255         Rather than checking for GNU diff via --version, simply check
14256         for support for -u itself.  Useful at least on OpenBSD 4.9,
14257         AIX 7.1, IRIX 6.5, and Solaris 10.
14258
14259 2011-09-01  Bruno Haible  <bruno@clisp.org>
14260
14261         strtoimax, strtoumax: Document problem on HP-UX 11.
14262         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14263         * doc/posix-functions/strtoumax.texi: Likewise.
14264
14265 2011-09-01  Bruno Haible  <bruno@clisp.org>
14266
14267         strtoumax: Avoid link error on OSF/1 with DTK cc.
14268         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14269         defined as a function.
14270         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14271         strtoumax is defined, not whether it is declared.
14272
14273 2011-09-01  Bruno Haible  <bruno@clisp.org>
14274
14275         strtoimax: Avoid link error on OSF/1 with DTK cc.
14276         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14277         defined as a function.
14278         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14279         strtoimax is defined, not whether it is declared.
14280
14281 2011-09-01  Bruno Haible  <bruno@clisp.org>
14282
14283         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14284         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14285         as a function.
14286         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14287         whether it is declared.
14288
14289 2011-09-01  Bruno Haible  <bruno@clisp.org>
14290
14291         imaxabs: Avoid link error on OSF/1 with DTK cc.
14292         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14293         as a function.
14294         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14295         whether it is declared.
14296
14297 2011-09-01  Bruno Haible  <bruno@clisp.org>
14298
14299         Tests for module 'strtoumax'.
14300         * modules/strtoumax-tests: New file.
14301         * tests/test-strtoumax.c: New file.
14302
14303         Tests for module 'strtoimax'.
14304         * modules/strtoimax-tests: New file.
14305         * tests/test-strtoimax.c: New file.
14306
14307         Tests for module 'imaxdiv'.
14308         * modules/imaxdiv-tests: New file.
14309         * tests/test-imaxdiv.c: New file.
14310
14311         Tests for module 'imaxabs'.
14312         * modules/imaxabs-tests: New file.
14313         * tests/test-imaxabs.c: New file.
14314
14315 2011-09-01  Bruno Haible  <bruno@clisp.org>
14316
14317         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14318         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14319         pthread_create.
14320
14321 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14322
14323         openat: work around AIX 7.1 fstatat issue
14324         This should fix the problem that was not properly fixed
14325         in the previous change, dated 2011-08-30.
14326         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14327         __need_system_stat_h defined.
14328         (orig_fstatat) [HAVE_FSTATAT]: New function.
14329         (rpl_fstatat): Go back to the old way of doing things,
14330         except call orig_fstatat instead of fstatat.
14331         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14332         Remove unnecessary check whether fstatat fills in st_size etc.
14333
14334 2011-09-01  Bruno Haible  <bruno@clisp.org>
14335
14336         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14337         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14338         just include the system's header.
14339
14340 2011-08-31  Jim Meyering  <meyering@redhat.com>
14341
14342         tests: avoid spurious assertion failure in test-float.c on ppc64
14343         * tests/test-float.c (test_long_double): Comment out an assertion,
14344         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14345         with gcc-4.4.4.
14346
14347         maint: indent with spaces, not TABs
14348         I need to get in the habit of running gnulib's "make check".
14349         Both of these would have been caught.
14350         * m4/largefile.m4: Indent with spaces, not TABs.
14351         * lib/parse-datetime.y (iso_8601_time): Likewise.
14352         Spotted by Pádraig Brady.
14353
14354         test-parse-datetime.c: accommodate a relatively strict gcc warning
14355         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14356         to avoid a warning from gcc's -Werror=missing-declarations.
14357         Insert a few spaces-before-funcall-parenthesis.
14358
14359 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14360
14361         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14362         The parser now accepts ISO 8601 date-time strings with "T" as the
14363         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14364         with a space between the date and time strings.  Now it also parses
14365         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14366         variants like "2004-02-29T16:21:42.333-07:00"
14367         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14368         of day representation using the 'T' separator character.
14369         * doc/parse-datetime.texi (General date syntax): replace use of
14370         deprecated --iso-8601 option with --rfc-3339 in example of date
14371         command output formats that can be parsed.
14372         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14373         lib/parse-datetime.y.
14374         (gmt_offset): New function.
14375         (main): Add additional test cases to validate ISO8601 extended
14376         date and time of day parsing.
14377
14378 2011-08-31  Bruno Haible  <bruno@clisp.org>
14379
14380         freopen: Documentation.
14381         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14382         name.
14383         Reported by Claudio Bley <claudio.bley@gmail.com>.
14384
14385 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14386
14387         freopen: Don't crash if the filename argument is NULL.
14388         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14389         NULL.
14390
14391 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14392
14393         openat: work around AIX 7.1 fstatat bug
14394         Problem reported by Kevin Brott for GNU tar, in the thread containing
14395         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14396         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14397         FSTATAT_ST_SIZE_ETC_BROKEN.
14398         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14399         rpl_fstatat.
14400         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14401         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14402         AC_CHECK_FUNCS_ONCE for fstatat.
14403         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14404         fchmodat, mkdirat, openat and unlinkat.
14405
14406 2011-08-30  Bruno Haible  <bruno@clisp.org>
14407
14408         Avoid endless recursions if config.h includes some header files.
14409         * lib/fopen.c (__need_FILE): Define already before including config.h.
14410         * lib/freopen.c (__need_FILE): Likewise.
14411         * lib/open.c (__need_system_fcntl_h): Likewise.
14412         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14413         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14414         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14415
14416 2011-08-25  Karl Berry  <karl@gnu.org>
14417
14418         * config/srclist.txt (ylwrap): new try.
14419         * build-aux/ylwrap: new file.
14420
14421 2011-08-23  Bruno Haible  <bruno@clisp.org>
14422
14423         tmpdir: Use a good default directory on native Windows.
14424         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14425         (P_tmpdir): Default to _P_tmpdir on native Windows.
14426         (path_search): On native Windows, try the value returned by GetTempPath
14427         before trying P_tmpdir.
14428         * modules/tmpdir (Depends-on): Add pathmax.
14429         Suggested by John Darrington <john@darrington.wattle.id.au>.
14430
14431 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14432
14433         doc: fix typo in README-release
14434         * top/README-release: Capitalize first word of a sentence.
14435
14436 2011-08-19  Jim Meyering  <meyering@redhat.com>
14437
14438         fts: do not exhaust memory when processing million-entry directories
14439         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14440         directory would require about 256*N bytes of memory.  Thus, it was
14441         easy to construct a directory too large to be processed by any of
14442         those tools.  With this change, fts' maximum memory utilization is
14443         now limited to around 30MB.
14444         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14445         (fts_read): When we've processed the final entry (i.e., when
14446         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14447         using the parent entry to read any remaining entries.  Dispatch
14448         depending on what fts_build returns:
14449         - NULL+stop, aka failure: stop
14450         - NULL otherwise: move up in the dir hierarchy
14451         - non-NULL: handle this new entry
14452         (fts_build): Declare and use new local, continue_readdir.
14453         Prepare to be called from fts_read, when the entries
14454         from a partially-read directory have just been exhausted.
14455         In that case, we'll skip the opendir and instead use the parent's
14456         fts_dirp and derive dir_fd from that.
14457         Finally, in the readdir loop, if we read max_entries entries,
14458         exit the loop ensuring *not* to call closedir.  This is required
14459         so that fts_dirp can be reused on a subsequent call.
14460         Prompted by Ben England's report of memory exhaustion in find
14461         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14462
14463         maint: fts: move decl of `dp' down into while loop; split a long line
14464         * lib/fts.c (fts_build): No semantic change.
14465
14466         fts: add/use new struct member, fts_dirp
14467         We are about to use this to manage any directory with
14468         too many entries to read all of them into memory at once.
14469         To do that, we'll need to save the DIR* pointer in each
14470         affected FTSENT struct.
14471         * lib/fts_.h: Include <dirent.h>.
14472         (struct FTSENT) [fts_dirp]: New member.
14473         * lib/fts.c (closedir_and_clear): Define.
14474         Use it in place of closedir so that we are sure to
14475         clear the new fts_dirp member when done with it.
14476         (fts_alloc): Initialize the new member.
14477         (fts_lfree): Free, if needed.
14478
14479         maint: fts: give __opendir2 a new parameter and rename
14480         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14481         than surreptitiously using sole caller's "dir_fd".
14482         (fts_opendir): Rename from __opendir2.
14483
14484         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14485         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14486
14487         maint: fts.c: correct off-by-one indentation
14488         * lib/fts.c (fts_build): Correct indentation, change style
14489         of a couple of block comments, and bracing style.
14490
14491         maint: fts.c: move __opendir2 #define "up" out of function body
14492         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14493
14494         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14495         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14496         out for a long time and besides was useful only on BSD systems.
14497
14498 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14499
14500         regex: port to Stratus OpenVOS
14501         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14502         define to empty, rather than attempting nonportable optimizations.
14503         Problem reported by Paul Green in:
14504         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14505         and fix suggested by Eric Blake in:
14506         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14507
14508 2011-08-17  Eric Blake  <eblake@redhat.com>
14509
14510         getcwd: fix test failures on mingw
14511         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14512         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14513         test if long directory cannot be created, and allow mingw errno.
14514
14515         getcwd-lgpl: fix m4 to match relaxed test for BSD
14516         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14517         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14518         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14519         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14520         signature problem.
14521
14522         getcwd: fix compilation on mingw64
14523         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14524         getcwd.
14525         Reported by Marc-André Lureau.
14526
14527         pipe2: silence compiler warning
14528         * lib/pipe2.c (pipe2): Hide label if it is not used.
14529
14530 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14531
14532         relocatable-prog: fix link error
14533         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14534         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14535         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14536         into modules/relocatable-lib without noticing that
14537         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14538         also needs to build relocatable.c.
14539
14540 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14541
14542         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14543         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14544         shell code: it contained a 'break' that was not in a loop.
14545         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14546         via a shell-language loop; this may have been true in old Autoconf
14547         versions, but it's not true in Autoconf 2.68.  I found this bug
14548         when testing coreutils git on Solaris 8, whose shell complains
14549         about the syntax error.
14550
14551 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14552
14553         * lib/base64.c: Fix comment to reference RFC 4648.
14554         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14555         <gvtulder@gmail.com>.
14556
14557 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14558
14559         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14560
14561         po/Makefile.in.in: fix make -q problem
14562         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14563         rule, since there's no file named 'check-macro-version' and its
14564         use as a file breaks make -q.
14565         (all): Don't depend on check-macro-version.
14566         (CHECK_MACRO_VERSION): New macro.
14567         (stamp-po): Use it.
14568
14569         configmake: fix make -q problem
14570         * modules/configmake (configmake.h): Update configmake.h's time stamp
14571         even if the file does not change.  Otherwise, 'make -q' fails.
14572         Problem reported by Simon Josefsson in
14573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14574
14575 2011-08-11  Jim Meyering  <meyering@redhat.com>
14576
14577         git-version-gen: correct the advice in a comment
14578         * build-aux/git-version-gen: Correct comment.
14579         Don't recommend to list .tarball-version in .gitignore.
14580
14581 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14582
14583         base64: fix off-by-one buffer size bug
14584         Problem and (trivial) fix reported by Gijs van Tulder in
14585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14586         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14587         * tests/test-base64.c (main): Catch the bug.
14588
14589 2011-08-10  Eric Blake  <eblake@redhat.com>
14590
14591         closein: correct comments
14592         * lib/closein.c (close_stdin): Improve comments.
14593
14594 2011-08-09  Bruno Haible  <bruno@clisp.org>
14595
14596         More tests for 'fseeko'.
14597         * tests/test-fseeko3.c: New file, from Eric Blake.
14598         * tests/test-fseeko3.sh: New file.
14599         * modules/fseeko-tests (Files): Add them.
14600         (TESTS): Add test-fseeko3.sh.
14601         (check_PROGRAMS): Add test-fseeko3.
14602
14603 2011-08-09  Eric Blake  <eblake@redhat.com>
14604
14605         fseeko: remove unneeded hack
14606         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14607
14608         fseeko: fix bug on glibc
14609         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14610         Reported by John W. Eaton.
14611
14612 2011-08-08  Bruno Haible  <bruno@clisp.org>
14613
14614         unictype/base: Fix interoperability with preinstalled libunistring.
14615         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14616         Reported by Simon Josefsson.
14617
14618 2011-08-08  Bruno Haible  <bruno@clisp.org>
14619
14620         iswblank: Detect declaration correctly.
14621         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14622         AC_CHECK_DECLS invocation.
14623
14624 2011-08-08  Bruno Haible  <bruno@clisp.org>
14625
14626         tcgetsid: Detect declaration correctly.
14627         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14628         AC_CHECK_DECLS invocation.
14629         Reported by Simon Josefsson.
14630
14631 2011-08-08  Eric Blake  <eblake@redhat.com>
14632
14633         largefile: fix typo that regressed large file support
14634         * modules/largefile (configure.ac-early): Fix section name.
14635
14636 2011-08-06  Karl Berry  <karl@gnu.org>
14637
14638         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14639         a separate module.
14640
14641 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14642
14643         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14644         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14645         get prototype for free.
14646
14647 2011-08-04  Bruno Haible  <bruno@clisp.org>
14648
14649         Tests for module 'pathmax'.
14650         * modules/pathmax-tests: New file.
14651         * tests/test-pathmax.c: New file.
14652
14653         canonicalize-lgpl: Support larger filenames on the Hurd.
14654         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14655         Reported by Paul Eggert.
14656
14657         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14658         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14659         * lib/chdir-long.h: Include pathmax.h.
14660         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14661         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14662         (PATH_MAX): Remove code that is done by pathmax.h.
14663         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14664         * lib/tmpfile.c: Add a comment.
14665         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14666         * modules/chdir-long (Depends-on): Add pathmax.
14667         * modules/getcwd (Depends-on): Add pathmax.
14668         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14669         is not defined.
14670         * doc/posix-headers/limits.texi: Mention the pathmax module.
14671         * NEWS: Mention the change.
14672
14673 2011-08-02  Bruno Haible  <bruno@clisp.org>
14674
14675         pthread_sigmask: Actually use results of gl_THREADLIB.
14676         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14677         gl_THREADLIB, not gl_[]THREADLIB.
14678         Reported by Eric Blake.
14679
14680 2011-08-02  Jim Meyering  <meyering@redhat.com>
14681
14682         maint.mk: relax the default _gl_TS_function_match regexp
14683         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14684         space between function name and "(" in an "extern" declaration.
14685         That would fail to match a decl with no space there: extern void foo();
14686
14687 2011-07-31  Iain Nicol  <iain@thenicols.net>
14688
14689         git-version-gen: document that EXTRA_DIST must include .version
14690         * build-aux/git-version-gen: In the how-to-use comment, document
14691         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14692         will fail when run from an unpacked distribution tarball.
14693
14694 2011-08-01  Bruno Haible  <bruno@clisp.org>
14695
14696         wctype-h: Fix last change.
14697         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14698         REPLACE_TOWLOWER to 0.
14699         Reported by Sam Steingold <sds@gnu.org>.
14700
14701 2011-07-31  Bruno Haible  <bruno@clisp.org>
14702
14703         frexpl: Update autoconf test.
14704         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14705         according to changes of 2011-06-20.
14706
14707 2011-07-31  Bruno Haible  <bruno@clisp.org>
14708
14709         sys_utsname: Add support for Minix.
14710         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14711         <sys/utsname.h>.
14712         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14713         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14714
14715 2011-07-31  Bruno Haible  <bruno@clisp.org>
14716
14717         strings: Add support for Minix.
14718         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14719         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14720         * doc/posix-headers/strings.texi: Document the Minix problem.
14721
14722 2011-07-31  Bruno Haible  <bruno@clisp.org>
14723
14724         wctype-h: Add support for Minix.
14725         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14726         REPLACE_TOWLOWER.
14727         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14728         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14729         REPLACE_ISWCNTRL.
14730
14731 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14732
14733         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14734         This is a performance improvement for 64-bit hosts: it causes the
14735         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14736
14737 2011-07-31  Bruno Haible  <bruno@clisp.org>
14738
14739         stdioext: Add support for Minix.
14740         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14741         * lib/fpurge.c (fpurge): Likewise.
14742         * lib/freadahead.c (freadahead): Likewise.
14743         * lib/freadable.c (freadable): Likewise.
14744         * lib/freading.c (freading): Likewise.
14745         * lib/freadptr.c (freadptr): Likewise.
14746         * lib/freadseek.c (freadptrinc): Likewise.
14747         * lib/fseeko.c (rpl_fseeko): Likewise.
14748         * lib/fseterr.c (fseterr): Likewise.
14749         * lib/fwritable.c (fwritable): Likewise.
14750         * lib/fwriting.c (fwriting): Likewise.
14751         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14752         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14753
14754 2011-07-31  Bruno Haible  <bruno@clisp.org>
14755
14756         errno: Port to Minix.
14757         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14758         ECONNABORTED are defined.
14759         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14760         GNULIB_defined_ECONNABORTED): New macros.
14761         * lib/strerror-override.h (strerror_override): Test also
14762         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14763         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14764         ECONNABORTED.
14765         * doc/posix-headers/errno.texi: Mention the Minix problem.
14766
14767 2011-07-31  Bruno Haible  <bruno@clisp.org>
14768
14769         Work around declaration collisions on Minix.
14770         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14771         defined, set REPLACE_MBSINIT.
14772         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14773         defined, set REPLACE_MBRTOWC.
14774         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14775         set REPLACE_MBRLEN.
14776         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14777         defined, set REPLACE_MBSRTOWCS.
14778         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14779         defined, set REPLACE_WCRTOMB.
14780         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14781         defined, set REPLACE_WCSRTOMBS.
14782
14783 2011-07-31  Bruno Haible  <bruno@clisp.org>
14784
14785         Add support for Minix with ACK compiler.
14786         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14787         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14788         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14789
14790 2011-07-31  Bruno Haible  <bruno@clisp.org>
14791
14792         Documentation about Minix.
14793         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14794         * doc/glibc-headers/*.texi: Likewise.
14795         * doc/posix-functions/*.texi: Likewise.
14796         * doc/glibc-functions/*.texi: Likewise.
14797
14798 2011-07-31  Bruno Haible  <bruno@clisp.org>
14799
14800         snippet/warn-on-use: Fix indentation.
14801         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14802
14803 2011-07-25  Jim Meyering  <meyering@redhat.com>
14804
14805         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14806         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14807         commands.
14808
14809 2011-07-27  Jim Meyering  <meyering@redhat.com>
14810
14811         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14812         * top/maint.mk (gl_extract_significant_defines_): Now that
14813         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14814         gnulib/lib/signal.in.h, and now that we recommend to
14815         define-if-undefined those two symbols in application code,
14816         we must filter them out of the "significant" list.
14817         This avoids a "make syntax-check" failure in coreutils.
14818
14819 2011-07-26  Eric Blake  <eblake@redhat.com>
14820
14821         warnings: add comments about previous patch
14822         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14823         * m4/include_next.m4: Likewise.
14824         * m4/warn-on-use.m4: Likewise.
14825         * m4/warnings.m4: Likewise, and simplify use.
14826         Suggested by Stefano Lattarini.
14827
14828         include-next, warnings: support older autoconf
14829         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14830         AS_VAR_PUSHDEF in a way that works with older autoconf.
14831         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14832         Reported by Daniel P. Berrange.
14833
14834 2011-07-25  Bruno Haible  <bruno@clisp.org>
14835
14836         fseek, ftell: Fix doc.
14837         * doc/posix-functions/fseek.texi: Reword statement about
14838         AC_SYS_LARGEFILE.
14839         * doc/posix-functions/ftell.texi: Likewise.
14840
14841 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14842             Bruno Haible  <bruno@clisp.org>
14843
14844         Add dependencies to the 'largefile' module.
14845         * modules/fopen (Depends-on): Add 'largefile'.
14846         * modules/freopen (Depends-on): Likewise.
14847         * modules/fseeko (Depends-on): Likewise.
14848         * modules/ftello (Depends-on): Likewise.
14849         * modules/glob (Depends-on): Likewise.
14850         * modules/lseek (Depends-on): Likewise.
14851         * modules/lstat (Depends-on): Likewise.
14852         * modules/mkostemp (Depends-on): Likewise.
14853         * modules/mkostemps (Depends-on): Likewise.
14854         * modules/mkstemp (Depends-on): Likewise.
14855         * modules/mkstemps (Depends-on): Likewise.
14856         * modules/open (Depends-on): Likewise.
14857         * modules/openat (Depends-on): Likewise.
14858         * modules/pread (Depends-on): Likewise.
14859         * modules/pwrite (Depends-on): Likewise.
14860         * modules/scandir (Depends-on): Likewise.
14861         * modules/stat (Depends-on): Likewise.
14862         * modules/tmpfile (Depends-on): Likewise.
14863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14864         since the containing module now depends on the largefile module.
14865         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14866         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14867         off_t is fixed by gnulib.
14868         * doc/posix-functions/freopen.texi: Likewise.
14869         * doc/posix-functions/fseeko.texi: Likewise.
14870         * doc/posix-functions/fstatat.texi: Likewise.
14871         * doc/posix-functions/ftello.texi: Likewise.
14872         * doc/posix-functions/glob.texi: Likewise.
14873         * doc/posix-functions/lseek.texi: Likewise.
14874         * doc/posix-functions/lstat.texi: Likewise.
14875         * doc/posix-functions/mkstemp.texi: Likewise.
14876         * doc/posix-functions/open.texi: Likewise.
14877         * doc/posix-functions/openat.texi: Likewise.
14878         * doc/posix-functions/pread.texi: Likewise.
14879         * doc/posix-functions/pwrite.texi: Likewise.
14880         * doc/posix-functions/scandir.texi: Likewise.
14881         * doc/posix-functions/stat.texi: Likewise.
14882         * doc/posix-functions/tmpfile.texi: Likewise.
14883         * doc/glibc-functions/mkostemp.texi: Likewise.
14884         * doc/glibc-functions/mkostemps.texi: Likewise.
14885         * doc/glibc-functions/mkstemps.texi: Likewise.
14886
14887 2011-07-25  Bruno Haible  <bruno@clisp.org>
14888
14889         fcntl: Move AC_LIBOBJ invocation to module description.
14890         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14891         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14892
14893         fcntl: Remove call-in from fchdir.m4.
14894         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14896
14897         dup3: Remove potential call-in from fchdir.m4.
14898         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14900
14901         dup2: Move AC_LIBOBJ invocation to module description.
14902         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14903         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14904         Don't invoke AC_LIBOBJ.
14905         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14906
14907         dup2: Remove call-in from fchdir.m4.
14908         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14910
14911         fclose: Move AC_LIBOBJ invocation to module description.
14912         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14913         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14914         to 1.
14915         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14916
14917         fclose: Remove call-in from close.m4.
14918         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14919         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14920
14921         close: Move AC_LIBOBJ invocation to module description.
14922         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14923         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14924         1.
14925         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14926
14927         close: Remove call-in from fchdir.m4.
14928         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14930
14931         open: Move AC_LIBOBJ invocation to module description.
14932         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14933         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14934         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14935
14936         open: Remove call-in from fchdir.m4.
14937         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14939
14940         fchdir: Start to remove gl_REPLACE_* idiom.
14941         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14942         (gl_FUNC_FCHDIR): Invoke it.
14943
14944 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14945
14946         * lib/ftell.c (ftell): Comment out cast.
14947
14948         close: use gl_REPLACE_FCLOSE only if defined
14949         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14950         is defined.  The close module doesn't depend on the fclose module
14951         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14953         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14954
14955 2011-07-24  Jim Meyering  <meyering@redhat.com>
14956
14957         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14958         * tests/test-select.h (test_function): Declare as "static".
14959
14960 2011-07-24  Bruno Haible  <bruno@clisp.org>
14961
14962         doc: Mention the effects of AC_SYS_LARGEFILE.
14963         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14964         on this function.
14965         * doc/posix-functions/aio_error.texi: Likewise.
14966         * doc/posix-functions/aio_fsync.texi: Likewise.
14967         * doc/posix-functions/aio_read.texi: Likewise.
14968         * doc/posix-functions/aio_return.texi: Likewise.
14969         * doc/posix-functions/aio_suspend.texi: Likewise.
14970         * doc/posix-functions/aio_write.texi: Likewise.
14971         * doc/posix-functions/fgetpos.texi: Likewise.
14972         * doc/posix-functions/fopen.texi: Likewise.
14973         * doc/posix-functions/freopen.texi: Likewise.
14974         * doc/posix-functions/fsetpos.texi: Likewise.
14975         * doc/posix-functions/fstatvfs.texi: Likewise.
14976         * doc/posix-functions/ftruncate.texi: Likewise.
14977         * doc/posix-functions/ftw.texi: Likewise.
14978         * doc/posix-functions/getrlimit.texi: Likewise.
14979         * doc/posix-functions/glob.texi: Likewise.
14980         * doc/posix-functions/lio_listio.texi: Likewise.
14981         * doc/posix-functions/lockf.texi: Likewise.
14982         * doc/posix-functions/mkstemp.texi: Likewise.
14983         * doc/posix-functions/mmap.texi: Likewise.
14984         * doc/posix-functions/nftw.texi: Likewise.
14985         * doc/posix-functions/openat.texi: Likewise.
14986         * doc/posix-functions/opendir.texi: Likewise.
14987         * doc/posix-functions/posix_fadvise.texi: Likewise.
14988         * doc/posix-functions/posix_fallocate.texi: Likewise.
14989         * doc/posix-functions/pread.texi: Likewise.
14990         * doc/posix-functions/pwrite.texi: Likewise.
14991         * doc/posix-functions/readdir.texi: Likewise.
14992         * doc/posix-functions/readdir_r.texi: Likewise.
14993         * doc/posix-functions/rewinddir.texi: Likewise.
14994         * doc/posix-functions/scandir.texi: Likewise.
14995         * doc/posix-functions/seekdir.texi: Likewise.
14996         * doc/posix-functions/setrlimit.texi: Likewise.
14997         * doc/posix-functions/statvfs.texi: Likewise.
14998         * doc/posix-functions/telldir.texi: Likewise.
14999         * doc/posix-functions/tmpfile.texi: Likewise.
15000         * doc/posix-functions/truncate.texi: Likewise.
15001         * doc/glibc-functions/fallocate.texi: Likewise.
15002         * doc/glibc-functions/fstatfs.texi: Likewise.
15003         * doc/glibc-functions/fts_children.texi: Likewise.
15004         * doc/glibc-functions/fts_read.texi: Likewise.
15005         * doc/glibc-functions/getdirentries.texi: Likewise.
15006         * doc/glibc-functions/mkostemp.texi: Likewise.
15007         * doc/glibc-functions/mkostemps.texi: Likewise.
15008         * doc/glibc-functions/mkstemps.texi: Likewise.
15009         * doc/glibc-functions/preadv.texi: Likewise.
15010         * doc/glibc-functions/pwritev.texi: Likewise.
15011         * doc/glibc-functions/sendfile.texi: Likewise.
15012         * doc/glibc-functions/statfs.texi: Likewise.
15013
15014 2011-07-24  Bruno Haible  <bruno@clisp.org>
15015
15016         doc: Fix typo.
15017         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15018
15019 2011-07-24  Bruno Haible  <bruno@clisp.org>
15020
15021         doc: Mention fsusage.
15022         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15023
15024 2011-07-24  Bruno Haible  <bruno@clisp.org>
15025
15026         doc: Mention new glibc headers and functions.
15027         * doc/glibc-headers/gshadow.texi: New file.
15028         * doc/glibc-functions/endsgent.texi: New file.
15029         * doc/glibc-functions/fgetsgent.texi: New file.
15030         * doc/glibc-functions/fgetsgent_r.texi: New file.
15031         * doc/glibc-functions/getsgent.texi: New file.
15032         * doc/glibc-functions/getsgent_r.texi: New file.
15033         * doc/glibc-functions/getsgnam.texi: New file.
15034         * doc/glibc-functions/getsgnam_r.texi: New file.
15035         * doc/glibc-functions/putsgent.texi: New file.
15036         * doc/glibc-functions/setsgent.texi: New file.
15037         * doc/glibc-functions/sgetsgent.texi: New file.
15038         * doc/glibc-functions/sgetsgent_r.texi: New file.
15039         * doc/glibc-functions/malloc_info.texi: New file.
15040         * doc/glibc-functions/preadv.texi: New file.
15041         * doc/glibc-functions/pwritev.texi: New file.
15042         * doc/glibc-functions/register_printf_modifier.texi: New file.
15043         * doc/glibc-functions/register_printf_specifier.texi: New file.
15044         * doc/glibc-functions/register_printf_type.texi: New file.
15045         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15046         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15047         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15048         * doc/glibc-functions/pthread_getname_np.texi: New file.
15049         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15050         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15051         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15052         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15053         * doc/glibc-functions/pthread_setname_np.texi: New file.
15054         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15055         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15056         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15057         * doc/glibc-functions/qsort_r.texi: New file.
15058         * doc/glibc-functions/quick_exit.texi: New file.
15059         * doc/glibc-functions/syncfs.texi: New file.
15060         * doc/gnulib.texi: Include them.
15061         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15062         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15063         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15064         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15065         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15066         * doc/glibc-functions/execvpe.texi: Likewise.
15067
15068 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15069
15070         ftell: don't include <unistd.h>
15071         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15072         guaranteed to define off_t, and the ftell module depends on the
15073         stdio module.
15074
15075         ftell: do not assume wraparound signed arithmetic
15076         * lib/ftell.c: Include <limits.h>.
15077         (ftell): Don't assume wraparound signed arithmetic.
15078
15079 2011-07-24  Bruno Haible  <bruno@clisp.org>
15080
15081         close: No longer depend on module 'fclose'.
15082         * modules/close (Depends-on): Remove fclose.
15083         * NEWS: Mention the change.
15084         Suggested by Sam Steingold <sds@gnu.org>.
15085
15086 2011-07-24  Bruno Haible  <bruno@clisp.org>
15087
15088         fsusage: Enable large volume support on AIX >= 5.2.
15089         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15090         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15091         instead of STAT_STATVFS.
15092         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15093
15094         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15095         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15096         f_blocks field only on MacOS X.
15097
15098         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15099         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15100         * modules/fsusage (Depends-on): Add largefile.
15101
15102 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15103
15104         * README: Modernize discussion of signed integers.
15105         Assuming overflow wraparound is no longer safe.
15106         Mention ones' complement and signed magnitude.
15107
15108 2011-07-22  Bruno Haible  <bruno@clisp.org>
15109
15110         select tests, pselect tests: Refactor.
15111         * tests/test-select.h: New file, extracted from tests/test-select.c.
15112         (select_fn): New type.
15113         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15114         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15115         test_pipe): Add my_select argument.
15116         (test_function): Renamed from main. Add my_select argument.
15117         * tests/test-select.c: Move most code to tests/test-select.h. Include
15118         test-select.h.
15119         * modules/select-tests (Files): Add tests/test-select.h.
15120         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15121         (my_select, main): New functions.
15122         * modules/pselect-tests (Files): Add tests/test-select.h,
15123         tests/macros.h, tests/signature.h.
15124         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15125         (configure.ac): Check for <sys/wait.h>.
15126
15127 2011-07-22  Bruno Haible  <bruno@clisp.org>
15128
15129         sys_select tests: Check the signature of FD_*.
15130         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15131         signature tests from here...
15132         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15133         here.
15134         * modules/sys_select-tests (Files): Add tests/signature.h.
15135
15136 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         largefile: new module, replacing large-inode
15139         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15140         * MODULES.html.sh: Add largefile, remove large-inode.
15141         * modules/largefile, m4/largefile.m4: New files.
15142         * modules/large-inode, m4/large-inode.m4: Remove.
15143
15144         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15146         implementations that use only 32 bits to count blocks.
15147         On typical hosts with 1024-byte blocks, this fails with file
15148         systems as small as 4 TiB.  Problem reported by Herb Wartens
15149         <http://debbugs.gnu.org/9140> and this should also fix a similar
15150         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15151
15152         large-inode: New module
15153         * MODULES.html.sh: Add it.
15154         * modules/large-inode, m4/large-inode.m4: New files.
15155
15156         extensions: Enable extensions on MacOS X 10.5 and later.
15157         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15158
15159 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15160
15161         file-has-acl: use acl_extended_file_nofollow if available
15162         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15163         (acl_extended_file): New macro.
15164         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15165         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15166
15167 2011-07-21  Bruno Haible  <bruno@clisp.org>
15168
15169         Declare system functions in a way that works with C++.
15170         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15171         declare fdopendir as extern "C".
15172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15173         declare frexpl as extern "C".
15174         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15175         declare gai_strerror as extern "C".
15176         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15177         programs, declare gai_strerror as extern "C".
15178         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15179         declare getlogin_r as extern "C".
15180         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15181         as extern "C".
15182         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15183         declare ldexpl as extern "C".
15184         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15185         as extern "C".
15186         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15187         program, declare getmntinfo as extern "C".
15188         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15189         stpncpy as extern "C".
15190         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15191         program, declare __xpg_strerror_r as extern "C".
15192         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15193         strndup as extern "C".
15194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15195         declare memset and bzero as extern "C".
15196         Reported by Sam Steingold <sds@gnu.org>.
15197
15198 2011-07-12  Jim Meyering  <meyering@redhat.com>
15199
15200         maint.mk: prohibit inclusion of "verify.h" without use
15201         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15202
15203 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15204
15205         timer-time: A new module to check for timer_settime()
15206         * m4/timer_time.m4: Check for the posix function.
15207         * modules/timer-time: Add the new module.
15208         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15209         Mention it.
15210
15211 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15212             Bruno Haible  <bruno@clisp.org>
15213
15214         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15215         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15216         not defined, assume POSIX threads and look for pthread_sigmask in
15217         $LIBS, without changing $CPPFLAGS.
15218
15219 2011-07-19  Bruno Haible  <bruno@clisp.org>
15220
15221         strstr: Update cross-compilation guess.
15222         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15223         CPUs, guess no, in view of glibc
15224         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15225         Suggested by Eric Blake. Reported by Reuben Thomas.
15226
15227 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15228
15229         getopt-gnu: suppress core dumps from detection code
15230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15231         to suppress core dumps that may well occur on glibc systems.
15232         * modules/getopt-gnu: Depend on nocrash.
15233
15234 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15235
15236         pthread_sigmask: ensure usleep is declared
15237         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15238         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15239
15240 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15241
15242         doc: Document NonStop portability issues.
15243         * doc/posix-functions/sigaction.texi (sigaction):
15244         * doc/posix-headers/signal.texi (signal.h):
15245         Document NonStop.  See Joachim Schmitz in
15246         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15247
15248 2011-07-15  Bruno Haible  <bruno@clisp.org>
15249
15250         ffsl, ffsll: Avoid unportable behaviour.
15251         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15252
15253 2011-07-15  Bruno Haible  <bruno@clisp.org>
15254
15255         ffs: More tests.
15256         * tests/test-ffs.c (NBITS): New macro.
15257         (main): Add more tests.
15258         * tests/test-ffsl.c (NBITS): New macro.
15259         (main): Add more tests.
15260         * tests/test-ffsll.c (NBITS): New macro.
15261         (main): Add more tests.
15262
15263 2011-07-15  Eric Blake  <eblake@redhat.com>
15264
15265         ffsl, ffsll: new modules
15266         * modules/ffsl: New file.
15267         * modules/ffsll: Likewise.
15268         * m4/ffsl.m4: Likewise.
15269         * m4/ffsll.m4: Likewise.
15270         * lib/ffsl.c: Likewise.
15271         * lib/ffsl.h: Likewise.
15272         * lib/ffsll.c: Likewise.
15273         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15274         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15275         * modules/string (Makefile.am): Substitute witnesses.
15276         * lib/strings.in.h (ffsl, ffsll): Declare.
15277         * modules/ffsl-tests: New test file.
15278         * modules/ffsll-tests: Likewise.
15279         * tests/test-ffsl.c: Likewise.
15280         * tests/test-ffsll.c: Likewise.
15281         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15282         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15283         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15284
15285         ffs: fix m4 prerequisite
15286         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15287
15288         ffs: avoid undefined behavior
15289         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15290         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15291         Reported by Bruno Haible.
15292
15293 2011-07-12  Bruno Haible  <bruno@clisp.org>
15294
15295         pthread_sigmask: Rely on module 'threadlib'.
15296         * modules/pthread_sigmask (Depends-on): Add threadlib.
15297         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15298         is defined.
15299
15300 2011-07-12  Bruno Haible  <bruno@clisp.org>
15301
15302         regex: Depend on module 'strcase'.
15303         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15304
15305 2011-07-12  Jim Meyering  <meyering@redhat.com>
15306
15307         warn-on-use: fix typo in file name
15308         * modules/snippet/warn-on-use (Files): Correct file name:
15309         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15310
15311 2011-07-12  Bruno Haible  <bruno@clisp.org>
15312
15313         strings: Document module.
15314         * doc/posix-headers/strings.texi: Mention module 'strings'.
15315
15316 2011-07-12  Bruno Haible  <bruno@clisp.org>
15317
15318         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15319         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15320         (Files, Makefile.am): Update.
15321         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15322         * modules/stdlib (Depends-on): Update.
15323
15324 2011-07-12  Bruno Haible  <bruno@clisp.org>
15325
15326         * NEWS: Mention the changes.
15327
15328         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15329         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15330         (Files, Makefile.am): Update.
15331         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15332         * modules/arpa_inet (Depends-on): Update.
15333         * modules/ctype (Depends-on): Update.
15334         * modules/dirent (Depends-on): Update.
15335         * modules/fcntl-h (Depends-on): Update.
15336         * modules/glob (Depends-on): Update.
15337         * modules/iconv-h (Depends-on): Update.
15338         * modules/inttypes-incomplete (Depends-on): Update.
15339         * modules/langinfo (Depends-on): Update.
15340         * modules/locale (Depends-on): Update.
15341         * modules/math (Depends-on): Update.
15342         * modules/netdb (Depends-on): Update.
15343         * modules/poll-h (Depends-on): Update.
15344         * modules/pty (Depends-on): Update.
15345         * modules/search (Depends-on): Update.
15346         * modules/signal (Depends-on): Update.
15347         * modules/spawn (Depends-on): Update.
15348         * modules/stdio (Depends-on): Update.
15349         * modules/stdlib (Depends-on): Update.
15350         * modules/string (Depends-on): Update.
15351         * modules/strings (Depends-on): Update.
15352         * modules/sys_file (Depends-on): Update.
15353         * modules/sys_ioctl (Depends-on): Update.
15354         * modules/sys_select (Depends-on): Update.
15355         * modules/sys_socket (Depends-on): Update.
15356         * modules/sys_stat (Depends-on): Update.
15357         * modules/sys_time (Depends-on): Update.
15358         * modules/sys_times (Depends-on): Update.
15359         * modules/sys_utsname (Depends-on): Update.
15360         * modules/sys_wait (Depends-on): Update.
15361         * modules/termios (Depends-on): Update.
15362         * modules/time (Depends-on): Update.
15363         * modules/unistd (Depends-on): Update.
15364         * modules/wchar (Depends-on): Update.
15365         * modules/wctype-h (Depends-on): Update.
15366         * MODULES.html.sh (Support for building libraries and executables):
15367         Update.
15368
15369         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15370         * modules/snippet/unused-parameter: Renamed from
15371         modules/unused-parameter.
15372         (Files, Makefile.am): Update.
15373         * build-aux/snippet/unused-parameter.h: Renamed from
15374         build-aux/unused-parameter.h.
15375         * modules/selinux-h (Depends-on): Update.
15376         * modules/unistr/base (Depends-on): Update.
15377         * MODULES.html.sh (Core language properties): Update.
15378
15379         Rename module 'link-warning' to 'snippet/link-warning'.
15380         * modules/snippet/link-warning: Renamed from modules/link-warning.
15381         (Files, Makefile.am): Update.
15382         * build-aux/snippet/link-warning.h: Renamed from
15383         build-aux/link-warning.h.
15384         * MODULES.html.sh (Support for building libraries and executables):
15385         Update.
15386
15387         Rename module 'c++defs' to 'snippet/c++defs'.
15388         * modules/snippet/c++defs: Renamed from modules/c++defs.
15389         (Files, Makefile.am): Update.
15390         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15391         * modules/arpa_inet (Depends-on): Update.
15392         * modules/ctype (Depends-on): Update.
15393         * modules/dirent (Depends-on): Update.
15394         * modules/fcntl-h (Depends-on): Update.
15395         * modules/glob (Depends-on): Update.
15396         * modules/iconv-h (Depends-on): Update.
15397         * modules/langinfo (Depends-on): Update.
15398         * modules/locale (Depends-on): Update.
15399         * modules/math (Depends-on): Update.
15400         * modules/netdb (Depends-on): Update.
15401         * modules/poll-h (Depends-on): Update.
15402         * modules/pty (Depends-on): Update.
15403         * modules/search (Depends-on): Update.
15404         * modules/signal (Depends-on): Update.
15405         * modules/spawn (Depends-on): Update.
15406         * modules/stdio (Depends-on): Update.
15407         * modules/stdlib (Depends-on): Update.
15408         * modules/string (Depends-on): Update.
15409         * modules/strings (Depends-on): Update.
15410         * modules/sys_ioctl (Depends-on): Update.
15411         * modules/sys_select (Depends-on): Update.
15412         * modules/sys_socket (Depends-on): Update.
15413         * modules/sys_stat (Depends-on): Update.
15414         * modules/sys_time (Depends-on): Update.
15415         * modules/sys_wait (Depends-on): Update.
15416         * modules/termios (Depends-on): Update.
15417         * modules/time (Depends-on): Update.
15418         * modules/unistd (Depends-on): Update.
15419         * modules/wchar (Depends-on): Update.
15420         * modules/wctype-h (Depends-on): Update.
15421
15422         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15423         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15424         (Files, Makefile.am): Update.
15425         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15426         * modules/argv-iter (Depends-on): Update.
15427         * modules/arpa_inet (Depends-on): Update.
15428         * modules/dirent (Depends-on): Update.
15429         * modules/fcntl-h (Depends-on): Update.
15430         * modules/fnmatch (Depends-on): Update.
15431         * modules/getopt-posix (Depends-on): Update.
15432         * modules/glob (Depends-on): Update.
15433         * modules/iconv-h (Depends-on): Update.
15434         * modules/inttypes-incomplete (Depends-on): Update.
15435         * modules/locale (Depends-on): Update.
15436         * modules/math (Depends-on): Update.
15437         * modules/netdb (Depends-on): Update.
15438         * modules/search (Depends-on): Update.
15439         * modules/signal (Depends-on): Update.
15440         * modules/spawn (Depends-on): Update.
15441         * modules/stdio (Depends-on): Update.
15442         * modules/stdlib (Depends-on): Update.
15443         * modules/string (Depends-on): Update.
15444         * modules/strings (Depends-on): Update.
15445         * modules/sys_socket (Depends-on): Update.
15446         * modules/sys_stat (Depends-on): Update.
15447         * modules/sys_time (Depends-on): Update.
15448         * modules/sys_times (Depends-on): Update.
15449         * modules/sys_utsname (Depends-on): Update.
15450         * modules/time (Depends-on): Update.
15451         * modules/unistd (Depends-on): Update.
15452         * modules/wchar (Depends-on): Update.
15453         * MODULES.html.sh (Support for building libraries and executables):
15454         Update.
15455
15456 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15457
15458         Improvements on _Noreturn and related modules.
15459
15460         modules/_Exit-tests: test _Noreturn too
15461         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15462         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15463         (main): Use them.
15464
15465         stdnoreturn, stdnoreturn-tests: remove modules
15466         They're not needed here and a bit premature for use elsewhere.  See
15467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15468         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15469         * tests/test-stdnoreturn.c: Remove files.
15470         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15471         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15472         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15473         and using noreturn.
15474         * modules/openat, modules/sigpipe-die, modules/xalloc:
15475         * modules/xmemdup0, modules/xstrtol:
15476         Remove dependency on stdnoreturn.
15477
15478         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15479         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15480         Reparenthesize to avoid GCC warning.
15481         Support Microsoft's syntax.
15482         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15483
15484         _Noreturn-tests: remove module
15485         * modules/_Noreturn-tests: Remove.
15486         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15487         * tests/test-_Noreturn.c: Remove.
15488         * tests/test-stdnoreturn.c: Merge from the old
15489         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15490
15491 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15492
15493         _Noreturn, stdnoreturn, and related modules.
15494
15495         * top/maint.mk: Adjust to new noreturn support.
15496         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15497         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15498
15499         xalloc: use stdnoreturn.h
15500         * lib/xalloc.h: Include <stdnoreturn.h>.
15501         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15502         * modules/xalloc (Depends-on): Add stdnoreturn.
15503
15504         xstrtol: use stdnoreturn.h
15505         * lib/xstrtol.h: Include <stdnoreturn.h>.
15506         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15507         * modules/xstrtol (Depends-on): Add stdnoreturn.
15508
15509         xmemdup0: use stdnoreturn.h
15510         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15511         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15512         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15513
15514         sigpipe-die: use stdnoreturn.h
15515         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15516         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15517         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15518
15519         openat: use stdnoreturn.h
15520         * lib/openat.h: Include <stdnoreturn.h>.
15521         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15522         * modules/openat (Depends-on): Add stdnoreturn.
15523
15524         * lib/openat-die.c (openat_save_fail): Modernize comment.
15525
15526         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15527
15528         * lib/glthread/thread.h: Modernize comment.
15529
15530         obstack: use _Noreturn
15531         * lib/obstack.c (__attribute__): Remove macro.
15532         (print_and_abort): Use _Noreturn.
15533
15534         c-stack: use _Noreturn
15535         * lib/c-stack.c (die, overflow_handler, segv_handler):
15536         Use _Noreturn rather than __attribute__((noreturn)).
15537
15538         argmatch-tests, exclude_tests: use _Noreturn
15539         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15540         Remove.
15541         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15542
15543         stdlib: use _Noreturn
15544         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15545         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15546         * modules/stdlib (Depends-on): Add _Noreturn.
15547         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15548
15549         stdnoreturn-tests: new module
15550         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15551
15552         stdnoreturn: new module
15553         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15554         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15555
15556         _Noreturn-tests: new module
15557         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15558
15559         _Noreturn: new module
15560         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15561         New section, mentioning it.
15562         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15563
15564         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15565
15566 2011-07-11  Eric Blake  <eblake@redhat.com>
15567
15568         ffs: new module
15569         * modules/ffs: New file.
15570         * m4/ffs.m4: Likewise.
15571         * lib/ffs.c: Likewise.
15572         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15573         * modules/strings (Makefile.am): Substitute witness.
15574         (Depends-on): Add c++defs.
15575         * lib/strings.in.h (ffs): Declare.
15576         * modules/ffs-tests: New test file.
15577         * tests/test-ffs.c: Test new module.
15578         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15579         * doc/posix-functions/ffs.texi (ffs): Likewise.
15580
15581         regex: avoid compiler warning
15582         * lib/regex.c (includes): Include <strings.h>, for use of
15583         strcasecmp in regcomp.c.
15584         Reported by Joachim Schmitz.
15585
15586 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15587
15588         stdint: respect system's intmax_t if INTMAX_MAX
15589         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15590         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15591         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15592         long but int64_t is long long, and where we will clash with the
15593         system intmax_t if we override it.  See
15594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15595         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15596         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15597         similarly for UINTMAX_C.
15598
15599 2011-07-08  Bruno Haible  <bruno@clisp.org>
15600
15601         pthread_sigmask tests: Avoid a compiler warning.
15602         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15603         non-zero.
15604
15605         sigprocmask tests: A better way to avoid a compiler warning.
15606         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15607         (main): Complain if system() returns non-zero.
15608         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15609
15610 2011-07-08  Bruno Haible  <bruno@clisp.org>
15611
15612         pthread_sigmask: Work around IRIX bug.
15613         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15614         bug.
15615         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15616         there may be unblocked pending signals.
15617         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15618
15619 2011-07-08  Bruno Haible  <bruno@clisp.org>
15620
15621         pthread_sigmask: Work around Cygwin bug.
15622         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15623         bug.
15624         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15625         the system's pthread_sigmask function.
15626         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15627
15628 2011-07-08  Bruno Haible  <bruno@clisp.org>
15629
15630         pthread_sigmask: Work around bug in single-threaded implementation.
15631         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15632         FreeBSD, HP-UX, Solaris bug.
15633         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15634         * lib/pthread_sigmask.c: Include <stddef.h>.
15635         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15636         the system's pthread_sigmask function.
15637         * modules/pthread_sigmask (configure.ac): Invoke
15638         gl_PREREQ_PTHREAD_SIGMASK.
15639         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15640         HP-UX, Solaris.
15641
15642 2011-07-08  Eric Blake  <eblake@redhat.com>
15643
15644         test-sigprocmask: avoid compiler warning
15645         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15646         * tests/test-sigprocmask.c (main): Use it to silence warning.
15647         Reported by Jim Meyering.
15648
15649         test-snprintf: avoid compiler warning
15650         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15651         * tests/test-vsnprintf.c (main): Likewise.
15652         Reported by Jim Meyering.
15653
15654 2011-07-08  Bruno Haible  <bruno@clisp.org>
15655
15656         Tests for module 'pthread_sigmask'.
15657         * modules/pthread_sigmask-tests: New file.
15658         * tests/test-pthread_sigmask1.c: New file, based on
15659         tests/test-sigprocmask.c.
15660         * tests/test-pthread_sigmask2.c: New file.
15661
15662 2011-07-08  Jim Meyering  <meyering@redhat.com>
15663
15664         test-getopt.h: avoid warning about an unused variable
15665         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15666
15667 2011-07-07  Jim Meyering  <meyering@redhat.com>
15668
15669         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15670         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15671         now that it no longer contains leading TABs.
15672         Remove unused "url=FIXME" statement.
15673
15674 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15677         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15678         When gl_THREADLIB is not in use, assume that the POSIX sematics
15679         are desired.  This is better for Emacs, which uses POSIX semantics
15680         on GNUish and/or POSIXish platforms, and does not use threads at
15681         all otherwise.
15682
15683         pthread_sigmask: fix typo when testing for libraries
15684         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15685         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15686
15687 2011-07-08  Eric Blake  <eblake@redhat.com>
15688
15689         fts: introduce FTS_NOATIME
15690         * lib/fts_.h (FTS_NOATIME): New bit flag.
15691         (FTS_OPTIONMASK): Adjust.
15692         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15693         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15694
15695 2011-07-08  Bruno Haible  <bruno@clisp.org>
15696
15697         Tests for module 'thread'.
15698         * modules/thread-tests: New file.
15699         * tests/test-thread_self.c: New file.
15700         * tests/test-thread_create.cc: New file.
15701
15702 2011-07-08  Bruno Haible  <bruno@clisp.org>
15703
15704         thread: Avoid gcc warnings when using gl_thread_self().
15705         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15706         'void *'.
15707         (gl_thread_self_pointer): Update.
15708
15709 2011-07-07  Bruno Haible  <bruno@clisp.org>
15710
15711         signal-c++-tests: Check declaration of pthread_sigmask.
15712         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15713         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15714         $(LIB_PTHREAD_SIGMASK).
15715
15716 2011-07-07  Bruno Haible  <bruno@clisp.org>
15717
15718         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15719         * lib/signal.in.h (pthread_sigmask): Override if
15720         REPLACE_PTHREAD_SIGMASK is 1.
15721         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15722         REPLACE_PTHREAD_SIGMASK.
15723         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15724         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15725         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15726         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15727         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15728
15729 2011-07-07  Bruno Haible  <bruno@clisp.org>
15730
15731         pthread_sigmask: Ensure declaration in <signal.h>.
15732         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15733         include <pthread.h>.
15734         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15735         problem.
15736
15737 2011-07-07  Bruno Haible  <bruno@clisp.org>
15738
15739         pthread_sigmask: Document the module.
15740         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15741
15742 2011-07-07  Bruno Haible  <bruno@clisp.org>
15743
15744         pthread_sigmask: Follow gnulib conventions.
15745         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15746         gl_PTHREAD_SIGMASK.
15747         * modules/pthread_sigmask (configure.ac): Update.
15748
15749 2011-07-07  Bruno Haible  <bruno@clisp.org>
15750
15751         pthread_sigmask: Make declaration C++ safe.
15752         * lib/signal.in.h: In two special conditions, just do an #include_next.
15753         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15754         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15755         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15756         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15757         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15758         not REPLACE_PTHREAD_MASK.
15759         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15760         not REPLACE_PTHREAD_MASK.
15761         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15762
15763 2011-07-07  Bruno Haible  <bruno@clisp.org>
15764
15765         pthread_sigmask: Fix return value.
15766         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15767         * lib/pthread_sigmask.c: New file.
15768         * modules/pthread_sigmask (Files): Add it.
15769         (configure.ac): Invoke AC_LIBOBJ.
15770
15771 2011-07-07  Eric Blake  <eblake@redhat.com>
15772
15773         getopt: more portable argv creation
15774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15775         const, use char arrays rather than strings.
15776         Suggested by Paul Eggert.
15777
15778 2011-07-07  Bruno Haible  <bruno@clisp.org>
15779
15780         Tests for module 'sigprocmask'.
15781         * modules/sigprocmask-tests: New file.
15782         * tests/test-sigprocmask.c: New file.
15783
15784 2011-07-07  Bruno Haible  <bruno@clisp.org>
15785
15786         float tests: Tweak.
15787         * tests/test-float.c (main): Tweak skip message.
15788
15789 2011-07-07  Eric Blake  <eblake@redhat.com>
15790
15791         getopt: avoid compiler warning during configure
15792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15793         assigning string literals to non-const pointer.
15794
15795         getopt-gnu: avoid crash in glibc getopt
15796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15797         * tests/test-getopt.h (test_getopt): Enhance test.
15798         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15799         * doc/posix-functions/getopt.texi (getopt): Document it.
15800         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15801         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15802         Likewise.
15803
15804 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15805
15806         getopt: handle W; without long options in getopt [BZ #12922]
15807         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15808         but no long options are defined, just return 'W'.
15809
15810 2011-07-07  Bruno Haible  <bruno@clisp.org>
15811
15812         Avoid literal tabs.
15813         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15814         variable containing a tab instead of a literal tab.
15815         Reported by Jim Meyering.
15816
15817 2011-07-07  Bruno Haible  <bruno@clisp.org>
15818
15819         Comments.
15820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15821
15822 2011-07-06  Bruno Haible  <bruno@clisp.org>
15823
15824         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15825         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15826         <winsock2.h>.
15827         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15828         lib/sys_socket.in.h.
15829         (close, gethostname): Hide declarations from <winsock2.h>.
15830         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15831         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15832         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15833         (select): Don't override if gnulib's <sys/select.h> was already
15834         included.
15835         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15836         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15837         setsockopt, shutdown, select): Tweak indentation.
15838
15839 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15840
15841         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15842         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15843         in an application that does not use the sys_select module.
15844
15845 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15846
15847         poll: do not return 0 on timeout=-1
15848         * lib/poll.c: Loop with yield if no events occurred.
15849
15850 2011-07-06  Eric Blake  <eblake@redhat.com>
15851
15852         pthread_sigmask: always replace when not using pthread
15853         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15854         replacement when using some threading other than pthread.  Fix
15855         logic bug.
15856
15857 2011-07-06  Bruno Haible  <bruno@clisp.org>
15858
15859         Comments.
15860         * m4/printf.m4: Update comments about mingw.
15861
15862 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15863
15864         sys_select: define sigset_t more portably
15865         * lib/sys_select.in.h: Always include <sys/types.h>, since
15866         we now need sigset_t and mingw defines it there.
15867         Include <signal.h> before split inclusion guard, to avoid
15868         mishaps on Solaris, whose <signal.h> eventually includes us.
15869         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15870         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15871         which come from ...
15872         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15873         gl_CHECK_TYPE_SIGSET_T.
15874         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15875         does the real work.
15876         * modules/sys_select (Depends-on): Add 'signal'.
15877
15878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15879         Suggested by Bruno Haible.
15880
15881         pselect: Use pthread_sigmask, not sigprocmask.
15882         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15883         multithreaded apps better than sigprocmask does.
15884         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15885         sigprocmask directly.
15886
15887 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15888
15889         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15890         Don't #undef,  since we don't need any underlying pselect.
15891         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15892         (Depends-on): Add select.
15893         (Link): Add $(LIBSOCKET).
15894         These changes suggested by Bruno Haible.
15895
15896         pselect: document better
15897         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15898         * doc/posix-functions/pselect.texi (pselect): Document new module.
15899
15900         pthread_sigmask: new module
15901         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15902         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15903         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15904         This is done only as a macro; I don't know how well that'll
15905         work for C++.  Move <sys/types.h> include before the include_next,
15906         to avoid mishap on Solaris.
15907         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15908         * modules/signal (Makefile.am): Substitute the check's results.
15909         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15910
15911         test-pselect: new module
15912         * modules/pselect-tests, tests/test-pselect.c: New files.
15913         * tests/test-select.c, tests/test-sys_select-c++.cc:
15914         If TEST_PSELECT is defined, test pselect instead of testing select.
15915
15916         * tests/test-sys_select.c (sigset_t): Test for it, too.
15917         Suggested by Bruno Haible.
15918
15919 2011-07-05  Eric Blake  <eblake@redhat.com>
15920
15921         snprintf: guarantee %1$d, for libintl
15922         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15923         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15924         * doc/posix-functions/snprintf.texi (snprintf): Update.
15925         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15926         * tests/test-snprintf.c (main): Enhance test.
15927         * tests/test-vsnprintf.c (main): Likewise.
15928
15929 2011-07-05  Jim Meyering  <meyering@redhat.com>
15930
15931         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15932         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15933         per Bruno's request, to accommodate this idiom (no space after "#")
15934         even when the function is inside an #if block:
15935         char *
15936         gets (char *s)
15937         #undef gets
15938         {
15939           ...
15940         }
15941
15942 2011-07-04  Jim Meyering  <meyering@redhat.com>
15943
15944         maint: indent with spaces, not TABs, and add a rule to check this
15945         * tests/test-userspec.c: Indent with spaces, not TABs.
15946         * tests/test-argp.c: Likewise.
15947         * tests/test-c-stack2.sh: Likewise.
15948         * tests/test-parse-duration.sh: Likewise
15949         * m4/strtod.m4: Likewise.
15950         * m4/alloca.m4: Likewise.
15951         * m4/pselect.m4: Likewise.
15952         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15953
15954 2011-07-03  Jim Meyering  <meyering@redhat.com>
15955
15956         maint.mk: correct omissions in prohibit_argmatch_without_use check
15957         This rule would mistakenly report that argmatch.h is included without
15958         use even when both the argmatch and invalid_arg macro were used.
15959         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15960         of argmatch and invalid_arg.
15961
15962 2011-07-03  Bruno Haible  <bruno@clisp.org>
15963
15964         Comments about EINTR.
15965         * lib/safe-read.h: Explain the purpose of this module.
15966         * lib/safe-write.h: Likewise.
15967         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15968         module.
15969         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15970         module.
15971         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15972
15973 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         xnanosleep: Rewrite to use new dtotimespec module.
15976         It has the conversion code that used to be in xnanosleep.
15977         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15978         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15979         (TIME_T_MAX): Remove.
15980         (xnanosleep): Rewrite in terms of dtotimespec.
15981         * modules/xnanosleep (Depends-on): Add dtotimespec.
15982         Remove intprops, stdbool.
15983
15984         timespec-add, timespec-sub: new modules
15985         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15986         * lib/timespec-add.c, lib/timespec-sub.c:
15987         * modules/timespec-add, modules/timespec-sub: New files.
15988
15989         dtotimespec: new module
15990         * lib/timespec.h (dtotimespec): New decl.
15991         * lib/dtotimespec.c, modules/dtotimespec: New files.
15992
15993         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15994
15995         pselect: new module
15996         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15997         (pselect): New decls.
15998         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15999         since the standard pselect decl uses 'restrict'.
16000         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16001         HAVE_PSELECT, REPLACE_PSELECT.
16002         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16003         HAVE_PSELECT, REPLACE_PSELECT.
16004         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16005
16006         sys_select: don't depend on sys_socket
16007         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16009         This fix works on GNU and GNU-like platforms, but has not been tested
16010         on native Windows.
16011         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16012         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16013         gl_HEADER_SYS_SOCKET.
16014         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16015         gl_PREREQ_SYS_H_WINSOCK2.
16016
16017 2011-06-29  Eric Blake  <eblake@redhat.com>
16018
16019         pipe2: fix C89 compile problem
16020         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16021         Reported by Bruno Haible.
16022
16023         pipe, pipe2: don't corrupt fd on error
16024         * lib/pipe.c (pipe): Leave fd unchanged on error.
16025         * lib/pipe2.c (pipe2): Likewise.
16026         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16027         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16028
16029 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16030
16031         mmap-anon: do not use regular expressions inadvertently
16032         * m4/mmap-anon.m4: Remove trailing period from strings sought
16033         in the output.
16034
16035 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         nanosleep: fix integer overflow problem
16038         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16039         arithmetic wraps around on overflow.
16040
16041         nanosleep: simplify carrying
16042         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16043         first call to the underyling nanosleep, not for the last one.
16044         This doesn't fix any bugs, but it simplifies the computation of
16045         the remaining delay.  Found while auditing integer overflow issues.
16046
16047         dup2: remove test for existence of fcntl
16048         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16049         "#if HAVE_FCNTL", in the configure-time test program.
16050         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16051         and therefore speeds up "configure" a bit.  Found while
16052         adding the dup2 module to Emacs.
16053
16054 2011-06-24  Eric Blake  <eblake@redhat.com>
16055
16056         maint.mk: enhance useless header checks
16057         * top/maint.mk (_sc_header_without_use): Check both include
16058         styles.
16059         (sc_prohibit_assert_without_use)
16060         (sc_prohibit_close_stream_without_use)
16061         (sc_prohibit_getopt_without_use)
16062         (sc_prohibit_quotearg_without_use)
16063         (sc_prohibit_quote_without_use)
16064         (sc_prohibit_long_options_without_use)
16065         (sc_prohibit_inttostr_without_use)
16066         (sc_prohibit_ignore_value_without_use)
16067         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16068         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16069         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16070         (sc_prohibit_hash_pjw_without_use)
16071         (sc_prohibit_safe_read_without_use)
16072         (sc_prohibit_argmatch_without_use)
16073         (sc_prohibit_canonicalize_without_use)
16074         (sc_prohibit_root_dev_ino_without_use)
16075         (sc_prohibit_openat_without_use)
16076         (sc_prohibit_c_ctype_without_use)
16077         (sc_prohibit_signal_without_use)
16078         (sc_prohibit_stdio--_without_use)
16079         (sc_prohibit_stdio-safer_without_use)
16080         (sc_prohibit_strings_without_use)
16081         (sc_prohibit_intprops_without_use)
16082         (sc_prohibit_stddef_without_use)
16083         (sc_prohibit_xfreopen_without_use): Update clients.
16084
16085 2011-06-24  Jim Meyering  <meyering@redhat.com>
16086
16087         syntax-check: keep one maint.mk rule in sync with its header
16088         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16089         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16090         I prefer to avoid temporary files here, so use <(...), but that
16091         is not supported by /bin/sh, so...
16092         (SHELL): Define to /bin/bash.
16093
16094 2011-06-24  Eric Blake  <eblake@redhat.com>
16095
16096         maint.mk: update sc_prohibit_intprops_without_use
16097         * top/maint.mk (_intprops_names): Match recent changes.
16098
16099 2011-06-24  Bruno Haible  <bruno@clisp.org>
16100
16101         strerror-override: No-op tweak.
16102         * lib/strerror-override.h (strerror_override): Reorder conditions,
16103         for consistency with lib/strerror-override.c.
16104
16105 2011-06-23  Eric Blake  <eblake@redhat.com>
16106
16107         maint.mk: test further PATH_MAX issues
16108         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16109         (sc_prohibit_path_max_allocation): ...and also test alloca.
16110         Suggested by Jim Meyering.
16111
16112 2011-06-22  Eric Blake  <eblake@redhat.com>
16113
16114         maint.mk: add syntax-check to avoid char[PATH_MAX]
16115         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16116
16117         stat: be robust to PATH_MAX definition
16118         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16119         * modules/stat (Depends-on): Add verify.
16120
16121         link: work around IRIX bug
16122         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16123         * lib/link.c (rpl_link): Work around it.
16124         * tests/test-link.h (test_link): Enhance test.
16125         * doc/posix-functions/link.texi (link): Document the bug.
16126
16127         getopt: silence clang warning
16128         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16129         dereference.
16130         Reported by Gustavo Martin Domato.
16131
16132 2011-06-22  Jim Meyering  <meyering@redhat.com>
16133
16134         bootstrap: do not insert a blank line into each .gitignore file
16135         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16136
16137 2011-06-21  Eric Blake  <eblake@redhat.com>
16138
16139         perror: test for output mismatch
16140         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16141         perror on IRIX.
16142
16143         strerror_r: fix OpenBSD behavior on out-of-range
16144         * lib/strerror_r.c (strerror_r): Always use maximal string.
16145         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16146
16147         strerror_r: fix OpenBSD behavior on 0
16148         * lib/strerror-override.c (strerror_override): Also override 0
16149         when needed.
16150         * lib/strerror-override.h (strerror_override): Likewise.
16151         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16152         earlier.
16153         * lib/strerror_r.c (strerror_r): Likewise.
16154         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16155         behavior...
16156         (gl_FUNC_STRERROR_0): ...into new macro.
16157         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16158         is overridden.
16159         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16160         * modules/strerror-override (Files): Add strerror.m4.
16161         (configure.ac): Also provide override for 0 when needed.
16162         * doc/posix-functions/strerror.texi (strerror): Document this.
16163         * doc/posix-functions/perror.texi (perror): Likewise.
16164
16165         perror: adjust array size
16166         * modules/perror (Depends-on): Add strerror-override.
16167         * lib/perror.c (perror): Use it to avoid magic number.
16168
16169         strerror-override: reduce size
16170         * lib/strerror-override.c (strerror_override): Use fewer lines.
16171
16172 2011-06-20  Bruno Haible  <bruno@clisp.org>
16173
16174         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16175         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16176
16177 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16178
16179         alloca: port to compilers that can optimize like GCC 4.6.0
16180         * lib/alloca.c (find_stack_direction): New signature, taken from
16181         Autoconf git.  This works with GCC 4.6.0.  This code should never
16182         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16183         be used with other compilers that optimize as well as GCC 4.6.0 does.
16184         (alloca): Adjust to new signature.
16185         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16186         New macro, which patches Autoconf in a similar way.
16187
16188         c-stack: stop worrying about stack direction
16189         * lib/c-stack.c (find_stack_direction): Remove.
16190         (segv_handler): Don't worry about stack direction growth, as it's
16191         too much of a pain to configure this correctly, given how compilers
16192         are optimizing-away our stack-growth detection code.  Instead, assume
16193         that any access to just before or just after the stack is OK.
16194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16195         Don't require AC_FUNC_ALLOCA; no longer needed.
16196
16197 2011-06-20  Eric Blake  <eblake@redhat.com>
16198
16199         test-stat: don't allocate PATH_MAX bytes
16200         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16201         PATH_MAX-sized buffer.
16202         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16203         * modules/stat-tests (Depends-on): Likewise.
16204         * tests/test-fstatat.c (includes): Drop pathmax.h.
16205         * tests/test-stat.c (includes): Likewise.
16206         Reported by Bruno Haible.
16207
16208 2011-06-20  Bruno Haible  <bruno@clisp.org>
16209
16210         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16211         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16212         * lib/float.c: New file.
16213         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16214         REPLACE_FLOAT_LDBL.
16215         * modules/float (Files): Add lib/float.c.
16216         (configure.ac): Invoke AC_LIBOBJ.
16217         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16218
16219 2011-06-20  Bruno Haible  <bruno@clisp.org>
16220
16221         Tests for module 'float'.
16222         * modules/float-tests: New file.
16223         * tests/test-float.c: New file.
16224
16225 2011-06-19  Bruno Haible  <bruno@clisp.org>
16226
16227         isinf: Coding style.
16228         * lib/isinf.c: Use GNU coding style.
16229
16230 2011-06-19  Bruno Haible  <bruno@clisp.org>
16231
16232         linkat test: Avoid test failure on AIX 7.1.
16233         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16234         * tests/test-link.h (test_link): Likewise.
16235
16236 2011-06-19  Bruno Haible  <bruno@clisp.org>
16237
16238         pread test: Avoid test failure on OpenBSD 4.9.
16239         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16240
16241 2011-06-19  Bruno Haible  <bruno@clisp.org>
16242
16243         sprintf-posix: Fix test failure on AIX 7.1.
16244         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16245         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16246         on AIX.
16247         * doc/posix-functions/fprintf.texi: Likewise.
16248         * doc/posix-functions/printf.texi: Likewise.
16249         * doc/posix-functions/snprintf.texi: Likewise.
16250         * doc/posix-functions/sprintf.texi: Likewise.
16251         * doc/posix-functions/vdprintf.texi: Likewise.
16252         * doc/posix-functions/vfprintf.texi: Likewise.
16253         * doc/posix-functions/vprintf.texi: Likewise.
16254         * doc/posix-functions/vsnprintf.texi: Likewise.
16255         * doc/posix-functions/vsprintf.texi: Likewise.
16256
16257 2011-06-19  Bruno Haible  <bruno@clisp.org>
16258
16259         roundl-ieee: Fix test failure on AIX 7.1.
16260         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16261         * doc/posix-functions/roundl.texi: Mention problem with negative
16262         arguments.
16263
16264 2011-06-19  Bruno Haible  <bruno@clisp.org>
16265
16266         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16267         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16268         * doc/posix-functions/round.texi: Mention problem with negative
16269         arguments.
16270         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16271
16272 2011-06-19  Bruno Haible  <bruno@clisp.org>
16273
16274         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16275         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16276         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16277         * doc/posix-functions/roundf.texi: Mention problem with negative
16278         arguments.
16279         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16280
16281 2011-06-19  Bruno Haible  <bruno@clisp.org>
16282
16283         ceilf-ieee: Work around bug on MacOS X 10.5.
16284         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16285
16286         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16287         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16288         IEEE compliant, avoid compiler optimizations.
16289         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16290         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16291         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16292         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16293         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16294         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16295         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16297         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16298         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16299
16300 2011-06-19  Bruno Haible  <bruno@clisp.org>
16301
16302         ceilf-ieee: Work around bug on AIX 7.1.
16303         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16304         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16305
16306 2011-06-19  Bruno Haible  <bruno@clisp.org>
16307
16308         ceil-ieee: Work around bug on AIX 7.1.
16309         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16310         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16311
16312 2011-06-18  Bruno Haible  <bruno@clisp.org>
16313
16314         fsync test: Avoid test failure on MacOS X and AIX.
16315         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16316         EINVAL.
16317
16318 2011-06-18  Bruno Haible  <bruno@clisp.org>
16319
16320         openat, fdopendir tests: Fix link errors.
16321         * modules/openat-tests (Depends-on): Add progname.
16322         * modules/fdopendir-tests (Depends-on): Likewise.
16323         * tests/test-fchownat.c: Include progname.h.
16324         (main): Call set_program_name.
16325         * tests/test-fstatat.c: Include progname.h.
16326         (main): Call set_program_name.
16327         * tests/test-mkdirat.c: Include progname.h.
16328         (main): Call set_program_name.
16329         * tests/test-openat.c: Include progname.h.
16330         (main): Call set_program_name.
16331         * tests/test-unlinkat.c: Include progname.h.
16332         (main): Call set_program_name.
16333         * tests/test-fdopendir.c: Include progname.h.
16334         (main): Call set_program_name.
16335
16336 2011-06-18  Bruno Haible  <bruno@clisp.org>
16337
16338         Doc update.
16339         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16340         HP-UX.
16341         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16342
16343 2011-06-18  Bruno Haible  <bruno@clisp.org>
16344
16345         getcwd tests: Avoid compilation error on HP-UX 11.31.
16346         * modules/getcwd-tests (Depends-on): Add pathmax.
16347         * tests/test-getcwd.c: Include pathmax.h.
16348
16349 2011-06-18  Bruno Haible  <bruno@clisp.org>
16350
16351         isfinite, isinf: Fix link error on AIX 6 and 7.
16352         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16353         needed, also test the macro with a 'float' argument.
16354         * m4/isinf.m4 (gl_ISINF): Likewise.
16355
16356 2011-06-18  Bruno Haible  <bruno@clisp.org>
16357
16358         getloadavg: Don't clobber LIBS. Regression from previous commit.
16359         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16360         AC_CHECK_LIB from here...
16361         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16362         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16363         gl_func_getloadavg_done.
16364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16365
16366 2011-06-18  Bruno Haible  <bruno@clisp.org>
16367
16368         clean-temp: Improve documentation.
16369         * lib/clean-temp.h: Explain better how to use this module.
16370         Reported by John Darrington <john@darrington.wattle.id.au>.
16371
16372 2011-06-17  Bruno Haible  <bruno@clisp.org>
16373
16374         pread, pwrite: Avoid cc warning on AIX.
16375         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16376         (pwrite): Likewise.
16377
16378 2011-06-17  Bruno Haible  <bruno@clisp.org>
16379
16380         spawn-pipe tests: Fix link error.
16381         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16383
16384 2011-06-17  Bruno Haible  <bruno@clisp.org>
16385
16386         Tests: Remove unnecessary dependency.
16387         * modules/canonicalize-tests (Depends-on): Remove progname.
16388         * modules/chown-tests (Depends-on): Likewise.
16389         * modules/dirname-tests (Depends-on): Likewise.
16390         * modules/fdopendir-tests (Depends-on): Likewise.
16391         * modules/fdutimensat-tests (Depends-on): Likewise.
16392         * modules/hash-tests (Depends-on): Likewise.
16393         * modules/lchown-tests (Depends-on): Likewise.
16394         * modules/linkat-tests (Depends-on): Likewise.
16395         * modules/renameat-tests (Depends-on): Likewise.
16396         * modules/spawn-pipe-tests (Depends-on): Likewise.
16397         * modules/utimensat-tests (Depends-on): Likewise.
16398
16399 2011-06-17  Bruno Haible  <bruno@clisp.org>
16400
16401         spawn-pipe tests: Fix link error.
16402         * tests/test-spawn-pipe-child.c: Undefine fflush.
16403
16404 2011-06-17  Bruno Haible  <bruno@clisp.org>
16405
16406         Fix tests link errors.
16407         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16408         * modules/chown-tests (Makefile.am): Don't link test-chown with
16409         LIBINTL.
16410         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16411         LIBINTL.
16412         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16413         LIBINTL.
16414         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16415         LIBINTL.
16416
16417 2011-06-16  Bruno Haible  <bruno@clisp.org>
16418
16419         crypto/gc-sha1: Fix recent regression.
16420         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16421         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16422
16423         crypto/gc-md5: Fix recent regression.
16424         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16425
16426         crypto/gc-md4: Fix recent regression.
16427         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16428         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16429
16430         crypto/gc-arctwo: Fix recent regression.
16431         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16432         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16433
16434         crypto/gc-rijndael: Fix recent regression.
16435         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16436         (configure.ac): Invoke AC_LIBOBJ here.
16437         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16439
16440         crypto/gc-hmac-sha1: Fix recent regression.
16441         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16442         (configure.ac): Invoke AC_LIBOBJ here.
16443         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16445
16446         crypto/gc-hmac-md5: Fix recent regression.
16447         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16448         (configure.ac): Invoke AC_LIBOBJ here.
16449         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16451
16452         crypto/gc-des: Fix recent regression.
16453         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16454         (configure.ac): Invoke AC_LIBOBJ here.
16455         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16457
16458         crypto/gc-arcfour: Fix recent regression.
16459         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16460         (configure.ac): Invoke AC_LIBOBJ here.
16461         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16463
16464 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16465
16466         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16467         After the 2011-05-21 change, this macro requires
16468         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16469         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16470
16471 2011-06-16  Bruno Haible  <bruno@clisp.org>
16472
16473         fprintftime: Move AC_LIBOBJ invocations to module description.
16474         * m4/fprintftime.m4: Remove file.
16475         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16476         (configure.ac): Remove gl_FPRINTFTIME call.
16477         (Makefile.am): Augment lib_SOURCES.
16478         Reported by Jim Meyering.
16479
16480 2011-06-16  Bruno Haible  <bruno@clisp.org>
16481
16482         tmpfile-safer: Finish 2011-05-23 commit.
16483         * m4/stdio-safer.m4: Really remove file.
16484         Reported by Jim Meyering.
16485
16486 2011-06-16  Bruno Haible  <bruno@clisp.org>
16487
16488         syntax-check: Fix typo.
16489         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16490         printf-posix.m4.
16491         Reported by Jim Meyering.
16492
16493 2011-06-13  Jim Meyering  <meyering@redhat.com>
16494
16495         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16496         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16497
16498 2011-05-23  Bruno Haible  <bruno@clisp.org>
16499
16500         yesno: Move AC_LIBOBJ invocations to module description.
16501         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16502         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16503
16504 2011-05-23  Bruno Haible  <bruno@clisp.org>
16505
16506         xstrtol: Move AC_LIBOBJ invocations to module description.
16507         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16508         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16509
16510 2011-05-23  Bruno Haible  <bruno@clisp.org>
16511
16512         xstrtold: Move AC_LIBOBJ invocations to module description.
16513         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16514         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16515
16516 2011-05-23  Bruno Haible  <bruno@clisp.org>
16517
16518         xstrtod: Move AC_LIBOBJ invocations to module description.
16519         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16520         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16521
16522 2011-05-23  Bruno Haible  <bruno@clisp.org>
16523
16524         xnanosleep: Move AC_LIBOBJ invocations to module description.
16525         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16526         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16527
16528 2011-05-23  Bruno Haible  <bruno@clisp.org>
16529
16530         xgetcwd: Move AC_LIBOBJ invocations to module description.
16531         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16532         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16533
16534 2011-05-23  Bruno Haible  <bruno@clisp.org>
16535
16536         xalloc: Move AC_LIBOBJ invocations to module description.
16537         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16538         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16539
16540 2011-05-23  Bruno Haible  <bruno@clisp.org>
16541
16542         write-any-file: Move AC_LIBOBJ invocations to module description.
16543         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16544         invocation.
16545         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16546
16547 2011-05-23  Bruno Haible  <bruno@clisp.org>
16548
16549         utimens: Move AC_LIBOBJ invocations to module description.
16550         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16551         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16552
16553 2011-05-23  Bruno Haible  <bruno@clisp.org>
16554
16555         utimecmp: Move AC_LIBOBJ invocations to module description.
16556         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16557         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16558
16559 2011-05-23  Bruno Haible  <bruno@clisp.org>
16560
16561         userspec: Move AC_LIBOBJ invocations to module description.
16562         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16563         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16564
16565 2011-05-23  Bruno Haible  <bruno@clisp.org>
16566
16567         unlinkdir: Move AC_LIBOBJ invocations to module description.
16568         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16569         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16570
16571 2011-05-23  Bruno Haible  <bruno@clisp.org>
16572
16573         unistd-safer: Move AC_LIBOBJ invocations to module description.
16574         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16575         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16576
16577 2011-05-23  Bruno Haible  <bruno@clisp.org>
16578
16579         tempname: Move AC_LIBOBJ invocations to module description.
16580         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16581         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16582
16583 2011-05-23  Bruno Haible  <bruno@clisp.org>
16584
16585         strftime: Move AC_LIBOBJ invocations to module description.
16586         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16587         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16588
16589 2011-05-23  Bruno Haible  <bruno@clisp.org>
16590
16591         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16592         * m4/stdlib-safer.m4: Remove file.
16593         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16594         (configure.ac): Remove gl_STDLIB_SAFER call.
16595         (Makefile.am): Augment lib_SOURCES.
16596
16597 2011-05-23  Bruno Haible  <bruno@clisp.org>
16598
16599         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16600         * m4/stdio-safer.m4: Remove file.
16601         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16602         (configure.ac): Remove gl_TMPFILE_SAFER call.
16603         (Makefile.am): Augment lib_SOURCES.
16604
16605 2011-05-23  Bruno Haible  <bruno@clisp.org>
16606
16607         popen-safer: Move AC_LIBOBJ invocations to module description.
16608         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16609         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16610         (configure.ac): Remove gl_POPEN_SAFER call.
16611         (Makefile.am): Augment lib_SOURCES.
16612
16613 2011-05-23  Bruno Haible  <bruno@clisp.org>
16614
16615         freopen-safer: Move AC_LIBOBJ invocations to module description.
16616         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16617         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16618         (configure.ac): Remove gl_FREOPEN_SAFER call.
16619         (Makefile.am): Augment lib_SOURCES.
16620
16621 2011-05-23  Bruno Haible  <bruno@clisp.org>
16622
16623         fopen-safer: Move AC_LIBOBJ invocations to module description.
16624         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16625         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16626         (configure.ac): Remove gl_FOPEN_SAFER call.
16627         (Makefile.am): Augment lib_SOURCES.
16628
16629 2011-05-23  Bruno Haible  <bruno@clisp.org>
16630
16631         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16632         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16633         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16634
16635 2011-05-23  Bruno Haible  <bruno@clisp.org>
16636
16637         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16638         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16639         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16640
16641 2011-05-23  Bruno Haible  <bruno@clisp.org>
16642
16643         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16644         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16645         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16646
16647 2011-05-23  Bruno Haible  <bruno@clisp.org>
16648
16649         settime: Move AC_LIBOBJ invocations to module description.
16650         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16651         * modules/settime (Makefile.am): Augment lib_SOURCES.
16652
16653 2011-05-23  Bruno Haible  <bruno@clisp.org>
16654
16655         savedir: Move AC_LIBOBJ invocations to module description.
16656         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16657         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16658
16659 2011-05-23  Bruno Haible  <bruno@clisp.org>
16660
16661         save-cwd: Move AC_LIBOBJ invocations to module description.
16662         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16663         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16664
16665 2011-05-23  Bruno Haible  <bruno@clisp.org>
16666
16667         same: Move AC_LIBOBJ invocations to module description.
16668         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16669         * modules/same (Makefile.am): Augment lib_SOURCES.
16670
16671 2011-05-23  Bruno Haible  <bruno@clisp.org>
16672
16673         safe-write: Move AC_LIBOBJ invocations to module description.
16674         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16675         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16676         instead of gl_SAFE_WRITE.
16677         (Makefile.am): Augment lib_SOURCES.
16678
16679 2011-05-23  Bruno Haible  <bruno@clisp.org>
16680
16681         safe-read: Move AC_LIBOBJ invocations to module description.
16682         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16683         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16684         of gl_SAFE_READ.
16685         (Makefile.am): Augment lib_SOURCES.
16686
16687 2011-05-23  Bruno Haible  <bruno@clisp.org>
16688
16689         safe-alloc: Move AC_LIBOBJ invocations to module description.
16690         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16691         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16692
16693 2011-05-23  Bruno Haible  <bruno@clisp.org>
16694
16695         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16696         * m4/rijndael.m4: Remove file.
16697         * modules/crypto/rijndael (Files): Remove it.
16698         (configure.ac): Remove gl_RIJNDAEL call.
16699         (Makefile.am): Augment lib_SOURCES.
16700
16701 2011-05-23  Bruno Haible  <bruno@clisp.org>
16702
16703         readtokens: Move AC_LIBOBJ invocations to module description.
16704         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16705         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16706
16707 2011-05-23  Bruno Haible  <bruno@clisp.org>
16708
16709         read-file: Move AC_LIBOBJ invocations to module description.
16710         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16711         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16712         of gl_FUNC_READ_FILE.
16713         (Makefile.am): Augment lib_SOURCES.
16714
16715 2011-05-23  Bruno Haible  <bruno@clisp.org>
16716
16717         quotearg: Move AC_LIBOBJ invocations to module description.
16718         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16719         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16720
16721 2011-05-23  Bruno Haible  <bruno@clisp.org>
16722
16723         quote: Move AC_LIBOBJ invocations to module description.
16724         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16725         * modules/quote (Makefile.am): Augment lib_SOURCES.
16726
16727 2011-05-23  Bruno Haible  <bruno@clisp.org>
16728
16729         posixver: Move AC_LIBOBJ invocations to module description.
16730         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16731         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16732
16733 2011-05-23  Bruno Haible  <bruno@clisp.org>
16734
16735         posixtm: Move AC_LIBOBJ invocations to module description.
16736         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16737         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16738
16739 2011-05-23  Bruno Haible  <bruno@clisp.org>
16740
16741         physmem: Move AC_LIBOBJ invocations to module description.
16742         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16743         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16744
16745 2011-05-23  Bruno Haible  <bruno@clisp.org>
16746
16747         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16748         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16749         invocation.
16750         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16751
16752 2011-05-23  Bruno Haible  <bruno@clisp.org>
16753
16754         mpsort: Move AC_LIBOBJ invocations to module description.
16755         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16756         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16757
16758 2011-05-23  Bruno Haible  <bruno@clisp.org>
16759
16760         modechange: Move AC_LIBOBJ invocations to module description.
16761         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16762         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16763
16764 2011-05-23  Bruno Haible  <bruno@clisp.org>
16765
16766         mkdir-p: Move AC_LIBOBJ invocations to module description.
16767         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16768         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16769
16770 2011-05-23  Bruno Haible  <bruno@clisp.org>
16771
16772         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16773         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16774         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16775
16776 2011-05-23  Bruno Haible  <bruno@clisp.org>
16777
16778         mgetgroups: Move AC_LIBOBJ invocations to module description.
16779         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16780         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16781
16782 2011-05-23  Bruno Haible  <bruno@clisp.org>
16783
16784         memxor: Move AC_LIBOBJ invocations to module description.
16785         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16786         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16787
16788 2011-05-23  Bruno Haible  <bruno@clisp.org>
16789
16790         memcoll: Move AC_LIBOBJ invocations to module description.
16791         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16792         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16793
16794 2011-05-23  Bruno Haible  <bruno@clisp.org>
16795
16796         memcasecmp: Move AC_LIBOBJ invocations to module description.
16797         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16798         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16799
16800 2011-05-23  Bruno Haible  <bruno@clisp.org>
16801
16802         crypto/md5: Move AC_LIBOBJ invocations to module description.
16803         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16804         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16805
16806 2011-05-23  Bruno Haible  <bruno@clisp.org>
16807
16808         crypto/md4: Move AC_LIBOBJ invocations to module description.
16809         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16810         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16811
16812 2011-05-23  Bruno Haible  <bruno@clisp.org>
16813
16814         crypto/md2: Move AC_LIBOBJ invocations to module description.
16815         * m4/md2.m4: Remove file.
16816         * modules/crypto/md2 (Files): Remove it.
16817         (configure.ac): Remove gl_MD2 call.
16818         (Makefile.am): Augment lib_SOURCES.
16819
16820 2011-05-23  Bruno Haible  <bruno@clisp.org>
16821
16822         long-options: Move AC_LIBOBJ invocations to module description.
16823         * m4/long-options.m4: Remove file.
16824         * modules/long-options (Files): Remove it.
16825         (configure.ac): Remove gl_LONG_OPTIONS call.
16826         (Makefile.am): Augment lib_SOURCES.
16827
16828 2011-05-23  Bruno Haible  <bruno@clisp.org>
16829
16830         i-ring: Move AC_LIBOBJ invocations to module description.
16831         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16832         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16833
16834 2011-05-23  Bruno Haible  <bruno@clisp.org>
16835
16836         idcache: Move AC_LIBOBJ invocations to module description.
16837         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16838         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16839
16840 2011-05-23  Bruno Haible  <bruno@clisp.org>
16841
16842         human: Move AC_LIBOBJ invocations to module description.
16843         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16844         * modules/human (Makefile.am): Augment lib_SOURCES.
16845
16846 2011-05-23  Bruno Haible  <bruno@clisp.org>
16847
16848         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16849         * m4/hmac-sha1.m4: Remove file.
16850         * modules/crypto/hmac-sha1 (Files): Remove it.
16851         (configure.ac): Remove gl_HMAC_SHA1 call.
16852         (Makefile.am): Augment lib_SOURCES.
16853
16854 2011-05-23  Bruno Haible  <bruno@clisp.org>
16855
16856         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16857         * m4/hmac-md5.m4: Remove file.
16858         * modules/crypto/hmac-md5 (Files): Remove it.
16859         (configure.ac): Remove gl_HMAC_MD5 call.
16860         (Makefile.am): Augment lib_SOURCES.
16861
16862 2011-05-23  Bruno Haible  <bruno@clisp.org>
16863
16864         hash: Move AC_LIBOBJ invocations to module description.
16865         * m4/hash.m4: Remove file.
16866         * modules/hash (Files): Remove it.
16867         (configure.ac): Remove gl_HASH call.
16868         (Makefile.am): Augment lib_SOURCES.
16869
16870 2011-05-23  Bruno Haible  <bruno@clisp.org>
16871
16872         hard-locale: Move AC_LIBOBJ invocations to module description.
16873         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16874         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16875
16876 2011-05-23  Bruno Haible  <bruno@clisp.org>
16877
16878         getugroups: Move AC_LIBOBJ invocations to module description.
16879         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16880         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16881
16882 2011-05-23  Bruno Haible  <bruno@clisp.org>
16883
16884         gettime: Move AC_LIBOBJ invocations to module description.
16885         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16886         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16887
16888 2011-05-23  Bruno Haible  <bruno@clisp.org>
16889
16890         getndelim2: Move AC_LIBOBJ invocations to module description.
16891         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16892         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16893
16894 2011-05-23  Bruno Haible  <bruno@clisp.org>
16895
16896         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16897         * m4/gc-pbkdf2-sha1.m4: Remove file.
16898         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16899         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16900         (Makefile.am): Augment lib_SOURCES.
16901
16902 2011-05-23  Bruno Haible  <bruno@clisp.org>
16903
16904         fts: Move AC_LIBOBJ invocations to module description.
16905         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16906         * modules/fts (configure.ac): ... to here.
16907
16908 2011-05-23  Bruno Haible  <bruno@clisp.org>
16909
16910         file-type: Move AC_LIBOBJ invocations to module description.
16911         * m4/file-type.m4: Remove file.
16912         * modules/file-type (Files): Remove it.
16913         (configure.ac): Remove gl_FILE_TYPE call.
16914         (Makefile.am): Augment lib_SOURCES.
16915
16916 2011-05-23  Bruno Haible  <bruno@clisp.org>
16917
16918         filenamecat*: Respect rules for use of AC_LIBOBJ.
16919         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16920         Remove AC_LIBOBJ invocation.
16921         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16922         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16923
16924 2011-05-23  Bruno Haible  <bruno@clisp.org>
16925
16926         filemode: Move AC_LIBOBJ invocations to module description.
16927         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16928         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16929
16930 2011-05-23  Bruno Haible  <bruno@clisp.org>
16931
16932         openat-safer: Move AC_LIBOBJ invocations to module description.
16933         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16934         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16935
16936 2011-05-23  Bruno Haible  <bruno@clisp.org>
16937
16938         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16939         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16940         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16941
16942 2011-05-23  Bruno Haible  <bruno@clisp.org>
16943
16944         exclude: Move AC_LIBOBJ invocations to module description.
16945         * m4/exclude.m4: Remove file.
16946         * modules/exclude (Files): Remove it.
16947         (configure.ac): Remove gl_EXCLUDE call.
16948         (Makefile.am): Augment lib_SOURCES.
16949
16950 2011-05-23  Bruno Haible  <bruno@clisp.org>
16951
16952         dirname*: Respect rules for use of AC_LIBOBJ.
16953         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16954         invocations.
16955         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16956         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16957
16958 2011-05-23  Bruno Haible  <bruno@clisp.org>
16959
16960         dirent-safer: Move AC_LIBOBJ invocations to module description.
16961         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16962         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16963
16964 2011-05-23  Bruno Haible  <bruno@clisp.org>
16965
16966         crypto/des: Move AC_LIBOBJ invocations to module description.
16967         * m4/des.m4: Remove file.
16968         * modules/crypto/des (Files): Remove it.
16969         (configure.ac): Remove gl_DES call.
16970         (Makefile.am): Augment lib_SOURCES.
16971
16972 2011-05-23  Bruno Haible  <bruno@clisp.org>
16973
16974         cycle-check: Move AC_LIBOBJ invocations to module description.
16975         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16976         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16977
16978 2011-05-23  Bruno Haible  <bruno@clisp.org>
16979
16980         c-strtold: Move AC_LIBOBJ invocations to module description.
16981         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16982         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16983
16984 2011-05-23  Bruno Haible  <bruno@clisp.org>
16985
16986         c-strtod: Move AC_LIBOBJ invocations to module description.
16987         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16988         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16989
16990 2011-05-23  Bruno Haible  <bruno@clisp.org>
16991
16992         crc: Move AC_LIBOBJ invocations to module description.
16993         * m4/crc.m4: Remove file.
16994         * modules/crc (Files): Remove it.
16995         (configure.ac): Remove gl_CRC call.
16996         (Makefile.am): Augment lib_SOURCES.
16997
16998 2011-05-23  Bruno Haible  <bruno@clisp.org>
16999
17000         close-stream: Move AC_LIBOBJ invocations to module description.
17001         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17002         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17003
17004 2011-05-23  Bruno Haible  <bruno@clisp.org>
17005
17006         closeout: Move AC_LIBOBJ invocations to module description.
17007         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17008         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17009
17010 2011-05-23  Bruno Haible  <bruno@clisp.org>
17011
17012         closein: Move AC_LIBOBJ invocations to module description.
17013         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17014         * modules/closein (Makefile.am): Augment lib_SOURCES.
17015
17016 2011-05-23  Bruno Haible  <bruno@clisp.org>
17017
17018         cloexec: Move AC_LIBOBJ invocations to module description.
17019         * m4/cloexec.m4: Remove file.
17020         * modules/cloexec (Files): Remove it.
17021         (configure.ac): Remove gl_CLOEXEC call.
17022         (Makefile.am): Augment lib_SOURCES.
17023
17024 2011-05-23  Bruno Haible  <bruno@clisp.org>
17025
17026         check-version: Move AC_LIBOBJ invocations to module description.
17027         * m4/check-version.m4: Remove file.
17028         * modules/check-version (Files): Remove it.
17029         (configure.ac): Remove gl_CHECK_VERSION call.
17030         (Makefile.am): Augment lib_SOURCES.
17031
17032 2011-05-23  Bruno Haible  <bruno@clisp.org>
17033
17034         chdir-safer: Move AC_LIBOBJ invocations to module description.
17035         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17036         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17037
17038 2011-05-23  Bruno Haible  <bruno@clisp.org>
17039
17040         canonicalize: Move AC_LIBOBJ invocations to module description.
17041         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17042         AC_LIBOBJ invocation.
17043         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17044
17045 2011-05-23  Bruno Haible  <bruno@clisp.org>
17046
17047         canon-host: Move AC_LIBOBJ invocations to module description.
17048         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17049         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17050         instead of gl_CANON_HOST.
17051         (Makefile.am): Augment lib_SOURCES.
17052
17053 2011-05-23  Bruno Haible  <bruno@clisp.org>
17054
17055         backupfile: Move AC_LIBOBJ invocations to module description.
17056         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17057         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17058
17059 2011-05-23  Bruno Haible  <bruno@clisp.org>
17060
17061         argmatch: Move AC_LIBOBJ invocations to module description.
17062         * m4/argmatch.m4: Remove file.
17063         * modules/argmatch (Files): Remove it.
17064         (configure.ac): Remove gl_ARGMATCH call.
17065         (Makefile.am): Augment lib_SOURCES.
17066
17067 2011-05-23  Bruno Haible  <bruno@clisp.org>
17068
17069         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17070         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17071         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17072
17073 2011-05-23  Bruno Haible  <bruno@clisp.org>
17074
17075         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17076         * m4/arcfour.m4: Remove file.
17077         * modules/crypto/arcfour (Files): Remove it.
17078         (configure.ac): Remove gl_ARCFOUR call.
17079         (Makefile.am): Augment lib_SOURCES.
17080
17081 2011-05-22  Bruno Haible  <bruno@clisp.org>
17082
17083         write: Move AC_LIBOBJ invocations to module description.
17084         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17085         * modules/write (configure.ac): ... to here.
17086
17087 2011-05-22  Bruno Haible  <bruno@clisp.org>
17088
17089         wmemset: Move AC_LIBOBJ invocations to module description.
17090         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17091         here...
17092         * modules/wmemset (configure.ac): ... to here.
17093
17094 2011-05-22  Bruno Haible  <bruno@clisp.org>
17095
17096         wmemmove: Move AC_LIBOBJ invocations to module description.
17097         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17098         here...
17099         * modules/wmemmove (configure.ac): ... to here.
17100
17101 2011-05-22  Bruno Haible  <bruno@clisp.org>
17102
17103         wmemcpy: Move AC_LIBOBJ invocations to module description.
17104         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17105         here...
17106         * modules/wmemcpy (configure.ac): ... to here.
17107
17108 2011-05-22  Bruno Haible  <bruno@clisp.org>
17109
17110         wmemcmp: Move AC_LIBOBJ invocations to module description.
17111         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17112         here...
17113         * modules/wmemcmp (configure.ac): ... to here.
17114
17115 2011-05-22  Bruno Haible  <bruno@clisp.org>
17116
17117         wmemchr: Move AC_LIBOBJ invocations to module description.
17118         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17119         here...
17120         * modules/wmemchr (configure.ac): ... to here.
17121
17122 2011-05-22  Bruno Haible  <bruno@clisp.org>
17123
17124         wcswidth: Move AC_LIBOBJ invocations to module description.
17125         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17126         here...
17127         * modules/wcswidth (configure.ac): ... to here.
17128
17129 2011-05-22  Bruno Haible  <bruno@clisp.org>
17130
17131         wcwidth: Respect rules for use of AC_LIBOBJ.
17132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17133         invocation from here...
17134         * modules/wcwidth (configure.ac): ... to here.
17135         (Depends-on): Update conditions.
17136
17137 2011-05-22  Bruno Haible  <bruno@clisp.org>
17138
17139         wctype: Move AC_LIBOBJ invocations to module description.
17140         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17141         invocation from here...
17142         * modules/wctype (configure.ac): ... to here.
17143         (Depends-on): Update conditions.
17144
17145 2011-05-22  Bruno Haible  <bruno@clisp.org>
17146
17147         wctrans: Move AC_LIBOBJ invocations to module description.
17148         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17149         invocation from here...
17150         * modules/wctrans (configure.ac): ... to here.
17151
17152 2011-05-22  Bruno Haible  <bruno@clisp.org>
17153
17154         wctomb: Move AC_LIBOBJ invocations to module description.
17155         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17156         invocations from here...
17157         * modules/wctomb (configure.ac): ... to here.
17158
17159 2011-05-22  Bruno Haible  <bruno@clisp.org>
17160
17161         wctob: Move AC_LIBOBJ invocations to module description.
17162         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17163         gl_PREREQ_WCTOB invocations from here...
17164         * modules/wctob (configure.ac): ... to here.
17165         (Depends-on): Update conditions.
17166
17167 2011-05-22  Bruno Haible  <bruno@clisp.org>
17168
17169         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17170         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17171         here...
17172         * modules/wcsxfrm (configure.ac): ... to here.
17173
17174 2011-05-22  Bruno Haible  <bruno@clisp.org>
17175
17176         wcstok: Move AC_LIBOBJ invocations to module description.
17177         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17178         * modules/wcstok (configure.ac): ... to here.
17179
17180 2011-05-22  Bruno Haible  <bruno@clisp.org>
17181
17182         wcsstr: Move AC_LIBOBJ invocations to module description.
17183         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17184         * modules/wcsstr (configure.ac): ... to here.
17185
17186 2011-05-22  Bruno Haible  <bruno@clisp.org>
17187
17188         wcsspn: Move AC_LIBOBJ invocations to module description.
17189         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17190         * modules/wcsspn (configure.ac): ... to here.
17191
17192 2011-05-22  Bruno Haible  <bruno@clisp.org>
17193
17194         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17195         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17196         gl_PREREQ_WCSRTOMBS invocations from here...
17197         * modules/wcsrtombs (configure.ac): ... to here.
17198
17199 2011-05-22  Bruno Haible  <bruno@clisp.org>
17200
17201         wcsrchr: Move AC_LIBOBJ invocations to module description.
17202         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17203         here...
17204         * modules/wcsrchr (configure.ac): ... to here.
17205
17206 2011-05-22  Bruno Haible  <bruno@clisp.org>
17207
17208         wcspbrk: Move AC_LIBOBJ invocations to module description.
17209         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17210         here...
17211         * modules/wcspbrk (configure.ac): ... to here.
17212
17213 2011-05-22  Bruno Haible  <bruno@clisp.org>
17214
17215         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17216         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17217         gl_PREREQ_WCSNRTOMBS invocations from here...
17218         * modules/wcsnrtombs (configure.ac): ... to here.
17219
17220 2011-05-22  Bruno Haible  <bruno@clisp.org>
17221
17222         wcsnlen: Move AC_LIBOBJ invocations to module description.
17223         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17224         here...
17225         * modules/wcsnlen (configure.ac): ... to here.
17226
17227 2011-05-22  Bruno Haible  <bruno@clisp.org>
17228
17229         wcsncpy: Move AC_LIBOBJ invocations to module description.
17230         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17231         here...
17232         * modules/wcsncpy (configure.ac): ... to here.
17233
17234 2011-05-22  Bruno Haible  <bruno@clisp.org>
17235
17236         wcsncmp: Move AC_LIBOBJ invocations to module description.
17237         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17238         here...
17239         * modules/wcsncmp (configure.ac): ... to here.
17240
17241 2011-05-22  Bruno Haible  <bruno@clisp.org>
17242
17243         wcsncat: Move AC_LIBOBJ invocations to module description.
17244         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17245         here...
17246         * modules/wcsncat (configure.ac): ... to here.
17247
17248 2011-05-22  Bruno Haible  <bruno@clisp.org>
17249
17250         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17251         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17252         from here...
17253         * modules/wcsncasecmp (configure.ac): ... to here.
17254
17255 2011-05-22  Bruno Haible  <bruno@clisp.org>
17256
17257         wcslen: Move AC_LIBOBJ invocations to module description.
17258         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17259         * modules/wcslen (configure.ac): ... to here.
17260
17261 2011-05-22  Bruno Haible  <bruno@clisp.org>
17262
17263         wcsdup: Move AC_LIBOBJ invocations to module description.
17264         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17265         * modules/wcsdup (configure.ac): ... to here.
17266
17267 2011-05-22  Bruno Haible  <bruno@clisp.org>
17268
17269         wcscspn: Move AC_LIBOBJ invocations to module description.
17270         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17271         here...
17272         * modules/wcscspn (configure.ac): ... to here.
17273
17274 2011-05-22  Bruno Haible  <bruno@clisp.org>
17275
17276         wcscpy: Move AC_LIBOBJ invocations to module description.
17277         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17278         * modules/wcscpy (configure.ac): ... to here.
17279
17280 2011-05-22  Bruno Haible  <bruno@clisp.org>
17281
17282         wcscoll: Move AC_LIBOBJ invocations to module description.
17283         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17284         here...
17285         * modules/wcscoll (configure.ac): ... to here.
17286
17287 2011-05-22  Bruno Haible  <bruno@clisp.org>
17288
17289         wcscmp: Move AC_LIBOBJ invocations to module description.
17290         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17291         * modules/wcscmp (configure.ac): ... to here.
17292
17293 2011-05-22  Bruno Haible  <bruno@clisp.org>
17294
17295         wcschr: Move AC_LIBOBJ invocations to module description.
17296         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17297         * modules/wcschr (configure.ac): ... to here.
17298
17299 2011-05-22  Bruno Haible  <bruno@clisp.org>
17300
17301         wcscat: Move AC_LIBOBJ invocations to module description.
17302         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17303         * modules/wcscat (configure.ac): ... to here.
17304
17305 2011-05-22  Bruno Haible  <bruno@clisp.org>
17306
17307         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17308         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17309         here...
17310         * modules/wcscasecmp (configure.ac): ... to here.
17311
17312 2011-05-22  Bruno Haible  <bruno@clisp.org>
17313
17314         wcrtomb: Move AC_LIBOBJ invocations to module description.
17315         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17316         invocations from here...
17317         * modules/wcrtomb (configure.ac): ... to here.
17318
17319 2011-05-22  Bruno Haible  <bruno@clisp.org>
17320
17321         wcpncpy: Move AC_LIBOBJ invocations to module description.
17322         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17323         here...
17324         * modules/wcpncpy (configure.ac): ... to here.
17325
17326 2011-05-22  Bruno Haible  <bruno@clisp.org>
17327
17328         wcpcpy: Move AC_LIBOBJ invocations to module description.
17329         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17330         * modules/wcpcpy (configure.ac): ... to here.
17331
17332 2011-05-22  Bruno Haible  <bruno@clisp.org>
17333
17334         waitpid: Move AC_LIBOBJ invocations to module description.
17335         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17336         invocation from here...
17337         * modules/waitpid (configure.ac): ... to here.
17338
17339 2011-05-22  Bruno Haible  <bruno@clisp.org>
17340
17341         utimensat: Move AC_LIBOBJ invocations to module description.
17342         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17343         here...
17344         * modules/utimensat (configure.ac): ... to here.
17345
17346 2011-05-22  Bruno Haible  <bruno@clisp.org>
17347
17348         usleep: Move AC_LIBOBJ invocations to module description.
17349         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17350         here...
17351         * modules/usleep (configure.ac): ... to here.
17352
17353 2011-05-22  Bruno Haible  <bruno@clisp.org>
17354
17355         unlockpt: Move AC_LIBOBJ invocations to module description.
17356         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17357         gl_PREREQ_UNLOCKPT invocations from here...
17358         * modules/unlockpt (configure.ac): ... to here.
17359
17360 2011-05-22  Bruno Haible  <bruno@clisp.org>
17361
17362         unlink: Respect rules for use of AC_LIBOBJ.
17363         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17364         * modules/unlink (configure.ac): ... to here.
17365
17366 2011-05-22  Bruno Haible  <bruno@clisp.org>
17367
17368         uname: Move AC_LIBOBJ invocations to module description.
17369         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17370         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17371         here...
17372         * modules/uname (configure.ac): ... to here.
17373
17374 2011-05-22  Bruno Haible  <bruno@clisp.org>
17375
17376         ttyname_r: Move AC_LIBOBJ invocations to module description.
17377         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17378         gl_PREREQ_TTYNAME_R invocations from here...
17379         * modules/ttyname_r (configure.ac): ... to here.
17380
17381 2011-05-22  Bruno Haible  <bruno@clisp.org>
17382
17383         tsearch: Move AC_LIBOBJ invocations to module description.
17384         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17385         invocations from here...
17386         * modules/tsearch (configure.ac): ... to here.
17387
17388 2011-05-22  Bruno Haible  <bruno@clisp.org>
17389
17390         towctrans: Move AC_LIBOBJ invocations to module description.
17391         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17392         AC_LIBOBJ invocation from here...
17393         * modules/towctrans (configure.ac): ... to here.
17394
17395 2011-05-22  Bruno Haible  <bruno@clisp.org>
17396
17397         tmpfile: Move AC_LIBOBJ invocations to module description.
17398         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17399         invocations from here...
17400         * modules/tmpfile (configure.ac): ... to here.
17401
17402 2011-05-22  Bruno Haible  <bruno@clisp.org>
17403
17404         times: Move AC_LIBOBJ invocations to module description.
17405         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17406         * modules/times (configure.ac): ... to here.
17407
17408 2011-05-22  Bruno Haible  <bruno@clisp.org>
17409
17410         time_r: Move AC_LIBOBJ invocations to module description.
17411         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17412         invocations from here...
17413         * modules/time_r (configure.ac): ... to here.
17414
17415 2011-05-22  Bruno Haible  <bruno@clisp.org>
17416
17417         timegm: Move AC_LIBOBJ invocations to module description.
17418         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17419         invocations from here...
17420         * modules/timegm (configure.ac): ... to here.
17421
17422 2011-05-22  Bruno Haible  <bruno@clisp.org>
17423
17424         tcgetsid: Move AC_LIBOBJ invocations to module description.
17425         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17426         and gl_PREREQ_TCGETSID invocations from here...
17427         * modules/tcgetsid (configure.ac): ... to here.
17428         (Depends-on): Update conditions.
17429
17430 2011-05-22  Bruno Haible  <bruno@clisp.org>
17431
17432         symlinkat: Move AC_LIBOBJ invocations to module description.
17433         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17434         here...
17435         * modules/symlinkat (configure.ac): ... to here.
17436
17437 2011-05-22  Bruno Haible  <bruno@clisp.org>
17438
17439         symlink: Move AC_LIBOBJ invocations to module description.
17440         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17441         here...
17442         * modules/symlink (configure.ac): ... to here.
17443
17444 2011-05-22  Bruno Haible  <bruno@clisp.org>
17445
17446         strverscmp: Move AC_LIBOBJ invocations to module description.
17447         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17448         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17449         from here...
17450         * modules/strverscmp (configure.ac): ... to here.
17451
17452 2011-05-22  Bruno Haible  <bruno@clisp.org>
17453
17454         strtok_r: Move AC_LIBOBJ invocations to module description.
17455         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17456         and gl_PREREQ_STRTOK_R invocations from here...
17457         * modules/strtok_r (configure.ac): ... to here.
17458         (Depends-on): Update conditions.
17459
17460 2011-05-22  Bruno Haible  <bruno@clisp.org>
17461
17462         strtoumax: Move AC_LIBOBJ invocations to module description.
17463         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17464         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17465         from here...
17466         * modules/strtoumax (configure.ac): ... to here.
17467
17468 2011-05-22  Bruno Haible  <bruno@clisp.org>
17469
17470         strtoimax: Move AC_LIBOBJ invocations to module description.
17471         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17473         from here...
17474         * modules/strtoimax (configure.ac): ... to here.
17475
17476 2011-05-22  Bruno Haible  <bruno@clisp.org>
17477
17478         strtoull: Move AC_LIBOBJ invocations to module description.
17479         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17480         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17481         from here...
17482         * modules/strtoull (configure.ac): ... to here.
17483
17484 2011-05-22  Bruno Haible  <bruno@clisp.org>
17485
17486         strtoll: Move AC_LIBOBJ invocations to module description.
17487         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17488         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17489         here...
17490         * modules/strtoll (configure.ac): ... to here.
17491
17492 2011-05-22  Bruno Haible  <bruno@clisp.org>
17493
17494         strtoul: Move AC_LIBOBJ invocations to module description.
17495         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17496         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17497         * modules/strtoul (configure.ac): ... to here.
17498
17499 2011-05-22  Bruno Haible  <bruno@clisp.org>
17500
17501         strtol: Move AC_LIBOBJ invocations to module description.
17502         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17503         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17504         * modules/strtol (configure.ac): ... to here.
17505
17506 2011-05-22  Bruno Haible  <bruno@clisp.org>
17507
17508         strtod: Move AC_LIBOBJ invocations to module description.
17509         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17510         invocations from here...
17511         * modules/strtod (configure.ac): ... to here.
17512
17513 2011-05-22  Bruno Haible  <bruno@clisp.org>
17514
17515         strstr*: Move AC_LIBOBJ invocations to module description.
17516         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17517         invocations from here...
17518         * modules/strstr-simple (configure.ac): ... to here.
17519         * modules/strstr (configure.ac): ... and here.
17520
17521 2011-05-22  Bruno Haible  <bruno@clisp.org>
17522
17523         strsignal: Move AC_LIBOBJ invocations to module description.
17524         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17525         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17526         * modules/strsignal (configure.ac): ... to here.
17527         (Depends-on): Update conditions.
17528
17529 2011-05-22  Bruno Haible  <bruno@clisp.org>
17530
17531         strsep: Move AC_LIBOBJ invocations to module description.
17532         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17533         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17534         here...
17535         * modules/strsep (configure.ac): ... to here.
17536
17537 2011-05-22  Bruno Haible  <bruno@clisp.org>
17538
17539         strptime: Move AC_LIBOBJ invocations to module description.
17540         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17541         gl_PREREQ_STRPTIME invocations from here...
17542         * modules/strptime (configure.ac): ... to here.
17543
17544 2011-05-22  Bruno Haible  <bruno@clisp.org>
17545
17546         strpbrk: Move AC_LIBOBJ invocations to module description.
17547         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17549         here...
17550         * modules/strpbrk (configure.ac): ... to here.
17551
17552 2011-05-22  Bruno Haible  <bruno@clisp.org>
17553
17554         strnlen: Move AC_LIBOBJ invocations to module description.
17555         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17556         invocations from here...
17557         * modules/strnlen (configure.ac): ... to here.
17558
17559 2011-05-22  Bruno Haible  <bruno@clisp.org>
17560
17561         strndup: Move AC_LIBOBJ invocations to module description.
17562         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17563         invocations from here...
17564         * modules/strndup (configure.ac): ... to here.
17565         (Depends-on): Update conditions.
17566
17567 2011-05-22  Bruno Haible  <bruno@clisp.org>
17568
17569         strncat: Move AC_LIBOBJ invocations to module description.
17570         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17571         invocations from here...
17572         * modules/strncat (configure.ac): ... to here.
17573
17574 2011-05-22  Bruno Haible  <bruno@clisp.org>
17575
17576         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17577         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17578         invocations from here...
17579         * modules/strdup (configure.ac): ... to here.
17580         * modules/strdup-posix (configure.ac): ... and here.
17581
17582 2011-05-22  Bruno Haible  <bruno@clisp.org>
17583
17584         strcspn: Move AC_LIBOBJ invocations to module description.
17585         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17587         here...
17588         * modules/strcspn (configure.ac): ... to here.
17589
17590 2011-05-22  Bruno Haible  <bruno@clisp.org>
17591
17592         strchrnul: Move AC_LIBOBJ invocations to module description.
17593         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17594         gl_PREREQ_STRCHRNUL invocations from here...
17595         * modules/strchrnul (configure.ac): ... to here.
17596
17597 2011-05-22  Bruno Haible  <bruno@clisp.org>
17598
17599         strcasestr*: Move AC_LIBOBJ invocations to module description.
17600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17601         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17602         * modules/strcasestr-simple (configure.ac): ... to here.
17603         * modules/strcasestr (configure.ac): ... and here.
17604
17605 2011-05-22  Bruno Haible  <bruno@clisp.org>
17606
17607         strcase: Move AC_LIBOBJ invocations to module description.
17608         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17609         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17610         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17611         gl_PREREQ_STRNCASECMP invocations from here...
17612         * modules/strcase (configure.ac): ... to here.
17613
17614 2011-05-22  Bruno Haible  <bruno@clisp.org>
17615
17616         stpncpy: Move AC_LIBOBJ invocations to module description.
17617         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17618         here...
17619         * modules/stpncpy (configure.ac): ... to here.
17620
17621 2011-05-22  Bruno Haible  <bruno@clisp.org>
17622
17623         stpcpy: Move AC_LIBOBJ invocations to module description.
17624         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17626         here...
17627         * modules/stpcpy (configure.ac): ... to here.
17628
17629 2011-05-21  Bruno Haible  <bruno@clisp.org>
17630
17631         stat: Move AC_LIBOBJ invocations to module description.
17632         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17633         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17634         here...
17635         * modules/stat (configure.ac): ... to here.
17636
17637 2011-05-21  Bruno Haible  <bruno@clisp.org>
17638
17639         sleep: Move AC_LIBOBJ invocations to module description.
17640         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17641         * modules/sleep (configure.ac): ... to here.
17642
17643 2011-05-21  Bruno Haible  <bruno@clisp.org>
17644
17645         signbit: Move AC_LIBOBJ invocations to module description.
17646         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17647         * modules/signbit (configure.ac): ... to here.
17648
17649 2011-05-21  Bruno Haible  <bruno@clisp.org>
17650
17651         sigprocmask: Move AC_LIBOBJ invocations to module description.
17652         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17653         gl_PREREQ_SIGPROMASK invocations from here...
17654         * modules/sigprocmask (configure.ac): ... to here.
17655
17656 2011-05-21  Bruno Haible  <bruno@clisp.org>
17657
17658         sigaction: Move AC_LIBOBJ invocations to module description.
17659         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17660         gl_PREREQ_SIGACTION invocations from here...
17661         * modules/sigaction (configure.ac): ... to here.
17662
17663 2011-05-21  Bruno Haible  <bruno@clisp.org>
17664
17665         sig2str: Move AC_LIBOBJ invocations to module description.
17666         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17667         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17668         here...
17669         * modules/sig2str (configure.ac): ... to here.
17670
17671 2011-05-21  Bruno Haible  <bruno@clisp.org>
17672
17673         setlocale: Move AC_LIBOBJ invocations to module description.
17674         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17675         gl_PREREQ_SETLOCALE invocations from here...
17676         * modules/setlocale (configure.ac): ... to here.
17677
17678 2011-05-21  Bruno Haible  <bruno@clisp.org>
17679
17680         unsetenv: Move AC_LIBOBJ invocations to module description.
17681         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17682         and gl_PREREQ_UNSETENV invocations from here...
17683         * modules/unsetenv (configure.ac): ... to here.
17684         (Depends-on): Update.
17685
17686 2011-05-21  Bruno Haible  <bruno@clisp.org>
17687
17688         setenv: Move AC_LIBOBJ invocations to module description.
17689         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17690         here...
17691         * modules/setenv (configure.ac): ... to here.
17692
17693 2011-05-21  Bruno Haible  <bruno@clisp.org>
17694
17695         selinux-h: Move AC_LIBOBJ invocations to module description.
17696         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17697         AC_LIBOBJ invocation from here...
17698         * modules/selinux-h (configure.ac): ... to here.
17699
17700 2011-05-21  Bruno Haible  <bruno@clisp.org>
17701
17702         select: Respect rules for use of AC_LIBOBJ.
17703         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17704         here...
17705         * modules/select (configure.ac): ... to here.
17706
17707 2011-05-21  Bruno Haible  <bruno@clisp.org>
17708
17709         scandir: Move AC_LIBOBJ invocations to module description.
17710         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17711         invocations from here...
17712         * modules/scandir (configure.ac): ... to here.
17713
17714 2011-05-21  Bruno Haible  <bruno@clisp.org>
17715
17716         rpmatch: Move AC_LIBOBJ invocations to module description.
17717         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17718         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17719         here...
17720         * modules/rpmatch (configure.ac): ... to here.
17721
17722 2011-05-21  Bruno Haible  <bruno@clisp.org>
17723
17724         rmdir: Respect rules for use of AC_LIBOBJ.
17725         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17726         * modules/rmdir (configure.ac): ... to here.
17727
17728 2011-05-21  Bruno Haible  <bruno@clisp.org>
17729
17730         renameat: Move AC_LIBOBJ invocations to module description.
17731         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17732         here...
17733         * modules/renameat (configure.ac): ... to here.
17734
17735 2011-05-21  Bruno Haible  <bruno@clisp.org>
17736
17737         rename: Respect rules for use of AC_LIBOBJ.
17738         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17739         here...
17740         * modules/rename (configure.ac): ... to here.
17741
17742 2011-05-21  Bruno Haible  <bruno@clisp.org>
17743
17744         remove: Move AC_LIBOBJ invocations to module description.
17745         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17746         here...
17747         * modules/remove (configure.ac): ... to here.
17748
17749 2011-05-21  Bruno Haible  <bruno@clisp.org>
17750
17751         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17752         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17753         macro.
17754         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17755         * modules/relocatable-lib (configure.ac): ... to here.
17756         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17757         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17758
17759 2011-05-21  Bruno Haible  <bruno@clisp.org>
17760
17761         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17762         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17763         here...
17764         * modules/relocatable-prog (configure.ac): ... to here.
17765
17766 2011-05-21  Bruno Haible  <bruno@clisp.org>
17767
17768         regex: Move AC_LIBOBJ invocations to module description.
17769         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17770         invocations from here...
17771         * modules/regex (configure.ac): ... to here.
17772
17773 2011-05-21  Bruno Haible  <bruno@clisp.org>
17774
17775         realloc-*: Move AC_LIBOBJ invocations to module description.
17776         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17777         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17778         AC_LIBOBJ invocations from here...
17779         * modules/realloc-gnu (configure.ac): ... to here.
17780         * modules/realloc-posix (configure.ac): ... and here.
17781
17782 2011-05-21  Bruno Haible  <bruno@clisp.org>
17783
17784         readutmp: Move AC_LIBOBJ invocations to module description.
17785         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17786         * modules/readutmp (configure.ac): ... to here.
17787
17788 2011-05-21  Bruno Haible  <bruno@clisp.org>
17789
17790         readlinkat: Move AC_LIBOBJ invocations to module description.
17791         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17792         here...
17793         * modules/readlinkat (configure.ac): ... to here.
17794
17795 2011-05-21  Bruno Haible  <bruno@clisp.org>
17796
17797         readlink: Move AC_LIBOBJ invocations to module description.
17798         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17799         gl_PREREQ_READLINK invocations from here...
17800         * modules/readlink (configure.ac): ... to here.
17801
17802 2011-05-21  Bruno Haible  <bruno@clisp.org>
17803
17804         readline: Move AC_LIBOBJ invocations to module description.
17805         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17806         gl_PREREQ_READLINE invocations from here...
17807         * modules/readline (configure.ac): ... to here.
17808
17809 2011-05-21  Bruno Haible  <bruno@clisp.org>
17810
17811         read: Move AC_LIBOBJ invocations to module description.
17812         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17813         * modules/read (configure.ac): ... to here.
17814
17815 2011-05-21  Bruno Haible  <bruno@clisp.org>
17816
17817         rawmemchr: Move AC_LIBOBJ invocations to module description.
17818         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17820         from here...
17821         * modules/rawmemchr (configure.ac): ... to here.
17822
17823 2011-05-21  Bruno Haible  <bruno@clisp.org>
17824
17825         random_r: Move AC_LIBOBJ invocations to module description.
17826         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17827         gl_PREREQ_RANDOM_R invocations from here...
17828         * modules/random_r (configure.ac): ... to here.
17829
17830 2011-05-21  Bruno Haible  <bruno@clisp.org>
17831
17832         pwrite: Move AC_LIBOBJ invocations to module description.
17833         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17834         * modules/pwrite (configure.ac): ... to here.
17835
17836 2011-05-21  Bruno Haible  <bruno@clisp.org>
17837
17838         putenv: Move AC_LIBOBJ invocations to module description.
17839         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17840         * modules/putenv (configure.ac): ... to here.
17841
17842 2011-05-21  Bruno Haible  <bruno@clisp.org>
17843
17844         login_tty: Move AC_LIBOBJ invocations to module description.
17845         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17846         * modules/login_tty (configure.ac): ... to here.
17847
17848 2011-05-21  Bruno Haible  <bruno@clisp.org>
17849
17850         openpty: Move AC_LIBOBJ invocations to module description.
17851         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17852         * modules/openpty (configure.ac): ... to here.
17853
17854 2011-05-21  Bruno Haible  <bruno@clisp.org>
17855
17856         forkpty: Move AC_LIBOBJ invocations to module description.
17857         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17858         * modules/forkpty (configure.ac): ... to here.
17859
17860 2011-05-21  Bruno Haible  <bruno@clisp.org>
17861
17862         ptsname: Move AC_LIBOBJ invocations to module description.
17863         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17864         invocations from here...
17865         * modules/ptsname (configure.ac): ... to here.
17866
17867 2011-05-21  Bruno Haible  <bruno@clisp.org>
17868
17869         pread: Move AC_LIBOBJ invocations to module description.
17870         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17871         * modules/pread (configure.ac): ... to here.
17872
17873 2011-05-21  Bruno Haible  <bruno@clisp.org>
17874
17875         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17876         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17877         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17878         * modules/posix_spawn (configure.ac): ... to here.
17879         * modules/posix_spawnp (configure.ac): ... and here.
17880
17881 2011-05-21  Bruno Haible  <bruno@clisp.org>
17882
17883         popen: Move AC_LIBOBJ invocations to module description.
17884         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17885         invocations from here...
17886         * modules/popen (configure.ac): ... to here.
17887
17888 2011-05-21  Bruno Haible  <bruno@clisp.org>
17889
17890         poll: Move AC_LIBOBJ invocations to module description.
17891         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17892         invocations from here...
17893         * modules/poll (configure.ac): ... to here.
17894
17895 2011-05-21  Bruno Haible  <bruno@clisp.org>
17896
17897         pipe-posix: Move AC_LIBOBJ invocations to module description.
17898         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17899         * modules/pipe-posix (configure.ac): ... to here.
17900
17901 2011-05-21  Bruno Haible  <bruno@clisp.org>
17902
17903         openat: Respect rules for use of AC_LIBOBJ.
17904         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17905         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17906         * modules/openat (configure.ac): ... to here.
17907
17908 2011-05-21  Bruno Haible  <bruno@clisp.org>
17909
17910         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17911         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17912         invocation from here...
17913         * modules/obstack-printf (configure.ac): ... to here.
17914         * modules/obstack-printf-posix (configure.ac): ... and here.
17915
17916 2011-05-21  Bruno Haible  <bruno@clisp.org>
17917
17918         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17919         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17920         from here...
17921         * modules/nl_langinfo (configure.ac): ... to here.
17922
17923 2011-05-21  Bruno Haible  <bruno@clisp.org>
17924
17925         nanosleep: Move AC_LIBOBJ invocations to module description.
17926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17927         gl_PREREQ_NANOSLEEP invocations from here...
17928         * modules/nanosleep (configure.ac): ... to here.
17929
17930 2011-05-21  Bruno Haible  <bruno@clisp.org>
17931
17932         mountlist: Move AC_LIBOBJ invocations to module description.
17933         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17934         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17935         * modules/mountlist (configure.ac): ... to here.
17936
17937 2011-05-21  Bruno Haible  <bruno@clisp.org>
17938
17939         mktime: Respect rules for use of AC_LIBOBJ.
17940         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17941         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17942         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17943         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17944         * modules/mktime (configure.ac): ... to here.
17945         * modules/mktime-internal (configure.ac): ... and here.
17946         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17947
17948 2011-05-21  Bruno Haible  <bruno@clisp.org>
17949
17950         mkstemps: Move AC_LIBOBJ invocations to module description.
17951         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17952         here...
17953         * modules/mkstemps (configure.ac): ... to here.
17954
17955 2011-05-21  Bruno Haible  <bruno@clisp.org>
17956
17957         mkstemp: Move AC_LIBOBJ invocations to module description.
17958         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17959         gl_PREREQ_MKSTEMP invocations from here...
17960         * modules/mkstemp (configure.ac): ... to here.
17961
17962 2011-05-21  Bruno Haible  <bruno@clisp.org>
17963
17964         mkostemps: Move AC_LIBOBJ invocations to module description.
17965         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17966         here...
17967         * modules/mkostemps (configure.ac): ... to here.
17968
17969 2011-05-21  Bruno Haible  <bruno@clisp.org>
17970
17971         mkostemp: Move AC_LIBOBJ invocations to module description.
17972         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17973         gl_PREREQ_MKOSTEMP invocations from here...
17974         * modules/mkostemp (configure.ac): ... to here.
17975
17976 2011-05-21  Bruno Haible  <bruno@clisp.org>
17977
17978         mknod: Move AC_LIBOBJ invocations to module description.
17979         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17980         * modules/mknod (configure.ac): ... to here.
17981
17982 2011-05-21  Bruno Haible  <bruno@clisp.org>
17983
17984         mkfifoat: Move AC_LIBOBJ invocations to module description.
17985         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17986         here...
17987         * modules/mkfifoat (configure.ac): ... to here.
17988
17989 2011-05-21  Bruno Haible  <bruno@clisp.org>
17990
17991         mkfifo: Respect rules for use of AC_LIBOBJ.
17992         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17993         here...
17994         * modules/mkfifo (configure.ac): ... to here.
17995
17996 2011-05-21  Bruno Haible  <bruno@clisp.org>
17997
17998         mkdtemp: Move AC_LIBOBJ invocations to module description.
17999         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18000         invocations from here...
18001         * modules/mkdtemp (configure.ac): ... to here.
18002
18003 2011-05-21  Bruno Haible  <bruno@clisp.org>
18004
18005         mkdir: Move AC_LIBOBJ invocations to module description.
18006         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18007         * modules/mkdir (configure.ac): ... to here.
18008
18009 2011-05-21  Bruno Haible  <bruno@clisp.org>
18010
18011         memset: Move AC_LIBOBJ invocations to module description.
18012         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18013         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18014         here...
18015         * modules/memset (configure.ac): ... to here.
18016
18017 2011-05-21  Bruno Haible  <bruno@clisp.org>
18018
18019         memrchr: Move AC_LIBOBJ invocations to module description.
18020         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18022         here...
18023         * modules/memrchr (configure.ac): ... to here.
18024
18025 2011-05-21  Bruno Haible  <bruno@clisp.org>
18026
18027         mempcpy: Move AC_LIBOBJ invocations to module description.
18028         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18029         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18030         here...
18031         * modules/mempcpy (configure.ac): ... to here.
18032
18033 2011-05-21  Bruno Haible  <bruno@clisp.org>
18034
18035         memmove: Move AC_LIBOBJ invocations to module description.
18036         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18038         here...
18039         * modules/memmove (configure.ac): ... to here.
18040
18041 2011-05-21  Bruno Haible  <bruno@clisp.org>
18042
18043         memmem*: Move AC_LIBOBJ invocations to module description.
18044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18045         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18046         here...
18047         (gl_FUNC_MEMMEM): ... and here...
18048         * modules/memmem-simple (configure.ac): ... to here.
18049         * modules/memmem (configure.ac): ... and here.
18050
18051 2011-05-21  Bruno Haible  <bruno@clisp.org>
18052
18053         memcpy: Move AC_LIBOBJ invocations to module description.
18054         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18056         here...
18057         * modules/memcpy (configure.ac): ... to here.
18058
18059 2011-05-21  Bruno Haible  <bruno@clisp.org>
18060
18061         memcmp: Simplify autoconf macro.
18062         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18063         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18064         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18065
18066 2011-05-21  Bruno Haible  <bruno@clisp.org>
18067
18068         memcmp: Move AC_LIBOBJ invocations to module description.
18069         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18070         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18071         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18072         * modules/memcmp (configure.ac): ... to here.
18073         (Depends-on): Update conditions.
18074
18075 2011-05-21  Bruno Haible  <bruno@clisp.org>
18076
18077         memchr: Respect rules for use of AC_LIBOBJ.
18078         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18079         invocations from here...
18080         * modules/memchr (configure.ac): ... to here.
18081
18082 2011-05-21  Bruno Haible  <bruno@clisp.org>
18083
18084         mbtowc: Move AC_LIBOBJ invocations to module description.
18085         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18086         invocations from here...
18087         * modules/mbtowc (configure.ac): ... to here.
18088
18089 2011-05-21  Bruno Haible  <bruno@clisp.org>
18090
18091         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18092         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18093         gl_PREREQ_MBSRTOWCS invocations from here...
18094         * modules/mbsrtowcs (configure.ac): ... to here.
18095
18096 2011-05-21  Bruno Haible  <bruno@clisp.org>
18097
18098         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18099         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18100         gl_PREREQ_MBSNRTOWCS invocations from here...
18101         * modules/mbsnrtowcs (configure.ac): ... to here.
18102
18103 2011-05-21  Bruno Haible  <bruno@clisp.org>
18104
18105         mbsinit: Move AC_LIBOBJ invocations to module description.
18106         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18107         invocations from here...
18108         * modules/mbsinit (configure.ac): ... to here.
18109
18110 2011-05-21  Bruno Haible  <bruno@clisp.org>
18111
18112         mbrlen: Move AC_LIBOBJ invocations to module description.
18113         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18114         invocations from here...
18115         * modules/mbrlen (configure.ac): ... to here.
18116
18117 2011-05-21  Bruno Haible  <bruno@clisp.org>
18118
18119         mbrtowc: Respect rules for use of AC_LIBOBJ.
18120         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18121         invocations from here...
18122         * modules/mbrtowc (configure.ac): ... to here.
18123
18124 2011-05-21  Bruno Haible  <bruno@clisp.org>
18125
18126         malloc-*: Move AC_LIBOBJ invocations to module description.
18127         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18128         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18129         AC_LIBOBJ invocations from here...
18130         * modules/malloc-gnu (configure.ac): ... to here.
18131         * modules/malloc-posix (configure.ac): ... and here.
18132
18133 2011-05-21  Bruno Haible  <bruno@clisp.org>
18134
18135         lstat, openat: Respect rules for use of AC_LIBOBJ.
18136         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18137         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18138         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18139         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18140         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18141         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18142         here.
18143         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18144
18145 2011-05-21  Bruno Haible  <bruno@clisp.org>
18146
18147         lseek: Move AC_LIBOBJ invocations to module description.
18148         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18149         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18150         * modules/lseek (configure.ac): ... to here.
18151
18152 2011-05-21  Bruno Haible  <bruno@clisp.org>
18153
18154         linkat: Move AC_LIBOBJ invocations to module description.
18155         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18156         here...
18157         * modules/linkat (configure.ac): ... to here.
18158
18159 2011-05-21  Bruno Haible  <bruno@clisp.org>
18160
18161         link: Respect rules for use of AC_LIBOBJ.
18162         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18163         * modules/link (configure.ac): ... to here.
18164
18165 2011-05-21  Bruno Haible  <bruno@clisp.org>
18166
18167         lchown: Move AC_LIBOBJ invocations to module description.
18168         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18169         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18170         * modules/lchown (configure.ac): ... to here.
18171
18172 2011-05-21  Bruno Haible  <bruno@clisp.org>
18173
18174         iswctype: Move AC_LIBOBJ invocations to module description.
18175         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18176         here...
18177         * modules/iswctype (configure.ac): ... to here.
18178
18179 2011-05-21  Bruno Haible  <bruno@clisp.org>
18180
18181         iswblank: Move AC_LIBOBJ invocations to module description.
18182         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18183         here...
18184         * modules/iswblank (configure.ac): ... to here.
18185
18186 2011-05-21  Bruno Haible  <bruno@clisp.org>
18187
18188         atanl: Move AC_LIBOBJ invocations to module description.
18189         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18190         * modules/atanl (configure.ac): ... to here.
18191
18192 2011-05-21  Bruno Haible  <bruno@clisp.org>
18193
18194         acosl: Move AC_LIBOBJ invocations to module description.
18195         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18196         * modules/acosl (configure.ac): ... to here.
18197
18198 2011-05-21  Bruno Haible  <bruno@clisp.org>
18199
18200         asinl: Respect rules for use of AC_LIBOBJ.
18201         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18202         * modules/asinl (configure.ac): ... to here.
18203
18204 2011-05-21  Bruno Haible  <bruno@clisp.org>
18205
18206         tanl: Move AC_LIBOBJ invocations to module description.
18207         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18208         * modules/tanl (configure.ac): ... to here.
18209
18210 2011-05-21  Bruno Haible  <bruno@clisp.org>
18211
18212         cosl: Move AC_LIBOBJ invocations to module description.
18213         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18214         * modules/cosl (configure.ac): ... to here.
18215
18216 2011-05-21  Bruno Haible  <bruno@clisp.org>
18217
18218         sinl: Move AC_LIBOBJ invocations to module description.
18219         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18220         * modules/sinl (configure.ac): ... to here.
18221
18222 2011-05-21  Bruno Haible  <bruno@clisp.org>
18223
18224         logl: Move AC_LIBOBJ invocations to module description.
18225         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18226         * modules/logl (configure.ac): ... to here.
18227
18228 2011-05-21  Bruno Haible  <bruno@clisp.org>
18229
18230         expl: Move AC_LIBOBJ invocations to module description.
18231         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18232         * modules/expl (configure.ac): ... to here.
18233
18234 2011-05-21  Bruno Haible  <bruno@clisp.org>
18235
18236         roundl: Move AC_LIBOBJ invocations to module description.
18237         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18238         * modules/roundl (configure.ac): ... to here.
18239
18240 2011-05-21  Bruno Haible  <bruno@clisp.org>
18241
18242         round: Move AC_LIBOBJ invocations to module description.
18243         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18244         * modules/round (configure.ac): ... to here.
18245
18246 2011-05-21  Bruno Haible  <bruno@clisp.org>
18247
18248         roundf: Move AC_LIBOBJ invocations to module description.
18249         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18250         * modules/roundf (configure.ac): ... to here.
18251
18252 2011-05-21  Bruno Haible  <bruno@clisp.org>
18253
18254         truncl: Move AC_LIBOBJ invocations to module description.
18255         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18256         * modules/truncl (configure.ac): ... to here.
18257
18258 2011-05-21  Bruno Haible  <bruno@clisp.org>
18259
18260         trunc: Move AC_LIBOBJ invocations to module description.
18261         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18262         * modules/trunc (configure.ac): ... to here.
18263
18264 2011-05-21  Bruno Haible  <bruno@clisp.org>
18265
18266         truncf: Move AC_LIBOBJ invocations to module description.
18267         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18268         * modules/truncf (configure.ac): ... to here.
18269
18270 2011-05-21  Bruno Haible  <bruno@clisp.org>
18271
18272         ceill: Move AC_LIBOBJ invocations to module description.
18273         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18274         * modules/ceill (configure.ac): ... to here.
18275
18276 2011-05-21  Bruno Haible  <bruno@clisp.org>
18277
18278         ceil: Move AC_LIBOBJ invocations to module description.
18279         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18280         * modules/ceil (configure.ac): ... to here.
18281
18282 2011-05-21  Bruno Haible  <bruno@clisp.org>
18283
18284         ceilf: Move AC_LIBOBJ invocations to module description.
18285         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18286         * modules/ceilf (configure.ac): ... to here.
18287
18288 2011-05-21  Bruno Haible  <bruno@clisp.org>
18289
18290         floorl: Respect rules for use of AC_LIBOBJ.
18291         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18292         * modules/floorl (configure.ac): ... to here.
18293
18294 2011-05-21  Bruno Haible  <bruno@clisp.org>
18295
18296         floor: Respect rules for use of AC_LIBOBJ.
18297         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18298         * modules/floor (configure.ac): ... to here.
18299
18300 2011-05-21  Bruno Haible  <bruno@clisp.org>
18301
18302         floorf: Move AC_LIBOBJ invocations to module description.
18303         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18304         * modules/floorf (configure.ac): ... to here.
18305
18306 2011-05-20  Bruno Haible  <bruno@clisp.org>
18307
18308         sqrtl: Respect rules for use of AC_LIBOBJ.
18309         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18310         * modules/sqrtl (configure.ac): ... to here.
18311
18312 2011-05-20  Bruno Haible  <bruno@clisp.org>
18313
18314         ldexpl: Respect rules for use of AC_LIBOBJ.
18315         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18316         * modules/ldexpl (configure.ac): ... to here.
18317
18318 2011-05-20  Bruno Haible  <bruno@clisp.org>
18319
18320         frexpl*: Respect rules for use of AC_LIBOBJ.
18321         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18322         invocation from here...
18323         * modules/frexpl (configure.ac): ... to here.
18324         * modules/frexpl-nolibm (configure.ac): ... and here.
18325
18326 2011-05-20  Bruno Haible  <bruno@clisp.org>
18327
18328         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18329         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18330         invocation from here...
18331         * modules/frexp (configure.ac): ... to here.
18332         * modules/frexp-nolibm (configure.ac): ... and here.
18333
18334 2011-05-20  Bruno Haible  <bruno@clisp.org>
18335
18336         isnan: Respect rules for use of AC_LIBOBJ.
18337         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18338         invocations here.
18339         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18340         REPLACE_ISNAN.
18341         * modules/isnand (configure.ac): Likewise.
18342         * modules/isnanl (configure.ac): Likewise.
18343
18344 2011-05-20  Bruno Haible  <bruno@clisp.org>
18345
18346         isnanl*: Respect rules for use of AC_LIBOBJ.
18347         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18348         invocation from here...
18349         * modules/isnanl (configure.ac): ... to here.
18350         * modules/isnanl-nolibm (configure.ac): ... and here.
18351
18352 2011-05-20  Bruno Haible  <bruno@clisp.org>
18353
18354         isnand*: Move AC_LIBOBJ invocations to module description.
18355         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18356         invocation from here...
18357         * modules/isnand (configure.ac): ... to here.
18358         * modules/isnand-nolibm (configure.ac): ... and here.
18359
18360 2011-05-20  Bruno Haible  <bruno@clisp.org>
18361
18362         isnanf*: Move AC_LIBOBJ invocations to module description.
18363         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18364         invocation from here...
18365         * modules/isnanf (configure.ac): ... to here.
18366         * modules/isnanf-nolibm (configure.ac): ... and here.
18367
18368 2011-05-20  Bruno Haible  <bruno@clisp.org>
18369
18370         isnan*: Separate the AC_LIBOBJ invocations.
18371         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18372         AC_LIBOBJ invocation.
18373         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18374         here.
18375         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18376         AC_LIBOBJ invocation.
18377         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18378         here.
18379         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18380         AC_LIBOBJ invocation.
18381         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18382         here.
18383         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18384
18385 2011-05-08  Bruno Haible  <bruno@clisp.org>
18386
18387         isinf: Move AC_LIBOBJ invocations to module description.
18388         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18389         * modules/isinf (configure.ac): ... to here.
18390
18391 2011-05-08  Bruno Haible  <bruno@clisp.org>
18392
18393         isfinite: Move AC_LIBOBJ invocations to module description.
18394         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18395         * modules/isfinite (configure.ac): ... to here.
18396
18397 2011-05-08  Bruno Haible  <bruno@clisp.org>
18398
18399         isblank: Move AC_LIBOBJ invocations to module description.
18400         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18401         here...
18402         * modules/isblank (configure.ac): ... to here.
18403
18404 2011-05-08  Bruno Haible  <bruno@clisp.org>
18405
18406         isapipe: Move AC_LIBOBJ invocations to module description.
18407         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18408         gl_PREREQ_ISAPIPE invocations from here...
18409         * modules/isapipe (configure.ac): ... to here.
18410         (Depends-on): Update condition.
18411
18412 2011-05-08  Bruno Haible  <bruno@clisp.org>
18413
18414         ioctl: Move AC_LIBOBJ invocations to module description.
18415         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18416         invocations from here...
18417         * modules/ioctl (configure.ac): ... to here.
18418         (Depends-on): Update condition.
18419
18420 2011-05-08  Bruno Haible  <bruno@clisp.org>
18421
18422         imaxdiv: Move AC_LIBOBJ invocations to module description.
18423         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18424         invocations from here...
18425         * modules/imaxdiv (configure.ac): ... to here.
18426
18427 2011-05-08  Bruno Haible  <bruno@clisp.org>
18428
18429         imaxabs: Move AC_LIBOBJ invocations to module description.
18430         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18431         invocations from here...
18432         * modules/imaxabs (configure.ac): ... to here.
18433
18434 2011-05-08  Bruno Haible  <bruno@clisp.org>
18435
18436         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18438         AC_LIBOBJ invocations from here...
18439         * modules/getaddrinfo (configure.ac): ... to here.
18440         (Depends-on): Add conditions.
18441
18442 2011-05-08  Bruno Haible  <bruno@clisp.org>
18443
18444         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18445         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18446         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18447         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18448         (gl_PREREQ_INET_PTON): ... from here.
18449         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18450         gl_PREREQ_INET_PTON here.
18451         (Depends-on): Update condition.
18452
18453 2011-05-08  Bruno Haible  <bruno@clisp.org>
18454
18455         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18456         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18457         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18458         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18459         (gl_PREREQ_INET_NTOP): ... from here.
18460         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18461         gl_PREREQ_INET_NTOP here.
18462         (Depends-on): Update condition.
18463
18464 2011-05-08  Bruno Haible  <bruno@clisp.org>
18465
18466         iconv_open: Move AC_LIBOBJ invocations to module description.
18467         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18468         AC_LIBOBJ invocations from here...
18469         * modules/iconv_open (configure.ac): ... to here.
18470
18471 2011-05-08  Bruno Haible  <bruno@clisp.org>
18472
18473         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18474         If module 'iconv_open' is among the main modules and module
18475         'iconv_open-utf' is among the tests dependencies, then
18476         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18477         return the special iconv_t values. Therefore iconv() and iconv_close()
18478         must support these special iconv_t values, already in lib, not only in
18479         tests.
18480         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18481         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18482         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18483         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18484         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18485         (Depends-on): Add the dependencies of iconv_open-utf.
18486         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18487         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18488         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18489
18490 2011-05-08  Bruno Haible  <bruno@clisp.org>
18491
18492         group-member: Move AC_LIBOBJ invocations to module description.
18493         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18494         gl_PREREQ_GROUP_MEMBER invocations from here...
18495         * modules/group-member (configure.ac): ... to here.
18496
18497 2011-05-08  Bruno Haible  <bruno@clisp.org>
18498
18499         grantpt: Move AC_LIBOBJ invocations to module description.
18500         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18501         invocations from here...
18502         * modules/grantpt (configure.ac): ... to here.
18503
18504 2011-05-08  Bruno Haible  <bruno@clisp.org>
18505
18506         glob: Move AC_LIBOBJ invocations to module description.
18507         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18508         from here...
18509         * modules/glob (configure.ac): ... to here.
18510
18511 2011-05-08  Bruno Haible  <bruno@clisp.org>
18512
18513         getusershell: Move AC_LIBOBJ invocations to module description.
18514         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18515         Move AC_LIBOBJ invocation from here...
18516         * modules/getusershell (configure.ac): ... to here.
18517         (Depends-on): Update condition.
18518
18519 2011-05-08  Bruno Haible  <bruno@clisp.org>
18520
18521         gettimeofday: Move AC_LIBOBJ invocations to module description.
18522         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18523         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18524         gl_PREREQ_GETTIMEOFDAY invocations from here...
18525         * modules/gettimeofday (configure.ac): ... to here.
18526
18527 2011-05-08  Bruno Haible  <bruno@clisp.org>
18528
18529         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18530         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18531         just gl_FUNC_TZSET.
18532         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18533         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18535         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18536
18537 2011-05-08  Bruno Haible  <bruno@clisp.org>
18538
18539         getsubopt: Move AC_LIBOBJ invocations to module description.
18540         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18541         gl_PREREQ_GETSUBOPT invocations from here...
18542         * modules/getsubopt (configure.ac): ... to here.
18543
18544 2011-05-08  Bruno Haible  <bruno@clisp.org>
18545
18546         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18547         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18548         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18549         * modules/getpass-gnu (configure.ac): ... to here.
18550
18551 2011-05-08  Bruno Haible  <bruno@clisp.org>
18552
18553         getpass: Move AC_LIBOBJ invocations to module description.
18554         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18555         gl_PREREQ_GETPASS invocations from here...
18556         * modules/getpass (configure.ac): ... to here.
18557
18558 2011-05-08  Bruno Haible  <bruno@clisp.org>
18559
18560         getpagesize: Move AC_LIBOBJ invocations to module description.
18561         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18562         from here...
18563         * modules/getpagesize (configure.ac): ... to here.
18564
18565 2011-05-08  Bruno Haible  <bruno@clisp.org>
18566
18567         getopt: Move AC_LIBOBJ invocations to module description.
18568         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18569         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18570         invocations from here...
18571         * modules/getopt-gnu (configure.ac): ... to here.
18572         * modules/getopt-posix (configure.ac): ... and here.
18573         (Depends-on): Update condition.
18574
18575 2011-05-08  Bruno Haible  <bruno@clisp.org>
18576
18577         getopt, argp: Respect rules for use of AC_LIBOBJ.
18578         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18579         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18580         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18581         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18582
18583 2011-05-08  Bruno Haible  <bruno@clisp.org>
18584
18585         getlogin_r: Move AC_LIBOBJ invocations to module description.
18586         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18587         gl_PREREQ_GETLOGIN_R invocations from here...
18588         * modules/getlogin_r (configure.ac): ... to here.
18589
18590 2011-05-08  Bruno Haible  <bruno@clisp.org>
18591
18592         getlogin: Move AC_LIBOBJ invocations to module description.
18593         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18594         here...
18595         * modules/getlogin (configure.ac): ... to here.
18596
18597 2011-05-08  Bruno Haible  <bruno@clisp.org>
18598
18599         getloadavg: Move AC_LIBOBJ invocations to module description.
18600         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18601         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18602         * modules/getloadavg (configure.ac): ... to here.
18603
18604 2011-05-08  Bruno Haible  <bruno@clisp.org>
18605
18606         gethrxtime: Move AC_LIBOBJ invocations to module description.
18607         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18608         LIB_GETHRXTIME from here...
18609         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18610         invocations from here...
18611         * modules/gethrxtime (configure.ac): ... to here.
18612
18613 2011-05-08  Bruno Haible  <bruno@clisp.org>
18614
18615         gethostname: Move AC_LIBOBJ invocations to module description.
18616         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18617         gl_PREREQ_GETHOSTNAME invocations from here...
18618         * modules/gethostname (configure.ac): ... to here.
18619
18620 2011-05-08  Bruno Haible  <bruno@clisp.org>
18621
18622         getgroups: Move AC_LIBOBJ invocations to module description.
18623         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18624         here...
18625         * modules/getgroups (configure.ac): ... to here.
18626
18627 2011-05-08  Bruno Haible  <bruno@clisp.org>
18628
18629         getdtablesize: Move AC_LIBOBJ invocations to module description.
18630         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18631         invocation from here...
18632         * modules/getdtablesize (configure.ac): ... to here.
18633
18634 2011-05-08  Bruno Haible  <bruno@clisp.org>
18635
18636         getdomainname: Move AC_LIBOBJ invocations to module description.
18637         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18638         gl_PREREQ_GETDOMAINNAME invocations from here...
18639         * modules/getdomainname (configure.ac): ... to here.
18640
18641 2011-05-08  Bruno Haible  <bruno@clisp.org>
18642
18643         getline: Move AC_LIBOBJ invocations to module description.
18644         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18645         invocations from here...
18646         * modules/getline (configure.ac): ... to here.
18647
18648 2011-05-08  Bruno Haible  <bruno@clisp.org>
18649
18650         getline: Simplify.
18651         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18652         It's already handled through the module dependency.
18653
18654 2011-05-08  Bruno Haible  <bruno@clisp.org>
18655
18656         getdelim: Move AC_LIBOBJ invocations to module description.
18657         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18658         and gl_PREREQ_GETDELIM invocations from here...
18659         * modules/getdelim (configure.ac): ... to here.
18660         (Depends-on): Fix condition.
18661
18662 2011-05-08  Bruno Haible  <bruno@clisp.org>
18663
18664         getcwd: Move AC_LIBOBJ invocations to module description.
18665         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18666         invocations from here...
18667         * modules/getcwd (configure.ac): ... to here.
18668
18669 2011-05-08  Bruno Haible  <bruno@clisp.org>
18670
18671         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18672         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18673         here...
18674         * modules/getcwd-lgpl (configure.ac): ... to here.
18675
18676 2011-05-07  Bruno Haible  <bruno@clisp.org>
18677
18678         crypto/gc: Move AC_LIBOBJ invocations to module description.
18679         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18680         * modules/crypto/gc (configure.ac): ... to here.
18681
18682 2011-05-07  Bruno Haible  <bruno@clisp.org>
18683
18684         fwriting: Move AC_LIBOBJ invocations to module description.
18685         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18686         here...
18687         * modules/fwriting (configure.ac): ... to here.
18688
18689 2011-05-07  Bruno Haible  <bruno@clisp.org>
18690
18691         fwritable: Move AC_LIBOBJ invocations to module description.
18692         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18693         here...
18694         * modules/fwritable (configure.ac): ... to here.
18695
18696 2011-05-07  Bruno Haible  <bruno@clisp.org>
18697
18698         futimens: Move AC_LIBOBJ invocations to module description.
18699         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18700         here...
18701         * modules/futimens (configure.ac): ... to here.
18702
18703 2011-05-07  Bruno Haible  <bruno@clisp.org>
18704
18705         ftruncate: Move AC_LIBOBJ invocations to module description.
18706         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18707         gl_PREREQ_FTRUNCATE invocations from here...
18708         * modules/ftruncate (configure.ac): ... to here.
18709
18710 2011-05-07  Bruno Haible  <bruno@clisp.org>
18711
18712         fsync: Move AC_LIBOBJ invocations to module description.
18713         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18714         invocations from here...
18715         * modules/fsync (configure.ac): ... to here.
18716
18717 2011-05-07  Bruno Haible  <bruno@clisp.org>
18718
18719         fsusage: Move AC_LIBOBJ invocations to module description.
18720         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18721         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18722         * modules/fsusage (configure.ac): ... to here.
18723
18724 2011-05-07  Bruno Haible  <bruno@clisp.org>
18725
18726         freopen: Move AC_LIBOBJ invocations to module description.
18727         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18728         invocations from here...
18729         * modules/freopen (configure.ac): ... to here.
18730
18731 2011-05-07  Bruno Haible  <bruno@clisp.org>
18732
18733         free: Move AC_LIBOBJ invocations to module description.
18734         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18735         invocations from here...
18736         * modules/free (configure.ac): ... to here.
18737
18738 2011-05-07  Bruno Haible  <bruno@clisp.org>
18739
18740         freadable: Move AC_LIBOBJ invocations to module description.
18741         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18742         here...
18743         * modules/freadable (configure.ac): ... to here.
18744
18745 2011-05-07  Bruno Haible  <bruno@clisp.org>
18746
18747         fpurge: Move AC_LIBOBJ invocations to module description.
18748         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18749         invocations from here...
18750         * modules/fpurge (configure.ac): ... to here.
18751
18752 2011-05-07  Bruno Haible  <bruno@clisp.org>
18753
18754         fpending: Move AC_LIBOBJ invocations to module description.
18755         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18756         gl_FUNC_FPENDING.
18757         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18758         invocations from here...
18759         * modules/fpending (configure.ac): ... to here.
18760
18761 2011-05-07  Bruno Haible  <bruno@clisp.org>
18762
18763         fopen: Move AC_LIBOBJ invocations to module description.
18764         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18765         invocations from here...
18766         * modules/fopen (configure.ac): ... to here.
18767
18768 2011-05-07  Bruno Haible  <bruno@clisp.org>
18769
18770         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18771         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18772         gl_FUNC_FNMATCH_POSIX.
18773         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18774         invocations from here...
18775         * modules/fnmatch (configure.ac): ... to here.
18776         * modules/fnmatch-gnu (configure.ac): ... and here.
18777
18778 2011-05-07  Bruno Haible  <bruno@clisp.org>
18779
18780         flock: Move AC_LIBOBJ invocations to module description.
18781         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18782         invocations from here...
18783         * modules/flock (configure.ac): ... to here.
18784
18785 2011-05-07  Bruno Haible  <bruno@clisp.org>
18786
18787         fileblocks: Move AC_LIBOBJ invocations to module description.
18788         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18789         gl_PREREQ_FILEBLOCKS invocations from here...
18790         * modules/fileblocks (configure.ac): ... to here.
18791
18792 2011-05-06  Bruno Haible  <bruno@clisp.org>
18793
18794         fflush: Move AC_LIBOBJ invocations to module description.
18795         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18796         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18797         invocations from here...
18798         * modules/fflush (configure.ac): ... to here.
18799
18800 2011-05-06  Bruno Haible  <bruno@clisp.org>
18801
18802         fdopendir: Move AC_LIBOBJ invocations to module description.
18803         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18804         here...
18805         * modules/fdopendir (configure.ac): ... to here.
18806         (Depends-on): Improve conditions.
18807
18808 2011-05-06  Bruno Haible  <bruno@clisp.org>
18809
18810         _Exit: Move AC_LIBOBJ invocations to module description.
18811         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18812         invocations from here...
18813         * modules/_Exit (configure.ac): ... to here.
18814
18815 2011-05-21  Bruno Haible  <bruno@clisp.org>
18816
18817         euidaccess: Respect rules for use of AC_LIBOBJ.
18818         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18820         from here...
18821         * modules/euidaccess (configure.ac): ... to here.
18822
18823 2011-05-06  Bruno Haible  <bruno@clisp.org>
18824
18825         error: Move AC_LIBOBJ invocations to module description.
18826         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18827         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18828         invocations from here...
18829         * modules/error (configure.ac): ... to here.
18830
18831 2011-05-06  Bruno Haible  <bruno@clisp.org>
18832
18833         duplocale: Move AC_LIBOBJ invocations to module description.
18834         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18835         gl_PREREQ_DUPLOCALE invocations from here...
18836         * modules/duplocale (configure.ac): ... to here.
18837
18838 2011-05-05  Bruno Haible  <bruno@clisp.org>
18839
18840         dirfd: Move AC_LIBOBJ invocations to module description.
18841         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18842         gl_FUNC_DIRFD.
18843         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18844         here...
18845         * modules/dirfd (configure.ac): ... to here.
18846         (Depends-on): Fix condition.
18847
18848 2011-05-05  Bruno Haible  <bruno@clisp.org>
18849
18850         chown: Respect rules for use of AC_LIBOBJ.
18851         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18852         * modules/chown (configure.ac): ... to here.
18853
18854 2011-05-05  Bruno Haible  <bruno@clisp.org>
18855
18856         chdir-long: Move AC_LIBOBJ invocations to module description.
18857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18858         gl_PREREQ_CHDIR_LONG invocations from here...
18859         * modules/chdir-long (configure.ac): ... to here.
18860
18861 2011-05-05  Bruno Haible  <bruno@clisp.org>
18862
18863         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18864         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18865         from here...
18866         * modules/canonicalize-lgpl (configure.ac): ... to here.
18867
18868 2011-05-05  Bruno Haible  <bruno@clisp.org>
18869
18870         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18871         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18872         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18873         REPLACE_CALLOC.
18874         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18875         * modules/calloc-gnu (configure.ac): Likewise.
18876
18877 2011-05-05  Bruno Haible  <bruno@clisp.org>
18878
18879         btowc: Move AC_LIBOBJ invocations to module description.
18880         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18881         invocations from here...
18882         * modules/btowc (configure.ac): ... to here.
18883
18884 2011-05-21  Bruno Haible  <bruno@clisp.org>
18885
18886         atexit: Move AC_LIBOBJ invocations to module description.
18887         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18889         here...
18890         * modules/atexit (configure.ac): ... to here.
18891
18892 2011-05-05  Bruno Haible  <bruno@clisp.org>
18893
18894         atoll: Move AC_LIBOBJ invocations to module description.
18895         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18896         invocations from here...
18897         * modules/atoll (configure.ac): ... to here.
18898
18899 2011-05-05  Bruno Haible  <bruno@clisp.org>
18900
18901         argz: Move AC_LIBOBJ invocations to module description.
18902         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18903         * modules/argz (configure.ac): ... to here.
18904
18905 2011-05-05  Bruno Haible  <bruno@clisp.org>
18906
18907         alphasort: Move AC_LIBOBJ invocations to module description.
18908         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18909         gl_PREREQ_ALPHASORT invocations from here...
18910         * modules/alphasort (configure.ac): ... to here.
18911
18912 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18913
18914         verify: new macro verify_expr; verify_true deprecated
18915         * NEWS: Mention this.
18916         * doc/verify.texi (Compile-time Assertions): Document this.
18917         * lib/verify.h (verify_true): Deprecate.
18918         (verify_expr): New macro.
18919         * tests/test-verify.c (function): Test verify_expr.
18920
18921 2011-06-14  Jim Meyering  <meyering@redhat.com>
18922
18923         init.sh: give more portable redirection-related advice in a comment
18924         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18925         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18926         for lots of discussion.  Stefano Lattarini suggested the solution
18927         of putting "9>&2" after the command.  Reported by Bruno Haible.
18928
18929 2011-06-13  Bruno Haible  <bruno@clisp.org>
18930
18931         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18932         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18933         'none'.
18934
18935 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18936
18937         ftoastr: use strtof only if HAVE_STRTOF
18938         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18940         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18941         * modules/ftoastr (configure.ac): Check for strtof.
18942
18943 2011-06-13  Bruno Haible  <bruno@clisp.org>
18944
18945         gnulib-tool: Addendum to 2011-06-08 commit.
18946         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18947         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18948
18949 2011-06-13  Bruno Haible  <bruno@clisp.org>
18950
18951         fseeko: Provide a non-inline replacement of fseek().
18952         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18953         * modules/fseeko (Depends-on): Add fseek.
18954         * modules/fseek (License): Change to LGPLv2+.
18955
18956 2011-06-13  Bruno Haible  <bruno@clisp.org>
18957
18958         ftello: Provide a non-inline replacement of ftell().
18959         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18960         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18961         not have ftello() (such as on mingw).
18962         * modules/ftello (Depends-on): Add ftell.
18963         * modules/ftell (License): Change to LGPLv2+.
18964
18965 2011-05-07  Bruno Haible  <bruno@clisp.org>
18966
18967         ftell: Move AC_LIBOBJ invocations to module description.
18968         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18969         * modules/ftell (configure.ac): ... to here.
18970
18971 2011-05-07  Bruno Haible  <bruno@clisp.org>
18972
18973         ftello: Respect rules for use of AC_LIBOBJ.
18974         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18975         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18976         here...
18977         * modules/ftello (configure.ac): ... to here.
18978
18979 2011-05-07  Bruno Haible  <bruno@clisp.org>
18980
18981         fseeko: Simplify.
18982         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18983         (gl_FUNC_FSEEKO): Inline it here.
18984
18985 2011-05-07  Bruno Haible  <bruno@clisp.org>
18986
18987         fseek: Move AC_LIBOBJ invocations to module description.
18988         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18989         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18990         * modules/fseek (configure.ac): ... to here.
18991
18992 2011-05-07  Bruno Haible  <bruno@clisp.org>
18993
18994         fseek: Respect rules for use of AC_LIBOBJ.
18995         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18996         here...
18997         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18998
18999 2011-05-07  Bruno Haible  <bruno@clisp.org>
19000
19001         fseeko: Respect rules for use of AC_LIBOBJ.
19002         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19003         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19004         here...
19005         * modules/fseeko (configure.ac): ... to here.
19006
19007 2011-06-13  Bruno Haible  <bruno@clisp.org>
19008
19009         gnulib-tool: Allow comments in the 'Depends-on' section.
19010         * doc/gnulib.texi (Module description): Mention comment syntax in the
19011         Depends-on section.
19012         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19013
19014 2011-06-13  Bruno Haible  <bruno@clisp.org>
19015
19016         file-set.h: guard __attibute__ use, now that it's not always defined
19017         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19018         versions that support it.  This fixes a coreutils build failure with
19019         the vendor cc on HP-UX 11.31.
19020
19021 2011-06-12  Bruno Haible  <bruno@clisp.org>
19022
19023         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19024         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19025         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19026         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19027         (acl, aclsort): New declarations.
19028         (aclv_nontrivial): New declaration.
19029         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19030         (file_has_acl): Read also the second kind of HP-UX ACLs.
19031         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19032         kind of HP-UX ACLs if the first kind fails.
19033         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19034         second kind of HP-UX ACLs.
19035         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19036         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19037         agree.
19038         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19039         hpuxjfs.
19040         Handle hpuxjfs.
19041         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19042         hpuxjfs.
19043         Handle hpuxjfs.
19044         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19045         (func_test_same_acls): Use both lsacl and getacl.
19046         Handle hpuxjfs.
19047         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19048         (func_test_same_acls): Use both lsacl and getacl.
19049         Handle hpuxjfs.
19050
19051 2011-06-12  Bruno Haible  <bruno@clisp.org>
19052
19053         acl: Complete the 2010-08-10 fix.
19054         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19055         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19056         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19057         explicitly.
19058         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19059         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19060
19061 2011-06-12  Bruno Haible  <bruno@clisp.org>
19062
19063         spawn-pipe tests: Comments.
19064         * tests/test-spawn-pipe-child.c (main): Update comment.
19065         Reported by James Youngman <jay@gnu.org>.
19066
19067 2011-06-11  James Youngman  <jay@gnu.org>
19068
19069         New module 'stat-size'.
19070         * modules/stat-size: New module.  Provides macros for accessing
19071         file size information in instances of struct stat.  Depends on the
19072         fileblocks module because it calls st_blocks.
19073         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19074         * doc/gnulib.texi: Include stat-size.texi.
19075         * doc/stat-size.texi: Documentation for this module.
19076         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19077         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19078         AC_STRUCT_ST_BLOCKS.
19079
19080 2011-06-09  Bruno Haible  <bruno@clisp.org>
19081
19082         thread: Support pthreads-win32.
19083         * lib/glthread/thread.h (gl_thread_self): Define differently on
19084         pthreads-win32.
19085         (gl_null_thread): New declaration.
19086         (gl_thread_self_pointer): New macro.
19087         * lib/glthread/thread.c (gl_null_thread): New constant.
19088         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19089         gl_thread_self.
19090         * tests/test-tls.c: Likewise.
19091         Suggested by Paul Eggert. Reported by Eric Blake.
19092
19093 2011-06-09  Bruno Haible  <bruno@clisp.org>
19094
19095         thread: Fix confusion between NULL and 0.
19096         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19097         Reported by Paul Eggert.
19098
19099 2011-06-09  Bruno Haible  <bruno@clisp.org>
19100
19101         spawn-pipe tests: Avoid test failure on HP-UX 11.
19102         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19103         is closed.
19104
19105 2011-06-09  Bruno Haible  <bruno@clisp.org>
19106
19107         acl tests: Fix compilation error on HP-UX 11.
19108         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19109
19110 2011-06-09  Bruno Haible  <bruno@clisp.org>
19111
19112         rmdir: Avoid test failure on HP-UX 10.20.
19113         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19114         EEXIST.
19115
19116 2011-06-08  Eric Blake  <eblake@redhat.com>
19117
19118         perror: fix test on mingw
19119         * modules/perror-tests (Depends-on): Add dup2.
19120
19121         strerror_r-posix: fix on MacOS
19122         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19123         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19124         logic bug.
19125         * lib/strerror_r.c (strerror_r): Fix the bug.
19126         * lib/strerror.c (strerror): Likewise.
19127         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19128         problem.
19129         * doc/posix-functions/strerror.texi (strerror): Likewise.
19130         * doc/posix-functions/perror.texi (perror): Likewise.
19131         * tests/test-strerror.c (main): Enhance test.
19132         * tests/test-strerror_r.c (main): Likewise.
19133
19134 2011-06-08  Bruno Haible  <bruno@clisp.org>
19135
19136         gnulib-tool: Better isolation between different gnulib-tool invocations.
19137         * gnulib-tool: New option --witness-c-macro.
19138         (witness_c_macro): New variable.
19139         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19140         AM_CPPFLAGS define it as a C macro.
19141         (func_emit_tests_Makefile_am): Likewise.
19142         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19143         read it from there.
19144         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19145         m4_define, not AC_DEFUN.
19146         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19147         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19148         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19149         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19150         s|...|...|, to substitute the values of the GNULIB_* module indicator
19151         variables.
19152         * modules/dirent (Makefile.am): Likewise.
19153         * modules/fcntl-h (Makefile.am): Likewise.
19154         * modules/iconv-h (Makefile.am): Likewise.
19155         * modules/langinfo (Makefile.am): Likewise.
19156         * modules/locale (Makefile.am): Likewise.
19157         * modules/math (Makefile.am): Likewise.
19158         * modules/netdb (Makefile.am): Likewise.
19159         * modules/poll-h (Makefile.am): Likewise.
19160         * modules/pty (Makefile.am): Likewise.
19161         * modules/search (Makefile.am): Likewise.
19162         * modules/signal (Makefile.am): Likewise.
19163         * modules/spawn (Makefile.am): Likewise.
19164         * modules/stdio (Makefile.am): Likewise.
19165         * modules/stdlib (Makefile.am): Likewise.
19166         * modules/string (Makefile.am): Likewise.
19167         * modules/sys_ioctl (Makefile.am): Likewise.
19168         * modules/sys_select (Makefile.am): Likewise.
19169         * modules/sys_socket (Makefile.am): Likewise.
19170         * modules/sys_stat (Makefile.am): Likewise.
19171         * modules/sys_times (Makefile.am): Likewise.
19172         * modules/sys_utsname (Makefile.am): Likewise.
19173         * modules/sys_wait (Makefile.am): Likewise.
19174         * modules/termios (Makefile.am): Likewise.
19175         * modules/time (Makefile.am): Likewise.
19176         * modules/unistd (Makefile.am): Likewise.
19177         * modules/wchar (Makefile.am): Likewise.
19178
19179 2011-06-08  Eric Blake  <eblake@redhat.com>
19180
19181         strerror: simplify replacement
19182         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19183         * modules/strerror (configure.ac): No prereqs needed here...
19184         * modules/strerror-override (configure.ac): ...but this needs it.
19185         (Files): Add file for needed prereq macro.
19186
19187 2011-06-08  Bruno Haible  <bruno@clisp.org>
19188
19189         strerror_r-posix: Tweaks.
19190         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19191         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19192         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19193         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19194         (gl_FUNC_STRERROR_R): ... to here.
19195         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19196
19197 2011-06-07  Eric Blake  <eblake@redhat.com>
19198
19199         perror: document fixed bugs
19200         * doc/posix-functions/perror.texi (perror): Document recent
19201         patches.
19202
19203 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19204
19205         stat-time: get_stat_birthtime failure is better-defined
19206         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19207         return a timestamp whose tv_sec and tv_nsec values are both -1.
19208         Previously, the spec said only that the tv_nsec value was negative.
19209         This upward-compatible change simplifies GNU tar a bit.
19210
19211 2011-06-07  Eric Blake  <eblake@redhat.com>
19212
19213         strerror_r-posix: work around cygwin 1.7.9
19214         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19215         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19216         bug without replacing strerror_r.
19217         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19218         strerror_r is buggy, but without requiring strerror_r compilation.
19219         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19220
19221         test-perror: relax test to ignore cygwin bug
19222         * tests/test-perror2.c (main): Relax test on requiring detection
19223         of stream errors, and use unbuffered stream.
19224         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19225         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19226         * doc/posix-functions/fputc.texi (fputc): Likewise.
19227         * doc/posix-functions/fputs.texi (fputs): Likewise.
19228         * doc/posix-functions/fputws.texi (fputws): Likewise.
19229         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19230         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19231         * doc/posix-functions/getopt.texi (getopt): Likewise.
19232         * doc/posix-functions/perror.texi (perror): Likewise.
19233         * doc/posix-functions/printf.texi (printf): Likewise.
19234         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19235         * doc/posix-functions/psignal.texi (psignal): Likewise.
19236         * doc/posix-functions/putc.texi (putc): Likewise.
19237         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19238         Likewise.
19239         * doc/posix-functions/putchar.texi (putchar): Likewise.
19240         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19241         Likewise.
19242         * doc/posix-functions/puts.texi (puts): Likewise.
19243         * doc/posix-functions/putwc.texi (putwc): Likewise.
19244         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19245         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19246         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19247         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19248         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19249         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19250         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19251         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19252
19253 2011-05-22  Bruno Haible  <bruno@clisp.org>
19254
19255         strerror: Move AC_LIBOBJ invocations to module description.
19256         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19257         gl_PREREQ_STRERROR invocations from here...
19258         * modules/strerror (configure.ac): ... to here.
19259
19260 2011-05-21  Bruno Haible  <bruno@clisp.org>
19261
19262         perror: Use common idiom.
19263         * modules/perror (configure.ac): Reorder statements.
19264
19265 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19266
19267         tests: fix usage message in 'mktempd_'
19268         * tests/init.sh (mktempd_): In the usage message, use literal
19269         'mktempd_', not '$ME' (which is even undefined), as the name of
19270         the subroutine.
19271
19272 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19273
19274         tests init: new function 'fatal_', for hard errors
19275         Before this patch, the only way offered by tests/init.sh to
19276         properly signal a hard error was the `framework_failure_'
19277         function.  But the error message issued by that function,
19278         as its name would suggest, refers to a set-up failure in the
19279         testsuite, while hard errors can obviously also be due to
19280         other reasons.  The best way to fix this inconsistency is to
19281         introduce a new function with a more general error message.
19282         * tests/init.sh (fatal_): New function.
19283
19284 2011-06-06  Eric Blake  <eblake@redhat.com>
19285
19286         canonicalize-lgpl: use common idiom
19287         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19288         over newer POSIX -Rf.
19289         Reported by Bruno Haible.
19290
19291         canonicalize-lgpl: work around AIX realpath bug
19292         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19293         * doc/posix-functions/realpath.texi (realpath): Document it.
19294         Reported by Bruno Haible.
19295
19296         strerror: work around FreeBSD bug
19297         * lib/strerror.c (strerror): Special case 0.
19298         Reported by Bruno Haible.
19299
19300         strerror-override: avoid bloating errno module
19301         * modules/errno (Files, configure.ac): Move replacement strings...
19302         * modules/strerror-override: ...to new module.
19303         * modules/strerror (Depends-on): Add strerror-override.
19304         * modules/strerror_r-posix (Depends-on): Likewise.
19305         * MODULES.html.sh: Document new module.
19306         Reported by Bruno Haible.
19307
19308 2011-06-06  Bruno Haible  <bruno@clisp.org>
19309
19310         spawn-pipe tests: Rename program.
19311         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19312         * tests/test-spawn-pipe-child.c: Update comment.
19313         * tests/test-spawn-pipe.sh: Update.
19314         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19315
19316         spawn-pipe tests: Link the child program only against libc.
19317         * tests/test-spawn-pipe-child.c: New file, extracted from
19318         tests/test-spawn-pipe.c.
19319         (main): Expect only one argument.
19320         (is_open): New function, copied from tests/test-pipe.c.
19321         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19322         (child_main): Remove function.
19323         (test_pipe): Pass only one argument to the child program.
19324         (main): Remove child process code. Expect the child program's name as
19325         first argument.
19326         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19327         argument.
19328         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19329         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19330         test-spawn-pipe-child against no libraries.
19331
19332 2011-06-06  Bruno Haible  <bruno@clisp.org>
19333
19334         careadlinkat: Avoid mismatch between ssize_t and int.
19335         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19336         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19337
19338 2011-06-06  Jim Meyering  <meyering@redhat.com>
19339
19340         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19341         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19342         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19343
19344 2011-06-05  Bruno Haible  <bruno@clisp.org>
19345
19346         ansi-c++-opt: Interoperability with libtool.
19347         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19348         set the variable to "no", not to ":".
19349         * NEWS: Mention the change.
19350
19351 2011-06-05  Bruno Haible  <bruno@clisp.org>
19352
19353         acl: Fix test failure on AIX 7.
19354         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19355         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19356
19357 2011-06-05  Bruno Haible  <bruno@clisp.org>
19358
19359         pipe-filter-ii: Fix test failure on AIX and IRIX.
19360         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19361         with EAGAIN, retry with a smaller buffer size.
19362
19363 2011-06-05  Bruno Haible  <bruno@clisp.org>
19364
19365         localename: Fix link dependencies.
19366         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19367         * modules/localename-tests (Makefile.am): Link test-localename with
19368         $(LIBTHREAD).
19369
19370 2011-06-05  Bruno Haible  <bruno@clisp.org>
19371
19372         error: Avoid gcc warning.
19373         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19374
19375 2011-06-05  Bruno Haible  <bruno@clisp.org>
19376
19377         unsetenv: Avoid gcc warning.
19378         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19379
19380 2011-06-05  Bruno Haible  <bruno@clisp.org>
19381
19382         setenv: Avoid gcc warning.
19383         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19384
19385 2011-06-05  Bruno Haible  <bruno@clisp.org>
19386
19387         sys_select: Ensure memset is declared also on AIX 7.
19388         * lib/sys_select.in.h: Include <string.h> also on AIX.
19389         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19390         self-contained also on AIX 7.1.
19391
19392 2011-06-04  Jim Meyering  <meyering@redhat.com>
19393
19394         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19395         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19396         function name, "error".
19397         (_gl_translatable_diag_func_re): New configurable variable.
19398
19399 2011-06-04  Bruno Haible  <bruno@clisp.org>
19400
19401         getopt: Avoid gcc warning.
19402         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19403
19404 2011-06-04  Bruno Haible  <bruno@clisp.org>
19405
19406         strerror_r: Fix comments.
19407         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19408         commit.
19409
19410 2011-06-04  Bruno Haible  <bruno@clisp.org>
19411
19412         perror: Fix compilation error.
19413         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19414         Undefine fprintf, not sprintf.
19415         * modules/perror (Depends-on): Remove intprops, verify.
19416
19417 2011-06-04  Bruno Haible  <bruno@clisp.org>
19418
19419         setlocale: Enable replacement on Cygwin 1.5.
19420         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19421         Cygwin 1.5.x.
19422         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19423         LC_CTYPE category also exists on Cygwin 1.5.x.
19424
19425 2011-06-04  Bruno Haible  <bruno@clisp.org>
19426
19427         strerror-override: Don't disable symbol renamings.
19428         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19429         * lib/strerror-override.c: Include config.h.
19430         (strerror_override): Don't undefine.
19431
19432 2011-06-03  Bruno Haible  <bruno@clisp.org>
19433
19434         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19435         * lib/localename.h: Update copyright header.
19436         * lib/localename.c: Likewise.
19437         * lib/relocatable.h: Likewise.
19438         * lib/relocatable.c: Likewise.
19439
19440 2011-06-02  Bruno Haible  <bruno@clisp.org>
19441
19442         doc: Fix a module name.
19443         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19444
19445 2011-06-02  Bruno Haible  <bruno@clisp.org>
19446
19447         pipe2: Remove dependency on 'nonblocking' module.
19448         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19449         O_NONBLOCK is defined by gnulib.
19450         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19451         is zero.
19452         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19453         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19454         defined by gnulib.
19455         (get_nonblocking_flag): New function.
19456         (main): Test O_NONBLOCK flag only if it is nonzero.
19457         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19458
19459 2011-06-03  Jim Meyering  <meyering@redhat.com>
19460
19461         maint: three new prohibit-header-without-use rules
19462         Prohibit use of cloexec.h, posixver.h, same.h without use.
19463         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19464         (sc_prohibit_posixver_without_use): Likewise.
19465         (sc_prohibit_same_without_use): Likewise.
19466
19467 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19468
19469         allocator: 'die' routine is now given requested size
19470         * lib/allocator.h (struct allocator.die): New size arg.
19471         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19472         If the actual problem is an ssize_t limitation, not a size_t or
19473         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19474
19475 2011-06-01  Eric Blake  <eblake@redhat.com>
19476
19477         strerror: drop strerror_r dependency
19478         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19479         * lib/strerror-override.c (strerror_override): ...to new file.
19480         * lib/strerror-override.h: Add prototype.
19481         * lib/strerror-impl.h: Delete.
19482         * lib/strerror.c (strerror): New implementation.
19483         * modules/errno (Files): Add new files.
19484         (configure.ac): Compile new file as appropriate.
19485         * modules/strerror (Files): Drop unused file.
19486         (Depends-on): Drop strerror_r-posix.
19487         * MODULES.html.sh: Document strerror_r-posix.
19488         Requested by Sam Steingold.
19489
19490         perror: call strerror_r directly
19491         * modules/perror (Files): Drop strerror-impl.h.
19492         * lib/perror.c (perror): Use our own stack buffer, rather than
19493         calling a wrapper that uses static storage.
19494         * doc/posix-functions/perror.texi (perror): Document a limitation
19495         of our replacement.
19496
19497         strerror_r: fix includes for FreeBSD
19498         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19499         since we use abort on some platforms.
19500         Reported by Matthias Bolte.
19501
19502 2011-05-31  Bruno Haible  <bruno@clisp.org>
19503
19504         Fix link errors in tests: openat-die uses gettext-h.
19505         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19506         against $(LIBINTL).
19507         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19508         against $(LIBINTL).
19509         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19510         $(LIBINTL).
19511         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19512         against $(LIBINTL).
19513         * modules/linkat-tests (Makefile.am): Link test-linkat against
19514         $(LIBINTL).
19515         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19516         $(LIBINTL).
19517         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19518         against $(LIBINTL).
19519         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19520         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19521         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19522         $(LIBINTL).
19523         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19524         $(LIBINTL).
19525         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19526         $(LIBINTL).
19527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19528
19529 2011-05-31  Bruno Haible  <bruno@clisp.org>
19530
19531         Fix link errors in tests: wait-process uses gettext-h.
19532         * modules/nonblocking-pipe-tests (Makefile.am): Set
19533         test_nonblocking_pipe_main_LDADD.
19534         * modules/nonblocking-socket-tests (Makefile.am): Link
19535         test-nonblocking-socket-main against $(LIBINTL).
19536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19537
19538 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19539
19540         assert-h: work around 'verify' incompatibility
19541         * lib/verify.h: Use @...@ directives, not ifdef.
19542         * modules/assert-h (assert.h): Implement the directives.
19543         (assert.h): Substitute the symbol-prefix more consistently.
19544
19545 2011-05-29  Jim Meyering  <meyering@redhat.com>
19546
19547         trim: remove three superfluous assignments
19548         * lib/trim.c (trim2): Remove three superfluous assignments
19549         and correct brace positioning.
19550
19551 2011-05-29  Bruno Haible  <bruno@clisp.org>
19552
19553         wctype-h: Avoid namespace pollution on Solaris 2.6.
19554         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19555         identifiers.
19556         * doc/posix-headers/wctype.texi: Mention the problem.
19557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19558
19559 2011-05-28  Jim Meyering  <meyering@redhat.com>
19560
19561         parse-datetime.y: accommodate -Wstrict-overflow
19562         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19563         placate -Wstrict-overflow.
19564
19565         trim: avoid a warning from -O2 -Wstrict-overflow
19566         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19567
19568 2011-05-29  Bruno Haible  <bruno@clisp.org>
19569
19570         gnulib-tool: Fix bug in yesterday's commit.
19571         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19572         twice.
19573
19574 2011-05-29  Bruno Haible  <bruno@clisp.org>
19575
19576         Allow multiple gnulib generated include files to be combined.
19577         * gnulib-tool (func_compute_include_guard_prefix): New function.
19578         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19579         ${gl_include_guard_prefix} references.
19580         (func_import, func_create_testdir): Invoke
19581         func_compute_include_guard_prefix.
19582         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19583         * lib/ctype.in.h: Likewise.
19584         * lib/dirent.in.h: Likewise.
19585         * lib/errno.in.h: Likewise.
19586         * lib/fcntl.in.h: Likewise.
19587         * lib/float.in.h: Likewise.
19588         * lib/getopt.in.h: Likewise.
19589         * lib/iconv.in.h: Likewise.
19590         * lib/langinfo.in.h: Likewise.
19591         * lib/locale.in.h: Likewise.
19592         * lib/math.in.h: Likewise.
19593         * lib/netdb.in.h: Likewise.
19594         * lib/netinet_in.in.h: Likewise.
19595         * lib/poll.in.h: Likewise.
19596         * lib/pthread.in.h: Likewise.
19597         * lib/pty.in.h: Likewise.
19598         * lib/sched.in.h: Likewise.
19599         * lib/se-selinux.in.h: Likewise.
19600         * lib/search.in.h: Likewise.
19601         * lib/signal.in.h: Likewise.
19602         * lib/spawn.in.h: Likewise.
19603         * lib/stdarg.in.h: Likewise.
19604         * lib/stddef.in.h: Likewise.
19605         * lib/stdint.in.h: Likewise.
19606         * lib/stdio.in.h: Likewise.
19607         * lib/stdlib.in.h: Likewise.
19608         * lib/string.in.h: Likewise.
19609         * lib/strings.in.h: Likewise.
19610         * lib/sys_file.in.h: Likewise.
19611         * lib/sys_ioctl.in.h: Likewise.
19612         * lib/sys_select.in.h: Likewise.
19613         * lib/sys_socket.in.h: Likewise.
19614         * lib/sys_stat.in.h: Likewise.
19615         * lib/sys_time.in.h: Likewise.
19616         * lib/sys_times.in.h: Likewise.
19617         * lib/sys_uio.in.h: Likewise.
19618         * lib/sys_utsname.in.h: Likewise.
19619         * lib/sys_wait.in.h: Likewise.
19620         * lib/sysexits.in.h: Likewise.
19621         * lib/termios.in.h: Likewise.
19622         * lib/time.in.h: Likewise.
19623         * lib/unistd.in.h: Likewise.
19624         * lib/wchar.in.h: Likewise.
19625         * lib/wctype.in.h: Likewise.
19626         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19627         * modules/ctype (Makefile.am): Likewise.
19628         * modules/dirent (Makefile.am): Likewise.
19629         * modules/errno (Makefile.am): Likewise.
19630         * modules/fcntl-h (Makefile.am): Likewise.
19631         * modules/float (Makefile.am): Likewise.
19632         * modules/getopt-posix (Makefile.am): Likewise.
19633         * modules/iconv-h (Makefile.am): Likewise.
19634         * modules/langinfo (Makefile.am): Likewise.
19635         * modules/locale (Makefile.am): Likewise.
19636         * modules/math (Makefile.am): Likewise.
19637         * modules/netdb (Makefile.am): Likewise.
19638         * modules/netinet_in (Makefile.am): Likewise.
19639         * modules/poll-h (Makefile.am): Likewise.
19640         * modules/pthread (Makefile.am): Likewise.
19641         * modules/pty (Makefile.am): Likewise.
19642         * modules/sched (Makefile.am): Likewise.
19643         * modules/search (Makefile.am): Likewise.
19644         * modules/selinux-h (Makefile.am): Likewise.
19645         * modules/signal (Makefile.am): Likewise.
19646         * modules/spawn (Makefile.am): Likewise.
19647         * modules/stdarg (Makefile.am): Likewise.
19648         * modules/stddef (Makefile.am): Likewise.
19649         * modules/stdint (Makefile.am): Likewise.
19650         * modules/stdio (Makefile.am): Likewise.
19651         * modules/stdlib (Makefile.am): Likewise.
19652         * modules/string (Makefile.am): Likewise.
19653         * modules/strings (Makefile.am): Likewise.
19654         * modules/sys_file (Makefile.am): Likewise.
19655         * modules/sys_ioctl (Makefile.am): Likewise.
19656         * modules/sys_select (Makefile.am): Likewise.
19657         * modules/sys_socket (Makefile.am): Likewise.
19658         * modules/sys_stat (Makefile.am): Likewise.
19659         * modules/sys_time (Makefile.am): Likewise.
19660         * modules/sys_times (Makefile.am): Likewise.
19661         * modules/sys_uio (Makefile.am): Likewise.
19662         * modules/sys_utsname (Makefile.am): Likewise.
19663         * modules/sys_wait (Makefile.am): Likewise.
19664         * modules/sysexits (Makefile.am): Likewise.
19665         * modules/termios (Makefile.am): Likewise.
19666         * modules/time (Makefile.am): Likewise.
19667         * modules/unistd (Makefile.am): Likewise.
19668         * modules/wchar (Makefile.am): Likewise.
19669         * modules/wctype-h (Makefile.am): Likewise.
19670         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19671
19672 2011-05-29  Bruno Haible  <bruno@clisp.org>
19673
19674         assert-h: Allow multiple gnulib generated replacements to coexist.
19675         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19676
19677 2011-05-29  Bruno Haible  <bruno@clisp.org>
19678
19679         argp: Allow coexistence with strerror_r-posix module.
19680         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19681         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19682         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19683         not the glibc signature.
19684
19685 2011-05-28  Bruno Haible  <bruno@clisp.org>
19686
19687         gnulib-tool: Alternative structure of testdirs, similar to --import.
19688         * gnulib-tool: New option --single-configure.
19689         (func_usage): Document it.
19690         (single_configure): New variable.
19691         (func_modules_transitive_closure_separately,
19692         func_modules_transitive_closure_separately,
19693         func_determine_use_libtests, func_modules_add_dummy_separately,
19694         func_modules_to_filelist_separately): New functions, extracted from
19695         func_import.
19696         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19697         (func_import): Use the new functions.
19698         (func_create_testdir): Set final_modules. Handle $single_configure =
19699         true case.
19700
19701 2011-05-28  Bruno Haible  <bruno@clisp.org>
19702
19703         getloadavg: Remove an unreliable safety check.
19704         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19705         getloadavg.c is in place.
19706         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19707         Reported by Sam Steingold <sds@gnu.org>.
19708
19709 2011-05-28  Bruno Haible  <bruno@clisp.org>
19710
19711         doc: Cleanup yet another file produced by texinfo.tex.
19712         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19713
19714 2011-05-28  Bruno Haible  <bruno@clisp.org>
19715
19716         Finish the conditional dependencies mechanism.
19717         * gnulib-tool: New option --no-conditional-dependencies.
19718         (func_usage): Document it. Don't mark --conditional-dependencies as
19719         experimental.
19720         (cond_dependencies): The possible values can now be true, false, empty.
19721         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19722         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19723         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19724
19725 2011-05-28  Bruno Haible  <bruno@clisp.org>
19726
19727         doc: Use a recent texinfo.tex.
19728         * doc/Makefile (tex_opts): New variable.
19729         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19730
19731 2011-05-28  Jim Meyering  <meyering@redhat.com>
19732
19733         intprops.h: adjust comment to match code change
19734         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19735         only once, it *may* have side effects.  Also fix an unrelated typo.
19736         (_GL_INT_SIGNED): Likewise.
19737
19738 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19739
19740         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19741
19742 2011-05-26  Bruno Haible  <bruno@clisp.org>
19743
19744         mbsrchr: Avoid collision with system function on Interix.
19745         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19746         Reported by Markus Duft <mduft@gentoo.org>.
19747
19748 2011-05-15  James Youngman  <jay@gnu.org>
19749
19750         getopt: for ambiguous options, enumerate the possibilities.
19751         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19752         the ambiguous options when an ambiguous prefix is given. This was
19753         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19754         glibc change was
19755         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19756
19757 2011-05-25  Eric Blake  <eblake@redhat.com>
19758
19759         getcwd: work around mingw bug
19760         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19761         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19762         Reported by Matthias Bolte.
19763
19764 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19765
19766         test-intprops: disable -Wtype-limits diagnostics
19767         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19768         diagnostics.  Otherwise, the integer overflow macros generate many
19769         diagnostics.  Reported by Jim Meyering in
19770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19771
19772         intprops: shorten, to pacify gcc -Woverlength-strings
19773         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19774         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19775         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19776         likely to run afoul of C compiler limits for string constant lengths.
19777         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19778
19779 2011-05-24  Eric Blake  <eblake@redhat.com>
19780
19781         docs: document recently fixed glibc printf bug
19782         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19783         * doc/posix-functions/printf.texi (printf): Likewise.
19784         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19785         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19786
19787         closein-tests: convert to init.sh
19788         * modules/closein-tests (Files): Add init.sh
19789         * tests/test-closein.sh Use it.
19790
19791         yesno-tests: convert to init.sh
19792         * modules/yesno-tests (Files): Add init.sh.
19793         * tests/test-yesno.sh: Use it.
19794
19795         atexit-tests: ensure reliable exit status
19796         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19797         Reported by Bruno Haible.
19798
19799 2011-05-24  Bruno Haible  <bruno@clisp.org>
19800
19801         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19802         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19803         gl_PREREQ_STRERROR_R invocations from here...
19804         * modules/strerror_r-posix (configure.ac): ... to here.
19805
19806 2011-05-24  Eric Blake  <eblake@redhat.com>
19807
19808         strerror_r: fix missing header
19809         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19810
19811         strerror_r: fix AIX test failures
19812         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19813         ERANGE failure.
19814
19815         strerror_r: fix Solaris test failures
19816         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19817         failures.
19818         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19819
19820         strerror_r: enforce POSIX recommendations
19821         * lib/strerror_r.c (safe_copy): New helper method.
19822         (strerror_r): Guarantee a non-empty string.
19823         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19824         recent POSIX rulings and to match our strerror guarantees.
19825         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19826
19827 2011-05-24  Jim Meyering  <meyering@redhat.com>
19828
19829         test-perror2.c: avoid warning about unused variable
19830         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19831
19832 2011-05-24  Eric Blake  <eblake@redhat.com>
19833
19834         perror: avoid spurious test failure on HP-UX
19835         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19836
19837         tests: fix logic bug in init.sh
19838         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19839         shell.
19840
19841 2011-05-24  Jim Meyering  <meyering@redhat.com>
19842
19843         utimensat: do not reference an out-of-scope buffer
19844         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19845         declared in an inner scope, yet "times" would be dereferenced outside
19846         the scope in which "ts" was valid.
19847         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19848         of ts[2] "out/up", so that the use of aliased "times" (via
19849         "times = ts;") does not end up referencing an out-of-scope "ts"
19850
19851         opendir-safer.c: don't clobber errno; don't close negative FD
19852         * lib/opendir-safer.c (opendir_safer):
19853         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19854         file descriptor, and more importantly, don't clobber the
19855         offending errno value with EINVAL.  Before, upon failure
19856         of dup_safer, we would pass the negative file descriptor to
19857         fdopendir, which would clobber errno.
19858
19859 2011-05-23  Bruno Haible  <bruno@clisp.org>
19860
19861         idcache: Fix module description.
19862         * modules/idcache (Include): Set to "idcache.h".
19863
19864 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19865
19866         gnulib-tool: fix portability problem with MacOS sed
19867         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19868         before the "}".  Problem reported by Leo in
19869         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19870         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19871         sed_extract_condition1, sed_extract_condition2.
19872
19873 2011-05-23  Bruno Haible  <bruno@clisp.org>
19874
19875         hash: Simplify autoconf macro.
19876         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19877
19878 2011-05-23  Bruno Haible  <bruno@clisp.org>
19879
19880         getugroups: Fix module description.
19881         * modules/getugroups (Include): Set to "getugroups.h".
19882
19883 2011-05-23  Bruno Haible  <bruno@clisp.org>
19884
19885         linkat: Simplify autoconf macro.
19886         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19887
19888 2011-05-23  Bruno Haible  <bruno@clisp.org>
19889             Eric Blake  <eblake@redhat.com>
19890
19891         linkat, renameat: Update dependencies.
19892         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19893         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19894         symlinkat.
19895
19896 2011-05-23  Jim Meyering  <meyering@redhat.com>
19897
19898         maint.mk: more tight_scope improvements
19899         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19900         (_gl_TS_headers): Define only in if-0'd block.
19901         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19902         sometimes we must *not* use it.  Adjust uses accordingly.
19903         (sc_tight_scope): Use much simpler grep-based test to determine
19904         whether we skip this rule.
19905
19906         maint.mk: generalize/improve the tight-scope rule
19907         * top/maint.mk: Emit a warning when the test is skipped.
19908         (_gl_TS_dir): Add $(srcdir)/ prefix.
19909         (_gl_TS_function_match): Simplify, rather than trying
19910         to enumerate common types.  Otherwise, it would fail to match an
19911         "extern unsigned char const *" declaration in idutils.
19912         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19913         a way to support use of that type of macro.
19914         (_gl_TS_var_match): Simplify regexp.
19915         (_gl_TS_obj_files): New configurable variable.
19916         (_gl_TS_headers): Likewise.
19917
19918 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19919
19920         verify: fix bug when gnulib <assert.h> is also included
19921         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19922         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19923         Perhaps there's a better way, but this fixes the immediate problem.
19924         Problem reported by Bruno Haible in
19925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19926
19927 2011-05-22  Bruno Haible  <bruno@clisp.org>
19928
19929         xgetcwd: Simplify autoconf macro.
19930         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19931
19932 2011-05-22  Bruno Haible  <bruno@clisp.org>
19933
19934         New module 'mktime-internal'.
19935         * modules/mktime-internal: New file.
19936         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19937         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19938         mktime_internal as a C macro if libc has __mktime_internal.
19939         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19940         conditions.
19941         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19942
19943 2011-05-22  Bruno Haible  <bruno@clisp.org>
19944
19945         timegm: Correct mktime replacement statements.
19946         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19947         defining mktime as a C macro. This completes a 2009-07-28 commit.
19948
19949 2011-05-22  Bruno Haible  <bruno@clisp.org>
19950
19951         timegm: Simplify autoconf macro.
19952         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19953
19954 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19955
19956         clock-time: change to LGPLv2+.
19957         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19958         BSD-like but we have no mark for that; this is good enough for now.
19959
19960 2011-05-21  Bruno Haible  <bruno@clisp.org>
19961
19962         strerror_r: Fix comments.
19963         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19964
19965 2011-05-21  Bruno Haible  <bruno@clisp.org>
19966
19967         relocatable-prog-wrapper: Fix possible link error.
19968         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19969         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19970         (gl_FUNC_SETENV): ... to here.
19971         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19972         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19973
19974 2011-05-21  Bruno Haible  <bruno@clisp.org>
19975
19976         relocatable-prog-wrapper: Assume strerror() exists.
19977         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19978         m4/strerror.m4.
19979         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19980         * lib/relocwrapper.c: Remove mention of strerror module.
19981         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19982         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19983         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19984         C macro.
19985
19986 2011-05-21  Bruno Haible  <bruno@clisp.org>
19987
19988         select: Simplify replacement idiom.
19989         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19990         Win32 platforms.
19991         * lib/sys_select.in.h (select): Simplify accordingly.
19992         * modules/select (Depends-on): Likewise.
19993
19994 2011-05-21  Bruno Haible  <bruno@clisp.org>
19995
19996         mkdir-p: Simplify autoconf macro.
19997         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19998         gl_FUNC_LCHOWN.
19999
20000 2011-05-21  Eric Blake  <eblake@redhat.com>
20001
20002         strerror_r: avoid clobbering strerror on cygwin
20003         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20004         fall back instead to sys_errlist.
20005         * modules/strerror (configure.ac): Add witness.
20006         * tests/test-strerror_r.c (main): Enhance test.
20007         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20008         * tests/test-perror2.c (main): Free memory before exit.
20009
20010 2011-05-21  Bruno Haible  <bruno@clisp.org>
20011
20012         mkdtemp: Use gnulib naming conventions.
20013         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20014         * modules/mkdtemp (configure.ac): Update.
20015
20016 2011-05-20  Eric Blake  <eblake@redhat.com>
20017
20018         strerror_r: avoid corrupting errno on Solaris
20019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20020         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20021
20022         strerror_r: avoid compiler warning
20023         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20024
20025         strerror_r: simplify AIX code
20026         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20027
20028         test-perror: avoid spurious failure on FreeBSD
20029         * modules/perror-tests (Depends-on): Add strerror, now that
20030         strerror_r no longer pulls it in.
20031
20032 2011-05-20  Bruno Haible  <bruno@clisp.org>
20033
20034         strerror_r-posix: Remove unused dependencies.
20035         * modules/strerror_r-posix (Depends-on): Remove strerror.
20036         Reported by Eric Blake.
20037
20038 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20039
20040         intprops: remove assumption about A|B representation
20041         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20042         is a valid integer if both A and B are.  Although this is true for
20043         all known practical hosts, the C standard doesn't guarantee it,
20044         and the code need not assume it.  Also, this change may work around
20045         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20047
20048 2011-05-20  Eric Blake  <eblake@redhat.com>
20049
20050         perror: work around FreeBSD bug
20051         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20052         is broken.  Move AC_LIBOBJ...
20053         * modules/perror (configure.ac): Here.
20054         * doc/posix-functions/perror.texi (perror): Document this.
20055         * tests/test-perror2.c (main): Enhance test.
20056
20057         test-perror: check for strerror interactions
20058         * tests/macros.h (STREQ): Add macro.
20059         * modules/perror-tests (Files): Add second test.
20060         * tests/test-perror2.c (main): New file.
20061         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20062
20063         test-perror: rewrite to use init script
20064         * modules/perror-tests (Files): Add init.sh.
20065         * tests/test-perror.sh: Use temporary directory.
20066
20067 2011-05-20  Jim Meyering  <meyering@redhat.com>
20068
20069         maint: replace misused "a" with "an"
20070         * doc/intprops.texi: "a integer"
20071         * doc/regex.texi: "a explanation"
20072         * lib/alignof.h: "a object"
20073         * lib/argmatch.h: "a explanation"
20074         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20075         * lib/stdint.in.h: "a integer"
20076         * lib/userspec.c: "a owner"
20077         * doc/gnulib.texi: Fix "a idea", and reword.
20078
20079 2011-05-19  Jim Meyering  <meyering@redhat.com>
20080
20081         maint: correct misuse of "a" and "an"
20082         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20083         * lib/argp-help.c: "an docum...": s/an/a/
20084         * lib/argp-parse.c: "An vector": s/An/A/
20085         * lib/execute.c: "an native": s/an/a/
20086         * lib/spawn-pipe.c: Likewise.
20087         * lib/gc.h: "an Gc_rc": s/an/a/
20088         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20089         * lib/fts.c: "an stat.st_dev": s/an/a/
20090
20091 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20092
20093         intprops-tests: work around HP-UX 11.23 cc bug with constants
20094         * tests/test-intprops.c (VERIFY): New macro.
20095         (main): Use it, instead of verify, to work around the compiler bug; see
20096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20097
20098         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20099         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20100         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20101         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20102         (_GL_REMAINDER_OVERFLOW): Use it.
20103
20104         intprops-tests: revert unsigned part of previous change
20105         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20106         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20107         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20109
20110 2011-05-19  Bruno Haible  <bruno@clisp.org>
20111
20112         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20113         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20114         strerror_r() returned without filling the buffer.
20115         Reported by Eric Blake.
20116
20117 2011-05-19  Eric Blake  <eblake@redhat.com>
20118
20119         strerror_r: guarantee unchanged errno
20120         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20121         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20122         failure.
20123         * tests/test-strerror_r.c (main): Enhance test.
20124
20125 2011-05-19  Bruno Haible  <bruno@clisp.org>
20126
20127         strerror_r: Reorder #if blocks.
20128         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20129         for consistency with the previous commit.
20130
20131 2011-05-19  Bruno Haible  <bruno@clisp.org>
20132
20133         perror: Avoid clobbering the strerror buffer when possible.
20134         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20135         * lib/strerror.c: Include it.
20136         * modules/strerror (Files): Add lib/strerror-impl.h.
20137         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20138         (my_strerror): New function, defined through lib/strerror-impl.h.
20139         (perror): Use it instead of strerror.
20140         * modules/perror (Files): Add lib/strerror-impl.h.
20141         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20142
20143 2011-05-19  Eric Blake  <eblake@redhat.com>
20144
20145         strerror_r: fix on newer cygwin
20146         * lib/strerror_r.c (strerror_r): Cygwin now has
20147         __xpg_strerror_r, use it.
20148
20149 2011-05-19  Bruno Haible  <bruno@clisp.org>
20150
20151         strerror_r: Avoid clobbering the strerror buffer when possible.
20152         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20153         (sys_nerr, sys_errlist): New declarations.
20154         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20155         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20156         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20157
20158 2011-05-19  Bruno Haible  <bruno@clisp.org>
20159
20160         strerror_r: Fix test failure on mingw.
20161         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20162         EXTEND_STRERROR_R.
20163         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20164         macros from errno.in.h instead.
20165
20166 2011-05-19  Eric Blake  <eblake@redhat.com>
20167
20168         strerror: relax test for Solaris
20169         * tests/test-strerror.c (main): Permit Solaris behavior.
20170         * tests/test-strerror_r.c (main): Likewise.
20171
20172         strerror: enforce POSIX ruling on strerror(0)
20173         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20175         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20176         * doc/posix-functions/strerror.texi (strerror): Document it.
20177         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20178         * tests/test-strerror.c (main): Strengthen test.
20179         * tests/test-strerror_r.c (main): Likewise.
20180
20181 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20182
20183         intprop-tests: port to older and more-pedantic compilers
20184         * modules/intprops-tests (Files): Add tests/macros.h.
20185         * tests/test-intprops.c: Include macros.h.
20186         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20187         it's no longer documented to expand to an integer constant expression.
20188         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20189         argument is floating point, as it's no longer documented to expand
20190         to an integer constant expression in that case.
20191         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20192         compiler bugs reported by Bruno Haible.  See
20193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20194         (U0, U1): New constants, to work around the same bugs.  Also,
20195         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20196
20197         intprops: work around C compiler bugs
20198         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20199         bug in Sun C 5.11 2010/08/13 and other compilers; see
20200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20201
20202         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20203         * doc/intprops.texi (Integer Type Determination): Fix
20204         documentation for TYPE_IS_INTEGER: it returns an constant
20205         expression, not an integer constant expression.  Fix doc for
20206         TYPE_SIGNED: it returns an integer constant expression only if its
20207         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20208         hardly worth documented that way....)
20209
20210 2011-05-18  Bruno Haible  <bruno@clisp.org>
20211
20212         strerror_r: Avoid clobbering the strerror buffer when possible.
20213         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20214         Handle gnulib defined errno values here. When strerror() returns NULL
20215         or an empty string, return EINVAL.
20216         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20217         gnulib defined errno values here.
20218         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20219
20220 2011-05-18  Eric Blake  <eblake@redhat.com>
20221
20222         fnmatch: avoid compiler warning
20223         * lib/fnmatch_loop.c (FCT): Use correct type.
20224         Reported by Matthias Bolte.
20225
20226 2011-05-13  Jim Meyering  <meyering@redhat.com>
20227
20228         maint.mk: three new prohibit_<HDR>_without_use rules
20229         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20230         (sc_prohibit_stdio-safer_without_use): Likewise.
20231         (sc_prohibit_xfreopen_without_use): Likewise.
20232
20233 2011-05-17  Jim Meyering  <meyering@redhat.com>
20234
20235         announce-gen: fail if the NEWS delta is empty
20236         If there's nothing noteworthy in NEWS, then either you forgot
20237         or you shouldn't be releasing.
20238         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20239
20240 2011-05-17  Pádraig Brady <P@draigBrady.com>
20241
20242         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20243         reserved symbols starting with double underscore from the check.
20244
20245 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20246
20247         intprops: add doc
20248         * doc/intprops.texi: New file, documenting intprops.
20249         * doc/gnulib.texi (Particular Modules): Include it.
20250
20251         verify: add doc to gnulib manual and fix example
20252         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20253         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20254         (Compile-time Assertions): Fix example so it can't overflow.
20255
20256 2011-05-17  Jim Meyering  <meyering@redhat.com>
20257
20258         warnings.m4: don't usurp save_CPPFLAGS variable name
20259         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20260
20261         doc: fix typo
20262         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20263
20264 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20265             Bruno Haible  <bruno@clisp.org>
20266
20267         doc: Tweak recent change.
20268         * README (Portability guidelines): Tweak new text.
20269         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20270         Interix 6.1.
20271
20272 2011-05-16  Eric Blake  <eblake@redhat.com>
20273
20274         inttypes: avoid autoconf warning
20275         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20276         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20277
20278 2011-05-16  Sam Steingold <sds@gnu.org>
20279         and Eric Blake  <eblake@redhat.com>
20280
20281         vc-list-files: accept multiple directory operands
20282         * build-aux/vc-list-files: Iterate over all remaining operands.
20283
20284 2011-05-16  Bruno Haible  <bruno@clisp.org>
20285
20286         Fix confusion regarding deprecated modules.
20287         * modules/calloc (Status, Notice): Mark module as deprecated, not
20288         obsolete.
20289         * modules/fnmatch-posix (Status, Notice): Likewise.
20290         * modules/getdate (Status, Notice): Likewise.
20291         * modules/getopt (Status, Notice): Likewise.
20292         * modules/malloc (Status, Notice): Likewise.
20293         * modules/pipe (Status, Notice): Likewise.
20294         * modules/realloc (Status, Notice): Likewise.
20295         * modules/rename-dest-slash (Status, Notice): Likewise.
20296         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20297         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20298         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20299         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20300         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20301
20302 2011-05-16  Bruno Haible  <bruno@clisp.org>
20303
20304         doc: List the target platforms.
20305         * doc/gnulib-intro.texi (Target Platforms): New section.
20306         * doc/gnulib.texi (Introduction): Update menu.
20307         * README (Portability guidelines): Refer to the new section. Update
20308         statement about oldest supported environment. Remove rationale why
20309         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20310         unportable C89 function.
20311         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20312         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20313
20314 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20317
20318 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20319
20320         intprops-tests: new module
20321         * modules/intprops-tests, tests/test-intprops.c: New files.
20322
20323         intprops: add safe, portable integer overflow checking
20324         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20325         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20326         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20327         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20328         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20329         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20330         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20331         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20332         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20333         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20334         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20335
20336 2011-05-12  James Youngman  <jay@gnu.org>
20337
20338         Add a test for glibc's Bugzilla bug #12378.
20339         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20340         doesn't allow the literal matching of a lone "[" (which is
20341         required by POSIX).
20342         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20343
20344 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20345
20346         Sync glibc change fixing Bugzilla bug #12378.
20347         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20348         beginning and fall back to matching as normal character if the
20349         string ends before the matching ']' is found.  This is what POSIX
20350         requires.
20351
20352 2011-05-13  Eric Blake  <eblake@redhat.com>
20353
20354         getcwd-lgpl: relax test for FreeBSD
20355         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20356         issue.
20357         * tests/test-getcwd-lgpl.c (main): Relax test.
20358         Reported by Matthias Bolte.
20359
20360 2011-05-11  Eric Blake  <eblake@redhat.com>
20361
20362         test-fflush: silence compiler warning
20363         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20364
20365 2011-05-11  Bruno Haible  <bruno@clisp.org>
20366
20367         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20368         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20369         * modules/canonicalize (Depends-on): Add 'nocrash'.
20370         * modules/canonicalize-lgpl (Depends-on): Likewise.
20371         * doc/posix-functions/realpath.texi: Update platforms list.
20372         Reported by Ryan Schmidt <ryandesign@macports.org>.
20373
20374 2011-05-11  Bruno Haible  <bruno@clisp.org>
20375
20376         group-member: Declare function in <unistd.h>.
20377         * lib/unistd.in.h (group_member): New declaration.
20378         * lib/group-member.h: Remove file.
20379         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20380         * tests/test-unistd-c++.cc: Check signature of group_member.
20381         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20382         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20383         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20384         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20385         HAVE_GROUP_MEMBER.
20386         * modules/group-member (Files): Remove lib/group-member.h.
20387         (Depends-on): Add unistd. Specify conditions.
20388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20389         (Include): Change to <unistd.h>.
20390         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20391         HAVE_GROUP_MEMBER.
20392         * NEWS: Mention the change.
20393         * lib/euidaccess.c: Don't include group-member.h.
20394
20395 2011-05-11  Bruno Haible  <bruno@clisp.org>
20396
20397         group-member: Document module.
20398         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20399         module.
20400
20401 2011-05-11  Bruno Haible  <bruno@clisp.org>
20402
20403         fclose: Fix mistake earlier today.
20404         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20405
20406 2011-05-11  Eric Blake  <eblake@redhat.com>
20407
20408         fclose: preserve fflush errors
20409         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20410         Reported by Jim Meyering.
20411
20412         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20413         * build-aux/bootstrap (check_versions): When no specific version
20414         is required, merely check that the app produces an exit status
20415         that indicates its existence.
20416
20417         maint.mk: drop redundant check
20418         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20419         the same but better.
20420
20421 2011-05-11  Bruno Haible  <bruno@clisp.org>
20422
20423         fclose: Fix possible link error.
20424         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20425         unregister_shadow_fd. Improve comments.
20426         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20427         Eric Blake.
20428
20429 2011-05-11  Jim Meyering  <meyering@redhat.com>
20430
20431         maint.mk: improve "can not" detection and generalize rule name
20432         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20433         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20434         Use the same technique as in sc_prohibit_doubled_word, so that
20435         we recognize "can not" also when the words are separated by a newline.
20436         Suggested by Eric Blake.
20437         (perl_filename_lineno_text_): Define.  Factored out of...
20438         (prohibit_doubled_word_): ...here.  Use the new definition.
20439         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20440         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20441         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20442
20443 2011-05-10  Eric Blake  <eblake@redhat.com>
20444
20445         fclose: avoid double close race when possible
20446         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20447         all but WINDOWS_SOCKETS.
20448
20449 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20450
20451         openat: correct new comment
20452         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20453
20454 2011-05-10  Jim Meyering  <meyering@redhat.com>
20455
20456         openat: add comments
20457         * lib/openat-proc.c (openat_proc_name): Add comments,
20458         mostly from Eric Blake.
20459
20460 2011-05-09  Eric Blake  <eblake@redhat.com>
20461
20462         openat: reduce syscalls in first probe of /proc
20463         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20464         be a directory.  Simplify the probe for .. bugs.
20465         * modules/openat (Depends-on): Drop same-inode.
20466         Reported by Bastien ROUCARIES.
20467
20468 2011-05-09  Jim Meyering  <meyering@redhat.com>
20469
20470         maint.mk: change semantics/name of tight_scope variables
20471         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20472         Rename variables to align with semantics that make them more useful.
20473
20474         maint.mk: tweak new rule's name not to impinge
20475         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20476         (sc_tight_scope): Use new rule name rather than $@-0.
20477
20478         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20479         * top/maint.mk (sc_tight_scope): New rule.
20480         (sc_tight_scope-0): New rule, ifdef'd out.
20481         (_gl_TS_dir): Default.
20482         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20483         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20484
20485 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20486
20487         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20488         Haible <bruno@clisp.org>.
20489
20490 2011-05-08  Bruno Haible  <bruno@clisp.org>
20491
20492         Comments.
20493         * m4/isnanf.m4: Add comment.
20494         * m4/isnanl.m4: Likewise.
20495
20496 2011-05-08  Bruno Haible  <bruno@clisp.org>
20497
20498         glob: Remove obsolete macro.
20499         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20500
20501 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         intprops: Sun C 5.11 supports __typeof__
20504         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20505         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20506         which is new.
20507         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20508
20509         intprops: switch to usual gnulib indenting and naming
20510         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20511         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20512
20513         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20514
20515 2011-05-08  Jim Meyering  <meyering@redhat.com>
20516
20517         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20518         * top/maint.mk (release-prep): Use make's --no-print-directory
20519         option when generating the announcement.  This eliminates the
20520         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20521         generated announcement template.
20522
20523 2011-05-08  Bruno Haible  <bruno@clisp.org>
20524
20525         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20526         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20527         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20528
20529 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20530
20531         ignore-value, verify: Omit include files from lib_SOURCES.
20532         * modules/ignore-value, modules/verify (Makefile.am):
20533         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20534         that leads Automake to duplicate use of am__objects_... variables
20535         in Makefile.in.  See
20536         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20537
20538 2011-05-07  Bruno Haible  <bruno@clisp.org>
20539
20540         fclose: Simplify autoconf macro.
20541         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20542         defined.
20543
20544 2011-05-07  Bruno Haible  <bruno@clisp.org>
20545
20546         canonicalize-lgpl: Fix autoconf macro ordering bug.
20547         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20548         gl_STDLIB_H_DEFAULTS.
20549
20550 2011-05-06  Eric Blake  <eblake@redhat.com>
20551
20552         maintainer-makefile: make sc_po_check easier to tune
20553         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20554         to probe for strings, such as an alternate location for gnulib.
20555
20556         fclose: guarantee behavior on seekable stdin
20557         * modules/fclose (Depends-on): Add fflush.
20558         * doc/posix-functions/fclose.texi (fclose): Document this.
20559         * tests/test-fclose.c (main): Make test for this unconditional.
20560
20561 2011-05-06  Bruno Haible  <bruno@clisp.org>
20562
20563         fflush, fpurge: Relicense under LGPLv2+.
20564         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20565         * modules/fpurge (License): Likewise.
20566         With permission from Eric Blake and Jim Meyering.
20567         Suggested by Eric Blake.
20568
20569 2011-05-06  Karl Berry  <karl@gnu.org>
20570
20571         * MODULES.html.sh (func_all_modules): remove exit.
20572
20573 2011-05-06  Jim Meyering  <meyering@redhat.com>
20574
20575         maint.mk: use info-gnu@ as the default only for a stable release
20576         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20577         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20578         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20579         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20580
20581 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20582
20583         assert-h: new module, which supports C1X-style static_assert
20584         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20585         * lib/verify.h: Revamp so that this can be copied into assert.h,
20586         while retaining the ability to use it standalone as before.
20587         Rename private identifiers so as not to encroach on the
20588         standard C namespace, since this is now used by assert.h.
20589         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20590         the old verify_true.
20591         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20592         the old verify_true.  Use _GL_VERIFY_TYPE.
20593         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20594         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20595         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20596         defined when this file is copied into the replacement assert.h.
20597         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20598         and _Static_assert is not built in.
20599         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20600         defined, and use the new macros mentioned above.
20601         * doc/posix-headers/assert.texi: Document this.
20602
20603 2011-05-05  Bruno Haible  <bruno@clisp.org>
20604
20605         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20606         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20607         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20608         gl_REPLACE_FCLOSE here.
20609         * modules/fflush (Depends-on): Remove fclose.
20610         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20611         combination with module 'fclose'.
20612
20613 2011-05-05  Bruno Haible  <bruno@clisp.org>
20614
20615         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20616         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20617         gl_FUNC_FFLUSH.
20618         (gl_FUNC_FFLUSH): Use it.
20619         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20620         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20621         gl_REPLACE_FSEEKO here.
20622
20623 2011-05-05  Bruno Haible  <bruno@clisp.org>
20624
20625         tzset: Relicense under LGPL.
20626         * modules/tzset (License): Change to LGPL.
20627         No agreement needed; it's a no-op.
20628
20629         strtoimax, strtoumax: Relicense under LGPL.
20630         * modules/strtoimax (License): Change to LGPL.
20631         * modules/strtoumax (License): Likewise.
20632         With permission from Jim Meyering, Paul Eggert:
20633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20635
20636         getgroups: Relicense under LGPL.
20637         * modules/getgroups (License): Change to LGPL.
20638         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20642
20643         nanosleep: Relicense under LGPL.
20644         * modules/nanosleep (License): Change to LGPL.
20645         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20646         Haible:
20647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20651
20652         futimens: Relicense under LGPL.
20653         * modules/futimens (License): Change to LGPL.
20654         With permission from Eric Blake:
20655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20656
20657         fflush: Relicense under LGPL.
20658         * modules/fflush (License): Change to LGPL.
20659         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20663
20664         tmpfile: Relicense under LGPL.
20665         * modules/tmpfile (License): Change to LGPL.
20666         With permission from Ben Pfaff:
20667         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20668
20669         isfinite: Relicense under LGPL.
20670         * modules/isfinite (License): Change to LGPL.
20671         With permission from Ben Pfaff, Bruno Haible:
20672         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20674
20675         acosl..tanl: Relicense under LGPL.
20676         * modules/acosl (License): Change to LGPL.
20677         * modules/asinl (License): Likewise.
20678         * modules/atanl (License): Likewise.
20679         * modules/cosl (License): Likewise.
20680         * modules/expl (License): Likewise.
20681         * modules/logl (License): Likewise.
20682         * modules/sinl (License): Likewise.
20683         * modules/sqrtl (License): Likewise.
20684         * modules/tanl (License): Likewise.
20685         Source code originally from glibc and Paolo Bonzini. Agreements:
20686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20688
20689 2011-05-05  Bruno Haible  <bruno@clisp.org>
20690
20691         signal: Define sighandler_t.
20692         * lib/signal.in.h (sighandler_t): New type.
20693         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20694         whether sighandler_t is defined.
20695         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20696         * modules/signal (Depends-on): Add extensions.
20697         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20698         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20699         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20700
20701 2011-05-05  Eric Blake  <eblake@redhat.com>
20702
20703         maint: remove useless REPLACE_*_H macros
20704         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20705         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20706         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20707         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20708         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20709         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20710         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20711         * m4/btowc.m4: Update callers.
20712         * m4/dirfd.m4: Likewise.
20713         * m4/duplocale.m4: Likewise.
20714         * m4/fchdir.m4: Likewise.
20715         * m4/fdopendir.m4: Likewise.
20716         * m4/inet_ntop.m4: Likewise.
20717         * m4/inet_pton.m4: Likewise.
20718         * m4/ioctl.m4: Likewise.
20719         * m4/mbrlen.m4: Likewise.
20720         * m4/mbrtowc.m4: Likewise.
20721         * m4/mbsinit.m4: Likewise.
20722         * m4/mbsnrtowcs.m4: Likewise.
20723         * m4/mbsrtowcs.m4: Likewise.
20724         * m4/poll.m4: Likewise.
20725         * m4/setlocale.m4: Likewise.
20726         * m4/wcrtomb.m4: Likewise.
20727         * m4/wcsnrtombs.m4: Likewise.
20728         * m4/wcsrtombs.m4: Likewise.
20729         * m4/wctob.m4: Likewise.
20730         * m4/wcwidth.m4: Likewise.
20731         * modules/posix_spawn: Likewise.
20732         * modules/posix_spawn_file_actions_addclose: Likewise.
20733         * modules/posix_spawn_file_actions_adddup2: Likewise.
20734         * modules/posix_spawn_file_actions_addopen: Likewise.
20735         * modules/posix_spawn_file_actions_destroy: Likewise.
20736         * modules/posix_spawn_file_actions_init: Likewise.
20737         * modules/posix_spawnattr_destroy: Likewise.
20738         * modules/posix_spawnattr_getflags: Likewise.
20739         * modules/posix_spawnattr_getpgroup: Likewise.
20740         * modules/posix_spawnattr_getschedparam: Likewise.
20741         * modules/posix_spawnattr_getschedpolicy: Likewise.
20742         * modules/posix_spawnattr_getsigdefault: Likewise.
20743         * modules/posix_spawnattr_getsigmask: Likewise.
20744         * modules/posix_spawnattr_init: Likewise.
20745         * modules/posix_spawnattr_setflags: Likewise.
20746         * modules/posix_spawnattr_setpgroup: Likewise.
20747         * modules/posix_spawnattr_setschedparam: Likewise.
20748         * modules/posix_spawnattr_setschedpolicy: Likewise.
20749         * modules/posix_spawnattr_setsigdefault: Likewise.
20750         * modules/posix_spawnattr_setsigmask: Likewise.
20751         * modules/posix_spawnp: Likewise.
20752
20753 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20754
20755         Add option to do-release-commit-and-tag to specify branch.
20756         * build-aux/do-release-commit-and-tag: Add --branch.
20757
20758 2011-05-03  Bruno Haible  <bruno@clisp.org>
20759
20760         Avoid unnecessary compilation units, through conditional dependencies.
20761         * modules/accept (Depends-on): Add conditions to the dependencies.
20762         * modules/acosl (Depends-on): Likewise.
20763         * modules/argz (Depends-on): Likewise.
20764         * modules/asinl (Depends-on): Likewise.
20765         * modules/atanl (Depends-on): Likewise.
20766         * modules/atoll (Depends-on): Likewise.
20767         * modules/bind (Depends-on): Likewise.
20768         * modules/btowc (Depends-on): Likewise.
20769         * modules/canonicalize-lgpl (Depends-on): Likewise.
20770         * modules/ceil (Depends-on): Likewise.
20771         * modules/ceilf (Depends-on): Likewise.
20772         * modules/ceill (Depends-on): Likewise.
20773         * modules/chdir-long (Depends-on): Likewise.
20774         * modules/chown (Depends-on): Likewise.
20775         * modules/close (Depends-on): Likewise.
20776         * modules/connect (Depends-on): Likewise.
20777         * modules/cosl (Depends-on): Likewise.
20778         * modules/dirfd (Depends-on): Likewise.
20779         * modules/dprintf (Depends-on): Likewise.
20780         * modules/dprintf-posix (Depends-on): Likewise.
20781         * modules/error (Depends-on): Likewise.
20782         * modules/euidaccess (Depends-on): Likewise.
20783         * modules/expl (Depends-on): Likewise.
20784         * modules/faccessat (Depends-on): Likewise.
20785         * modules/fchdir (Depends-on): Likewise.
20786         * modules/fclose (Depends-on): Likewise.
20787         * modules/fcntl (Depends-on): Likewise.
20788         * modules/fdopendir (Depends-on): Likewise.
20789         * modules/fflush (Depends-on): Likewise.
20790         * modules/floor (Depends-on): Likewise.
20791         * modules/floorf (Depends-on): Likewise.
20792         * modules/floorl (Depends-on): Likewise.
20793         * modules/fnmatch (Depends-on): Likewise.
20794         * modules/fopen (Depends-on): Likewise.
20795         * modules/fprintf-posix (Depends-on): Likewise.
20796         * modules/frexp (Depends-on): Likewise.
20797         * modules/frexp-nolibm (Depends-on): Likewise.
20798         * modules/frexpl (Depends-on): Likewise.
20799         * modules/frexpl-nolibm (Depends-on): Likewise.
20800         * modules/fseek (Depends-on): Likewise.
20801         * modules/fsusage (Depends-on): Likewise.
20802         * modules/ftell (Depends-on): Likewise.
20803         * modules/ftello (Depends-on): Likewise.
20804         * modules/futimens (Depends-on): Likewise.
20805         * modules/getcwd (Depends-on): Likewise.
20806         * modules/getcwd-lgpl (Depends-on): Likewise.
20807         * modules/getdelim (Depends-on): Likewise.
20808         * modules/getdomainname (Depends-on): Likewise.
20809         * modules/getgroups (Depends-on): Likewise.
20810         * modules/gethostname (Depends-on): Likewise.
20811         * modules/getline (Depends-on): Likewise.
20812         * modules/getlogin_r (Depends-on): Likewise.
20813         * modules/getopt-posix (Depends-on): Likewise.
20814         * modules/getpeername (Depends-on): Likewise.
20815         * modules/getsockname (Depends-on): Likewise.
20816         * modules/getsockopt (Depends-on): Likewise.
20817         * modules/getsubopt (Depends-on): Likewise.
20818         * modules/getusershell (Depends-on): Likewise.
20819         * modules/glob (Depends-on): Likewise.
20820         * modules/grantpt (Depends-on): Likewise.
20821         * modules/iconv_open (Depends-on): Likewise.
20822         * modules/iconv_open-utf (Depends-on): Likewise.
20823         * modules/inet_ntop (Depends-on): Likewise.
20824         * modules/inet_pton (Depends-on): Likewise.
20825         * modules/ioctl (Depends-on): Likewise.
20826         * modules/isapipe (Depends-on): Likewise.
20827         * modules/isfinite (Depends-on): Likewise.
20828         * modules/isinf (Depends-on): Likewise.
20829         * modules/lchown (Depends-on): Likewise.
20830         * modules/ldexpl (Depends-on): Likewise.
20831         * modules/link (Depends-on): Likewise.
20832         * modules/linkat (Depends-on): Likewise.
20833         * modules/listen (Depends-on): Likewise.
20834         * modules/logl (Depends-on): Likewise.
20835         * modules/lstat (Depends-on): Likewise.
20836         * modules/mbrlen (Depends-on): Likewise.
20837         * modules/mbrtowc (Depends-on): Likewise.
20838         * modules/mbsinit (Depends-on): Likewise.
20839         * modules/mbsnrtowcs (Depends-on): Likewise.
20840         * modules/mbsrtowcs (Depends-on): Likewise.
20841         * modules/mbtowc (Depends-on): Likewise.
20842         * modules/memcmp (Depends-on): Likewise.
20843         * modules/mkdir (Depends-on): Likewise.
20844         * modules/mkdtemp (Depends-on): Likewise.
20845         * modules/mkfifo (Depends-on): Likewise.
20846         * modules/mkfifoat (Depends-on): Likewise.
20847         * modules/mknod (Depends-on): Likewise.
20848         * modules/mkostemp (Depends-on): Likewise.
20849         * modules/mkostemps (Depends-on): Likewise.
20850         * modules/mkstemp (Depends-on): Likewise.
20851         * modules/mkstemps (Depends-on): Likewise.
20852         * modules/mktime (Depends-on): Likewise.
20853         * modules/nanosleep (Depends-on): Likewise.
20854         * modules/open (Depends-on): Likewise.
20855         * modules/openat (Depends-on): Likewise.
20856         * modules/perror (Depends-on): Likewise.
20857         * modules/poll (Depends-on): Likewise.
20858         * modules/popen (Depends-on): Likewise.
20859         * modules/posix_spawn (Depends-on): Likewise.
20860         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20861         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20862         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20863         * modules/posix_spawnp (Depends-on): Likewise.
20864         * modules/pread (Depends-on): Likewise.
20865         * modules/printf-posix (Depends-on): Likewise.
20866         * modules/ptsname (Depends-on): Likewise.
20867         * modules/putenv (Depends-on): Likewise.
20868         * modules/pwrite (Depends-on): Likewise.
20869         * modules/readline (Depends-on): Likewise.
20870         * modules/readlink (Depends-on): Likewise.
20871         * modules/readlinkat (Depends-on): Likewise.
20872         * modules/recv (Depends-on): Likewise.
20873         * modules/recvfrom (Depends-on): Likewise.
20874         * modules/regex (Depends-on): Likewise.
20875         * modules/remove (Depends-on): Likewise.
20876         * modules/rename (Depends-on): Likewise.
20877         * modules/renameat (Depends-on): Likewise.
20878         * modules/rmdir (Depends-on): Likewise.
20879         * modules/round (Depends-on): Likewise.
20880         * modules/roundf (Depends-on): Likewise.
20881         * modules/roundl (Depends-on): Likewise.
20882         * modules/rpmatch (Depends-on): Likewise.
20883         * modules/select (Depends-on): Likewise.
20884         * modules/send (Depends-on): Likewise.
20885         * modules/sendto (Depends-on): Likewise.
20886         * modules/setenv (Depends-on): Likewise.
20887         * modules/setlocale (Depends-on): Likewise.
20888         * modules/setsockopt (Depends-on): Likewise.
20889         * modules/shutdown (Depends-on): Likewise.
20890         * modules/sigaction (Depends-on): Likewise.
20891         * modules/signbit (Depends-on): Likewise.
20892         * modules/sigprocmask (Depends-on): Likewise.
20893         * modules/sinl (Depends-on): Likewise.
20894         * modules/sleep (Depends-on): Likewise.
20895         * modules/snprintf (Depends-on): Likewise.
20896         * modules/snprintf-posix (Depends-on): Likewise.
20897         * modules/socket (Depends-on): Likewise.
20898         * modules/sprintf-posix (Depends-on): Likewise.
20899         * modules/sqrtl (Depends-on): Likewise.
20900         * modules/stat (Depends-on): Likewise.
20901         * modules/strchrnul (Depends-on): Likewise.
20902         * modules/strdup-posix (Depends-on): Likewise.
20903         * modules/strerror (Depends-on): Likewise.
20904         * modules/strerror_r-posix (Depends-on): Likewise.
20905         * modules/strndup (Depends-on): Likewise.
20906         * modules/strnlen (Depends-on): Likewise.
20907         * modules/strptime (Depends-on): Likewise.
20908         * modules/strsep (Depends-on): Likewise.
20909         * modules/strsignal (Depends-on): Likewise.
20910         * modules/strstr-simple (Depends-on): Likewise.
20911         * modules/strtod (Depends-on): Likewise.
20912         * modules/strtoimax (Depends-on): Likewise.
20913         * modules/strtok_r (Depends-on): Likewise.
20914         * modules/strtoumax (Depends-on): Likewise.
20915         * modules/symlink (Depends-on): Likewise.
20916         * modules/symlinkat (Depends-on): Likewise.
20917         * modules/tanl (Depends-on): Likewise.
20918         * modules/tcgetsid (Depends-on): Likewise.
20919         * modules/tmpfile (Depends-on): Likewise.
20920         * modules/trunc (Depends-on): Likewise.
20921         * modules/truncf (Depends-on): Likewise.
20922         * modules/truncl (Depends-on): Likewise.
20923         * modules/uname (Depends-on): Likewise.
20924         * modules/unlink (Depends-on): Likewise.
20925         * modules/unlockpt (Depends-on): Likewise.
20926         * modules/unsetenv (Depends-on): Likewise.
20927         * modules/usleep (Depends-on): Likewise.
20928         * modules/utimensat (Depends-on): Likewise.
20929         * modules/vasprintf (Depends-on): Likewise.
20930         * modules/vdprintf (Depends-on): Likewise.
20931         * modules/vdprintf-posix (Depends-on): Likewise.
20932         * modules/vfprintf-posix (Depends-on): Likewise.
20933         * modules/vprintf-posix (Depends-on): Likewise.
20934         * modules/vsnprintf (Depends-on): Likewise.
20935         * modules/vsnprintf-posix (Depends-on): Likewise.
20936         * modules/vsprintf-posix (Depends-on): Likewise.
20937         * modules/wcrtomb (Depends-on): Likewise.
20938         * modules/wcscasecmp (Depends-on): Likewise.
20939         * modules/wcscspn (Depends-on): Likewise.
20940         * modules/wcsdup (Depends-on): Likewise.
20941         * modules/wcsncasecmp (Depends-on): Likewise.
20942         * modules/wcsnrtombs (Depends-on): Likewise.
20943         * modules/wcspbrk (Depends-on): Likewise.
20944         * modules/wcsrtombs (Depends-on): Likewise.
20945         * modules/wcsspn (Depends-on): Likewise.
20946         * modules/wcsstr (Depends-on): Likewise.
20947         * modules/wcstok (Depends-on): Likewise.
20948         * modules/wcswidth (Depends-on): Likewise.
20949         * modules/wctob (Depends-on): Likewise.
20950         * modules/wctomb (Depends-on): Likewise.
20951         * modules/wctype (Depends-on): Likewise.
20952         * modules/wcwidth (Depends-on): Likewise.
20953         * modules/write (Depends-on): Likewise.
20954
20955 2011-05-03  Bruno Haible  <bruno@clisp.org>
20956
20957         Support for conditional dependencies.
20958         * doc/gnulib.texi (Module description): Document the syntax of
20959         conditional dependencies.
20960         * gnulib-tool: New option --conditional-dependencies.
20961         (func_usage): Document it.
20962         (cond_dependencies): New variable.
20963         (func_get_automake_snippet_conditional,
20964         func_get_automake_snippet_unconditional): New functions, extracted from
20965         func_get_automake_snippet.
20966         (func_get_automake_snippet): Use them.
20967         (sed_first_32_chars): New variable.
20968         (func_module_shellfunc_name): New function.
20969         (func_module_shellvar_name): New function.
20970         (func_module_conditional_name): New function.
20971         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20972         func_cond_module_condition): New functions.
20973         (func_modules_transitive_closure): Add support for conditional
20974         dependencies.
20975         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20976         conditional automake snippet in an automake conditional.
20977         (func_emit_autoconf_snippets): Emit shell functions that contain the
20978         code for conditional modules.
20979         (func_import, func_create_testdir): Update specification.
20980
20981 2011-05-03  Eric Blake  <eblake@redhat.com>
20982
20983         test-getaddrinfo: report error information
20984         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20985
20986 2011-05-03  Jim Meyering  <meyering@redhat.com>
20987
20988         bootstrap: avoid build failure when $GZIP is set
20989         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20990         program name.  If defined at all, it is supposed to list gzip options.
20991         Reported by Alan Curry in http://debbugs.gnu.org/8609
20992
20993 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20994
20995         readme-release: new module with release instructions
20996         * modules/readme-release: New module.
20997         * top/README-release: New file, from coreutils, grep, diffutils.
20998         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20999
21000 2011-05-02  Eric Blake  <eblake@redhat.com>
21001
21002         fflush: also replace fclose when fixing fflush
21003         * modules/fflush (Depends-on): Add fclose.
21004         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21005         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21006         memstreams with no backing fd.
21007         * doc/posix-functions/fclose.texi (fclose): Document the use of
21008         fflush module to fix the bug.
21009         * tests/test-fclose.c (main): Relax test when fclose is used in
21010         isolation.
21011
21012         fclose: add some tests
21013         * modules/fclose-tests: New test module.
21014         * tests/test-fclose.c: New file.
21015         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21016
21017         fclose: reduced dependencies
21018         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21019         simpler lseek.
21020         * lib/fclose.c (rpl_fclose): Likewise.
21021         Reported by Simon Josefsson.
21022
21023         exit: drop remaining clients
21024         * modules/argmatch (Depends-on): Replace exit with stdlib.
21025         * modules/copy-file (Depends-on): Likewise.
21026         * modules/execute (Depends-on): Likewise.
21027         * modules/exitfail (Depends-on): Likewise.
21028         * modules/obstack (Depends-on): Likewise.
21029         * modules/pagealign_alloc (Depends-on): Likewise.
21030         * modules/pipe-filter-gi (Depends-on): Likewise.
21031         * modules/pipe-filter-ii (Depends-on): Likewise.
21032         * modules/savewd (Depends-on): Likewise.
21033         * modules/spawn-pipe (Depends-on): Likewise.
21034         * modules/wait-process (Depends-on): Likewise.
21035         * modules/xsetenv (Depends-on): Likewise.
21036         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21037         * modules/git-merge-changelog (Depends-on): Likewise.
21038         * modules/long-options (Depends-on): Likewise.
21039         * modules/pt_chown (Depends-on): Likewise.
21040         * modules/sysexits (Depends-on): Likewise.
21041
21042         freading: relax license from LGPLv3+ to LGPLv2+
21043         * modules/freading (License): Relax LGPL version.
21044
21045 2011-05-02  Bruno Haible  <bruno@clisp.org>
21046
21047         fchdir: Remove unused dependencies.
21048         * modules/fchdir (Depends-on): Remove include_next.
21049
21050 2011-05-02  Bruno Haible  <bruno@clisp.org>
21051
21052         gnulib-tool: Refactor.
21053         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21054         from func_emit_autoconf_snippets.
21055         (func_emit_autoconf_snippets): Use it.
21056
21057 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21058
21059         * NEWS: Document removal of 'exit'.
21060         * modules/exit: Remove file.
21061
21062 2011-05-01  Bruno Haible  <bruno@clisp.org>
21063
21064         Update DEPENDENCIES.
21065         * DEPENDENCIES (gettext): Recommend the newest release.
21066         Reported by Simon Josefsson.
21067
21068 2011-05-01  Bruno Haible  <bruno@clisp.org>
21069
21070         gnulib-tool: Reduce code duplication.
21071         * gnulib-tool (func_emit_autoconf_snippets): New function.
21072         (func_import, func_create_testdir): Use it.
21073
21074 2011-04-30  Eric Blake  <eblake@redhat.com>
21075
21076         fclose: don't fail on non-seekable input stream
21077         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21078         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21079         since fflush is allowed to fail in that case.
21080
21081 2011-04-30  Bruno Haible  <bruno@clisp.org>
21082
21083         dup3: cleanup
21084         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21085
21086 2011-04-30  Bruno Haible  <bruno@clisp.org>
21087
21088         netdb: Make it work in C++ mode.
21089         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21090         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21091         module.
21092         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21093         gl_MODULE_INDICATOR_FOR_TESTS.
21094         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21095         * modules/netdb-c++-tests: New file.
21096         * tests/test-netdb-c++.cc: New file.
21097
21098 2011-04-30  Bruno Haible  <bruno@clisp.org>
21099
21100         New modules 'vfscanf', 'vscanf'.
21101         * modules/vfscanf: New file.
21102         * modules/vscanf: New file.
21103         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21104         here.
21105         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21106         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21107
21108 2011-04-30  Bruno Haible  <bruno@clisp.org>
21109
21110         passfd: Add comments.
21111         * lib/passfd.c: Add comments about platforms.
21112
21113 2011-04-30  Bruno Haible  <bruno@clisp.org>
21114
21115         sys_uio: Make <sys/uio.h> self-contained.
21116         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21117         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21118
21119 2011-04-30  Bruno Haible  <bruno@clisp.org>
21120
21121         sys_socket: Ensure 'struct iovec' definition.
21122         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21123         <sys/socket.h>.
21124         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21125
21126 2011-04-30  Bruno Haible  <bruno@clisp.org>
21127
21128         sys_uio: Protect definition of 'struct iovec'.
21129         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21130         it as a C struct.
21131
21132 2011-04-30  Bruno Haible  <bruno@clisp.org>
21133
21134         manywarnings: fix indentation
21135         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21136
21137 2011-04-30  Pádraig Brady <P@draigBrady.com>
21138
21139         manywarnings: add -Wno-missing-field-initializers if needed.
21140         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21141         option if it's needed to allow initialization with { 0, }
21142
21143 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21144
21145         announce-gen: cosmetic improvement
21146         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21147
21148 2011-04-29  Jim Meyering  <meyering@redhat.com>
21149
21150         vc-list-files: indent with spaces, not TABs
21151         * build-aux/vc-list-files: Convert leading TABs to spaces,
21152         to match the style of most other files in gnulib.
21153
21154         announce-gen: indent with spaces, not TABs
21155         * build-aux/announce-gen: Convert all TABs to spaces, to match
21156         the style of most other files in gnulib.
21157
21158 2011-04-29  Eric Blake  <eblake@redhat.com>
21159
21160         quotearg: avoid uninitialized variable use
21161         * lib/quotearg.c (quoting_options_from_style): Initialize
21162         remaining fields, and ensure that custom styles are only used via
21163         quoting_options rather than quoting_style.
21164
21165 2011-04-29  Jim Meyering  <meyering@redhat.com>
21166
21167         maint.mk: remove unused VC-tag variable
21168         * top/maint.mk (VC-tag): Remove unused variable.
21169
21170 2011-04-29  Bruno Haible  <bruno@clisp.org>
21171
21172         netdb: fix gai_strerror replacements
21173         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21174         * modules/netdb: Substitute it.
21175
21176 2011-04-29  Jim Meyering  <meyering@redhat.com>
21177
21178         test-getcwd.c: avoid new set-but-not-used warning
21179         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21180         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21181         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21182         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21183
21184         test-hash.c: avoid a new shadowing warning
21185         * tests/test-hash.c (main): Don't shadow "dup".
21186
21187 2011-04-28  Eric Blake  <eblake@redhat.com>
21188
21189         getaddrinfo: fix gai_strerror signature
21190         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21191         and work around mingw with UNICODE defined.
21192         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21193         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21194         * modules/netdb (Makefile.am): Substitute it.
21195         * lib/netdb.in.h (gai_strerror): Declare replacement.
21196         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21197         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21198         the fix.
21199
21200         getsockopt: avoid compiler warning
21201         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21202         Reported by Matthias Bolte.
21203
21204         tests: drop unused link dependency
21205         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21206         * modules/dirent-safer-tests (Makefile.am): Likewise.
21207         * modules/fdopendir-tests (Makefile.am): Likewise.
21208         * modules/mkfifoat-tests (Makefile.am): Likewise.
21209         * modules/openat-safer-tests (Makefile.am): Likewise.
21210         * modules/openat-tests (Makefile.am): Likewise.
21211         * modules/readlinkat-tests (Makefile.am): Likewise.
21212         * modules/symlinkat-tests (Makefile.am): Likewise.
21213         * modules/linkat-tests (Makefile.am): Likewise.
21214         (Depends-on): Switch to filenamecat-lgpl.
21215         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21216         LIBINTL.
21217         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21218         * tests/test-linkat.c (main): Don't require xalloc.
21219
21220         hash, mgetgroups: drop xalloc dependency
21221         * lib/hash.c (includes): Adjust includes.
21222         * lib/mgetgroups.c (includes): Likewise.
21223         (xgetgroups): Move...
21224         * lib/xgetgroups.c: ...to new file.
21225         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21226         * modules/xgetgroups: New file, split from...
21227         * modules/mgetgroups: ...here.
21228         (Depends-on): Add xalloc-oversized.
21229         * modules/hash (Depends-on): Likewise.
21230         * modules/hash-tests (Depends-on): Drop xalloc.
21231         (test_hash_LDADD): Drop unused library.
21232         * tests/test-hash.c (main): Break xalloc dependency.
21233         (includes): Drop unused include.
21234
21235         xalloc-oversized: new module
21236         * modules/xalloc-oversized: New module.
21237         * modules/xalloc (Depends-on): Add it.
21238         * lib/xalloc.h (xalloc_oversized): Move...
21239         * lib/xalloc-oversized.h: ...into new file.
21240
21241         utimecmp: drop dependency on xmalloc
21242         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21243         due to memory pressure.
21244         * modules/utimecmp (Depends-on): Drop xalloc.
21245
21246 2011-04-27  Eric Blake  <eblake@redhat.com>
21247
21248         getcwd: fix mingw bugs
21249         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21250         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21251         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21252
21253 2011-04-27  Bruno Haible  <bruno@clisp.org>
21254
21255         mkstemps: Ensure declaration on MacOS X 10.5.
21256         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21257         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21258         MacOS X.
21259
21260 2011-04-27  Bruno Haible  <bruno@clisp.org>
21261
21262         mkstemp: More documentation.
21263         * doc/posix-functions/mkstemp.texi: Document header file problem on
21264         MacOS X.
21265
21266 2011-04-27  Bruno Haible  <bruno@clisp.org>
21267
21268         mkstemp: Tweak configure message when cross-compiling.
21269         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21270         result as a guess.
21271
21272 2011-04-27  Bruno Haible  <bruno@clisp.org>
21273
21274         clean-temp: Clarify what it does.
21275         * lib/clean-temp.h: Add more comments.
21276         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21277         module.
21278         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21279         * doc/glibc-functions/mkstemps.texi: Likewise.
21280         * doc/glibc-functions/mkostemps.texi: Likewise.
21281
21282 2011-04-27  Eric Blake  <eblake@redhat.com>
21283
21284         fchdir: avoid extra chdir and fix test
21285         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21286         getcwd-lgpl.
21287         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21288         have to be canonical.
21289         (canonicalize_file_name): Drop unused macro.
21290         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21291
21292         filenamecat-lgpl: fix licence
21293         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21294         when it was first created.
21295
21296         linkat, renameat: add missing dependency
21297         * modules/linkat (Depends-on): Require getcwd-lgpl.
21298         * modules/renameat (Depends-on): Likewise.
21299
21300         tests: reduce dependencies
21301         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21302         * tests/test-renameat.c (main): Likewise.
21303         * modules/linkat-tests (Depends-on): Relax dependency.
21304         * modules/renameat-tests (Depends-on): Likewise.
21305         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21306         dependency explicit.
21307
21308         save-cwd: reduce default dependency
21309         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21310         * lib/save-cwd.c: Update comments.
21311         * NEWS: Document the semantic change.
21312
21313         getcwd: enhance tests
21314         * tests/test-getcwd-lgpl.c: New file, taken from...
21315         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21316         repeat long path stress tests from m4 probe.
21317         * modules/getcwd-lgpl-tests: New module.
21318         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21319         * m4/getcwd-abort-bug.m4: Update comment.
21320         * m4/getcwd-path-max.m4: Likewise.
21321
21322         getcwd-lgpl: new module
21323         * modules/getcwd-lgpl: New module.
21324         * lib/getcwd-lgpl.c: New file.
21325         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21326         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21327         * modules/getcwd (configure.ac): Set C witness.
21328         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21329
21330         getcwd: tweak comments
21331         * m4/getcwd-abort-bug.m4: Fix comments.
21332         * m4/getcwd-path-max.m4: Likewise.
21333         * m4/getcwd.m4: Likewise.
21334
21335 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21336         and Eric Blake  <eblake@redhat.com>
21337
21338         mkstemp: replace if system version uses wrong permissions
21339         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21340         read/write mode bits set in file created by mkstemp.
21341         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21342
21343 2011-04-27  Eric Blake  <eblake@redhat.com>
21344
21345         passfd: avoid compiler warning
21346         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21347         Reported by Laine Stump.
21348
21349 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21350
21351         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21352         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21353
21354 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21355         and Eric Blake  <eblake@redhat.com>
21356
21357         mkstemp: mention clean-temp module
21358         * lib/mkstemp.c: Add comment.
21359         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21360
21361 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21362
21363         inttypes: also provide default values for 32-bit tests
21364         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21365         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21366
21367 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21368
21369         strtoumax: remove dependency on strtoimax
21370         This is like the strtoull change of yesterday.
21371         * modules/strtoumax (Files): Add lib/strtoimax.c.
21372         (Depends-on): Remove strtoimax and add verify.
21373
21374         inttypes-incomplete: new module
21375         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21376         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21377         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21378         of gl_INTTYPES_H.
21379         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21380         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21381         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21382         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21383         * modules/strtoumax, modules/xstrtol (Depends-on):
21384         Depend on inttypes-incomplete, not inttypes.
21385         * modules/inttypes-incomplete: New module, containing the contents
21386         of the old modules/inttypes module, except that the Files: section
21387         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21388         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21389         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21390         (Depends-on): Depend only on inttypes-incomplete.
21391         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21392
21393         inttypes: omit now-redundant strtoimax and strtoumax work
21394         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21395         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21396
21397         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21398         This supports apps that need pointers to strtoimax and strtoumax,
21399         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21400         nonexistent functions.  See
21401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21402         et seq.
21403         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21404         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21405         a macro.
21406         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21407
21408 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21409
21410         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21411
21412 2011-04-25  Bruno Haible  <bruno@clisp.org>
21413
21414         strtol, strtoul: Mark modules as obsolete.
21415         * modules/strtol (Status, Notice): New sections.
21416         * modules/strtoul (Status, Notice): New sections.
21417
21418 2011-04-25  Bruno Haible  <bruno@clisp.org>
21419
21420         strtod: Remove check for strtod, unless supporting old platforms.
21421         * modules/strtod-obsolete: New file.
21422         * m4/strtod-obsolete.m4: New file.
21423         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21424         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21425         * modules/strtod (Depends-on): Add strtod-obsolete.
21426         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21427
21428 2011-04-25  Bruno Haible  <bruno@clisp.org>
21429
21430         strcase: Make module obsolete.
21431         * modules/strcase (Status, Notice): New sections.
21432
21433 2011-04-25  Bruno Haible  <bruno@clisp.org>
21434
21435         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21436         * modules/dup2-obsolete: New file.
21437         * m4/dup2-obsolete.m4: New file.
21438         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21439         gl_FUNC_DUP2_OBSOLETE is not also defined.
21440         * modules/dup2 (Depends-on): Add dup2-obsolete.
21441         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21442
21443 2011-04-25  Bruno Haible  <bruno@clisp.org>
21444
21445         strnlen: Avoid memchr related link error on old obsolete platforms.
21446         * modules/memchr-obsolete: New file.
21447         * m4/memchr-obsolete.m4: New file.
21448         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21449         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21450         * modules/memchr (Depends-on): Add memchr-obsolete.
21451         * modules/strnlen (Depends-on): Likewise.
21452         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21453
21454 2011-04-25  Jim Meyering  <meyering@redhat.com>
21455
21456         maint.mk: makefile_at_at_check extend and clean up
21457         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21458         in addition to */Makefile.am.
21459         Exempt legitimate uses of @VAR@ notation, e.g.,
21460         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21461         Remove obsolete coreutils-specific comment.
21462         Prompted by discussion here:
21463         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21464
21465 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21466
21467         strtoul: remove dependency on strtol
21468         This is so that 'configure' need not check for strtol merely because
21469         the application needs strtoul.
21470         * modules/strtoul (Files): Add lib/strtol.c.
21471         (Depends-on): Remove strtol.
21472
21473         strtoull: remove dependency on strtoul
21474         This is like the strtoll change.
21475         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21476         (Depends-on): Remove strtoul.
21477
21478         strtoll: remove dependency on strtol
21479         This is so that 'configure' need not check for strtol merely because
21480         the application needs strtoll.
21481         * modules/strtoll (Files): Add lib/strtol.c.
21482         (Depends-on): Remove strtol.
21483
21484 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21485
21486         inttypes: Move some configure check to module 'imaxdiv'.
21487         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21488         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21489         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21490
21491 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21492
21493         inttypes: Move some configure check to module 'imaxabs'.
21494         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21495         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21496         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21497
21498 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21499
21500         inttypes: Remove configure tests that are not needed since 2009-12-31.
21501         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21502         gl_cv_header_working_inttypes_h.
21503
21504 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21505
21506         * modules/strnlen (Depends-on): Remove memchr.
21507         The strnlen implementation doesn't need the memchr module's fixes; see
21508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21509
21510         strtol: remove dependency on wchar
21511         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21512         * modules/strtol (Depends-on): Remove wchar.
21513
21514 2011-04-21  Eric Blake  <eblake@redhat.com>
21515
21516         passfd: fix test regression on Linux
21517         * modules/passfd-tests (configure.ac): Correct socketpair check.
21518
21519         passfd: speed up configure and drop unused code
21520         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21521         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21522         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21523         Instead of probing at configure for unix_scm_rights_bsd44_way,
21524         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21525         check to a struct member probe.
21526         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21527         (sendfd, recvfd): Update preprocessor checks.
21528         * modules/passfd (Files): Reflect rename, and drop unused file.
21529         (Depends-on): Drop unused dependency.
21530
21531         passfd: allow compilation on mingw
21532         * modules/sys_socket (Depends-on): Add sys_uio.
21533         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21534         iovec and a minimal struct msghdr.
21535         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21536         * tests/test-sys_socket.c (main): Enhance test.
21537         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21538         guaranteed to provide what we need.
21539         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21540         * modules/passfd-tests (Depends-on): Add sys_wait.
21541         * tests/test-passfd.c (main): Skip test on mingw, for now.
21542         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21543         partial 'struct msghdr' implementation.
21544
21545         sys_uio: new module
21546         * modules/sys_uio: New module.
21547         * modules/sys_uio-tests: Likewise.
21548         * lib/sys_uio.in.h: New file.
21549         * m4/sys_uio_h.m4: Likewise.
21550         * tests/test-sys_uio.c: Likewise.
21551         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21552         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21553
21554 2011-04-20  Jim Meyering  <meyering@redhat.com>
21555
21556         useless-if-before-free: avoid false-positive
21557         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21558         disjunct so that it too requires a terminating ";".  Without that,
21559         this script would identify as useless one statement from gcc that
21560         was not:
21561           if (aligned_ptr)
21562             free (((void **) aligned_ptr) [-1]);
21563
21564 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21565
21566         doc: update users.txt.
21567         * users.txt: Add barcode.
21568
21569 2011-04-19  Bruno Haible  <bruno@clisp.org>
21570
21571         ioctl: Remove link dependency on native Windows.
21572         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21573         (gl_close_fn, gl_ioctl_fn): New types.
21574         (struct fd_hook): Renamed from struct close_hook. Change type of
21575         private_close_fn field. Add private_ioctl_fn field.
21576         (close_hook_fn): Add parameter for primary close method.
21577         (execute_close_hooks, execute_all_close_hooks): Likewise.
21578         (ioctl_hook_fn): New type.
21579         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21580         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21581         argument.
21582         (unregister_fd_hook): Renamed from unregister_close_hook.
21583         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21584         Don't include <unistd.h>.
21585         (close): Remove undef.
21586         (anchor): Update.
21587         (execute_close_hooks): Add argument for primary close method.
21588         (execute_all_close_hooks): Likewise.
21589         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21590         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21591         argument. Allow each argument to be NULL.
21592         (unregister_fd_hook): Renamed from unregister_close_hook.
21593         * lib/close.c (rpl_close): Pass 'close' function pointer to
21594         execute_all_close_hooks.
21595         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21596         (primary_ioctl): New function.
21597         (ioctl): Don't call ioctlsocket here. Instead, call
21598         execute_all_ioctl_hooks.
21599         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21600         close method.
21601         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21602         (fd_sockets_hook): Renamed from close_sockets_hook.
21603         (gl_sockets_startup, gl_sockets_cleanup): Update.
21604         * modules/fd-hook: Renamed from modules/close-hook. Update.
21605         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21606         * modules/sockets (Depends-on): Likewise.
21607         * modules/ioctl (Depends-on): Add fd-hook.
21608         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21609         GNULIB_SOCKET.
21610
21611 2011-04-19  Bruno Haible  <bruno@clisp.org>
21612
21613         Move the support of O_NONBLOCK in open() to the 'open' module.
21614         * modules/nonblocking (Depends-on): Remove 'open'.
21615         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21616         gl_cv_have_open_O_NONBLOCK.
21617         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21618         O_NONBLOCK support.
21619         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21620
21621 2011-04-17  Bruno Haible  <bruno@clisp.org>
21622
21623         pipe2: Simplify code.
21624         * lib/pipe2.c (pipe2): Reduce code duplication.
21625
21626 2011-04-17  Bruno Haible  <bruno@clisp.org>
21627
21628         nonblocking: Add comment.
21629         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21630
21631 2011-04-17  Bruno Haible  <bruno@clisp.org>
21632
21633         nonblocking: Add tests for sockets.
21634         * tests/test-nonblocking-socket.sh: New file.
21635         * tests/test-nonblocking-socket-main.c: New file.
21636         * tests/test-nonblocking-socket-child.c: New file.
21637         * tests/test-nonblocking-socket.h: New file.
21638         * tests/socket-server.h: New file.
21639         * tests/socket-client.h: New file.
21640         * modules/nonblocking-socket-tests: New file.
21641         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21642
21643 2011-04-17  Bruno Haible  <bruno@clisp.org>
21644
21645         nonblocking: Add tests for pipes.
21646         * tests/test-nonblocking-pipe.sh: New file.
21647         * tests/test-nonblocking-pipe-main.c: New file.
21648         * tests/test-nonblocking-pipe-child.c: New file.
21649         * tests/test-nonblocking-pipe.h: New file.
21650         * tests/test-nonblocking-writer.h: New file.
21651         * tests/test-nonblocking-reader.h: New file.
21652         * tests/test-nonblocking-misc.h: New file.
21653         * modules/nonblocking-pipe-tests: New file.
21654         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21655
21656 2011-04-16  Bruno Haible  <bruno@clisp.org>
21657
21658         gettext: Clarify the needed programmer actions.
21659         * modules/gettext (Notice): New field.
21660         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21661
21662 2011-04-16  Bruno Haible  <bruno@clisp.org>
21663
21664         strchrnul: Tweak last commit.
21665         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21666         bug.
21667         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21668         as in _GL_FUNCDECL_SYS.
21669         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21670         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21671
21672 2011-04-15  Eric Blake  <eblake@redhat.com>
21673
21674         strchrnul: work around cygwin bug
21675         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21676         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21678         * modules/string (Makefile.am): Substitute it.
21679         * lib/string.in.h (strchrnul): Use it.
21680
21681 2011-04-15  Bruno Haible  <bruno@clisp.org>
21682
21683         Don't require lib/stdio-write.c when only module 'stdio' is used.
21684         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21685         invocation.
21686         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21687
21688 2011-04-14  Bruno Haible  <bruno@clisp.org>
21689
21690         Support non-blocking pipe I/O in read() on native Windows.
21691         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21692         (read): New declaration.
21693         * lib/read.c: New file.
21694         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21695         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21696         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21697         vscanf): New declarations.
21698         * lib/stdio-read.c: New file.
21699         * m4/read.m4: New file.
21700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21701         REPLACE_READ.
21702         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21703         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21704         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21705         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21706         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21707         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21708         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21709         * modules/read: New file.
21710         * modules/nonblocking (Files): Add lib/stdio-read.c.
21711         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21712         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21713         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21714         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21715         * modules/pread (Depends-on): Add read.
21716         * modules/safe-read (Depends-on): Likewise.
21717         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21718         gets, scanf, vfscanf, vscanf): Verify signatures.
21719         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21720         problem with non-blocking pipes.
21721         * doc/posix-functions/fgetc.texi: Likewise.
21722         * doc/posix-functions/fgets.texi: Likewise.
21723         * doc/posix-functions/fread.texi: Likewise.
21724         * doc/posix-functions/fscanf.texi: Likewise.
21725         * doc/posix-functions/getc.texi: Likewise.
21726         * doc/posix-functions/getchar.texi: Likewise.
21727         * doc/posix-functions/gets.texi: Likewise.
21728         * doc/posix-functions/scanf.texi: Likewise.
21729         * doc/posix-functions/vfscanf.texi: Likewise.
21730         * doc/posix-functions/vscanf.texi: Likewise.
21731
21732 2011-04-14  Bruno Haible  <bruno@clisp.org>
21733
21734         Support non-blocking pipe I/O in write() on native Windows.
21735         * lib/write.c (rpl_write): Split a write request that failed merely
21736         because the byte count was larger than the pipe buffer's size.
21737         * doc/posix-functions/write.texi: Mention the problem with large byte
21738         counts.
21739
21740 2011-04-14  Bruno Haible  <bruno@clisp.org>
21741
21742         wchar: Ensure that wchar_t gets defined on uClibc.
21743         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21744         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21745
21746 2011-04-13  Bruno Haible  <bruno@clisp.org>
21747
21748         safe-write, full-read: Avoid unnecessary compilation units.
21749         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21750         (Depends-on): Remove safe-read. Add ssize_t.
21751         * modules/full-read (Files): Add lib/full-write.c.
21752         (Depends-on): Add full-write.
21753
21754 2011-04-13  Bruno Haible  <bruno@clisp.org>
21755
21756         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21757         * modules/pwrite (Depends-on): Add 'write'.
21758
21759 2011-04-13  Bruno Haible  <bruno@clisp.org>
21760
21761         Support non-blocking pipe I/O in write() on native Windows.
21762         * lib/unistd.in.h (write): Enable replacement also if
21763         GNULIB_UNISTD_H_NONBLOCKING is 1.
21764         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21765         (rpl_write): When failing to write on a non-blocking pipe, change
21766         errno from ENOSPC to EAGAIN.
21767         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21768         putchar, puts, vfprintf, vprintf): Enable replacement also if
21769         GNULIB_STDIO_H_NONBLOCKING is 1.
21770         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21771         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21772         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21773         CALL_WITH_SIGPIPE_EMULATION.
21774         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21775         * m4/nonblocking.m4: New file.
21776         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21777         for non-blocking I/O support.
21778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21779         GNULIB_UNISTD_H_NONBLOCKING.
21780         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21781         required for non-blocking I/O support.
21782         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21783         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21784         lib/stdio-write.c, m4/asm-underscore.m4.
21785         (Depends-on): Add stdio, unistd.
21786         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21787         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21788         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21789         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21790         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21791         problem with non-blocking pipes.
21792         * doc/posix-functions/fputc.texi: Likewise.
21793         * doc/posix-functions/fputs.texi: Likewise.
21794         * doc/posix-functions/fwrite.texi: Likewise.
21795         * doc/posix-functions/printf.texi: Likewise.
21796         * doc/posix-functions/putc.texi: Likewise.
21797         * doc/posix-functions/putchar.texi: Likewise.
21798         * doc/posix-functions/puts.texi: Likewise.
21799         * doc/posix-functions/vfprintf.texi: Likewise.
21800         * doc/posix-functions/vprintf.texi: Likewise.
21801         * doc/posix-functions/write.texi: Likewise.
21802
21803 2011-04-10  Jim Meyering  <meyering@redhat.com>
21804
21805         maint.mk: prohibit doubled words
21806         Detect them also when they're separated by a newline.
21807         There are 3 ways to customize it:
21808           - disable the test on a per file basis, as usual with rules using
21809             $(VC_LIST_EXCEPT)
21810           - replace the default doubled-word-selecting regexp (affects all files)
21811           - ignore a particular file-vs-doubled-word match
21812         I nearly used that last one to ignore the "is is" match in
21813         coreutils' NEWS file, since the text was "ls -is is ..."
21814         To do that, I would have added this line to cfg.mk:
21815           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21816         but it would have ignored any "is is" match in NEWS.
21817         Low probability, but still...
21818         Instead, I changed the text, slightly:
21819           -  ls -is is now consistent with ls -lis in ignoring values returned
21820           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21821         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21822         (prohibit_doubled_word_): Define.
21823         (sc_prohibit_doubled_word): New rule.
21824         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21825
21826 2011-04-10  Jim Meyering  <meyering@redhat.com>
21827
21828         maint: fix doubled-word typo in comment
21829         * m4/gethostname.m4: s/is is/it is/
21830         * m4/getdomainname.m4: Likewise.
21831
21832 2011-04-10  Jim Meyering  <meyering@redhat.com>
21833
21834         maint: remove doubled word: s/it it/it/
21835         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21836
21837 2011-04-10  Jim Meyering  <meyering@redhat.com>
21838
21839         maint.mk: remove useless semicolon and backslash
21840         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21841         semicolon and backslash.
21842
21843 2011-04-10  Bruno Haible  <bruno@clisp.org>
21844
21845         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21846         * modules/stdint-tests (Depends-on): Add wchar.
21847
21848 2011-04-10  Jim Meyering  <meyering@redhat.com>
21849
21850         maint: remove doubled words in comments, e.g., s/a a/a/
21851         * lib/strptime.c (day_of_the_week): s/the the/the/
21852         * tests/test-chown.h (test_chown): s/a a/a/
21853
21854         test-chown.h: correct a cast
21855         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21856         when the destination is a stat.st_gid.
21857
21858 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21859
21860         getaddrinfo: Fix test for sa_len member.
21861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21862         include <sys/types.h> before <sys/socket.h>.
21863
21864 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21865
21866         maint: change "can not" to "cannot"
21867         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21868         boundaries.
21869
21870 2011-04-09  Jim Meyering  <meyering@redhat.com>
21871
21872         maint: change "a a" to "a"
21873         * tests/test-lchown.h (test_lchown): s/a a/a/
21874
21875         maint.mk: prohibit \<the the\>
21876         * top/maint.mk (sc_prohibit_the_the): New rule.
21877
21878         maint: fix "the the" in comment
21879         * lib/count-one-bits.h: s/the the/the/
21880
21881         maint: change "can not" to "cannot"
21882         But do not change the occurrences in maintain.texi or in
21883         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21884         * doc/gnulib-tool.texi: s/can not/cannot/
21885         * doc/posix-functions/accept.texi (accept): Likewise.
21886         * doc/posix-functions/socket.texi (socket): Likewise.
21887         * lib/mbrtowc.c: Likewise.
21888
21889         maint.mk: prohibit use of "can not"
21890         * top/maint.mk (sc_prohibit_can_not): New rule.
21891         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21892
21893 2011-04-09  Bruno Haible  <bruno@clisp.org>
21894
21895         careadlinkat: Guard against misuse of careadlinkatcwd.
21896         * lib/careadlinkat.c: Include <stdlib.h>.
21897         (careadlinkatcwd): Check that the fd argument is as expected.
21898
21899 2011-04-09  Bruno Haible  <bruno@clisp.org>
21900
21901         careadlinkat: Use common coding style.
21902         * lib/careadlinkat.c: Move gnulib includes after system includes.
21903
21904 2011-04-09  Bruno Haible  <bruno@clisp.org>
21905
21906         careadlinkat: Clarify specification.
21907         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21908         (careadlinkatcwd): Add comment.
21909         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21910
21911 2011-04-09  Bruno Haible  <bruno@clisp.org>
21912
21913         areadlinkat: Avoid link error on many platforms.
21914         * modules/areadlinkat (Depends-on): Add areadlink.
21915
21916 2011-04-09  Bruno Haible  <bruno@clisp.org>
21917
21918         allocator, careadlinkat: Fix double-inclusion guard.
21919         * lib/allocator.h: Fix double-inclusion guard.
21920         * lib/careadlinkat.h: Likewise.
21921
21922 2011-04-09  Bruno Haible  <bruno@clisp.org>
21923
21924         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21925         * lib/relocwrapper.c: Update dependencies hierarchy.
21926         * build-aux/install-reloc: Update list of files to be compiled.
21927         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21928         lib/allocator.[hc].
21929
21930 2011-04-08  Eric Blake  <eblake@redhat.com>
21931
21932         strftime: silence gnulib-tool warning
21933         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21934
21935 2011-04-08  Bruno Haible  <bruno@clisp.org>
21936
21937         verify: Fix syntax error with GCC 4.6 in C++ mode.
21938         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21939         (HAVE_STATIC_ASSERT): New macro.
21940         (verify_true, verify): Use 'static_assert' if it is supported and
21941         '_Static_assert' is not supported.
21942
21943 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21944
21945         allocator: New module.
21946         * modules/allocator, lib/allocator.c: New files.
21947         * lib/allocator.h (stdlib_allocator): New decl.
21948         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21949         Remove.  Do not include <stdlib.h>.
21950         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21951         * modules/careadlinkat (Files): Remove lib/allocator.h.
21952         (Depends-on): Add allocator.
21953
21954         stdlib: let modules use system malloc, realloc
21955         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21956         if !_GL_USE_STDLIB_ALLOC.
21957         (malloc, realloc): Limit this change to a smaller scope.
21958
21959         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21960         (malloc, realloc): Don't #undef; no longer needed.
21961         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21962         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21963         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21964         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21965         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21966         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21967         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21968         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21969
21970         careadlinkat: rename members to avoid problem
21971         * lib/allocator.h (struct allocator): Rename members from
21972         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21973         and realloc are #define'd.  Reported by Eric Blake in
21974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21975         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21976
21977 2011-04-08  Eric Blake  <eblake@redhat.com>
21978
21979         nonblocking: reduce dependency
21980         * tests/test-nonblocking.c: Only test sockets when in use.
21981         * modules/nonblocking-tests (Depends-on): Drop socket.
21982         (Makefile.am): Link even if sockets are not present.
21983         * modules/pipe2-tests (Makefile.am): Likewise.
21984         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21985
21986         pipe2: fix O_NONBLOCK support on mingw
21987         * modules/pipe2 (Depends-on): Add nonblocking.
21988         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21989         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21990         * tests/test-nonblocking.c (main): Likewise.
21991         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21992
21993         fcntl-h: fix O_ACCMODE on cygwin
21994         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21995         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21996
21997         pipe-filter: drop O_NONBLOCK workarounds
21998         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21999         * modules/pipe-filter-ii (Depends-on): Likewise.
22000         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22001
22002         nonblocking: provide O_NONBLOCK for mingw
22003         * modules/nonblocking (Depends-on): Add open.
22004         (configure.ac): Set new witness macro.
22005         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22006         * modules/fcntl-h (Makefile.am): Substitute it.
22007         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22008         nonblocking module is in use.
22009         * lib/nonblocking.c: Adjust portability test.
22010         * lib/open.c (open): Don't let native open see gnulib flag.
22011         * tests/test-fcntl-h.c (main): Enhance test.
22012         * tests/test-open.h (test_open): Likewise.
22013         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22014
22015         careadlinkat: fix compilation error on mingw
22016         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22017         within struct allocator.
22018
22019 2011-04-06  Eric Blake  <eblake@redhat.com>
22020
22021         binary-io: relicense under LGPLv2+
22022         * modules/binary-io (License): Relax to LGPLv2+.
22023         Requested for libvirt, and required by pipe2.
22024
22025 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22026
22027         verify: use _Static_assert if available
22028         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22029         (verify_true, verify): Use it if available.  This generates better
22030         diagnostics with GCC 4.6.0 and later.
22031
22032 2011-04-05  Bruno Haible  <bruno@clisp.org>
22033
22034         Remove leftover generated .h files after config.status changed.
22035
22036         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22037         GL_GENERATE_ALLOCA_H.
22038         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22039         GL_GENERATE_ALLOCA_H evaluates to false.
22040
22041         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22042         GL_GENERATE_ARGZ_H.
22043         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22044         evaluates to false.
22045
22046         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22047         GL_GENERATE_BYTESWAP_H.
22048         * modules/byteswap (Makefile.am): Remove byteswap.h if
22049         GL_GENERATE_BYTESWAP_H evaluates to false.
22050
22051         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22052         GL_GENERATE_ERRNO_H.
22053         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22054         evaluates to false.
22055
22056         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22057         GL_GENERATE_FLOAT_H.
22058         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22059         evaluates to false.
22060
22061         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22062         GL_GENERATE_FNMATCH_H.
22063         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22064         GL_GENERATE_FNMATCH_H evaluates to false.
22065
22066         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22067         GL_GENERATE_GLOB_H.
22068         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22069         evaluates to false.
22070
22071         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22072         automake conditional GL_GENERATE_ICONV_H.
22073         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22074         evaluates to false.
22075
22076         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22077         GL_GENERATE_NETINET_IN_H.
22078         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22079         GL_GENERATE_NETINET_IN_H evaluates to false.
22080
22081         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22082         conditional GL_GENERATE_PTHREAD_H.
22083         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22084         * modules/pthread (Makefile.am): Remove pthread.h if
22085         GL_GENERATE_PTHREAD_H evaluates to false.
22086
22087         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22088         GL_GENERATE_SCHED_H.
22089         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22090         evaluates to false.
22091
22092         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22093         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22094         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22095         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22096
22097         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22098         GL_GENERATE_STDARG_H.
22099         * modules/stdarg (Makefile.am): Remove stdarg.h if
22100         GL_GENERATE_STDARG_H evaluates to false.
22101
22102         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22103         GL_GENERATE_STDBOOL_H.
22104         * modules/stdbool (Makefile.am): Remove stdbool.h if
22105         GL_GENERATE_STDBOOL_H evaluates to false.
22106
22107         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22108         conditional GL_GENERATE_STDDEF_H.
22109         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22110         * modules/stddef (Makefile.am): Remove stddef.h if
22111         GL_GENERATE_STDDEF_H evaluates to false.
22112
22113         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22114         GL_GENERATE_STDINT_H.
22115         * modules/stdint (Makefile.am): Remove stdint.h if
22116         GL_GENERATE_STDINT_H evaluates to false.
22117
22118         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22119         GL_GENERATE_SYSEXITS_H.
22120         * modules/sysexits (Makefile.am): Remove sysexits.h if
22121         GL_GENERATE_SYSEXITS_H evaluates to false.
22122
22123         Reported by Karl Berry and Ralf Wildenhues.
22124
22125 2011-04-05  Bruno Haible  <bruno@clisp.org>
22126
22127         Ensure to rebuild generated .h files when config.status has changed.
22128         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22129         config.status.
22130         * modules/ctype (Makefile.am): Likewise.
22131         * modules/dirent (Makefile.am): Likewise.
22132         * modules/errno (Makefile.am): Likewise.
22133         * modules/fcntl-h (Makefile.am): Likewise.
22134         * modules/float (Makefile.am): Likewise.
22135         * modules/getopt-posix (Makefile.am): Likewise.
22136         * modules/glob (Makefile.am): Likewise.
22137         * modules/iconv-h (Makefile.am): Likewise.
22138         * modules/inttypes (Makefile.am): Likewise.
22139         * modules/langinfo (Makefile.am): Likewise.
22140         * modules/locale (Makefile.am): Likewise.
22141         * modules/math (Makefile.am): Likewise.
22142         * modules/netdb (Makefile.am): Likewise.
22143         * modules/netinet_in (Makefile.am): Likewise.
22144         * modules/poll-h (Makefile.am): Likewise.
22145         * modules/pthread (Makefile.am): Likewise.
22146         * modules/pty (Makefile.am): Likewise.
22147         * modules/sched (Makefile.am): Likewise.
22148         * modules/search (Makefile.am): Likewise.
22149         * modules/selinux-h (Makefile.am): Likewise.
22150         * modules/signal (Makefile.am): Likewise.
22151         * modules/spawn (Makefile.am): Likewise.
22152         * modules/stdarg (Makefile.am): Likewise.
22153         * modules/stdbool (Makefile.am): Likewise.
22154         * modules/stddef (Makefile.am): Likewise.
22155         * modules/stdint (Makefile.am): Likewise.
22156         * modules/stdio (Makefile.am): Likewise.
22157         * modules/stdlib (Makefile.am): Likewise.
22158         * modules/string (Makefile.am): Likewise.
22159         * modules/strings (Makefile.am): Likewise.
22160         * modules/sys_file (Makefile.am): Likewise.
22161         * modules/sys_ioctl (Makefile.am): Likewise.
22162         * modules/sys_select (Makefile.am): Likewise.
22163         * modules/sys_socket (Makefile.am): Likewise.
22164         * modules/sys_stat (Makefile.am): Likewise.
22165         * modules/sys_time (Makefile.am): Likewise.
22166         * modules/sys_times (Makefile.am): Likewise.
22167         * modules/sys_utsname (Makefile.am): Likewise.
22168         * modules/sys_wait (Makefile.am): Likewise.
22169         * modules/sysexits (Makefile.am): Likewise.
22170         * modules/termios (Makefile.am): Likewise.
22171         * modules/time (Makefile.am): Likewise.
22172         * modules/unistd (Makefile.am): Likewise.
22173         * modules/wchar (Makefile.am): Likewise.
22174         * modules/wctype-h (Makefile.am): Likewise.
22175         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22176
22177 2011-04-05  Bruno Haible  <bruno@clisp.org>
22178
22179         pipe2: Relicense under LGPLv2+.
22180         * modules/pipe2 (License): Change to LGPLv2+.
22181         Requested by Eric Blake, for libvirt.
22182
22183 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22184
22185         bootstrap: compute gnulib_extra_files after updating build_aux
22186         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22187         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22188
22189 2011-04-05  Eric Blake  <eblake@redhat.com>
22190
22191         bootstrap: preserve git whitelist item sorting
22192         * build-aux/bootstrap (sort_patterns): New function.
22193         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22194
22195 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22196
22197         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22198         sc_space_tab check.
22199
22200 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22201
22202         areadlink, areadlinkat: rewrite in terms of careadlinkat
22203         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22204         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22205         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22206         (malloc, realloc): Remove #undefs.
22207         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22208         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22209         readlink, ssize_t, stdint, unistd.
22210         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22211         areadlink, stdint.
22212
22213         careadlinkat: new module
22214         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22215         * modules/careadlinkat: New files, written by me with
22216         a review and feedback from Ben Pfaff in
22217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22218
22219 2011-04-01  Bruno Haible  <bruno@clisp.org>
22220
22221         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22222         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22223         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22224         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22225         Reported by Bruce Korb <bruce.korb@gmail.com>.
22226
22227 2011-04-01  Bruno Haible  <bruno@clisp.org>
22228
22229         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22230         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22231         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22232         * modules/wcpcpy (Depends-on): Add extensions.
22233         * modules/wcpncpy (Depends-on): Likewise.
22234         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22235         systems.
22236         * doc/posix-functions/wcpncpy.texi: Likewise.
22237         * doc/posix-functions/wcwidth.texi: Likewise.
22238
22239 2011-03-31  Eric Blake  <eblake@redhat.com>
22240
22241         nonblocking: fix mingw test failures
22242         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22243         non-blocking flag on regular file.
22244         (get_nonblocking_flag): Set errno on invalid fd.
22245         * tests/test-nonblocking.c (main): Avoid test failure on
22246         directories if fchdir is not active.
22247         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22248
22249 2011-03-31  Bruno Haible  <bruno@clisp.org>
22250
22251         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22252         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22253         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22254         Reported by Simon Josefsson <simon@josefsson.org>.
22255
22256 2011-03-31  Bruno Haible  <bruno@clisp.org>
22257         and Eric Blake  <eblake@redhat.com>
22258
22259         nonblocking: new module
22260         * modules/nonblocking: New module.
22261         * modules/nonblocking-tests: Likewise.
22262         * lib/nonblocking.h: New file.
22263         * lib/nonblocking.c: Likewise.
22264         * tests/test-nonblocking.c: New test.
22265         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22266
22267 2011-03-30  Bruno Haible  <bruno@clisp.org>
22268
22269         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22270         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22271         instead of 'printf' format for GCC >= 4.4.
22272         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22273         (fprintf, printf, vfprintf, vprintf): Declare with
22274         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22275         the system's vfprintf() function.
22276         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22277
22278 2011-03-30  Eric Blake  <eblake@redhat.com>
22279
22280         passfd: fix scoping bug
22281         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22282         before sendmsg/recvmsg.
22283
22284         passfd: standardize coding conventions
22285         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22286         can be learned at compile time.
22287         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22288         ifdefs.
22289         (sendfd, recvfd): Follow gnulib code conventions.
22290
22291         passfd: fix incorrect sendmsg arguments
22292         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22293         incorrect msg_controllen value.
22294         * modules/passfd-tests (Depends-on): Check for alarm.
22295         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22296         Reported by Bastien ROUCARIES.
22297
22298 2011-03-30  Bruno Haible  <bruno@clisp.org>
22299
22300         c-strcasestr: Relicense under LGPLv2+.
22301         * modules/c-strcasestr (License): Change to LGPLv2+.
22302         Requested by Eric Blake, for libvirt.
22303
22304 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22305
22306         * users.txt: Add libidn2.  Fix libtasn1 link.
22307
22308 2011-03-30  Jim Meyering  <meyering@redhat.com>
22309
22310         tests: readlink* ("",... fails with EINVAL on newer kernels
22311         readlink and readlinkat have typically failed with ENOENT for
22312         the invalid, empty file name,  "".  However, with the advent
22313         of linux-2.6.39, they fail with EINVAL.
22314         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22315         when operating on the empty file name.
22316         * tests/test-readlink.h (test_readlink): Likewise.
22317
22318 2011-03-29  Bruno Haible  <bruno@clisp.org>
22319
22320         Relicense some modules under LGPLv2+, for libidn2.
22321         * modules/array-mergesort (License): Change to LGPLv2+.
22322         * modules/c-strcaseeq (License): Likewise.
22323         * modules/striconveh (License): Likewise.
22324         * modules/striconveha (License): Likewise.
22325         * modules/uniconv/base (License): Likewise.
22326         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22327         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22328         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22329         * modules/unictype/base (License): Likewise.
22330         * modules/unictype/bidiclass-of (License): Likewise.
22331         * modules/unictype/category-M (License): Likewise.
22332         * modules/unictype/category-none (License): Likewise.
22333         * modules/unictype/category-of (License): Likewise.
22334         * modules/unictype/category-test (License): Likewise.
22335         * modules/unictype/category-test-withtable (License): Likewise.
22336         * modules/unictype/combining-class (License): Likewise.
22337         * modules/unictype/joiningtype-of (License): Likewise.
22338         * modules/unictype/scripts (License): Likewise.
22339         * modules/uninorm/base (License): Likewise.
22340         * modules/uninorm/canonical-decomposition (License): Likewise.
22341         * modules/uninorm/composition (License): Likewise.
22342         * modules/uninorm/decompose-internal (License): Likewise.
22343         * modules/uninorm/decomposition-table (License): Likewise.
22344         * modules/uninorm/nfc (License): Likewise.
22345         * modules/uninorm/nfd (License): Likewise.
22346         * modules/uninorm/u32-normalize (License): Likewise.
22347         * modules/unistr/base (License): Likewise.
22348         * modules/unistr/u32-cpy (License): Likewise.
22349         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22350         * modules/unistr/u32-to-u8 (License): Likewise.
22351         * modules/unistr/u32-uctomb (License): Likewise.
22352         * modules/unistr/u8-check (License): Likewise.
22353         * modules/unistr/u8-mblen (License): Likewise.
22354         * modules/unistr/u8-mbtouc (License): Likewise.
22355         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22356         * modules/unistr/u8-mbtoucr (License): Likewise.
22357         * modules/unistr/u8-prev (License): Likewise.
22358         * modules/unistr/u8-strlen (License): Likewise.
22359         * modules/unistr/u8-to-u32 (License): Likewise.
22360         * modules/unistr/u8-uctomb (License): Likewise.
22361         * modules/unitypes (License): Likewise.
22362         Requested by Simon Josefsson.
22363
22364 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22365
22366         lib-symbol-visibility: Add a notice.
22367         * modules/lib-symbol-visibility (Notice): New field.
22368
22369 2011-03-29  Bruno Haible  <bruno@clisp.org>
22370
22371         getaddrinfo: Doc fix.
22372         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22373         section "fixed in Gnulib".
22374
22375 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22376
22377         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22378         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22379
22380 2011-03-26  Bruno Haible  <bruno@clisp.org>
22381
22382         unictype/property-byname: Reduce the number of load-time relocations.
22383         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22384         (UC_PROPERTY_INDEX_*): New enumeration values.
22385         (uc_property_byname): Convert an index from the lookup table to an
22386         uc_property_t.
22387         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22388         values.
22389
22390 2011-03-26  Bruno Haible  <bruno@clisp.org>
22391
22392         unictype/property-byname: Allow omitted word separators and aliases.
22393         * lib/unictype/pr_byname.gperf: Add property names without word
22394         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22395         for 'space'.
22396
22397 2011-03-26  Bruno Haible  <bruno@clisp.org>
22398
22399         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22400         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22401         also hyphens to space.
22402         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22403         without spaces.
22404         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22405
22406 2011-03-26  Bruno Haible  <bruno@clisp.org>
22407
22408         unictype/joiningtype-byname: Recognize long names as well.
22409         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22410         a long name.
22411         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22412         unictype/joiningtype_byname.h.
22413         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22414         * lib/unictype/joiningtype_byname.gperf: New file.
22415         * modules/unictype/joiningtype-byname (Files): Add
22416         lib/unictype/joiningtype_byname.gperf.
22417         (Depends-on): Add gperf.
22418         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22419         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22420         long names.
22421
22422         Tests for module 'unictype/joiningtype-longname'.
22423         * modules/unictype/joiningtype-longname-tests: New file.
22424         * tests/unictype/test-joiningtype_longname.c: New file.
22425
22426         New module 'unictype/joiningtype-longname'.
22427         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22428         * lib/unictype/joiningtype_longname.c: New file.
22429         * modules/unictype/joiningtype-longname: New file.
22430         * modules/unictype/joiningtype-all (Depends-on): Add
22431         unictype/joiningtype-longname.
22432
22433 2011-03-26  Bruno Haible  <bruno@clisp.org>
22434
22435         unictype/bidiclass-byname: Recognize long names as well.
22436         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22437         name.
22438         * lib/unictype/bidi_byname.c: Include <string.h>,
22439         unictype/bidi_byname.h.
22440         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22441         * lib/unictype/bidi_byname.gperf: New file.
22442         * modules/unictype/bidiclass-byname (Files): Add
22443         lib/unictype/bidi_byname.gperf.
22444         (Depends-on): Add gperf.
22445         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22446         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22447         long names.
22448
22449         Tests for module 'unictype/bidiclass-longname'.
22450         * modules/unictype/bidiclass-longname-tests: New file.
22451         * tests/unictype/test-bidi_longname.c: New file.
22452
22453         New module 'unictype/bidiclass-longname'.
22454         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22455         * lib/unictype/bidi_longname.c: New file.
22456         * modules/unictype/bidiclass-longname: New file.
22457         * modules/unictype/bidiclass-all (Depends-on): Add
22458         unictype/bidiclass-longname.
22459
22460 2011-03-26  Bruno Haible  <bruno@clisp.org>
22461
22462         unictype/bidi*: Rename modules.
22463         * modules/unictype/bidiclass-all: Renamed from
22464         modules/unictype/bidicategory-all.
22465         * modules/unictype/bidiclass-name: Renamed from
22466         modules/unictype/bidiclass-name.
22467         (Description): Update.
22468         * modules/unictype/bidiclass-name-tests: Renamed from
22469         modules/unictype/bidicategory-name-tests.
22470         * modules/unictype/bidiclass-byname: Renamed from
22471         modules/unictype/bidicategory-byname.
22472         (Description): Update.
22473         * modules/unictype/bidiclass-byname-tests: Renamed from
22474         modules/unictype/bidicategory-byname-tests.
22475         * modules/unictype/bidiclass-of: Renamed from
22476         modules/unictype/bidicategory-of.
22477         (Description): Update.
22478         * modules/unictype/bidiclass-of-tests: Renamed from
22479         modules/unictype/bidicategory-of-tests.
22480         * modules/unictype/bidiclass-test: Renamed from
22481         modules/unictype/bidicategory-test.
22482         (Description): Update.
22483         * modules/unictype/bidiclass-test-tests: Renamed from
22484         modules/unictype/bidicategory-test-tests.
22485         * modules/unictype/bidicategory-all: New file, a simple redirection.
22486         * modules/unictype/bidicategory-name: Likewise.
22487         * modules/unictype/bidicategory-byname: Likewise.
22488         * modules/unictype/bidicategory-of: Likewise.
22489         * modules/unictype/bidicategory-test: Likewise.
22490         * modules/unictype/property-bidi-* (Dependencies): Update.
22491         * lib/unictype/bidi_*.c: Update comment.
22492
22493 2011-03-26  Bruno Haible  <bruno@clisp.org>
22494
22495         unictype/bidi*: Rename functions, part 2.
22496         * modules/unictype/bidicategory-name (configure.ac): Update required
22497         libunistring version.
22498         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22499
22500 2011-03-25  Bruno Haible  <bruno@clisp.org>
22501
22502         New module 'unictype/combining-class-all'.
22503         * modules/unictype/combining-class-all: New file.
22504
22505         Tests for module 'unictype/combining-class-byname'.
22506         * modules/unictype/combining-class-byname-tests: New file.
22507         * tests/unictype/test-combiningclass_byname.c: New file.
22508
22509         New module 'unictype/combining-class-byname'.
22510         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22511         * lib/unictype/combiningclass_byname.c: New file.
22512         * lib/unictype/combiningclass_byname.gperf: New file.
22513         * modules/unictype/combining-class-byname: New file.
22514
22515         Tests for module 'unictype/combining-class-longname'.
22516         * modules/unictype/combining-class-longname-tests: New file.
22517         * tests/unictype/test-combiningclass_longname.c: New file.
22518
22519         New module 'unictype/combining-class-longname'.
22520         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22521         * lib/unictype/combiningclass_longname.c: New file.
22522         * modules/unictype/combining-class-longname: New file.
22523
22524         Tests for module 'unictype/combining-class-name'.
22525         * modules/unictype/combining-class-name-tests: New file.
22526         * tests/unictype/test-combiningclass_name.c: New file.
22527
22528         New module 'unictype/combining-class-name'.
22529         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22530         * lib/unictype/combiningclass_name.c: New file.
22531         * modules/unictype/combining-class-name: New file.
22532
22533 2011-03-25  Bruno Haible  <bruno@clisp.org>
22534
22535         unictype/combining-class: Rename source files.
22536         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22537         of unictype/combining.h.
22538         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22539         Update.
22540         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22541         * modules/unictype/combining-class (Description): Fix.
22542         (Files, Makefile.am): Update.
22543         * tests/unictype/test-combiningclass.c: Renamed from
22544         tests/unictype/test-combining.c.
22545         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22546
22547 2011-03-25  Bruno Haible  <bruno@clisp.org>
22548
22549         unictype: Update list of canonical combining classes.
22550         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22551
22552 2011-03-25  Bruno Haible  <bruno@clisp.org>
22553
22554         unictype/category-byname: Recognize long names as well.
22555         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22556         a long name.
22557         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22558         unictype/categ_byname.h.
22559         (UC_CATEGORY_INDEX_*): New enumeration values.
22560         (uc_general_category_byname): Use uc_general_category_lookup and
22561         convert from index to value.
22562         * lib/unictype/categ_byname.gperf: New file.
22563         * modules/unictype/category-byname (Files): Add
22564         lib/unictype/categ_byname.gperf.
22565         (Depends-on): Add gperf.
22566         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22567         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22568         long names.
22569
22570         Tests for module 'unictype/category-longname'.
22571         * modules/unictype/category-longname-tests: New file.
22572         * tests/unictype/test-categ_longname.c: New file.
22573
22574         New module 'unictype/category-longname'.
22575         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22576         * lib/unictype/categ_longname.c: New file.
22577         * modules/unictype/category-longname: New file.
22578         * modules/unictype/category-all (Depends-on): Add it.
22579
22580 2011-03-25  Bruno Haible  <bruno@clisp.org>
22581
22582         Tests for module 'unictype/category-LC'.
22583         * modules/unictype/category-LC-tests: New file.
22584         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22585
22586         New module 'unictype/category-LC'.
22587         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22588         (UC_CATEGORY_LC): New declaration.
22589         (UC_CASED_LETTER): New macro.
22590         * lib/gen-uni-tables.c (is_category_LC): New function.
22591         (output_categories): Also handle category LC.
22592         (UC_CATEGORY_MASK_LC): New enumeration value.
22593         (general_category_byname): Also handle category LC.
22594         * lib/unictype/categ_LC.c: New file.
22595         * lib/unictype/categ_LC.h: New file, automatically generated.
22596         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22597         category LC.
22598         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22599         * modules/unictype/category-LC: New file.
22600         * modules/unictype/category-byname (Depends-on): Add
22601         unictype/category-LC.
22602         * modules/unictype/category-all (Depends-on): Likewise.
22603
22604 2011-03-25  Eric Blake  <eblake@redhat.com>
22605
22606         xmalloc: revert yesterday's regression
22607         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22608         realloc's underlying behavior (allowing allocation of zero-size
22609         objects, especially if malloc-gnu is also in use).
22610
22611 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22612
22613         maint.mk: add missing version to VC-tag
22614         * top/maint.mk: git tag was missing actual tag name; add it.
22615
22616         valgrind: do leak checking, and exit with code 1 on error (not 0)
22617         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22618         to VALGRIND.
22619
22620 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22621
22622         posix-modules: say what it does.
22623         * posix-modules: Add a line to the --help output saying what it does.
22624
22625 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22626
22627         xmalloc: Do not leak if underlying realloc is C99 compatible.
22628         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22629         This avoids a leak on C99-based systems.  See
22630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22631
22632 2011-03-24  Eric Blake  <eblake@redhat.com>
22633
22634         realloc: document portability problem
22635         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22636         passing 0 size to realloc.
22637
22638 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22639
22640         doc: update users.txt
22641         * users.txt: Add cvsps, tmpwatch
22642
22643 2011-03-23  Matt Rice  <ratmice@gmail.com>
22644
22645         doc: update users.txt
22646         * users.txt: Add gdb.
22647
22648 2011-03-23  Jim Meyering  <meyering@redhat.com>
22649
22650         doc: update users.txt
22651         Looking through matches up to the following URL (there are still
22652         several more pages), I found several projects that use gnulib:
22653         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22654         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22655         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22656
22657 2011-03-22  Bruno Haible  <bruno@clisp.org>
22658
22659         unictype/bidi*: Rename functions.
22660         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22661         uc_bidi_class, uc_is_bidi_class): New declarations.
22662         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22663         uc_bidi_category_byname.
22664         (uc_bidi_category_byname): New function.
22665         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22666         u_bidi_category_name.
22667         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22668         (uc_bidi_category_name): New function.
22669         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22670         uc_bidi_category.
22671         (uc_bidi_category): New function.
22672         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22673         uc_is_bidi_category. Invoke uc_bidi_class.
22674         (uc_is_bidi_category): New function.
22675         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22676         instead of uc_bidi_category_byname.
22677         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22678         instead of uc_bidi_category_name.
22679         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22680         uc_bidi_category.
22681         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22682         instead of uc_is_bidi_category.
22683
22684 2011-03-21  Bruno Haible  <bruno@clisp.org>
22685
22686         New module 'unictype/joininggroup-all'.
22687         * modules/unictype/joininggroup-all: New file.
22688
22689         Tests for module 'unictype/joininggroup-of'.
22690         * modules/unictype/joininggroup-of-tests: New file.
22691         * tests/unictype/test-joininggroup_of.c: New file.
22692         * tests/unictype/test-joininggroup_of.h: New file, automatically
22693         generated by gen-uni-tables.
22694
22695         New module 'unictype/joininggroup-of'.
22696         * modules/unictype/joininggroup-of: New file.
22697         * lib/unictype/joininggroup_of.c: New file.
22698         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22699         gen-uni-tables.
22700
22701         Tests for module 'unictype/joininggroup-byname'.
22702         * modules/unictype/joininggroup-byname-tests: New file.
22703         * tests/unictype/test-joininggroup_byname.c: New file.
22704
22705         New module 'unictype/joininggroup-byname'.
22706         * modules/unictype/joininggroup-byname: New file.
22707         * lib/unictype/joininggroup_byname.c: New file.
22708         * lib/unictype/joininggroup_byname.gperf: New file.
22709
22710         Tests for module 'unictype/joininggroup-name'.
22711         * modules/unictype/joininggroup-name-tests: New file.
22712         * tests/unictype/test-joininggroup_name.c: New file.
22713
22714         New module 'unictype/joininggroup-name'.
22715         * modules/unictype/joininggroup-name: New file.
22716         * lib/unictype/joininggroup_name.c: New file.
22717         * lib/unictype/joininggroup_name.h: New file.
22718
22719         New module 'unictype/joiningtype-all'.
22720         * modules/unictype/joiningtype-all: New file.
22721
22722         Tests for module 'unictype/joiningtype-of'.
22723         * modules/unictype/joiningtype-of-tests: New file.
22724         * tests/unictype/test-joiningtype_of.c: New file.
22725         * tests/unictype/test-joiningtype_of.h: New file, automatically
22726         generated by gen-uni-tables.
22727
22728         New module 'unictype/joiningtype-of'.
22729         * modules/unictype/joiningtype-of: New file.
22730         * lib/unictype/joiningtype_of.c: New file.
22731         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22732         gen-uni-tables.
22733
22734         Tests for module 'unictype/joiningtype-byname'.
22735         * modules/unictype/joiningtype-byname-tests: New file.
22736         * tests/unictype/test-joiningtype_byname.c: New file.
22737
22738         New module 'unictype/joiningtype-byname'.
22739         * modules/unictype/joiningtype-byname: New file.
22740         * lib/unictype/joiningtype_byname.c: New file.
22741
22742         Tests for module 'unictype/joiningtype-name'.
22743         * modules/unictype/joiningtype-name-tests: New file.
22744         * tests/unictype/test-joiningtype_name.c: New file.
22745
22746         New module 'unictype/joiningtype-name'.
22747         * modules/unictype/joiningtype-name: New file.
22748         * lib/unictype/joiningtype_name.c: New file.
22749
22750         unictype: Add support for Arabic shaping properties.
22751         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22752         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22753         declarations.
22754         (UC_JOINING_GROUP_*): New enumeration values.
22755         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22756         declarations.
22757         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22758         (unicode_joining_type): New variable.
22759         (UC_JOINING_GROUP_*): New enumeration values.
22760         (unicode_joining_group): New variable.
22761         (fill_arabicshaping, joining_type_as_c_identifier,
22762         output_joining_type_test, output_joining_type,
22763         joining_group_as_c_identifier, output_joining_group_test,
22764         output_joining_group): New functions.
22765         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22766         fill_arabicshaping and output_joining_type_test, output_joining_type,
22767         output_joining_group_test, output_joining_group.
22768         Reported by Simon Josefsson.
22769
22770 2011-03-21  Jim Meyering  <meyering@redhat.com>
22771
22772         strftime: fix a bug in yesterday's change
22773         * lib/strftime.c (add): Accommodate width's initial value of -1.
22774         Otherwise, nstrftime would copy uninitialized data into
22775         the result buffer.
22776
22777 2011-03-21  Jim Meyering  <meyering@redhat.com>
22778
22779         tests: add strftime-tests module
22780         * tests/test-strftime.c: New file.
22781         * modules/strftime-tests: New module.
22782
22783 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22784
22785         strftime: don't assume a byte count fits in 'int'
22786         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22787         found this problem by static analysis, using gcc -Wstrict-overflow
22788         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22789         on an integer overflow having undefined behavior, but it turns out
22790         that the argument is a size, which might not fit in 'int' anyway,
22791
22792 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22793
22794         stdio: don't require ignore_value around fwrite
22795
22796         This patch works around libc bug 11959
22797         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22798         Without this patch, applications must often write
22799         ignore_value (fwrite (...)) even though the ignore_value is
22800         not helpful here.  It's common to write many objects, using
22801         fwrite/printf/etc., and then use ferror to detect output error.
22802
22803         I considered making this patch optional, but decided against it,
22804         because libc is obviously being inconsistent here: there is no
22805         reason libc should insist that user code must inspect fwrite
22806         return's value without also insisting that it inspect printf's,
22807         putchar's, etc.  If user code wants to have a strict style where
22808         all these functions' values are checked (so that ferror need not
22809         be checked), we could add support for that style in a new gnulib
22810         module, but in the meantime it's better to be consistent and to
22811         support common usage.
22812
22813         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22814         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22815         that we are compiling in checking mode, and if not C++, and
22816         if not already wrapping fwrite for some other reason.
22817         (fwrite): #define to rpl_fwrite if the latter is defined.
22818
22819 2011-03-20  Bruno Haible  <bruno@clisp.org>
22820
22821         verror: Fix compilation error introduced on 2011-02-13.
22822         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22823         instead of __attribute__.
22824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22825
22826 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22827             Bruno Haible  <bruno@clisp.org>
22828
22829         socklen: do not depend on sys_socket
22830         While trying to modify Emacs to use gnulib's socklen module,
22831         I discovered a circular dependency: socklen depends on sys_socket
22832         and vice versa.  Emacs can use socklen, but it does not need
22833         sys_socket because it has its own substitute for sys/socket.h.
22834         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22835         gl_TYPE_SOCKLEN_T.
22836         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22837         gl_PREREQ_SYS_H_SOCKET.
22838         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22839         gl_PREREQ_SYS_H_SOCKET.
22840         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22841         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22842         * modules/socklen (Depends-on): Do not depend on sys_socket.
22843         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22844
22845 2011-03-20  Jim Meyering  <meyering@redhat.com>
22846
22847         maint.mk: sort file names *after* new transformation
22848         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22849         prefix would have led to an unwarranted failure in GNU parted.
22850         Sort after that transformation.
22851
22852 2011-03-19  Jim Meyering  <meyering@redhat.com>
22853
22854         maint.mk: fix po-file syntax-check rule
22855         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22856         Patch by Bruno Haible.
22857
22858 2011-03-19  Bruno Haible  <bruno@clisp.org>
22859
22860         socklen: Update comment.
22861         * m4/socklen.m4: Update comment about platforms.
22862
22863 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22864             Bruno Haible  <bruno@clisp.org>
22865
22866         inet_ntop, inet_pton: Simplify.
22867         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22868         documented to provide socklen_t and we already depend on sys_socket.
22869         * modules/inet_pton (Depends-on): Likewise.
22870         * lib/arpa_inet.in.h: Adjust comment.
22871
22872 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22873             Bruno Haible  <bruno@clisp.org>
22874
22875         netdb: Simplify.
22876         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22877         documented to provide socklen_t and we already depend on sys_socket.
22878         * lib/netdb.in.h: Adjust comment.
22879
22880 2011-03-19  Bruno Haible  <bruno@clisp.org>
22881
22882         sys_socket, netdb: Document problem with socklen_t.
22883         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22884         platforms.
22885         * doc/posix-headers/netdb.texi: Likewise.
22886
22887 2011-03-18  Eric Blake  <eblake@redhat.com>
22888
22889         maint.mk: let po check work in VPATH build
22890         * top/maint.mk (po_file): Allow cfg.mk override.
22891         (sc_po_check): Allow VPATH use.
22892         Reported by Jiri Denemark.
22893
22894 2011-03-16  Jim Meyering  <meyering@redhat.com>
22895
22896         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22897         Before, you would have had to create one .x-sc_ file per rule in order
22898         to exempt offending files.  Now, you may instead use a Make variable --
22899         usually defined in cfg.mk -- whose name identifies the affected rule.
22900         * top/maint.mk (_sc_excl): Define.
22901         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22902         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22903
22904 2011-03-13  Bruno Haible  <bruno@clisp.org>
22905
22906         ignore-value tests: Avoid warnings.
22907         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22908         empty for gcc < 3.4.
22909
22910 2011-03-13  Bruno Haible  <bruno@clisp.org>
22911
22912         passfd: Fix link error on Solaris.
22913         * modules/passfd (Description): Correct.
22914         (Depends-on): Add socketlib.
22915         (Link): New section.
22916         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22917
22918 2011-03-13  Bruno Haible  <bruno@clisp.org>
22919
22920         passfd: Fix link error on AIX 5.2.
22921         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22922
22923 2011-03-13  Bruno Haible  <bruno@clisp.org>
22924
22925         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22926         * lib/sys_socket.in.h: Include <stddef.h>.
22927         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22928         CMSG_FIRSTHDR. Remove unused variable.
22929
22930 2011-03-13  Bruno Haible  <bruno@clisp.org>
22931
22932         passfd: Fix compilation error on OpenBSD.
22933         * lib/passfd.c: Include <sys/uio.h>.
22934
22935 2011-03-13  Bruno Haible  <bruno@clisp.org>
22936
22937         passfd test: Fix warnings.
22938         * tests/test-passfd.c: Include <sys/wait.h>.
22939         (main): Fix typo.
22940
22941 2011-03-13  Bruno Haible  <bruno@clisp.org>
22942
22943         passfd module, part 4, tweaks.
22944         * tests/test-passfd.c: Reorder includes.
22945         (main): Fix perror and printf calls.
22946
22947 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22948
22949         passfd module, part 4.
22950         * modules/passfd-tests: New file.
22951         * tests/test-passfd.c: New file.
22952
22953 2011-03-13  Jim Meyering  <meyering@redhat.com>
22954
22955         Makefile: rely on GNU make; derive syntax-check rule names
22956         Rather than requiring that each sc_ rule be listed as a dependent
22957         of "check", use features of GNU make to derive the list.
22958         * Makefile (syntax-check-rules): Define.
22959         (check): Depend on the new variable, not the hard-coded list.
22960
22961 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22962             Bruno Haible  <bruno@clisp.org>
22963
22964         passfd module, part 3.
22965         * lib/passfd.h (recvfd): Add a flags argument.
22966         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22967         (recvfd): Add a flags argument.
22968         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22969         exists.
22970         * modules/passfd (Depends-on): Add cloexec.
22971         Suggested by Eric Blake.
22972
22973 2011-03-13  Bruno Haible  <bruno@clisp.org>
22974
22975         passfd module, part 2, tweaks.
22976         * modules/passfd (Files): Reorder.
22977         (Depends-on): Remove errno.
22978         (Include): Remove <sys/socket.h>, <sys/un.h>.
22979         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22980         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22981         specification header. Include <sys/socket.h> always. Don't include
22982         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22983         (sendfd): Clarify that it sets errno when it fails.
22984         (recvfd): Fix specification.
22985
22986 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22987
22988         passfd module, part 2.
22989         * modules/passfd: New file.
22990         * lib/passfd.h: New file.
22991         * lib/passfd.c: New file.
22992
22993 2011-03-12  Bruno Haible  <bruno@clisp.org>
22994
22995         wcswidth, mbswidth: Avoid integer overflow.
22996         * lib/wcswidth.c: Include <limits.h>.
22997         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22998         * lib/mbswidth.c: Include <limits.h>.
22999         (mbsnwidth): Avoid 'int' overflow.
23000         Reported by Jim Meyering.
23001
23002 2011-03-12  Bruno Haible  <bruno@clisp.org>
23003
23004         futimens, utimensat: Avoid endless recursion on Solaris 10.
23005         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23006         Solaris.
23007         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23008         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23009
23010 2011-03-11  Jim Meyering  <meyering@redhat.com>
23011
23012         maint.mk: relax a regexp to accommodate other formatting styles
23013         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23014         between "ngettext" and the following "(".
23015
23016 2011-03-11  Pádraig Brady <P@draigBrady.com>
23017
23018         maint.mk: suppress a false positive warning
23019         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23020         diagnostics are marked with ngettext.
23021
23022 2011-03-10  Eric Blake  <eblake@redhat.com>
23023
23024         wchar: add explicit dependencies, for Tru64
23025         * modules/mbmemcasecoll (Depends-on): Add wchar.
23026         * modules/mbtowc (Depends-on): Likewise.
23027         * modules/vasnprintf (Depends-on): Likewise.
23028         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23029         * modules/wctomb (Depends-on): Likewise.
23030         Reported by Peter O'Gorman.
23031
23032 2011-03-08  Bruno Haible  <bruno@clisp.org>
23033
23034         passfd module, part 1, tweaks.
23035         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23036         Improve indentation. Improve AC_MSG_CHECKING messages.
23037         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23038         gl_SOCKET_FAMILIES.
23039
23040 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23041
23042         passfd module, part 1.
23043         * m4/afunix.m4: New file.
23044         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23045         sockets.
23046
23047 2011-03-08  Bruno Haible  <bruno@clisp.org>
23048
23049         regex-quote: New API.
23050         * lib/regex-quote.h: Include <stdbool.h>.
23051         (struct regex_quote_spec): New type.
23052         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23053         New declarations.
23054         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23055         'const struct regex_quote_spec *' argument.
23056         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23057         (pcre_special): New constant.
23058         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23059         New functions.
23060         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23061         'const struct regex_quote_spec *' argument.
23062         * modules/regex-quote (Depends-on): Add stdbool.
23063         * tests/test-regex-quote.c (check): Update for new API. Add test for
23064         anchored results.
23065         * NEWS: Mention the API change.
23066         Reported by Reuben Thomas and Eric Blake.
23067
23068 2011-03-06  Bruno Haible  <bruno@clisp.org>
23069
23070         regex-quote: Fix creation of POSIX extended regular expressions.
23071         * lib/regex-quote.c (ere_special): Add grouping and alternation
23072         operators.
23073
23074 2011-03-05  Bruno Haible  <bruno@clisp.org>
23075
23076         doc: Improve doc regarding autopoint vs. gnulib.
23077         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23078         disable autopoint while running autoreconf.
23079         Suggested by Ralf Wildenhues.
23080
23081 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23082
23083         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23084         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23085
23086 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23087
23088         parse-duration: remove xalloc.h dependency
23089         * lib/parse-duration.c (parse_period): handle NULL return from
23090         strdup instead of calling xstrdup().
23091         * modules/parse-duration: remove "xalloc" dependency
23092
23093 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23094
23095         bootstrap: honor m4_base when running aclocal
23096         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23097
23098 2011-03-02  Jim Meyering  <meyering@redhat.com>
23099
23100         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23101         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23102         on request from Matt Booth.
23103
23104 2011-03-01  Eric Blake  <eblake@redhat.com>
23105
23106         test-link: work on Hurd
23107         * tests/test-link.h (test_link): Hurd rejects linking directories
23108         with EISDIR instead of the POSIX-mandated EPERM.
23109
23110 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23111
23112         stdio: simplify by moving files to printf-posix, sigpipe
23113         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23114         since this symbol is needed only if printf is replaced.
23115         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23116         Require gl_ASM_SYMBOL_PREFIX.
23117         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23118         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23119         (Depends-on): Add 'raise'.
23120         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23121         * modules/stdio (Files): Remove lib/stdio-write.c,
23122         m4/asm-underscore.m4.
23123         (Depends-on): Remove 'raise'.
23124
23125         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23126         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23127         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23128         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23129
23130 2011-02-28  Bruno Haible  <bruno@clisp.org>
23131
23132         localcharset: Assume ANSI C behaviour of free().
23133         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23134         calling free().
23135         Suggested by Simon Josefsson <simon@josefsson.org>.
23136
23137 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23138             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23139             Bruno Haible  <bruno@clisp.org>  (tiny change)
23140
23141         On Cygwin, use /proc file system instead of win32 API.
23142         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23143         Win32 file names.
23144         (DllMain): Simplify by removing Cygwin specific code.
23145         (find_shared_library_fullname): Use Linux specific implementation also
23146         for Cygwin.
23147         (get_shared_library_fullname): Update accordingly.
23148         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23149         Win32 file names.
23150         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23151         Cygwin specific code.
23152
23153 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23154             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23155
23156         Fix OpenMP flag detection for various Fortran compilers.
23157         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23158         OpenMP-conditional compilation construct, to force compile
23159         failure with missing OpenMP flag.
23160         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23161
23162 2011-02-25  Eric Blake  <eblake@redhat.com>
23163
23164         strstr: expand test coverage
23165         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23166         compilation.
23167         * tests/test-memmem.c (main): Duplicate tests.
23168         * tests/test-strcasestr.c (main): Likewise.
23169         * tests/test-c-strcasestr.c (main): Likewise.
23170
23171 2011-02-25  Jim Meyering  <meyering@redhat.com>
23172
23173         maint.mk: detect missing-NL-at-EOF, too
23174         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23175         it also detects when a file lacks a newline at EOF.
23176         (require_exactly_one_NL_at_EOF_): Renamed from
23177         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23178         since people may well have .x-sc_... file names tied to the
23179         existing name.  Suggested by Eric Blake.
23180
23181 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23182
23183         dirname: move m4/dos.m4 functionality into lib/dosname.h
23184
23185         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23186         extracts symbols from it, puts them into config.h; but it's much
23187         easier to use the symbols directly.  filename.h already does this,
23188         but it disagrees with dos.m4 in some respects.  This patch
23189         introduces a different include file dosname.h that packages up
23190         dos.m4, and then later we can work on merging filename.h and
23191         dosname.h.  Applications that need only the easy-to-configure
23192         symbols should consider including dosname.h rather than dirname.h.
23193         * NEWS: Mention incompatible changes.
23194         * m4/dos.m4: Remove.
23195         * lib/dosname.h, modules/dosname: New files.
23196         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23197         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23198         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23199         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23200         Include dosname.h, not dirname.h.
23201         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23202         Include dosname.h, for definitions of symbols like ISSLASH
23203         that used to be in config.h.
23204         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23205         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23206         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23207         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23208         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23209         * modules/rmdir (Files): Likewise.
23210         * modules/stat (Files): Likewise.
23211         * modules/unlink (Files): Likewise.
23212         * modules/dirname-lgpl (Depends-on): Add dosname.
23213         * modules/lstat (Depends-on): Likewise.
23214         * modules/openat (Depends-on): Likewise.
23215         * modules/rmdir (Depends-on): Likewise.
23216         * modules/savewd (Depends-on): Likewise.
23217         * modules/stat (Depends-on): Likewise.
23218         * modules/unlink (Depends-on): Likewise.
23219         * modules/openat (Depends-on): Remove dirname-lgpl.
23220         * modules/savewd (Depends-on): Likewise.
23221         * tests/test-dirname.c: Do not use removed symbols like
23222         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23223         the remaining symbols, e.g., ISSLASH ('\\').
23224
23225 2011-02-25  Eric Blake  <eblake@redhat.com>
23226
23227         strstr: revert patches that introduced bug and pessimization
23228         * lib/str-two-way.h: Add another reference.
23229         (two_way_short_needle, two_way_long_needle): Revert changes from
23230         2011-02-24; they pessimize search speed.
23231         (critical_factorization): Partially revert changes from
23232         2010-06-22; they violate the requirement that the left half of the
23233         needle be smaller than the period of the needle.
23234
23235 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23236
23237         filenamecat: remove unnecessary dependency on dirname-lgpl
23238         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23239         is no direct dependency, just an indirect one via filenamecat-lgpl.
23240
23241         remove: remove unnecessary use of m4/dos.m4
23242         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23243         * modules/remove (FILES): Remove m4/dos.m4.
23244
23245         * lib/openat-proc.c: Don't include dirname.h; not needed.
23246
23247         backupfile: remove unnecessary use of m4/dos.m4
23248         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23249         of its symbols are used by the backupfile code.  backupfile.c does
23250         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23251         for the rare case of programs that want all their backup file
23252         names to live within 8+3 limits, and dos.m4 doesn't address that.
23253         * modules/backupfile (Files): Remove m4/dos.m4.
23254
23255 2011-02-24  Jim Meyering  <meyering@redhat.com>
23256
23257         strstr: fix a bug whereby strstr would mistakenly return NULL
23258         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23259         in period calculation.
23260         (two_way_long_needle): Likewise.
23261         The original problem was reported by Mike Stump in
23262         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23263         Ralf Wildenhues provided the short needle and haystack.
23264         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23265         Add a more involved test to trigger the bug in two_way_long_needle.
23266
23267 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23268
23269         gnulib-tool: remove use of bold display in help screen
23270         * gnulib-tool (func_usage): Do not use bold display anymore in the
23271         help screen.  That was just meant to be a temporary emphasis for a
23272         backward-incompatible change.
23273
23274 2011-02-23  Bruno Haible  <bruno@clisp.org>
23275
23276         Fix misindentation of preprocessor directives.
23277         * lib/argp-namefrob.h: Reindent preprocessor directives.
23278         * lib/getopt_int.h (struct _getopt_data): Likewise.
23279         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23280         * lib/vasnprintf.c (decode_long_double): Likewise.
23281         * tests/test-argmatch.c: Insert blank lines, for clarity.
23282         * tests/test-exclude.c: Likewise.
23283
23284 2011-02-22  Bruno Haible  <bruno@clisp.org>
23285
23286         ioctl: Fix for MacOS X in 64-bit mode.
23287         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23288         value.
23289         Suggested by Eric Blake.
23290         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23291
23292 2011-02-22  Jim Meyering  <meyering@redhat.com>
23293
23294         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23295         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23296         in lib/.
23297
23298 2011-02-22  Eric Blake  <eblake@redhat.com>
23299
23300         maint: avoid any CDPATH issue
23301         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23302
23303         maint: adjust cpp indentation for my modules, as well
23304         * Makefile (sc_cpp_indent_check): Add my name.
23305         * lib/fbufmode.c: Filter through cppi.
23306         * lib/fpurge.c: Likewise.
23307         * lib/freadable.c: Likewise.
23308         * lib/freading.c: Likewise.
23309         * lib/fwritable.c: Likewise.
23310         * lib/fwriting.c: Likewise.
23311         * lib/sigaction.c: Likewise.
23312
23313 2011-02-22  Jim Meyering  <meyering@redhat.com>
23314
23315         maint: adjust cpp indentation to reflect nesting depth
23316         I.e., in a block of code that begins with an unnested "#if",
23317         put one space between the "#" in column 1 and following token.
23318         For example,
23319         -#include <sys/vfs.h>
23320         +# include <sys/vfs.h>
23321         Do this only in .c files that are part of a module I maintain.
23322         * lib/linkat.c: Filter through cppi.
23323         * lib/nanosleep.c: Likewise.
23324         * lib/openat.c: Likewise.
23325         * lib/openat-die.c: Likewise.
23326         * lib/dup3.c: Likewise.
23327         * lib/fchownat.c: Likewise.
23328         * lib/flock.c: Likewise.
23329         * lib/fsync.c: Likewise.
23330         * lib/fts.c: Likewise.
23331         * lib/getpass.c: Likewise.
23332         * lib/gettimeofday.c: Likewise.
23333         * lib/userspec.c: Likewise.
23334         * Makefile (sc_cpp_indent_check): New rule, to check this.
23335
23336 2011-02-22  Bruno Haible  <bruno@clisp.org>
23337
23338         New module 'wctomb'.
23339         * lib/stdlib.in.h (wctomb): New declaration.
23340         * lib/wctomb.c: New file.
23341         * lib/wctomb-impl.h: New file.
23342         * m4/wctomb.m4: New file.
23343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23344         REPLACE_WCTOMB.
23345         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23346         REPLACE_WCTOMB.
23347         * modules/wctomb: New file.
23348         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23349         * doc/posix-functions/wctomb.texi: Mention the new module.
23350         * modules/wctob (Depends-on): Add wctomb.
23351
23352 2011-02-22  Bruno Haible  <bruno@clisp.org>
23353
23354         New module 'mbtowc'.
23355         * lib/stdlib.in.h (mbtowc): New declaration.
23356         * lib/mbtowc.c: New file.
23357         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23358         * m4/mbtowc.m4: New file.
23359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23360         REPLACE_MBTOWC.
23361         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23362         REPLACE_MBTOWC.
23363         * modules/mbtowc: New file.
23364         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23365         * doc/posix-functions/mbtowc.texi: Mention the new module.
23366         * modules/btowc (Depends-on): Add mbtowc.
23367
23368 2011-02-22  Bruno Haible  <bruno@clisp.org>
23369
23370         wcrtomb: Add more tests for native Windows platforms.
23371         * tests/test-wcrtomb-w32-1.sh: New file.
23372         * tests/test-wcrtomb-w32-2.sh: New file.
23373         * tests/test-wcrtomb-w32-3.sh: New file.
23374         * tests/test-wcrtomb-w32-4.sh: New file.
23375         * tests/test-wcrtomb-w32-5.sh: New file.
23376         * tests/test-wcrtomb-w32.c: New file.
23377         * modules/wcrtomb-tests (Files): Add them.
23378         (Makefile.am): Arrange to run these tests.
23379         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23380         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23381
23382 2011-02-20  Bruno Haible  <bruno@clisp.org>
23383
23384         wcrtomb: Enhance test.
23385         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23386
23387 2011-02-20  Bruno Haible  <bruno@clisp.org>
23388
23389         mbrtowc: Tiny optimization.
23390         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23391
23392 2011-02-20  Jim Meyering  <meyering@redhat.com>
23393
23394         test-exclude.c: remove unmatched #endif
23395         * tests/test-exclude.c: Remove stray #endif, left over from
23396         the change of a week ago.
23397
23398 2011-02-19  Jim Meyering  <meyering@redhat.com>
23399
23400         git-version-gen: skip "-dirty" check when appropriate
23401         * build-aux/git-version-gen: Don't run any git commands when the
23402         version string comes from .tarball-version.  Prior to this, we
23403         would run git update-index --refresh even from a just-unpacked
23404         tarball directory, and that could affect a .git/ directory in a
23405         parent of the build directory.  Reported by Mike Frysinger.
23406
23407 2011-02-19  Bruno Haible  <bruno@clisp.org>
23408
23409         unictype/property-byname: Reduce the size of the 'data' segment.
23410         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23411
23412 2011-02-19  Bruno Haible  <bruno@clisp.org>
23413
23414         unictype/scripts: Reduce the size of the 'data' segment.
23415         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23416         '%pic'.
23417         * lib/unictype/scripts_byname.gperf: Regenerated.
23418
23419 2011-02-19  Bruno Haible  <bruno@clisp.org>
23420
23421         stdint: Update documentation.
23422         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23423
23424 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23425
23426         stdint: omit redundant check for wchar.h
23427         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23428         always tests whether wchar.h exists, so remove the now-redundant test.
23429
23430 2011-02-18  Bruno Haible  <bruno@clisp.org>
23431
23432         stdint: Cut dependency to module 'wchar'.
23433         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23434         include the necessary prerequisites.
23435         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23436         * modules/stdint (Depends-on): Remove wchar.
23437         (Makefile.am): Substitute HAVE_WCHAR_H.
23438         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23439
23440 2011-02-18  Eric Blake  <eblake@redhat.com>
23441
23442         longlong: skip, rather than fail, on cross-compilation
23443         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23444         when cross-compiling; regression from 2011-02-16.
23445
23446 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23447
23448         * NEWS: Mention 2011-02-08 change to stdlib.
23449
23450 2011-02-17  Bruno Haible  <bruno@clisp.org>
23451
23452         getloadavg: Add comments about platforms.
23453         * m4/getloadavg.m4: Add comment.
23454         * lib/getloadavg.c: Likewise.
23455
23456 2011-02-17  Bruno Haible  <bruno@clisp.org>
23457
23458         getloadavg: Fix link error on Solaris 2.6.
23459         * modules/getloadavg (Link): New section.
23460         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23461         linking test-getloadavg.
23462         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23463         getloadavg.
23464
23465 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23468         It was 'int', but this doesn't match the IRIX 6.5 manual.
23469         Suggested by Bruno Haible in
23470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23471
23472 2011-02-17  Bruno Haible  <bruno@clisp.org>
23473
23474         havelib: Fix comments.
23475         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23476         change.
23477
23478 2011-02-17  Bruno Haible  <bruno@clisp.org>
23479
23480         havelib: Update config.rpath.
23481         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23482
23483 2011-02-17  Bruno Haible  <bruno@clisp.org>
23484
23485         getloadavg test: Add some plausibility checks.
23486         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23487         is improbable.
23488
23489 2011-02-16  Eric Blake  <eblake@redhat.com>
23490
23491         maintainer-makefile: make syntax-check a no-op from tarballs
23492         * top/maint.mk (no-vc-detected): New rule.
23493         (local-checks-available): Use it to avoid hanging if someone tries
23494         'make syntax-check' from a tarball.  Also append to any non-syntax
23495         checks already defined in cfg.mk.
23496
23497 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23498
23499         longlong: tune, particularly for common case of c99
23500
23501         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23502         or running anything if c99, or if unsigned long long int does not
23503         work.  In either case, we know the answer without further tests.
23504         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23505         it at most once, and use its results for both long long int and
23506         unsigned long long int.  This is more likely to be efficient in
23507         the common case where the program wants to check for both long
23508         long int and unsigned long long int.
23509         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23510         since the answer is already known.
23511
23512 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23513
23514         getloadavg: set errno
23515         * lib/getloadavg.c: Set errno when returning -1.  If no other
23516         error number looks appropriate, set it to ENOSYS if the getloadavg
23517         looks like it can't possibly ever work, ENOTSUP otherwise.
23518         Suggested by Bruno Haible in
23519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23520
23521         getloadavg: trim unused parts and speed up 'configure'
23522         * NEWS: Document this.
23523         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23524         always compiled if getloadavg is absent.
23525         Move test code to ...
23526         * tests/test-getloadavg.c: New file, containing previous
23527         contents of test from lib/getloadavg.c.  It also contains
23528         suggestions by Bruno Haible in
23529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23530         * modules/getloadavg-tests: New file.
23531         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23532         Do tests in the same order as they're needed for getloadavg.c.
23533         Omit setgid-related tests that generate symbols KMEM_GROUP,
23534         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23535         Do only the tests that are needed to see whether the system has
23536         getloadavg, moving the other tests into ...
23537         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23538         NLIST_NAME_UNION; nobody should be using it.  Do not define
23539         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23540         relevant, as the user of this module shouldn't care how getloadavg
23541         is implemented.
23542
23543         getloadavg: omit unused var
23544         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23545
23546 2011-02-15  Jim Meyering  <meyering@redhat.com>
23547
23548         doc: update users.txt
23549         * users.txt: Update iwhd's URL.
23550
23551 2011-02-13  Bruno Haible  <bruno@clisp.org>
23552
23553         Consistent macro naming for macros that use GCC __attribute__.
23554         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23555         _ATTRIBUTE_NONNULL_.
23556         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23557         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23558         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23559         ATTRIBUTE_DEPRECATED.
23560         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23561         ATTRIBUTE_NORETURN.
23562         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23563         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23564         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23565         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23566         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23567         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23568         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23569         ATTRIBUTE_SENTINEL.
23570         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23571         ATTRIBUTE_RETURN_CHECK.
23572         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23573         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23574         ATTRIBUTE_NORETURN.
23575         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23576         Reported by Paul Eggert.
23577
23578 2011-02-13  Bruno Haible  <bruno@clisp.org>
23579
23580         Don't interfere with a program's definition of __attribute__.
23581         * lib/argp.h (__attribute__): Remove definition.
23582         (_GL_ATTRIBUTE_FORMAT): New macro.
23583         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23584         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23585         (_GL_ATTRIBUTE_FORMAT): New macro.
23586         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23587         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23588         GCC 3 or newer.
23589         * lib/error.h (__attribute__): Remove definition.
23590         (_GL_ATTRIBUTE_FORMAT): New macro.
23591         (error, error_at_line): Use it.
23592         * lib/hash.h (__attribute__): Remove definition.
23593         (ATTRIBUTE_WUR): Update definition. Define always.
23594         * lib/openat.h (__attribute__): Remove definition.
23595         (ATTRIBUTE_NORETURN): Update definition. Define always.
23596         * lib/sigpipe-die.h (__attribute__): Remove definition.
23597         (ATTRIBUTE_NORETURN): Update definition. Define always.
23598         * lib/vasnprintf.h (__attribute__): Remove definition.
23599         (_GL_ATTRIBUTE_FORMAT): New macro.
23600         (asnprintf, vasnprintf): Use it.
23601         * lib/xalloc.h (__attribute__): Remove definition.
23602         (ATTRIBUTE_NORETURN): Update definition. Define always.
23603         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23604         * lib/xmemdup0.h (__attribute__): Remove definition.
23605         (ATTRIBUTE_NORETURN): Update definition. Define always.
23606         * lib/xprintf.h (__attribute__): Remove definition.
23607         (_GL_ATTRIBUTE_FORMAT): New macro.
23608         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23609         * lib/xstrtol.h (__attribute__): Remove definition.
23610         (ATTRIBUTE_NORETURN): Update definition. Define always.
23611         * lib/xvasprintf.h (__attribute__): Remove definition.
23612         (_GL_ATTRIBUTE_FORMAT): New macro.
23613         (xasprintf, xvasprintf): Use it.
23614         * tests/test-argmatch.c (__attribute__): Remove definition.
23615         (ATTRIBUTE_NORETURN): Update definition. Define always.
23616         * tests/test-exclude.c (__attribute__): Remove definition.
23617         (ATTRIBUTE_NORETURN): Update definition. Define always.
23618         Reported by Paul Eggert.
23619
23620 2011-02-13  Bruno Haible  <bruno@clisp.org>
23621
23622         mbrtowc: Add more tests for native Windows platforms.
23623         * tests/test-mbrtowc-w32-1.sh: New file.
23624         * tests/test-mbrtowc-w32-2.sh: New file.
23625         * tests/test-mbrtowc-w32-3.sh: New file.
23626         * tests/test-mbrtowc-w32-4.sh: New file.
23627         * tests/test-mbrtowc-w32-5.sh: New file.
23628         * tests/test-mbrtowc-w32.c: New file.
23629         * modules/mbrtowc-tests (Files): Add them.
23630         (Makefile.am): Arrange to run these tests.
23631         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23632         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23633
23634 2011-02-13  Bruno Haible  <bruno@clisp.org>
23635
23636         mbrtowc: Work around native Windows bug.
23637         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23638         guess when no suitable locale for testing was found.
23639         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23640
23641 2011-02-13  Bruno Haible  <bruno@clisp.org>
23642
23643         mbsinit: Work around mingw bug.
23644         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23645         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23646         Windows.
23647         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23648
23649 2011-02-13  Bruno Haible  <bruno@clisp.org>
23650
23651         mbsinit: Don't crash for a NULL argument.
23652         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23653         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23654
23655 2011-02-13  Bruno Haible  <bruno@clisp.org>
23656
23657         Don't interfere with a program's definition of __attribute__.
23658         * lib/stdio.in.h (__attribute__): Remove definition.
23659         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23660         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23661         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23662         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23663         * lib/string.in.h (__attribute__): Remove definition.
23664         Reported by Paul Eggert.
23665
23666 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23667
23668         stdlib: don't get in the way of non-GCC __attribute__
23669         See thread starting at
23670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23671         Revert previous stdlib change, installing the following instead:
23672         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23673         to get in the way of a non-GCC compiler that supports __attribute__.
23674         (_GL_ATTRIBUTE_RETURN): New macro.
23675         (_Exit): Use it instead of __attribute__.
23676
23677 2011-02-12  Bruno Haible  <bruno@clisp.org>
23678
23679         quotearg test: Avoid test failure on mingw.
23680         * tests/test-quotearg.sh: Convert the locale identifier from native
23681         Windows syntax to Unix syntax.
23682
23683 2011-02-12  Bruno Haible  <bruno@clisp.org>
23684
23685         setlocale: Prefer gnulib's override over libintl's override.
23686         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23687         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23688         GNULIB_defined_setlocale is set.
23689
23690 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23691
23692         stdlib: support non-GCC __attribute__
23693
23694         Fix a serious and tricky problem encountered when attempting to
23695         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23696         5.5, but it crashed due to memory corruption on Solaris 10 with
23697         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23698         bits that are otherwise zero.  This tagging is optional inside
23699         Emacs but is preferred and is used when __attribute__ ((__aligned
23700         (8))) works, as it does with both recent-enough GCC and with Sun C
23701         5.11.  However, Sun C 5.11 is not GCC and does not #define
23702         __GNUC__ and __GNUC_MINOR__.
23703
23704         When I added the getloadavg module to Emacs, it brought in
23705         stdlib.in.h, which contained this fragment:
23706
23707            #ifndef __attribute__
23708            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23709            #  define __attribute__(Spec)   /* empty */
23710            # endif
23711            #endif
23712
23713         When files that include <stdlib.h> were compiled with Sun C 5.11,
23714         the above code disabled __attribute__ ((__aligned (8))), which
23715         caused variables to not be properly aligned, which eventually led
23716         to the pointer corruption mentioned above.  (This was a bit hard
23717         to diagnose, unfortunately.)
23718
23719         Several "#define __attribute__(X) /* empty */" code snippets need
23720         to be eradicated from Gnulib to work with non-GCC compilers that
23721         support __attribute__.  The Autoconf way to do this is to test for
23722         each kind of attribute that we want support for, and selectively
23723         enable that in source code.
23724
23725         Fix this problem just for stdlib.h, by adding a test for the
23726         __noreturn__ attribute, and change stdlib.in.h to use that test
23727         when needed.  This technique can be easily generalized to the
23728         other *.in.h files and attributes, and a similar technique can be
23729         used for *.h and *.c files.  This patch is enough to solve the
23730         problem for Emacs + getloadavg, and I thought I'd publish it for
23731         feedback before undertaking further, similar fixes in other
23732         modules.
23733
23734         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23735         because it's not needed for stdlib.h.  It merely substitutes the
23736         value directly into stdlib.h.  We may well need to #define it, or
23737         similar symbols, for other modules, but it's nice to also have an
23738         option to not #define it for applications like Emacs that do not
23739         need it.
23740
23741         * lib/stdlib.in.h (__attribute__): Do not #define.
23742         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23743         be defined only if the _Exit module is also used.
23744         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23746         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23747         platforms.
23748         * modules/_Exit (Files): Add m4/attribute.m4.
23749         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23750         * m4/attribute.m4: New file.
23751
23752 2011-02-12  Bruno Haible  <bruno@clisp.org>
23753
23754         wcsrtombs: Work around bug on native Windows.
23755         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23756         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23757         instead of len.
23758         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23759
23760 2011-02-12  Bruno Haible  <bruno@clisp.org>
23761
23762         mbsrtowcs: Work around bug on native Windows.
23763         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23764         against mingw bug.
23765         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23766
23767 2011-02-12  Bruno Haible  <bruno@clisp.org>
23768
23769         Avoid setlocale bugs in tests.
23770         * modules/btowc (Dependencies): Add setlocale.
23771         * modules/c-strcase (Dependencies): Likewise.
23772         * modules/mbmemcasecmp (Dependencies): Likewise.
23773         * modules/mbmemcasecoll (Dependencies): Likewise.
23774         * modules/mbrtowc (Dependencies): Likewise.
23775         * modules/mbscasecmp (Dependencies): Likewise.
23776         * modules/mbscasestr (Dependencies): Likewise.
23777         * modules/mbschr (Dependencies): Likewise.
23778         * modules/mbscspn (Dependencies): Likewise.
23779         * modules/mbsinit (Dependencies): Likewise.
23780         * modules/mbsncasecmp (Dependencies): Likewise.
23781         * modules/mbsnrtowcs (Dependencies): Likewise.
23782         * modules/mbspbrk (Dependencies): Likewise.
23783         * modules/mbspcasecmp (Dependencies): Likewise.
23784         * modules/mbsrchr (Dependencies): Likewise.
23785         * modules/mbsrtowcs (Dependencies): Likewise.
23786         * modules/mbsspn (Dependencies): Likewise.
23787         * modules/mbsstr (Dependencies): Likewise.
23788         * modules/nl_langinfo (Dependencies): Likewise.
23789         * modules/quotearg (Dependencies): Likewise.
23790         * modules/unicase/locale-language (Dependencies): Likewise.
23791         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23792         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23793         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23794         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23795         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23796         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23797         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23798         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23799         * modules/vasnprintf-posix (Dependencies): Likewise.
23800         * modules/wcrtomb (Dependencies): Likewise.
23801         * modules/wcsnrtombs (Dependencies): Likewise.
23802         * modules/wcsrtombs (Dependencies): Likewise.
23803
23804 2011-02-12  Bruno Haible  <bruno@clisp.org>
23805
23806         setlocale: Workaround native Windows bug.
23807         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23808         succeeds but sets LC_CTYPE to "C", report a failure.
23809         * tests/test-setlocale2.sh: New file.
23810         * tests/test-setlocale2.c: New file.
23811         * modules/setlocale-tests (Files): Add the new files.
23812         (Makefile.am): Enable test-setlocale2.sh test.
23813         * doc/posix-functions/setlocale.texi: Mention workaround.
23814
23815 2011-02-11  Bruno Haible  <bruno@clisp.org>
23816
23817         Tests for module 'setlocale'.
23818         * modules/setlocale-tests: New file.
23819         * tests/test-setlocale1.sh: New file.
23820         * tests/test-setlocale1.c: New file.
23821
23822         New module 'setlocale'.
23823         * lib/locale.in.h (setlocale): New declaration.
23824         * lib/setlocale.c: New file, based on
23825         gettext/gettext-runtime/intl/setlocale.c.
23826         * m4/setlocale.m4: New file.
23827         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23828         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23829         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23830         REPLACE_SETLOCALE.
23831         * modules/setlocale: New file.
23832         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23833         * doc/posix-functions/setlocale.texi: Mention the new module.
23834
23835 2011-02-11  Bruno Haible  <bruno@clisp.org>
23836
23837         Prepare for locale dependent tests on mingw.
23838         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23839         because it has the wrong locale encoding.
23840         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23841         French_France.1252 instead of "fr".
23842         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23843         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23844         because it has the wrong locale encoding.
23845         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23846         native Windows, try Turkish_Turkey.65001.
23847         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23848         Chinese_China.54936.
23849
23850         Prepare for locale dependent tests on mingw.
23851         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23852         differently.
23853         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23854         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23855         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23856         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23857
23858 2011-02-11  Eric Blake  <eblake@redhat.com>
23859
23860         strptime: avoid compiler warnings
23861         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23862         compiler warnings about dead code.
23863         Reported by Daniel P. Berrange.
23864
23865 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23866
23867         doc: update users.txt
23868         * users.txt: Add rcs.
23869
23870 2011-02-10  John W. Eaton  <jwe@gnu.org>
23871
23872         doc: update users.txt
23873         * users.txt: Add octave.
23874
23875 2011-02-10  Jim Meyering  <meyering@redhat.com>
23876
23877         doc: update users.txt
23878         * users.txt: Add iwhd.
23879
23880 2011-02-09  Bruno Haible  <bruno@clisp.org>
23881
23882         gnulib-tool: Make copyright notice adjustment more robust.
23883         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23884         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23885         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23886         License".
23887         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23888
23889 2011-02-06  Bruno Haible  <bruno@clisp.org>
23890
23891         New module 'towctrans'.
23892         * modules/towctrans: New file.
23893         * lib/wctype.in.h (towctrans): New declaration.
23894         * lib/towctrans.c: New file.
23895         * lib/towctrans-impl.h: New file.
23896         * m4/towctrans.m4: New file.
23897         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23898         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23899         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23900         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23901         * doc/posix-functions/towctrans.texi: Mention the new module.
23902
23903 2011-02-06  Bruno Haible  <bruno@clisp.org>
23904
23905         New module 'wctrans'.
23906         * modules/wctrans: New file.
23907         * lib/wctype.in.h (wctrans): New declaration.
23908         * lib/wctrans.c: New file.
23909         * lib/wctrans-impl.h: New file.
23910         * m4/wctrans.m4: New file.
23911         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23912         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23913         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23914         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23915         * doc/posix-functions/wctrans.texi: Mention the new module.
23916
23917 2011-02-06  Bruno Haible  <bruno@clisp.org>
23918
23919         New module 'iswctype'.
23920         * modules/iswctype: New file.
23921         * lib/wctype.in.h (iswctype): New declaration.
23922         * lib/iswctype.c: New file.
23923         * lib/iswctype-impl.h: New file.
23924         * m4/iswctype.m4: New file.
23925         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23926         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23927         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23928         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23929         * doc/posix-functions/iswctype.texi: Mention the new module and the
23930         HP-UX 11.00 problem.
23931
23932 2011-02-06  Bruno Haible  <bruno@clisp.org>
23933
23934         New module 'wctype'.
23935         * modules/wctype: Change to represent the wctype() substitute.
23936         * lib/wctype.in.h (wctype): New declaration.
23937         * lib/wctype.c: New file.
23938         * lib/wctype-impl.h: New file.
23939         * m4/wctype.m4: New file.
23940         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23941         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23942         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23943         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23944         * doc/posix-functions/wctype.texi: Mention the new module and the
23945         HP-UX 11.00 problem.
23946
23947 2011-02-06  Bruno Haible  <bruno@clisp.org>
23948
23949         wctype-h: Ensure wctype_t and wctrans_t are defined.
23950         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23951         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23952         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23953         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23954         HAVE_WCTRANS_T.
23955         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23956
23957 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23958
23959         flock: fix license typo
23960
23961         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23962         omitted.
23963
23964 2011-02-08  Bruno Haible  <bruno@clisp.org>
23965
23966         Split large sed scripts, for HP-UX sed.
23967         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23968         to avoid HP-UX limit of 99 commands, in the near future.
23969         * modules/stdlib (Makefile.am): Likewise.
23970         * modules/unistd (Makefile.am): Likewise.
23971         * modules/wchar (Makefile.am): Likewise.
23972         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23973         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23974         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23975
23976 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23977             Bruno Haible  <bruno@clisp.org>
23978
23979         stdlib: improve random_r modularization
23980         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23981         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23982         you also need the random_r module to get this material right.
23983         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23984         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23985         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23986
23987 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23988
23989         stdlib: don't depend on stdint
23990         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23991         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23992         be independent of whether stdint.h is needed.
23993         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23994         here, instead of ...
23995         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23996         struct random_data should be using the random_r module, not just
23997         the stdlib module (which wouldn't make sense: what package needs
23998         just struct random_data without also needing random_r?).
23999         * modules/stdlib (Depends-on): Remove stdint.
24000
24001         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24002         See the thread rooted at
24003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24004         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24005         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24006         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24007         __VMS)); previously it was always included (via fcntl--.h).
24008         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24009         hand; this is good enough for load averages.  Also, do not use
24010         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24011         flags directly if available and don't bother otherwise.  (Packages
24012         that need the extra reliability should use the modules that define
24013         these flags on older platforms that lack them.)
24014         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24015         fcntl-safer.
24016
24017 2011-02-08  Jim Meyering  <meyering@redhat.com>
24018
24019         di-set.h, ino-map.h: add multiple-inclusion guard
24020         Technically, the guard is required only for ino-map.h, due to its
24021         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24022         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24023         * lib/ino-map.h: Likewise.
24024
24025 2011-02-06  Bruno Haible  <bruno@clisp.org>
24026
24027         iswblank: Ensure declaration on glibc systems.
24028         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24029         * modules/iswblank (Dependencies): Add 'extensions'.
24030         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24031
24032 2011-02-06  Bruno Haible  <bruno@clisp.org>
24033
24034         New module 'iswblank'.
24035         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24036         * modules/iswblank: New file.
24037         * modules/wctype-h (Files): Remove lib/iswblank.c.
24038         (Makefile.am): Substitute GNULIB_ISWBLANK.
24039         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24040         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24041         (gl_WCTYPE_H_DEFAULTS): New macro.
24042         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24043         * modules/iswblank-tests: New file.
24044         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24045         * tests/test-wctype-h.c (main): Remove iswblank tests.
24046         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24047         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24048         of 'wctype-h'.
24049         * NEWS: Mention the change.
24050         * modules/mbchar (Depends-on): Add iswblank.
24051
24052 2011-02-08  Bruno Haible  <bruno@clisp.org>
24053
24054         di-set tests: Refactor.
24055         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24056         unnecessary includes.
24057         (ASSERT): Remove macro.
24058         (main): Make C90 compliant by avoiding variable declaration after
24059         statement.
24060         * modules/di-set-tests (Files): Add tests/macros.h.
24061
24062 2011-02-08  Bruno Haible  <bruno@clisp.org>
24063
24064         ino-map tests: Refactor.
24065         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24066         unnecessary includes.
24067         (ASSERT): Remove macro.
24068         (main): Make C90 compliant by avoiding variable declaration after
24069         statement.
24070         * modules/ino-map-tests (Files): Add tests/macros.h.
24071
24072 2011-02-08  Jim Meyering  <meyering@redhat.com>
24073
24074         di-set: add "const" to a cast
24075         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24076         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24077
24078 2011-02-06  Bruno Haible  <bruno@clisp.org>
24079
24080         Rename module 'wctype' to 'wctype-h'.
24081         * modules/wctype-h: Renamed from modules/wctype.
24082         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24083         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24084         (Files, Depends-on, Makefile.am): Update.
24085         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24086         (Files, Makefile.am): Update.
24087         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24088         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24089         * doc/posix-headers/wctype.texi: Update.
24090         * doc/posix-functions/iswalnum.texi: Update.
24091         * doc/posix-functions/iswalpha.texi: Update.
24092         * doc/posix-functions/iswblank.texi: Update.
24093         * doc/posix-functions/iswcntrl.texi: Update.
24094         * doc/posix-functions/iswdigit.texi: Update.
24095         * doc/posix-functions/iswgraph.texi: Update.
24096         * doc/posix-functions/iswlower.texi: Update.
24097         * doc/posix-functions/iswprint.texi: Update.
24098         * doc/posix-functions/iswpunct.texi: Update.
24099         * doc/posix-functions/iswspace.texi: Update.
24100         * doc/posix-functions/iswupper.texi: Update.
24101         * doc/posix-functions/iswxdigit.texi: Update.
24102         * doc/posix-functions/towlower.texi: Update.
24103         * doc/posix-functions/towupper.texi: Update.
24104         * NEWS: Mention the change.
24105         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24106         * modules/mbchar (Dependencies): Likewise.
24107         * modules/mbswidth (Dependencies): Likewise.
24108         * modules/quotearg (Dependencies): Likewise.
24109         * modules/regex (Dependencies): Likewise.
24110         * modules/wcscasecmp (Dependencies): Likewise.
24111         * modules/wcsncasecmp (Dependencies): Likewise.
24112         * modules/wcwidth (Dependencies): Likewise.
24113
24114 2011-02-06  Bruno Haible  <bruno@clisp.org>
24115
24116         New module 'wcswidth'.
24117         * modules/wcswidth: New file.
24118         * lib/wchar.in.h (wcswidth): New declaration.
24119         * lib/wcswidth.c: New file.
24120         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24121         * m4/wcswidth.m4: New file.
24122         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24123         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24124         REPLACE_WCSWIDTH.
24125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24126         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24127         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24128         * doc/posix-functions/wcswidth.texi: Mention the new module.
24129
24130 2011-02-06  Bruno Haible  <bruno@clisp.org>
24131
24132         New module 'wcstok'.
24133         * modules/wcstok: New file.
24134         * lib/wchar.in.h (wcstok): New declaration.
24135         * lib/wcstok.c: New file.
24136         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24137         * m4/wcstok.m4: New file.
24138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24141         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24142         * doc/posix-functions/wcstok.texi: Mention the new module.
24143
24144 2011-02-06  Bruno Haible  <bruno@clisp.org>
24145
24146         New module 'wcsstr'.
24147         * modules/wcsstr: New file.
24148         * lib/wchar.in.h (wcsstr): New declaration.
24149         * lib/wcsstr.c: New file.
24150         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24151         * m4/wcsstr.m4: New file.
24152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24155         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24156         * doc/posix-functions/wcsstr.texi: Mention the new module.
24157
24158 2011-02-06  Bruno Haible  <bruno@clisp.org>
24159
24160         New module 'wcspbrk'.
24161         * modules/wcspbrk: New file.
24162         * lib/wchar.in.h (wcspbrk): New declaration.
24163         * lib/wcspbrk.c: New file.
24164         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24165         * m4/wcspbrk.m4: New file.
24166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24169         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24170         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24171
24172 2011-02-06  Bruno Haible  <bruno@clisp.org>
24173
24174         New module 'wcsspn'.
24175         * modules/wcsspn: New file.
24176         * lib/wchar.in.h (wcsspn): New declaration.
24177         * lib/wcsspn.c: New file.
24178         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24179         * m4/wcsspn.m4: New file.
24180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24183         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24184         * doc/posix-functions/wcsspn.texi: Mention the new module.
24185
24186 2011-02-06  Bruno Haible  <bruno@clisp.org>
24187
24188         New module 'wcscspn'.
24189         * modules/wcscspn: New file.
24190         * lib/wchar.in.h (wcscspn): New declaration.
24191         * lib/wcscspn.c: New file.
24192         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24193         * m4/wcscspn.m4: New file.
24194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24196         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24197         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24198         * doc/posix-functions/wcscspn.texi: Mention the new module.
24199
24200 2011-02-06  Bruno Haible  <bruno@clisp.org>
24201
24202         New module 'wcsrchr'.
24203         * modules/wcsrchr: New file.
24204         * lib/wchar.in.h (wcsrchr): New declaration.
24205         * lib/wcsrchr.c: New file.
24206         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24207         * m4/wcsrchr.m4: New file.
24208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24210         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24211         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24212         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24213
24214 2011-02-06  Bruno Haible  <bruno@clisp.org>
24215
24216         New module 'wcschr'.
24217         * modules/wcschr: New file.
24218         * lib/wchar.in.h (wcschr): New declaration.
24219         * lib/wcschr.c: New file.
24220         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24221         * m4/wcschr.m4: New file.
24222         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24223         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24224         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24225         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24226         * doc/posix-functions/wcschr.texi: Mention the new module.
24227
24228 2011-02-06  Bruno Haible  <bruno@clisp.org>
24229
24230         New module 'wcsdup'.
24231         * modules/wcsdup: New file.
24232         * lib/wchar.in.h (wcsdup): New declaration.
24233         * lib/wcsdup.c: New file.
24234         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24235         * m4/wcsdup.m4: New file.
24236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24238         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24239         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24240         * doc/posix-functions/wcsdup.texi: Mention the new module.
24241
24242 2011-02-06  Bruno Haible  <bruno@clisp.org>
24243
24244         New module 'wcsxfrm'.
24245         * modules/wcsxfrm: New file.
24246         * lib/wchar.in.h (wcsxfrm): New declaration.
24247         * lib/wcsxfrm.c: New file.
24248         * lib/wcsxfrm-impl.h: New file.
24249         * m4/wcsxfrm.m4: New file.
24250         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24251         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24252         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24253         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24254         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24255
24256 2011-02-06  Bruno Haible  <bruno@clisp.org>
24257
24258         New module 'wcscoll'.
24259         * modules/wcscoll: New file.
24260         * lib/wchar.in.h (wcscoll): New declaration.
24261         * lib/wcscoll.c: New file.
24262         * lib/wcscoll-impl.h: New file.
24263         * m4/wcscoll.m4: New file.
24264         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24265         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24266         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24267         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24268         * doc/posix-functions/wcscoll.texi: Mention the new module.
24269
24270 2011-02-06  Bruno Haible  <bruno@clisp.org>
24271
24272         New module 'wcsncasecmp'.
24273         * modules/wcsncasecmp: New file.
24274         * lib/wchar.in.h (wcsncasecmp): New declaration.
24275         * lib/wcsncasecmp.c: New file.
24276         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24277         * m4/wcsncasecmp.m4: New file.
24278         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24279         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24280         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24281         HAVE_WCSNCASECMP.
24282         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24283         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24284
24285 2011-02-06  Bruno Haible  <bruno@clisp.org>
24286
24287         New module 'wcscasecmp'.
24288         * modules/wcscasecmp: New file.
24289         * lib/wchar.in.h (wcscasecmp): New declaration.
24290         * lib/wcscasecmp.c: New file.
24291         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24292         * m4/wcscasecmp.m4: New file.
24293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24296         HAVE_WCSCASECMP.
24297         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24298         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24299
24300 2011-02-05  Bruno Haible  <bruno@clisp.org>
24301
24302         New module 'wcsncmp'.
24303         * modules/wcsncmp: New file.
24304         * lib/wchar.in.h (wcsncmp): New declaration.
24305         * lib/wcsncmp.c: New file.
24306         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24307         * m4/wcsncmp.m4: New file.
24308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24311         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24312         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24313
24314 2011-02-05  Bruno Haible  <bruno@clisp.org>
24315
24316         New module 'wcscmp'.
24317         * modules/wcscmp: New file.
24318         * lib/wchar.in.h (wcscmp): New declaration.
24319         * lib/wcscmp.c: New file.
24320         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24321         * m4/wcscmp.m4: New file.
24322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24325         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24326         * doc/posix-functions/wcscmp.texi: Mention the new module.
24327
24328 2011-02-05  Bruno Haible  <bruno@clisp.org>
24329
24330         New module 'wcsncat'.
24331         * modules/wcsncat: New file.
24332         * lib/wchar.in.h (wcsncat): New declaration.
24333         * lib/wcsncat.c: New file.
24334         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24335         * m4/wcsncat.m4: New file.
24336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24339         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24340         * doc/posix-functions/wcsncat.texi: Mention the new module.
24341
24342 2011-02-05  Bruno Haible  <bruno@clisp.org>
24343
24344         New module 'wcscat'.
24345         * modules/wcscat: New file.
24346         * lib/wchar.in.h (wcscat): New declaration.
24347         * lib/wcscat.c: New file.
24348         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24349         * m4/wcscat.m4: New file.
24350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24353         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24354         * doc/posix-functions/wcscat.texi: Mention the new module.
24355
24356 2011-02-05  Bruno Haible  <bruno@clisp.org>
24357
24358         New module 'wcpncpy'.
24359         * modules/wcpncpy: New file.
24360         * lib/wchar.in.h (wcpncpy): New declaration.
24361         * lib/wcpncpy.c: New file.
24362         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24363         * m4/wcpncpy.m4: New file.
24364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24366         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24367         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24368         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24369
24370 2011-02-05  Bruno Haible  <bruno@clisp.org>
24371
24372         New module 'wcsncpy'.
24373         * modules/wcsncpy: New file.
24374         * lib/wchar.in.h (wcsncpy): New declaration.
24375         * lib/wcsncpy.c: New file.
24376         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24377         * m4/wcsncpy.m4: New file.
24378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24381         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24382         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24383
24384 2011-02-05  Bruno Haible  <bruno@clisp.org>
24385
24386         New module 'wcpcpy'.
24387         * modules/wcpcpy: New file.
24388         * lib/wchar.in.h (wcpcpy): New declaration.
24389         * lib/wcpcpy.c: New file.
24390         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24391         * m4/wcpcpy.m4: New file.
24392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24394         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24395         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24396         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24397
24398 2011-02-05  Bruno Haible  <bruno@clisp.org>
24399
24400         New module 'wcscpy'.
24401         * modules/wcscpy: New file.
24402         * lib/wchar.in.h (wcscpy): New declaration.
24403         * lib/wcscpy.c: New file.
24404         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24405         * m4/wcscpy.m4: New file.
24406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24409         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24410         * doc/posix-functions/wcscpy.texi: Mention the new module.
24411
24412 2011-02-05  Bruno Haible  <bruno@clisp.org>
24413
24414         New module 'wcsnlen'.
24415         * modules/wcsnlen: New file.
24416         * lib/wchar.in.h (wcsnlen): New declaration.
24417         * lib/wcsnlen.c: New file.
24418         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24419         * m4/wcsnlen.m4: New file.
24420         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24421         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24422         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24423         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24424         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24425
24426 2011-02-05  Bruno Haible  <bruno@clisp.org>
24427
24428         New module 'wcslen'.
24429         * modules/wcslen: New file.
24430         * lib/wchar.in.h (wcslen): New declaration.
24431         * lib/wcslen.c: New file.
24432         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24433         * m4/wcslen.m4: New file.
24434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24436         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24437         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24438         * doc/posix-functions/wcslen.texi: Mention the new module.
24439
24440 2011-02-05  Bruno Haible  <bruno@clisp.org>
24441
24442         New module 'wmemset'.
24443         * modules/wmemset: New file.
24444         * lib/wchar.in.h (wmemset): New declaration.
24445         * lib/wmemset.c: New file.
24446         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24447         * m4/wmemset.m4: New file.
24448         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24449         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24450         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24451         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24452         * doc/posix-functions/wmemset.texi: Mention the new module.
24453
24454 2011-02-05  Bruno Haible  <bruno@clisp.org>
24455
24456         New module 'wmemmove'.
24457         * modules/wmemmove: New file.
24458         * lib/wchar.in.h (wmemmove): New declaration.
24459         * lib/wmemmove.c: New file.
24460         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24461         * m4/wmemmove.m4: New file.
24462         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24463         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24464         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24465         HAVE_WMEMMOVE.
24466         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24467         * doc/posix-functions/wmemmove.texi: Mention the new module.
24468
24469 2011-02-05  Bruno Haible  <bruno@clisp.org>
24470
24471         New module 'wmemcpy'.
24472         * modules/wmemcpy: New file.
24473         * lib/wchar.in.h (wmemcpy): New declaration.
24474         * lib/wmemcpy.c: New file.
24475         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24476         * m4/wmemcpy.m4: New file.
24477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24479         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24480         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24481         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24482
24483 2011-02-05  Bruno Haible  <bruno@clisp.org>
24484
24485         New module 'wmemcmp'.
24486         * modules/wmemcmp: New file.
24487         * lib/wchar.in.h (wmemcmp): New declaration.
24488         * lib/wmemcmp.c: New file.
24489         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24490         * m4/wmemcmp.m4: New file.
24491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24493         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24494         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24495         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24496
24497 2011-02-07  Jim Meyering  <meyering@redhat.com>
24498
24499         di-set, ino-map: new modules, from coreutils
24500         * lib/di-set.c: New file.
24501         * lib/di-set.h: Likewise.
24502         * lib/ino-map.c: Likewise.
24503         * lib/ino-map.h: Likewise.
24504         * modules/di-set: Likewise.
24505         * modules/di-set-tests: Likewise.
24506         * modules/ino-map: Likewise.
24507         * modules/ino-map-tests: Likewise.
24508         * tests/test-di-set.c: Likewise.
24509         * tests/test-ino-map.c: Likewise.
24510
24511 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24512
24513         getloadavg: merge minor changes from Emacs
24514
24515         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24516         (getloadavg): Use memset, not bzero.
24517
24518         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24519         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24520         clash (bug#86).
24521
24522 2010-11-14  Bruno Haible  <bruno@clisp.org>
24523
24524         Allow multiple gnulib generated replacements to coexist.
24525         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24526         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24527         * lib/langinfo.in.h (nl_item): Likewise.
24528         * lib/math.in.h (_NaN, NAN): Likewise.
24529         * lib/netdb.in.h (struct addrinfo): Likewise.
24530         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24531         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24532         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24533         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24534         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24535         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24536         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24537         pthread_mutexattr_init, pthread_mutexattr_settype,
24538         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24539         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24540         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24541         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24542         * lib/sched.in.h (struct sched_param): Likewise.
24543         * lib/se-selinux.in.h (security_class_t, security_context_t,
24544         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24545         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24546         lsetfilecon, fsetfilecon, security_check_context,
24547         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24548         Likewise.
24549         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24550         Likewise.
24551         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24552         _gl_function_taking_int_returning_void_t, union sigval,
24553         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24554         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24555         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24556         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24557         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24558         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24559         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24560         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24561         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24562         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24563         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24564         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24565         socklen_t, rpl_fd_isset): Likewise.
24566         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24567         * lib/sys_time.in.h (struct timeval): Likewise.
24568         * lib/sys_times.in.h (struct tms): Likewise.
24569         * lib/sys_utsname.in.h (struct utsname):
24570         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24571         * lib/unistd.in.h (getpagesize): Likewise.
24572         * lib/wchar.in.h (mbstate_t): Likewise.
24573         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24574         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24575         towlower, towupper): Likewise.
24576         Reported by Sam Steingold <sds@gnu.org>.
24577
24578 2011-02-05  Eric Blake  <eblake@redhat.com>
24579
24580         unsetenv: work around Haiku issues
24581         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24582         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24583
24584 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24585
24586         libposix: avoid calling error() within libposix
24587         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24588         is defined.
24589
24590 2011-02-05  Eric Blake  <eblake@redhat.com>
24591
24592         strerror_r-posix: port to cygwin
24593         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24594         implementation.
24595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24596         * tests/test-strerror_r.c (main): Fix test.
24597         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24598         issue.
24599
24600 2011-02-05  Bruno Haible  <bruno@clisp.org>
24601
24602         New module 'wmemchr'.
24603         * modules/wmemchr: New file.
24604         * lib/wchar.in.h (wmemchr): New declaration.
24605         * lib/wmemchr.c: New file.
24606         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24607         * m4/wmemchr.m4: New file.
24608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24610         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24611         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24612         * doc/posix-functions/wmemchr.texi: Mention the new module.
24613
24614 2011-02-04  Eric Blake  <eblake@redhat.com>
24615
24616         fdopendir: detect FreeBSD bug
24617         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24618         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24619
24620 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24621
24622         stdbool: do not define HAVE_STDBOOL_H
24623         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24624         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24625         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24626         imported from the latest Autoconf git.  It was motivated by Emacs,
24627         which uses gnulib but does not need HAVE_STDBOOL_H.
24628
24629 2011-02-04  Bruno Haible  <bruno@clisp.org>
24630
24631         wcsnrtombs: Prepare for new module wwcsnrtombs.
24632         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24633         * lib/wcsnrtombs.c: Include it.
24634         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24635
24636         wcsrtombs: Prepare for new module wwcsrtombs.
24637         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24638         * lib/wcsrtombs.c: Include it.
24639         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24640
24641         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24642         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24643         * lib/mbsnrtowcs.c: Include it.
24644         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24645
24646         mbsrtowcs: Prepare for new module mbsrtowwcs.
24647         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24648         * lib/mbsrtowcs.c: Include it.
24649         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24650
24651 2011-02-04  Bruno Haible  <bruno@clisp.org>
24652
24653         vasnprintf: Reduce use of malloc for small format strings.
24654         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24655         (arguments): Add room for the first 7 arguments.
24656         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24657         (char_directives, u8_directives, u16_directives, u32_directives): Add
24658         room for the first 7 directives.
24659         * lib/printf-parse.c: Include <string.h>.
24660         (PRINTF_PARSE): Change memory handling code so that it uses the first
24661         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24662         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24663         Reported by Pádraig Brady <P@draigbrady.com>.
24664
24665 2011-01-31  Eric Blake  <eblake@redhat.com>
24666
24667         dup2: work around Haiku bug
24668         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24669         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24670         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24671         * tests/test-dup2.c (main): Enhance test.
24672
24673 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24674
24675         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24676         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24677         declared by eglibc 2.11.2.
24678         * lib/stdio.in.h: Likewise.
24679
24680 2011-01-31  Eric Blake  <eblake@redhat.com>
24681
24682         ignore-value: add missing test dependency
24683         * tests/test-ignore-value.c: Revert previous change; stdio.h
24684         provides off_t.
24685         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24686
24687 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24688
24689         mktime: clarify long_int width checking
24690         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24691         the top level, to make it clearer that the assumption about
24692         long_int width is being checked.  See
24693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24694
24695 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24696
24697         ignore-value: Fix self-test.
24698         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24699
24700 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24701
24702         TYPE_MAXIMUM: avoid theoretically undefined behavior
24703         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24704         negative number, which the C Standard says has undefined behavior.
24705         In practice this is not a problem, but might as well do it by the book.
24706         Reported by Rich Felker and Eric Blake; see
24707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24708         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24709         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24711         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24712         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24713         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24714
24715         mktime: #undef mktime before #defining it
24716         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24717
24718         mktime: systematically normalize tm_isdst comparisons
24719         * lib/mktime.c (isdst_differ): New function.
24720         (__mktime_internal): Use it systematically for all isdst comparisons.
24721         This completes the fix for libc BZ #6723, and removes the need for
24722         normalizing tm_isdst.  See
24723         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24724         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24725
24726         mktime: fix some integer overflow issues and sidestep the rest
24727
24728         This was prompted by a bug report by Benjamin Lindner for MinGW
24729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24730         His bug is due to signed integer overflow (0 - INT_MIN), and I
24731         I scanned through mktime.c looking for other integer overflow
24732         problems, fixing all the bugs I found.
24733
24734         Although the C Standard says the resulting code is still not safe
24735         in the presence of integer overflow, in practice it should be good
24736         enough for all real-world two's-complement implementations, except
24737         for debugging environments that deliberately trap on integer
24738         overflow (e.g., gcc -ftrapv).
24739
24740         * lib/mktime.c (WRAPV): New macro.
24741         (SHR): Also check that long_int and time_t shift right in the
24742         usual way, before using the fast-but-unportable method.
24743         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24744         used.  The code already assumed two's complement, so there's
24745         no need to test for alternatives.  All uses removed.
24746         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24747         the C standard.  Problem reported by Rich Felker in
24748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24749         (twos_complement_arithmetic): Also check long_int and time_t.
24750         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24751         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24752         (__mktime_internal): Avoid integer overflow with unary subtraction
24753         in two instances where -1 - X is an adequate replacement for -X,
24754         since the calculations are approximate.
24755
24756 2011-01-29  Eric Blake  <eblake@redhat.com>
24757
24758         mktime: avoid infinite loop
24759         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24760         type; behavior is still undefined but portable to all known targets.
24761         Reported by Rich Felker.
24762
24763 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24764
24765         rename, unlink, same-inode: Relicense.
24766         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24767         * modules/unlink (License): Likewise.
24768         * modules/same-inode (License): Likewise.
24769
24770 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24771
24772         mktime: avoid problems on NetBSD 5 / i386
24773         * lib/mktime.c (long_int): New type.  This works around a problem
24774         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24775         but time_t is 64 bits, and where I expect the existing code is
24776         wrong in some cases.
24777         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24778         (ydhms_diff): Bring back the compile-time check for wide-enough
24779         year and yday.
24780
24781         mktime: fix misspelling in comment
24782         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24783         This merges all recent glibc changes of importance.
24784
24785 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24786
24787         move-if-change: cope with concurrent mv of identical file.
24788         * build-aux/move-if-change (CMPPROG): Accept environment
24789         variable as an override for `cmp'.
24790         (usage): Document CMPPROG.
24791         Adjust comparison to drop stdout.  Cope with failure of mv if
24792         the target file exists and is identical to the source, for
24793         parallel builds.
24794         Report from H.J. Lu against binutils in PR binutils/12283.
24795
24796 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24797
24798         * users.txt: Mention sharutils.
24799
24800 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24801
24802         * users.txt: Mention OATH Toolkit.
24803
24804 2011-01-27  Bruno Haible  <bruno@clisp.org>
24805
24806         Prepare for supporting FreeBSD 10.
24807         * build-aux/config.libpath: Remove handling of freebsd1*.
24808
24809 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24810
24811         Prepare for supporting FreeBSD 10.
24812         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24813         match FreeBSD 10.0.
24814
24815 2011-01-27  Bruno Haible  <bruno@clisp.org>
24816
24817         vma-iter, get-rusage-as: Add OpenBSD support.
24818         * modules/vma-iter (configure.ac): Test for mquery.
24819         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24820         * lib/vma-iter.c: Include <sys/mman.h>.
24821         (vma_iterate): Add an implementation based on mquery().
24822         * lib/resource-ext.h (get_rusage_as): Update comments.
24823         * lib/get-rusage-as.c: Likewise.
24824         * lib/get-rusage-data.c: Likewise.
24825
24826 2011-01-26  Karl Berry  <karl@gnu.org>
24827
24828         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24829         variables to make it easier to override the makeinfo program used.
24830
24831 2011-01-26  Eric Blake  <eblake@redhat.com>
24832
24833         fcntl: work around Haiku F_DUPFD bugs
24834         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24835         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24836         cloexec bit on duplication.
24837         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24838
24839 2011-01-26  Bruno Haible  <bruno@clisp.org>
24840
24841         Enable memory leak tests on AIX.
24842         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24843         * tests/test-fprintf-posix3.c (main): Likewise.
24844
24845 2011-01-26  Bruno Haible  <bruno@clisp.org>
24846
24847         Tests for module 'get-rusage-data'.
24848         * modules/get-rusage-data-tests: New file.
24849         * tests/test-get-rusage-data.c: New file.
24850
24851         New module 'get-rusage-data'.
24852         * lib/resource-ext.h (get_rusage_data): New declaration.
24853         * lib/get-rusage-data.c: New file.
24854         * modules/get-rusage-data: New file.
24855
24856 2011-01-25  Bruno Haible  <bruno@clisp.org>
24857
24858         get-rusage-as: Allow for easier testing.
24859         * lib/resource-ext.h (get_rusage_as): Add comment.
24860         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24861         (main): New function for interactive testing.
24862
24863 2011-01-25  Bruno Haible  <bruno@clisp.org>
24864
24865         vma-iter: Treat Haiku like BeOS.
24866         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24867         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24868
24869 2011-01-25  Eric Blake  <eblake@redhat.com>
24870
24871         c-stack: fix regression on cygwin when libsigsegv is present
24872         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24873
24874 2011-01-24  Bruno Haible  <bruno@clisp.org>
24875
24876         vma-iter: Avoid empty intervals.
24877         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24878         on an empty interval.
24879
24880 2011-01-24  Jim Meyering  <meyering@redhat.com>
24881
24882         u64: remove unnecessary #include
24883         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24884
24885 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24886
24887         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24888         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24889
24890 2011-01-23  Bruno Haible  <bruno@clisp.org>
24891
24892         New module 'vma-iter'.
24893         * lib/vma-iter.h: New file.
24894         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24895         * modules/vma-iter: New file.
24896         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24897         for get_rusage_as_via_iterator.
24898         (vma_iterate_callback): New function.
24899         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24900         * modules/get-rusage-as (Depends-on): Add vma-iter.
24901
24902 2011-01-23  Bruno Haible  <bruno@clisp.org>
24903
24904         uninorm: Tweak includes.
24905         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24906         Reported by Jim Meyering.
24907
24908 2011-01-23  Bruno Haible  <bruno@clisp.org>
24909
24910         get-rusage-as: Improve on NetBSD.
24911         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24912         /proc, like on FreeBSD.
24913
24914 2011-01-23  Jim Meyering  <meyering@redhat.com>
24915
24916         xreadlink.h: remove unnecessary #include
24917         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24918
24919         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24920         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24921
24922 2011-01-23  Bruno Haible  <bruno@clisp.org>
24923
24924         get-rusage-as: Fix bug.
24925         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24926         original limit when aborting the first loop.
24927
24928 2011-01-23  Bruno Haible  <bruno@clisp.org>
24929
24930         wctype: Ensure valid C syntax.
24931         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24932         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24933
24934 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24935
24936         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24938         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24939         as they are needed only for configure's test case.
24940         This removes two unnecessary symbols from config.h.
24941
24942         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24943         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24945         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24946         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24947         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24948         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24949         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24950         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24951         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24952         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24954         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24955         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24956         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24957         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24958         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24959         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24960
24961 2011-01-21  Eric Blake  <eblake@redhat.com>
24962
24963         maintainer-makefile: work with older git for submodule check
24964         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24965         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24966         Reported by Matthias Bolte.
24967
24968         bootstrap: minor portability fixes
24969         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24970         (usage): Omit leading capital and trailing . on help phrases, per
24971         GNU Coding Standards.
24972         (check_versions, top level): Prefix messages with script name.
24973
24974 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24975
24976         bootstrap: support --no-git option
24977         * build-aux/bootstrap: Add --no-git option, to be used when
24978         --gnulib-srcdir points to the exact desired checkout.
24979
24980 2011-01-21  Eric Blake  <eblake@redhat.com>
24981
24982         strerror_r-posix: work with glibc 2.13
24983         * lib/strerror_r.c (strerror_r): Fix return type.
24984
24985 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24986             Bruno Haible  <bruno@clisp.org>
24987
24988         uN_strstr: New unit tests.
24989         * modules/unistr/u8-strstr-tests: New file.
24990         * modules/unistr/u16-strstr-tests: New file.
24991         * modules/unistr/u32-strstr-tests: New file.
24992         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24993         * tests/unistr/test-u8-strstr.c: New file.
24994         * tests/unistr/test-u16-strstr.c: New file.
24995         * tests/unistr/test-u32-strstr.c: New file.
24996
24997 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24998             Bruno Haible  <bruno@clisp.org>
24999
25000         Make uN_strstr functions O(n) worst-case.
25001         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25002         16-bit and 32-bit unit cases, use the unibyte algorithm from
25003         lib/mbsstr.c.
25004         * lib/unistr/u8-strstr.c: Include <string.h>.
25005         (UNIT_IS_UINT8_T): New macro.
25006         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25007         (U_STRLEN, U_STRNLEN): New macros.
25008         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25009         (U_STRLEN, U_STRNLEN): New macros.
25010         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25011         (configure.ac): Update required libunistring version.
25012         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25013         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25014         malloca.
25015         (configure.ac): Update required libunistring version.
25016         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25017         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25018         malloca.
25019         (configure.ac): Update required libunistring version.
25020
25021 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25022             Bruno Haible  <bruno@clisp.org>
25023
25024         Prepare for faster uN_strstr functions.
25025         * lib/str-kmp.h: Support definable UNITs.
25026         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25027         needle_len argument.
25028         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25029         * lib/mbscasestr.c (mbscasestr): Likewise.
25030
25031 2011-01-21  Pádraig Brady <P@draigBrady.com>
25032
25033         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25034         * tests/test-malloca.c (main): Unset the environment variable
25035         to greatly speed up the test.
25036         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25037         * modules/malloca-tests: Depend on unsetenv.
25038
25039 2011-01-21  Pádraig Brady <P@draigBrady.com>
25040
25041         ignore-value: remove stdint dependency
25042         * lib/ignore-value.h: Remove <stdint.h>
25043         * modules/ignore-value: Remove stdint dependency.
25044
25045 2011-01-21  Jim Meyering  <meyering@redhat.com>
25046
25047         maint.mk: adjust variable name to be consistent with other gl_ vars
25048         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25049         to be lower case.
25050
25051 2011-01-20  Jim Meyering  <meyering@redhat.com>
25052
25053         maint.mk: make "check" depend on public-submodule-commit by default
25054         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25055
25056 2011-01-20  Bruno Haible  <bruno@clisp.org>
25057
25058         mbfile, mbiter: Complete change from 2008-12-21.
25059         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25060         * m4/mbiter.m4 (gl_MBITER): Likewise.
25061
25062 2011-01-20  Jim Meyering  <meyering@redhat.com>
25063
25064         init.sh: insert space between each function name and "()"
25065         * tests/init.sh: Make it a little easier to see that a function's
25066         name is "warn_", and not "warn" when looking at the first part of
25067         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25068
25069 2011-01-20  Jim Meyering  <meyering@redhat.com>
25070
25071         mountlist: clean up code formatting
25072         * lib/mountlist.c (read_file_system_list): Split a long line,
25073         correct bracing style, use NULL in place of "(struct statfs *)0",
25074         don't parenthesize return value, add spaces around "=" and after
25075         ";-in-for-stmt".
25076
25077 2011-01-14  Markus Duft <mduft@gentoo.org>
25078
25079         mountlist: add support for Interix
25080         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25081         Apply statvfs to all entries of /dev/fs.
25082         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25083         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25084
25085 2011-01-20  Jim Meyering  <meyering@redhat.com>
25086
25087         maint.mk: improve the public-submodule-commit rule
25088         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25089         to suppress printing of its commands... unless V=1.
25090         Add git submodule's --quiet option to suppress printing of e.g.,
25091         "Entering gnulib" output.
25092         "cd" into $(srcdir) before running git submodule.
25093
25094 2011-01-20  Bruno Haible  <bruno@clisp.org>
25095
25096         include_next: Fix bug introduced on 2011-01-18.
25097         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25098         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25099         ac_cv_header_... variable if the second argument is not 'check'.
25100         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25101         gl_NEXT_HEADERS_INTERNAL.
25102
25103 2011-01-20  Bruno Haible  <bruno@clisp.org>
25104
25105         Allow the user to avoid the GNULIB_TEST_* macros.
25106         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25107         Suggested by Paul Eggert.
25108
25109 2011-01-14  Jim Meyering  <meyering@redhat.com>
25110
25111         bootstrap: avoid failure when there is no .gitmodules file
25112         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25113         has been assigned to, even when its value is the empty string.
25114         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25115         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25116         Reported by John W. Eaton <jwe@gnu.org>.
25117
25118 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25119
25120         assume <ctype.h>, ..., <time.h> exist
25121         For years gnulib has been assuming the existence of the headers
25122         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25123         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25124         them, since they don't appear to be needed.
25125         * README (Portability guidelines): Document this.
25126         * lib/flock.c: Assume <fcntl.h> exists.
25127         * lib/regex_internal.h: Assume <locale.h> exists.
25128         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25130         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25131         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25132         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25133         * m4/regex.m4 (gl_REGEX): Likewise.
25134         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25135         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25136         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25137         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25138         * tests/test-argp.c: Likewise.
25139         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25140
25141         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25142         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25143         AA_APPLE_UNIVERSAL_BUILD.  See
25144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25145         * NEWS: Document this.
25146
25147 2011-01-19  Eric Blake  <eblake@redhat.com>
25148
25149         c-stack: assume stack overflow if SA_SIGINFO unsupported
25150         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25151         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25152         sigaction will work.
25153         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25154         behavior match Linux.
25155         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25156
25157         stdbool-tests: accommodate Haiku
25158         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25159
25160         binary-io: fix O_TEXT on Haiku
25161         * modules/binary-io (Depends-on): Add fcntl-h.
25162         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25163         than blindly undefining O_TEXT.
25164         Reported by Scott McCreary.
25165
25166 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25167
25168         include_next: do not check for standard headers like stddef.h
25169
25170         I found this problem when modifying Emacs to use gnulib.
25171         I noticed that it added HAVE_STDDEF_H to config.h, even though
25172         gnulib always assumes <stddef.h> exists as per README and this
25173         symbol is unnecessary.
25174         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25175         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25176         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25177         faster for headers like stddef.h that are known to exist.
25178         (gl_CHECK_NEXT_HEADERS): Use it.
25179         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25180         rather than gl_CHECK_NEXT_HEADERS.
25181         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25182         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25183
25184 2011-01-18  Eric Blake  <eblake@redhat.com>
25185
25186         ansi-c++-opt: skip C++ dependency style if C++ is unused
25187         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25188         tests when we know C++ compilation is not desired.
25189         Reported by Scott McCreary.
25190
25191 2011-01-18  Bruno Haible  <bruno@clisp.org>
25192
25193         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25194         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25195         (main): Perform test also when getrlimit and setrlimit don't exist or
25196         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25197         limiting the address space size using setrlimit, compare the address
25198         space size before and after the the test.
25199         * tests/test-dprintf-posix2.c: Likewise.
25200         * tests/test-fprintf-posix3.sh: Update skip messages.
25201         * tests/test-dprintf-posix2.sh: Likewise.
25202         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25203         * modules/dprintf-posix-tests (Depends-on): Likewise.
25204         Reported by Bruce Korb <bkorb@gnu.org> and
25205         Gary V. Vaughan <gary@gnu.org>.
25206
25207 2011-01-18  Bruno Haible  <bruno@clisp.org>
25208
25209         get-rusage-as: Improvement for Cygwin.
25210         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25211         areas that are merely reserved.
25212
25213 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25214
25215         strftime: remove dependencies on multibyte modules
25216
25217         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25218         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25219         only if __osf__ is defined, and I suspect OSF doesn't need these
25220         other modules.  If my guess is wrong, we'll need to come up with a
25221         variant of strftime that doesn't need the multibyte modules.
25222
25223         I discovered this problem when attempting modify Emacs to use the
25224         strftime module.  With the previous gnulib, this caused Emacs to
25225         need 31 new files, ranging from lib/config.charset to
25226         m4/wint_t.m4.  This was overkill and I expect would be offputting
25227         to the Emacs maintainers.  After this change, only 6 new files are
25228         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25229         stdbool.m4, and tm_gmtoff.m4.
25230
25231         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25232         Suggested by Bruno Haible in
25233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25234         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25235         and do not check for wchar.h.
25236         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25237         (Depends-on): Remove mbrlen, mbsinit, wchar.
25238
25239 2011-01-18  Bruno Haible  <bruno@clisp.org>
25240
25241         Tests for module 'get-rusage-as'.
25242         * modules/get-rusage-as-tests: New file.
25243         * tests/test-get-rusage-as.c: New file.
25244
25245         New module 'get-rusage-as'.
25246         * modules/get-rusage-as: New file.
25247         * lib/resource-ext.h: New file.
25248         * lib/get-rusage-as.c: New file.
25249
25250 2011-01-17  Eric Blake  <eblake@redhat.com>
25251
25252         sigaction: relax license from LGPLv3+ to LGPLv2+
25253         * modules/sigaction (License): Relax to LGPLv2+.
25254
25255 2011-01-14  Bruno Haible  <bruno@clisp.org>
25256
25257         filemode: Make function declarations usable in C++ mode.
25258         * lib/filemode.h: Enclose function declarations in extern "C" block.
25259         Reported by John W. Eaton <jwe@gnu.org>.
25260
25261 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25262
25263         save-cwd: no longer include "xgetcwd.h"
25264         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25265         This avoids a compilation failure in projects that use save-cwd
25266         without also using the xgetcwd module.
25267
25268 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25269
25270         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25271         This is so that a program like Emacs, which needs only dtoastr,
25272         does not have to bother with distributing and compiling ftoastr
25273         and ldtoastr.
25274         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25275         * modules/dtoastr, modules/ldtoastr: New files.
25276         * modules/ftoastr: Now works just for 'float'.
25277         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25278         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25279         dtoastr.c, ldtoastr.c.
25280
25281 2011-01-11  Jim Meyering  <meyering@redhat.com>
25282
25283         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25284         There is no need to work around the lack of the fchdir function,
25285         since gnulib can now provide a replacement when required.
25286         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25287         * modules/save-cwd (Depends-on): Add fchdir.
25288
25289 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25290
25291         openat, save-cwd: avoid xmalloc
25292
25293         This removes a direct (but undocumented) dependency of openat on
25294         xalloc, along with an indirect dependency via save-cwd.  It also
25295         removes a dependency of save-cwd on xgetcwd, and thereby
25296         indirectly on xalloc.  This change causes the openat substitute
25297         to fall back on save_cwd when memory is tight, and for save_cwd to
25298         fail instead of dying when memory is tight, but that's good enough.
25299         Problem and initial idea for fix reported by Bastien Roucaries in
25300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25301
25302         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25303         xalloc.h (for xmalloc).
25304         (openat_proc_name): Use malloc, not xmalloc.
25305         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25306         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25307
25308         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25309         This avoids heap allocation for file names whose lengths are in
25310         the range 512..1023, with the upper bound increasing to at most
25311         4031 depending on the platform's PATH_MAX.  (We do not want
25312         pathmax.h here as it might supply a non-constant PATH_MAX.)
25313         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25314         Perhaps they should be moved to malloca.h?
25315         (OPENAT_BUFFER_SIZE): Use them.
25316
25317 2011-01-10  Bruno Haible  <bruno@clisp.org>
25318
25319         doc: Update users.txt.
25320         * users.txt: Add recutils.
25321
25322 2011-01-09  Karl Berry  <karl@gnu.org>
25323
25324         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25325
25326         * doc/configmake.texi: New file.
25327         * doc/gnulib.texi: Include it.
25328         * modules/configmake: Move documentation from here.
25329
25330 2011-01-09  Bruno Haible  <bruno@clisp.org>
25331
25332         Update to Unicode 6.0.0.
25333         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25334         (get_lbp): Update for Unicode 6.0.0.
25335         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25336         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25337         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25338         U+11001, U+11038..U+11046. Remove U+06DE.
25339         (uc_width): Fix bounds of planes.
25340         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25341         lib/uniwidth/width.c.
25342         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25343         trailing whitespace removed.
25344         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25345         without comments, but with the original copyright notice.
25346         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25347         * lib/unicase/ignorable.h: Likewise.
25348         * lib/unicase/tocasefold.h: Likewise.
25349         * lib/unicase/tolower.h: Likewise.
25350         * lib/unicase/totitle.h: Likewise.
25351         * lib/unicase/toupper.h: Likewise.
25352         * lib/unictype/bidi_of.h: Likewise.
25353         * lib/unictype/blocks.h: Likewise.
25354         * lib/unictype/categ_C.h: Likewise.
25355         * lib/unictype/categ_Cn.h: Likewise.
25356         * lib/unictype/categ_L.h: Likewise.
25357         * lib/unictype/categ_Ll.h: Likewise.
25358         * lib/unictype/categ_Lm.h: Likewise.
25359         * lib/unictype/categ_Lo.h: Likewise.
25360         * lib/unictype/categ_Lu.h: Likewise.
25361         * lib/unictype/categ_M.h: Likewise.
25362         * lib/unictype/categ_Mc.h: Likewise.
25363         * lib/unictype/categ_Me.h: Likewise.
25364         * lib/unictype/categ_Mn.h: Likewise.
25365         * lib/unictype/categ_N.h: Likewise.
25366         * lib/unictype/categ_Nd.h: Likewise.
25367         * lib/unictype/categ_No.h: Likewise.
25368         * lib/unictype/categ_P.h: Likewise.
25369         * lib/unictype/categ_Po.h: Likewise.
25370         * lib/unictype/categ_S.h: Likewise.
25371         * lib/unictype/categ_Sc.h: Likewise.
25372         * lib/unictype/categ_Sk.h: Likewise.
25373         * lib/unictype/categ_Sm.h: Likewise.
25374         * lib/unictype/categ_So.h: Likewise.
25375         * lib/unictype/categ_of.h: Likewise.
25376         * lib/unictype/combining.h: Likewise.
25377         * lib/unictype/ctype_alnum.h: Likewise.
25378         * lib/unictype/ctype_alpha.h: Likewise.
25379         * lib/unictype/ctype_graph.h: Likewise.
25380         * lib/unictype/ctype_lower.h: Likewise.
25381         * lib/unictype/ctype_print.h: Likewise.
25382         * lib/unictype/ctype_punct.h: Likewise.
25383         * lib/unictype/ctype_upper.h: Likewise.
25384         * lib/unictype/decdigit.h: Likewise.
25385         * lib/unictype/digit.h: Likewise.
25386         * lib/unictype/numeric.h: Likewise.
25387         * lib/unictype/pr_alphabetic.h: Likewise.
25388         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25389         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25390         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25391         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25392         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25393         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25394         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25395         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25396         * lib/unictype/pr_case_ignorable.h: Likewise.
25397         * lib/unictype/pr_cased.h: Likewise.
25398         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25399         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25400         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25401         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25402         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25403         * lib/unictype/pr_combining.h: Likewise.
25404         * lib/unictype/pr_composite.h: Likewise.
25405         * lib/unictype/pr_currency_symbol.h: Likewise.
25406         * lib/unictype/pr_decimal_digit.h: Likewise.
25407         * lib/unictype/pr_deprecated.h: Likewise.
25408         * lib/unictype/pr_format_control.h: Likewise.
25409         * lib/unictype/pr_grapheme_base.h: Likewise.
25410         * lib/unictype/pr_grapheme_extend.h: Likewise.
25411         * lib/unictype/pr_grapheme_link.h: Likewise.
25412         * lib/unictype/pr_id_continue.h: Likewise.
25413         * lib/unictype/pr_id_start.h: Likewise.
25414         * lib/unictype/pr_ideographic.h: Likewise.
25415         * lib/unictype/pr_lowercase.h: Likewise.
25416         * lib/unictype/pr_math.h: Likewise.
25417         * lib/unictype/pr_numeric.h: Likewise.
25418         * lib/unictype/pr_other_alphabetic.h: Likewise.
25419         * lib/unictype/pr_other_id_continue.h: Likewise.
25420         * lib/unictype/pr_other_math.h: Likewise.
25421         * lib/unictype/pr_punctuation.h: Likewise.
25422         * lib/unictype/pr_sentence_terminal.h: Likewise.
25423         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25424         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25425         * lib/unictype/pr_unified_ideograph.h: Likewise.
25426         * lib/unictype/pr_uppercase.h: Likewise.
25427         * lib/unictype/pr_xid_continue.h: Likewise.
25428         * lib/unictype/pr_xid_start.h: Likewise.
25429         * lib/unictype/scripts.h: Likewise.
25430         * lib/unictype/scripts_byname.gperf: Likewise.
25431         * lib/unictype/sy_java_ident.h: Likewise.
25432         * lib/unigbrk/gbrkprop.h: Likewise.
25433         * lib/unilbrk/lbrkprop1.h: Likewise.
25434         * lib/unilbrk/lbrkprop2.h: Likewise.
25435         * lib/uninorm/decomposition-table2.h: Likewise.
25436         * lib/uniwbrk/wbrkprop.h: Likewise.
25437         * tests/unicase/test-cased.c: Likewise.
25438         * tests/unicase/test-ignorable.c: Likewise.
25439         * tests/unicase/test-uc_tolower.c: Likewise.
25440         * tests/unicase/test-uc_totitle.c: Likewise.
25441         * tests/unicase/test-uc_toupper.c: Likewise.
25442         * tests/unictype/test-categ_C.c: Likewise.
25443         * tests/unictype/test-categ_Cn.c: Likewise.
25444         * tests/unictype/test-categ_L.c: Likewise.
25445         * tests/unictype/test-categ_Ll.c: Likewise.
25446         * tests/unictype/test-categ_Lm.c: Likewise.
25447         * tests/unictype/test-categ_Lo.c: Likewise.
25448         * tests/unictype/test-categ_Lu.c: Likewise.
25449         * tests/unictype/test-categ_M.c: Likewise.
25450         * tests/unictype/test-categ_Mc.c: Likewise.
25451         * tests/unictype/test-categ_Me.c: Likewise.
25452         * tests/unictype/test-categ_Mn.c: Likewise.
25453         * tests/unictype/test-categ_N.c: Likewise.
25454         * tests/unictype/test-categ_Nd.c: Likewise.
25455         * tests/unictype/test-categ_No.c: Likewise.
25456         * tests/unictype/test-categ_P.c: Likewise.
25457         * tests/unictype/test-categ_Po.c: Likewise.
25458         * tests/unictype/test-categ_S.c: Likewise.
25459         * tests/unictype/test-categ_Sc.c: Likewise.
25460         * tests/unictype/test-categ_Sk.c: Likewise.
25461         * tests/unictype/test-categ_Sm.c: Likewise.
25462         * tests/unictype/test-categ_So.c: Likewise.
25463         * tests/unictype/test-ctype_alnum.c: Likewise.
25464         * tests/unictype/test-ctype_alpha.c: Likewise.
25465         * tests/unictype/test-ctype_graph.c: Likewise.
25466         * tests/unictype/test-ctype_lower.c: Likewise.
25467         * tests/unictype/test-ctype_print.c: Likewise.
25468         * tests/unictype/test-ctype_punct.c: Likewise.
25469         * tests/unictype/test-ctype_upper.c: Likewise.
25470         * tests/unictype/test-decdigit.h: Likewise.
25471         * tests/unictype/test-digit.h: Likewise.
25472         * tests/unictype/test-numeric.h: Likewise.
25473         * tests/unictype/test-pr_alphabetic.c: Likewise.
25474         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25475         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25476         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25477         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25478         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25479         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25480         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25481         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25482         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25483         * tests/unictype/test-pr_cased.c: Likewise.
25484         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25485         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25486         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25487         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25488         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25489         * tests/unictype/test-pr_combining.c: Likewise.
25490         * tests/unictype/test-pr_composite.c: Likewise.
25491         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25492         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25493         * tests/unictype/test-pr_deprecated.c: Likewise.
25494         * tests/unictype/test-pr_format_control.c: Likewise.
25495         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25496         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25497         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25498         * tests/unictype/test-pr_id_continue.c: Likewise.
25499         * tests/unictype/test-pr_id_start.c: Likewise.
25500         * tests/unictype/test-pr_ideographic.c: Likewise.
25501         * tests/unictype/test-pr_lowercase.c: Likewise.
25502         * tests/unictype/test-pr_math.c: Likewise.
25503         * tests/unictype/test-pr_numeric.c: Likewise.
25504         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25505         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25506         * tests/unictype/test-pr_other_math.c: Likewise.
25507         * tests/unictype/test-pr_punctuation.c: Likewise.
25508         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25509         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25510         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25511         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25512         * tests/unictype/test-pr_uppercase.c: Likewise.
25513         * tests/unictype/test-pr_xid_continue.c: Likewise.
25514         * tests/unictype/test-pr_xid_start.c: Likewise.
25515         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25516         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25517         changes.
25518         * lib/unictype/categ_Cc.h: Likewise.
25519         * lib/unictype/categ_Cf.h: Likewise.
25520         * lib/unictype/categ_Co.h: Likewise.
25521         * lib/unictype/categ_Cs.h: Likewise.
25522         * lib/unictype/categ_Lt.h: Likewise.
25523         * lib/unictype/categ_Nl.h: Likewise.
25524         * lib/unictype/categ_Pc.h: Likewise.
25525         * lib/unictype/categ_Pd.h: Likewise.
25526         * lib/unictype/categ_Pe.h: Likewise.
25527         * lib/unictype/categ_Pf.h: Likewise.
25528         * lib/unictype/categ_Pi.h: Likewise.
25529         * lib/unictype/categ_Ps.h: Likewise.
25530         * lib/unictype/categ_Z.h: Likewise.
25531         * lib/unictype/categ_Zl.h: Likewise.
25532         * lib/unictype/categ_Zp.h: Likewise.
25533         * lib/unictype/categ_Zs.h: Likewise.
25534         * lib/unictype/ctype_blank.h: Likewise.
25535         * lib/unictype/ctype_cntrl.h: Likewise.
25536         * lib/unictype/ctype_digit.h: Likewise.
25537         * lib/unictype/ctype_space.h: Likewise.
25538         * lib/unictype/ctype_xdigit.h: Likewise.
25539         * lib/unictype/mirror.h: Likewise.
25540         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25541         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25542         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25543         * lib/unictype/pr_bidi_control.h: Likewise.
25544         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25545         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25546         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25547         * lib/unictype/pr_bidi_pdf.h: Likewise.
25548         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25549         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25550         * lib/unictype/pr_dash.h: Likewise.
25551         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25552         * lib/unictype/pr_diacritic.h: Likewise.
25553         * lib/unictype/pr_extender.h: Likewise.
25554         * lib/unictype/pr_hex_digit.h: Likewise.
25555         * lib/unictype/pr_hyphen.h: Likewise.
25556         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25557         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25558         * lib/unictype/pr_ignorable_control.h: Likewise.
25559         * lib/unictype/pr_iso_control.h: Likewise.
25560         * lib/unictype/pr_join_control.h: Likewise.
25561         * lib/unictype/pr_left_of_pair.h: Likewise.
25562         * lib/unictype/pr_line_separator.h: Likewise.
25563         * lib/unictype/pr_logical_order_exception.h: Likewise.
25564         * lib/unictype/pr_non_break.h: Likewise.
25565         * lib/unictype/pr_not_a_character.h: Likewise.
25566         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25567         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25568         * lib/unictype/pr_other_id_start.h: Likewise.
25569         * lib/unictype/pr_other_lowercase.h: Likewise.
25570         * lib/unictype/pr_other_uppercase.h: Likewise.
25571         * lib/unictype/pr_paired_punctuation.h: Likewise.
25572         * lib/unictype/pr_paragraph_separator.h: Likewise.
25573         * lib/unictype/pr_pattern_syntax.h: Likewise.
25574         * lib/unictype/pr_pattern_white_space.h: Likewise.
25575         * lib/unictype/pr_private_use.h: Likewise.
25576         * lib/unictype/pr_quotation_mark.h: Likewise.
25577         * lib/unictype/pr_radical.h: Likewise.
25578         * lib/unictype/pr_soft_dotted.h: Likewise.
25579         * lib/unictype/pr_space.h: Likewise.
25580         * lib/unictype/pr_titlecase.h: Likewise.
25581         * lib/unictype/pr_variation_selector.h: Likewise.
25582         * lib/unictype/pr_white_space.h: Likewise.
25583         * lib/unictype/pr_zero_width.h: Likewise.
25584         * lib/unictype/sy_c_ident.h: Likewise.
25585         * lib/unictype/sy_c_whitespace.h: Likewise.
25586         * lib/unictype/sy_java_whitespace.h: Likewise.
25587         * lib/uninorm/composition-table.gperf: Likewise.
25588         * lib/uninorm/decomposition-table1.h: Likewise.
25589         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25590         LB8.
25591         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25592         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25593         * modules/unictype/*: Bump version number of expected libunistring
25594         version.
25595
25596 2011-01-09  Bruno Haible  <bruno@clisp.org>
25597
25598         Update to Unicode 5.2.0.
25599         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25600         trailing whitespace removed.
25601
25602 2011-01-09  Bruno Haible  <bruno@clisp.org>
25603
25604         New Unicode character properties, from Unicode 5.2.0.
25605         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25606         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25607         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25608         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25609         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25610         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25611         uc_is_property_cased, uc_is_property_case_ignorable,
25612         uc_is_property_changes_when_lowercased,
25613         uc_is_property_changes_when_uppercased,
25614         uc_is_property_changes_when_titlecased,
25615         uc_is_property_changes_when_casefolded,
25616         uc_is_property_changes_when_casemapped): New declarations.
25617         * lib/unictype/pr_byname.gperf: Add the new properties.
25618         * modules/unictype/property-byname (Depends-on): Depend on the new
25619         properties modules.
25620         * modules/unictype/property-all (Depends-on): Likewise.
25621         * MODULES.html.sh (Unicode string functions): Add
25622         unictype/property-case-ignorable, unictype/property-cased,
25623         unictype/property-changes-when-casefolded,
25624         unictype/property-changes-when-casemapped,
25625         unictype/property-changes-when-lowercased,
25626         unictype/property-changes-when-titlecased,
25627         unictype/property-changes-when-uppercased.
25628
25629         New module 'unictype/property-changes-when-casemapped'.
25630         * modules/unictype/property-changes-when-casemapped: New file.
25631         * lib/unictype/pr_changes_when_casemapped.c: New file.
25632         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25633         generated by gen-uni-tables.
25634         * modules/unictype/property-changes-when-casemapped-tests: New file.
25635         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25636         automatically generated by gen-uni-tables.
25637
25638         New module 'unictype/property-changes-when-casefolded'.
25639         * modules/unictype/property-changes-when-casefolded: New file.
25640         * lib/unictype/pr_changes_when_casefolded.c: New file.
25641         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25642         generated by gen-uni-tables.
25643         * modules/unictype/property-changes-when-casefolded-tests: New file.
25644         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25645         automatically generated by gen-uni-tables.
25646
25647         New module 'unictype/property-changes-when-titlecased'.
25648         * modules/unictype/property-changes-when-titlecased: New file.
25649         * lib/unictype/pr_changes_when_titlecased.c: New file.
25650         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25651         generated by gen-uni-tables.
25652         * modules/unictype/property-changes-when-titlecased-tests: New file.
25653         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25654         automatically generated by gen-uni-tables.
25655
25656         New module 'unictype/property-changes-when-uppercased'.
25657         * modules/unictype/property-changes-when-uppercased: New file.
25658         * lib/unictype/pr_changes_when_uppercased.c: New file.
25659         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25660         generated by gen-uni-tables.
25661         * modules/unictype/property-changes-when-uppercased-tests: New file.
25662         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25663         automatically generated by gen-uni-tables.
25664
25665         New module 'unictype/property-changes-when-lowercased'.
25666         * modules/unictype/property-changes-when-lowercased: New file.
25667         * lib/unictype/pr_changes_when_lowercased.c: New file.
25668         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25669         generated by gen-uni-tables.
25670         * modules/unictype/property-changes-when-lowercased-tests: New file.
25671         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25672         automatically generated by gen-uni-tables.
25673
25674         New module 'unictype/property-case-ignorable'.
25675         * modules/unictype/property-case-ignorable: New file.
25676         * lib/unictype/pr_case_ignorable.c: New file.
25677         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25678         by gen-uni-tables.
25679         * modules/unictype/property-case-ignorable-tests: New file.
25680         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25681         generated by gen-uni-tables.
25682
25683         New module 'unictype/property-cased'.
25684         * modules/unictype/property-cased: New file.
25685         * lib/unictype/pr_cased.c: New file.
25686         * lib/unictype/pr_cased.h: New file, automatically generated by
25687         gen-uni-tables.
25688         * modules/unictype/property-cased-tests: New file.
25689         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25690         gen-uni-tables.
25691
25692 2011-01-09  Bruno Haible  <bruno@clisp.org>
25693
25694         Update to Unicode 5.2.0.
25695         * lib/gen-uni-tables.c (output_predicate, output_category,
25696         output_combclass, output_bidi_category, output_decimal_digit_test,
25697         output_decimal_digit, output_digit_test, output_digit,
25698         output_numeric_test, output_numeric, output_mirror, output_scripts,
25699         output_scripts_byname, output_blocks, output_ident_category): Fix
25700         comment header.
25701         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25702         get_wbp.
25703         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25704         items.
25705         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25706         Changes_When_Lowercased, Changes_When_Uppercased,
25707         Changes_When_Titlecased, Changes_When_Casefolded,
25708         Changes_When_Casemapped.
25709         (is_property_alphabetic, is_property_default_ignorable_code_point):
25710         Update for Unicode 5.2.0.
25711         (is_property_cased, is_property_case_ignorable,
25712         is_property_changes_when_lowercased,
25713         is_property_changes_when_uppercased,
25714         is_property_changes_when_titlecased,
25715         is_property_changes_when_casefolded,
25716         is_property_changes_when_casemapped): New functions.
25717         (output_properties): Output also the properties cased, case_ignorable,
25718         changes_when_lowercased, changes_when_uppercased,
25719         changes_when_titlecased, changes_when_casefolded,
25720         changes_when_casemapped.
25721         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25722         Unicode TR#11 revision 17 -> 19.
25723         (LBP_CP): New enumeration value.
25724         (LBP_*): Adjust values accordingly.
25725         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25726         TR#14 revision 22 -> 24.
25727         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25728         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25729         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25730         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25731         is_WBP_MIDLETTER.
25732         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25733         the code1 and code2 of each composition rule.
25734         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25735         * lib/unicase/ignorable.h: Likewise.
25736         * lib/unicase/tocasefold.h: Likewise.
25737         * lib/unicase/tolower.h: Likewise.
25738         * lib/unicase/totitle.h: Likewise.
25739         * lib/unicase/toupper.h: Likewise.
25740         * lib/unictype/bidi_of.h: Likewise.
25741         * lib/unictype/blocks.h: Likewise.
25742         * lib/unictype/categ_C.h: Likewise.
25743         * lib/unictype/categ_Cf.h: Likewise.
25744         * lib/unictype/categ_Cn.h: Likewise.
25745         * lib/unictype/categ_L.h: Likewise.
25746         * lib/unictype/categ_Ll.h: Likewise.
25747         * lib/unictype/categ_Lm.h: Likewise.
25748         * lib/unictype/categ_Lo.h: Likewise.
25749         * lib/unictype/categ_Lu.h: Likewise.
25750         * lib/unictype/categ_M.h: Likewise.
25751         * lib/unictype/categ_Mc.h: Likewise.
25752         * lib/unictype/categ_Mn.h: Likewise.
25753         * lib/unictype/categ_N.h: Likewise.
25754         * lib/unictype/categ_Nd.h: Likewise.
25755         * lib/unictype/categ_Nl.h: Likewise.
25756         * lib/unictype/categ_No.h: Likewise.
25757         * lib/unictype/categ_P.h: Likewise.
25758         * lib/unictype/categ_Pd.h: Likewise.
25759         * lib/unictype/categ_Po.h: Likewise.
25760         * lib/unictype/categ_S.h: Likewise.
25761         * lib/unictype/categ_Sc.h: Likewise.
25762         * lib/unictype/categ_So.h: Likewise.
25763         * lib/unictype/categ_of.h: Likewise.
25764         * lib/unictype/combining.h: Likewise.
25765         * lib/unictype/ctype_alnum.h: Likewise.
25766         * lib/unictype/ctype_alpha.h: Likewise.
25767         * lib/unictype/ctype_graph.h: Likewise.
25768         * lib/unictype/ctype_lower.h: Likewise.
25769         * lib/unictype/ctype_print.h: Likewise.
25770         * lib/unictype/ctype_punct.h: Likewise.
25771         * lib/unictype/ctype_upper.h: Likewise.
25772         * lib/unictype/decdigit.h: Likewise.
25773         * lib/unictype/digit.h: Likewise.
25774         * lib/unictype/numeric.h: Likewise.
25775         * lib/unictype/pr_alphabetic.h: Likewise.
25776         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25777         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25778         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25779         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25780         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25781         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25782         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25783         * lib/unictype/pr_combining.h: Likewise.
25784         * lib/unictype/pr_composite.h: Likewise.
25785         * lib/unictype/pr_currency_symbol.h: Likewise.
25786         * lib/unictype/pr_dash.h: Likewise.
25787         * lib/unictype/pr_decimal_digit.h: Likewise.
25788         * lib/unictype/pr_deprecated.h: Likewise.
25789         * lib/unictype/pr_diacritic.h: Likewise.
25790         * lib/unictype/pr_extender.h: Likewise.
25791         * lib/unictype/pr_grapheme_base.h: Likewise.
25792         * lib/unictype/pr_grapheme_extend.h: Likewise.
25793         * lib/unictype/pr_grapheme_link.h: Likewise.
25794         * lib/unictype/pr_id_continue.h: Likewise.
25795         * lib/unictype/pr_id_start.h: Likewise.
25796         * lib/unictype/pr_ideographic.h: Likewise.
25797         * lib/unictype/pr_ignorable_control.h: Likewise.
25798         * lib/unictype/pr_logical_order_exception.h: Likewise.
25799         * lib/unictype/pr_lowercase.h: Likewise.
25800         * lib/unictype/pr_numeric.h: Likewise.
25801         * lib/unictype/pr_other_alphabetic.h: Likewise.
25802         * lib/unictype/pr_punctuation.h: Likewise.
25803         * lib/unictype/pr_sentence_terminal.h: Likewise.
25804         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25805         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25806         * lib/unictype/pr_unified_ideograph.h: Likewise.
25807         * lib/unictype/pr_uppercase.h: Likewise.
25808         * lib/unictype/pr_xid_continue.h: Likewise.
25809         * lib/unictype/pr_xid_start.h: Likewise.
25810         * lib/unictype/pr_zero_width.h: Likewise.
25811         * lib/unictype/scripts.h: Likewise.
25812         * lib/unictype/scripts_byname.gperf: Likewise.
25813         * lib/unictype/sy_java_ident.h: Likewise.
25814         * lib/unigbrk/gbrkprop.h: Likewise.
25815         * lib/unilbrk/lbrkprop1.h: Likewise.
25816         * lib/unilbrk/lbrkprop2.h: Likewise.
25817         * lib/unilbrk/lbrktables.h: Likewise.
25818         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25819         LBP_CP. Implement rule LB30.
25820         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25821         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25822         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25823         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25824         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25825         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25826         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25827         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25828         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25829         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25830         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25831         bits instead of 16 bits in the code1 and code2 of each composition
25832         rule.
25833         (uc_composition): Update for Unicode 5.2.0.
25834         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25835         * lib/uninorm/decomposition-table2.h: Likewise.
25836         * lib/uniwbrk/wbrkprop.h: Likewise.
25837         * tests/unicase/test-cased.c: Likewise.
25838         * tests/unicase/test-ignorable.c: Likewise.
25839         * tests/unicase/test-uc_tolower.c: Likewise.
25840         * tests/unicase/test-uc_totitle.c: Likewise.
25841         * tests/unicase/test-uc_toupper.c: Likewise.
25842         * tests/unictype/test-categ_C.c: Likewise.
25843         * tests/unictype/test-categ_Cf.c: Likewise.
25844         * tests/unictype/test-categ_Cn.c: Likewise.
25845         * tests/unictype/test-categ_L.c: Likewise.
25846         * tests/unictype/test-categ_Ll.c: Likewise.
25847         * tests/unictype/test-categ_Lm.c: Likewise.
25848         * tests/unictype/test-categ_Lo.c: Likewise.
25849         * tests/unictype/test-categ_Lu.c: Likewise.
25850         * tests/unictype/test-categ_M.c: Likewise.
25851         * tests/unictype/test-categ_Mc.c: Likewise.
25852         * tests/unictype/test-categ_Mn.c: Likewise.
25853         * tests/unictype/test-categ_N.c: Likewise.
25854         * tests/unictype/test-categ_Nd.c: Likewise.
25855         * tests/unictype/test-categ_Nl.c: Likewise.
25856         * tests/unictype/test-categ_No.c: Likewise.
25857         * tests/unictype/test-categ_P.c: Likewise.
25858         * tests/unictype/test-categ_Pd.c: Likewise.
25859         * tests/unictype/test-categ_Po.c: Likewise.
25860         * tests/unictype/test-categ_S.c: Likewise.
25861         * tests/unictype/test-categ_Sc.c: Likewise.
25862         * tests/unictype/test-categ_So.c: Likewise.
25863         * tests/unictype/test-ctype_alnum.c: Likewise.
25864         * tests/unictype/test-ctype_alpha.c: Likewise.
25865         * tests/unictype/test-ctype_graph.c: Likewise.
25866         * tests/unictype/test-ctype_lower.c: Likewise.
25867         * tests/unictype/test-ctype_print.c: Likewise.
25868         * tests/unictype/test-ctype_punct.c: Likewise.
25869         * tests/unictype/test-ctype_upper.c: Likewise.
25870         * tests/unictype/test-decdigit.h: Likewise.
25871         * tests/unictype/test-digit.h: Likewise.
25872         * tests/unictype/test-numeric.h: Likewise.
25873         * tests/unictype/test-pr_alphabetic.c: Likewise.
25874         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25875         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25876         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25877         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25878         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25879         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25880         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25881         * tests/unictype/test-pr_combining.c: Likewise.
25882         * tests/unictype/test-pr_composite.c: Likewise.
25883         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25884         * tests/unictype/test-pr_dash.c: Likewise.
25885         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25886         * tests/unictype/test-pr_deprecated.c: Likewise.
25887         * tests/unictype/test-pr_diacritic.c: Likewise.
25888         * tests/unictype/test-pr_extender.c: Likewise.
25889         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25890         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25891         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25892         * tests/unictype/test-pr_id_continue.c: Likewise.
25893         * tests/unictype/test-pr_id_start.c: Likewise.
25894         * tests/unictype/test-pr_ideographic.c: Likewise.
25895         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25896         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25897         * tests/unictype/test-pr_lowercase.c: Likewise.
25898         * tests/unictype/test-pr_numeric.c: Likewise.
25899         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25900         * tests/unictype/test-pr_punctuation.c: Likewise.
25901         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25902         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25903         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25904         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25905         * tests/unictype/test-pr_uppercase.c: Likewise.
25906         * tests/unictype/test-pr_xid_continue.c: Likewise.
25907         * tests/unictype/test-pr_xid_start.c: Likewise.
25908         * tests/unictype/test-pr_zero_width.c: Likewise.
25909         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25910         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25911         changed behaviour: line breaking is now disallowed between a letter
25912         or '=' and '('.
25913         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25914         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25915         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25916         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25917         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25918         lib/uniwidth/width.c.
25919         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25920         without comments, but with the original copyright notice.
25921         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25922         changes.
25923         * lib/unictype/categ_Cc.h: Likewise.
25924         * lib/unictype/categ_Co.h: Likewise.
25925         * lib/unictype/categ_Cs.h: Likewise.
25926         * lib/unictype/categ_Lt.h: Likewise.
25927         * lib/unictype/categ_Me.h: Likewise.
25928         * lib/unictype/categ_Pc.h: Likewise.
25929         * lib/unictype/categ_Pe.h: Likewise.
25930         * lib/unictype/categ_Pf.h: Likewise.
25931         * lib/unictype/categ_Pi.h: Likewise.
25932         * lib/unictype/categ_Ps.h: Likewise.
25933         * lib/unictype/categ_Sk.h: Likewise.
25934         * lib/unictype/categ_Sm.h: Likewise.
25935         * lib/unictype/categ_Z.h: Likewise.
25936         * lib/unictype/categ_Zl.h: Likewise.
25937         * lib/unictype/categ_Zp.h: Likewise.
25938         * lib/unictype/categ_Zs.h: Likewise.
25939         * lib/unictype/ctype_blank.h: Likewise.
25940         * lib/unictype/ctype_cntrl.h: Likewise.
25941         * lib/unictype/ctype_digit.h: Likewise.
25942         * lib/unictype/ctype_space.h: Likewise.
25943         * lib/unictype/ctype_xdigit.h: Likewise.
25944         * lib/unictype/mirror.h: Likewise.
25945         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25946         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25947         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25948         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25949         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25950         * lib/unictype/pr_bidi_control.h: Likewise.
25951         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25952         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25953         * lib/unictype/pr_bidi_pdf.h: Likewise.
25954         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25955         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25956         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25957         * lib/unictype/pr_format_control.h: Likewise.
25958         * lib/unictype/pr_hex_digit.h: Likewise.
25959         * lib/unictype/pr_hyphen.h: Likewise.
25960         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25961         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25962         * lib/unictype/pr_iso_control.h: Likewise.
25963         * lib/unictype/pr_join_control.h: Likewise.
25964         * lib/unictype/pr_left_of_pair.h: Likewise.
25965         * lib/unictype/pr_line_separator.h: Likewise.
25966         * lib/unictype/pr_math.h: Likewise.
25967         * lib/unictype/pr_non_break.h: Likewise.
25968         * lib/unictype/pr_not_a_character.h: Likewise.
25969         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25970         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25971         * lib/unictype/pr_other_id_continue.h: Likewise.
25972         * lib/unictype/pr_other_id_start.h: Likewise.
25973         * lib/unictype/pr_other_lowercase.h: Likewise.
25974         * lib/unictype/pr_other_math.h: Likewise.
25975         * lib/unictype/pr_other_uppercase.h: Likewise.
25976         * lib/unictype/pr_paired_punctuation.h: Likewise.
25977         * lib/unictype/pr_paragraph_separator.h: Likewise.
25978         * lib/unictype/pr_pattern_syntax.h: Likewise.
25979         * lib/unictype/pr_pattern_white_space.h: Likewise.
25980         * lib/unictype/pr_private_use.h: Likewise.
25981         * lib/unictype/pr_quotation_mark.h: Likewise.
25982         * lib/unictype/pr_radical.h: Likewise.
25983         * lib/unictype/pr_soft_dotted.h: Likewise.
25984         * lib/unictype/pr_space.h: Likewise.
25985         * lib/unictype/pr_titlecase.h: Likewise.
25986         * lib/unictype/pr_variation_selector.h: Likewise.
25987         * lib/unictype/pr_white_space.h: Likewise.
25988         * lib/unictype/sy_c_ident.h: Likewise.
25989         * lib/unictype/sy_c_whitespace.h: Likewise.
25990         * lib/unictype/sy_java_whitespace.h: Likewise.
25991         * modules/uni*/*: Bump version number of expected libunistring version.
25992         Reported by Simon Josefsson.
25993
25994 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25995
25996         useless-if-before-free: fix typo in --help and make the internal,
25997         automatic version date update process work once again.
25998         --help output contained a NUL character instead of the
25999         backslash-zero that was intended.  Also, the "must lie within
26000         the first 8 lines" line is on line 9, and hence not getting
26001         automatically updated.
26002         * build-aux/useless-if-before-free: Fix the former by adding a
26003         backslash, and the latter by condensing the three lines of what-it-does
26004         to a single line, leaving one line of slack for the future.
26005
26006 2011-01-09  Bruno Haible  <bruno@clisp.org>
26007
26008         uniwidth/width: Fix width of U+1D173..U+1D17A.
26009         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26010         symbolic_width, output_width_property_test): New functions.
26011         (main): Invoke output_nonspacing_property, output_width_property_test.
26012         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26013         U+1D173..U+1D17A.
26014         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26015         1.
26016         * modules/uniwidth/*: Bump version number of expected libunistring
26017         version.
26018         * modules/unilbrk/*: Likewise.
26019
26020 2011-01-08  Bruno Haible  <bruno@clisp.org>
26021
26022         uninorm tests: Preserve copyright of Unicode data file.
26023         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26024         Mention modifications.
26025
26026 2011-01-08  Bruno Haible  <bruno@clisp.org>
26027
26028         gen-uni-tables: Prepare for Unicode 5.2.0.
26029         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26030         (debug_output_lbp, output_lbp): Update.
26031
26032 2011-01-08  Bruno Haible  <bruno@clisp.org>
26033
26034         unilbrk: Clarify gen-uni-tables.c code.
26035         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26036         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26037         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26038
26039 2011-01-07  Bruno Haible  <bruno@clisp.org>
26040
26041         strtod: Restore errno when successfully parsing Infinity or NaN.
26042         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26043         restore the original errno.
26044
26045 2011-01-07  Bruno Haible  <bruno@clisp.org>
26046
26047         remove test: Avoid failure on HP-UX 11.
26048         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26049
26050 2011-01-07  Bruno Haible  <bruno@clisp.org>
26051
26052         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26053         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26054         error code.
26055
26056 2011-01-07  Pádraig Brady <P@draigBrady.com>
26057
26058         ignore-value: fixup comments, and add Eric Blake
26059         as an author since he rewrote the macros.
26060         * lib/ignore-value.h (ignore_value):  State that
26061         we now support aggregates.  Also specify exactly
26062         when the GCC warn_unused_result feature was added.
26063
26064 2011-01-06  Eric Blake  <eblake@redhat.com>
26065
26066         ignore-value: support aggregate types
26067         * lib/ignore-value.h (ignore_value): Provide separate gcc
26068         definition.
26069         * modules/ignore-value-tests: New test module.
26070         * tests/test-ignore-value.c: New test.
26071
26072         maint.mk: improve sc_prohibit_strcmp regex
26073         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26074         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26075         definition of STRNEQ.
26076
26077         signal: work around Haiku issue with SIGBUS
26078         * lib/siglist.h: Add comment.
26079         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26080         strsignal's favoring of SIGSEGV.
26081         * tests/test-signal.c (main): Avoid test failure.
26082         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26083         Reported by Scott McCreary.
26084
26085         maint.mk: add pre-release check to ensure submodule commits are public
26086         * top/maint.mk (public-submodule-commit): New rule.
26087         (submodule-checks): New variable.
26088         (alpha beta stable): Depend on the variable.
26089
26090 2011-01-05  Pádraig Brady <P@draigBrady.com>
26091         and Jim Meyering  <meyering@redhat.com>
26092
26093         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26094         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26095         (ATTRIBUTE_DEPRECATED): Define.
26096         (_ignore_case): New function.
26097         (ignore_value): New macro, to replace the old function.
26098         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26099         * modules/ignore-value (Depends-on): Add stdint.
26100
26101 2011-01-04  Eric Blake  <eblake@redhat.com>
26102
26103         doc: regenerate INSTALL
26104         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26105         @firstparagraphindent support, now that autoconf dropped it.
26106         (INSTALL_PRELUDE): Reinstate old macro.
26107         * doc/install.texi: Resync from autoconf.
26108         * doc/INSTALL: Reflect recent autoconf update.
26109         * doc/INSTALL.ISO: Likewise.
26110         * doc/INSTALL.UTF-8: Likewise.
26111         Reported by Karl Berry.
26112
26113 2011-01-04  Bruce Korb  <address@hidden>
26114
26115         git-version-gen: avoid a sub-shell
26116         * build-aux/git-version-gen: Redirect stderr in `...` via
26117         "exec 2>...", rather than via an added sub-shell.
26118
26119 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26120
26121         git-version-gen: use (...) rather than sh -c '...'
26122         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26123         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26124
26125 2011-01-03  Jim Meyering  <meyering@redhat.com>
26126
26127         git-version-gen: convert leading TABs to spaces
26128         * build-aux/git-version-gen: Expand leading TABs.
26129
26130         git-version-gen: handle failed "git rev-list"
26131         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26132         from git and proceeding as if it had succeeded but printed no SHA1
26133         checksums, suppress the diagnostic and handle the failure.
26134         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26135
26136         git-version-gen: include command name in one more diagnostic
26137         * build-aux/git-version-gen: When the required .tarball-version file
26138         was missing or unreadable, you might see the diagnostic from "cat",
26139         but no trace of the name of the invoking script.  Now, you still see
26140         the diagnostic from cat, but also get one from "git-version-gen: ".
26141         Inspired by a patch from Bruce Korb.
26142
26143         update-copyright: adjust test to match changed code
26144         * tests/test-update-copyright.sh: Change test's expected output
26145         to match new actual output.
26146
26147 2011-01-02  Bruno Haible  <bruno@clisp.org>
26148
26149         getlogin_r: Avoid test failure on HP-UX 11.
26150         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26151         ERANGE when the second argument is zero.
26152         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26153         portability problem.
26154
26155 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26156
26157         * build-aux/update-copyright: doc Simon's changes
26158
26159 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26160
26161         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26162         environment variable.
26163
26164 2011-01-02  Bruno Haible  <bruno@clisp.org>
26165
26166         unigbrk: Avoid gcc warnings.
26167         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26168         unused variable.
26169         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26170         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26171         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26172         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26173         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26174         Change type of first argument to 'const char *'.
26175         (main): Remove unused variable.
26176         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26177         type of first argument to 'const char *'.
26178         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26179         Likewise.
26180         (main): Change type of variable 's'.
26181         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26182         to 'int'.
26183
26184 2011-01-02  Bruno Haible  <bruno@clisp.org>
26185
26186         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26187         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26188         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26189         bug.
26190         * lib/pwrite.c: Undo 2010-12-31 patch.
26191         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26192
26193 2011-01-02  Bruno Haible  <bruno@clisp.org>
26194
26195         pread: Fix test whether it works.
26196         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26197
26198 2011-01-02  Bruno Haible  <bruno@clisp.org>
26199
26200         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26201         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26202         ends in "6". Don't require a specific month name. Try also the locale
26203         names found on HP-UX 11 and Solaris 7.
26204
26205 2011-01-02  Bruno Haible  <bruno@clisp.org>
26206
26207         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26208         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26209         C linkage.
26210         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26211
26212 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26213
26214         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26215         for consistency, since the "cluster" term is not used elsewhere.
26216         * lib/unigbrk.in.h: Update name.
26217         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26218         * lib/unigbrk/u16-grapheme-next.c: Update name.
26219         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26220         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26221         * lib/unigbrk/u32-grapheme-next.c: Update name.
26222         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26223         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26224         * lib/unigbrk/u8-grapheme-next.c: Update name.
26225         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26226         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26227         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26228         Suggested by Bruno Haible.
26229
26230 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26231
26232         Remove module 'u8-grapheme-len' as too redundant with
26233         'u8-grapheme-next'.
26234         * modules/unigbrk/u8-grapheme-len: Delete file.
26235         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26236         * lib/unigbrk.in.h: Remove prototype for deleted function.
26237         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26238         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26239
26240         Remove module 'u16-grapheme-len' as too redundant with
26241         'u16-grapheme-next'.
26242         * modules/unigbrk/u16-grapheme-len: Delete file.
26243         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26244         * lib/unigbrk.in.h: Remove prototype for deleted function.
26245         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26246         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26247
26248         Remove module 'u32-grapheme-len' as too redundant with
26249         'u32-grapheme-next'.
26250         * modules/unigbrk/u32-grapheme-len: Delete file.
26251         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26252         * lib/unigbrk.in.h: Remove prototype for deleted function.
26253         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26254         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26255
26256         Suggested by Bruno Haible.
26257
26258 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26259
26260         * unigbrk.in.h: Fix typo: "ben" => "been".
26261         Reported by Bruno Haible.
26262
26263 2011-01-01  Jim Meyering  <meyering@redhat.com>
26264
26265         maint: update almost all copyright ranges to include 2011
26266         Run the new "make update-copyright" rule.
26267
26268 2011-01-01  Jim Meyering  <meyering@redhat.com>
26269
26270         maint: update-copyright: exempt doc/INSTALL*
26271         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26272         since they are generated.  Suggested by Bruno Haible.
26273
26274 2011-01-01  Jim Meyering  <meyering@redhat.com>
26275
26276         maint: refine the update-copyright rule
26277         * Makefile (update-copyright): Also exclude any file that includes
26278         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26279         code that merely generates the comment.
26280
26281 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26282
26283         New module 'u8-grapheme-len'.
26284         * modules/unigbrk/u8-grapheme-len: New file.
26285         * modules/unigbrk/u8-grapheme-len-tests: New file.
26286         * lib/unigbrk.in.h: Add prototype for new function.
26287         * lib/unigbrk/u8-grapheme-len.c: New file.
26288         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26289
26290         New module 'u16-grapheme-len'.
26291         * modules/unigbrk/u16-grapheme-len: New file.
26292         * modules/unigbrk/u16-grapheme-len-tests: New file.
26293         * lib/unigbrk.in.h: Add prototype for new function.
26294         * lib/unigbrk/u16-grapheme-len.c: New file.
26295         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26296
26297         New module 'u32-grapheme-len'.
26298         * modules/unigbrk/u32-grapheme-len: New file.
26299         * modules/unigbrk/u32-grapheme-len-tests: New file.
26300         * lib/unigbrk.in.h: Add prototype for new function.
26301         * lib/unigbrk/u32-grapheme-len.c: New file.
26302         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26303
26304         New module 'u8-grapheme-next'.
26305         * modules/unigbrk/u8-grapheme-next: New file.
26306         * modules/unigbrk/u8-grapheme-next-tests: New file.
26307         * lib/unigbrk.in.h: Add prototype for new function.
26308         * lib/unigbrk/u8-grapheme-next.c: New file.
26309         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26310
26311         New module 'u16-grapheme-next'.
26312         * modules/unigbrk/u16-grapheme-next: New file.
26313         * modules/unigbrk/u16-grapheme-next-tests: New file.
26314         * lib/unigbrk.in.h: Add prototype for new function.
26315         * lib/unigbrk/u16-grapheme-next.c: New file.
26316         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26317
26318         New module 'u32-grapheme-next'.
26319         * modules/unigbrk/u32-grapheme-next: New file.
26320         * modules/unigbrk/u32-grapheme-next-tests: New file.
26321         * lib/unigbrk.in.h: Add prototype for new function.
26322         * lib/unigbrk/u32-grapheme-next.c: New file.
26323         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26324
26325         New module 'u8-grapheme-prev'.
26326         * modules/unigbrk/u8-grapheme-prev: New file.
26327         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26328         * lib/unigbrk.in.h: Add prototype for new function.
26329         * lib/unigbrk/u8-grapheme-prev.c: New file.
26330         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26331
26332         New module 'u16-grapheme-prev'.
26333         * modules/unigbrk/u16-grapheme-prev: New file.
26334         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26335         * lib/unigbrk.in.h: Add prototype for new function.
26336         * lib/unigbrk/u16-grapheme-prev.c: New file.
26337         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26338
26339         New module 'u32-grapheme-prev'.
26340         * modules/unigbrk/u32-grapheme-prev: New file.
26341         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26342         * lib/unigbrk.in.h: Add prototype for new function.
26343         * lib/unigbrk/u32-grapheme-prev.c: New file.
26344         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26345
26346         New module 'u8-grapheme-breaks'.
26347         * modules/unigbrk/u8-grapheme-breaks: New file.
26348         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26349         * lib/unigbrk.in.h: Add prototype for new function.
26350         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26351         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26352
26353         New module 'u16-grapheme-breaks'.
26354         * modules/unigbrk/u16-grapheme-breaks: New file.
26355         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26356         * lib/unigbrk.in.h: Add prototype for new function.
26357         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26358         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26359
26360         New module 'u32-grapheme-breaks'.
26361         * modules/unigbrk/u32-grapheme-breaks: New file.
26362         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26363         * lib/unigbrk.in.h: Add prototype for new function.
26364         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26365         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26366
26367         New module 'ulc-grapheme-breaks'.
26368         * modules/unigbrk/ulc-grapheme-breaks: New file.
26369         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26370         * m4/locale-ar.m4: New file.
26371         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26372         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26373         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26374
26375 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26376
26377         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26378         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26379         modified how this file was generated before I initially submitted
26380         the module, but failed to regenerate it.  This meant that several
26381         of the level2 entries were wrong.
26382         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26383         Remove the division-by-2 that is folded into the table now that
26384         gbrkprop.h has been regenerated properly.  Now -1 entries are
26385         handled correctly.
26386
26387         New module 'unigbrk/uc-gbrk-prop-tests'.
26388         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26389         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26390         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26391         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26392
26393 2011-01-01  Bruno Haible  <bruno@clisp.org>
26394
26395         Avoid use of hexadecimal escapes.
26396         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26397         instead of hexadecimal escapes.
26398
26399 2011-01-01  Jim Meyering  <meyering@redhat.com>
26400
26401         maint: new rule to update copyright year ranges
26402         * Makefile (update-copyright): New rule.
26403
26404         maint: indent with TABs in Makefile
26405         * Makefile: Expand leading sequences of spaces to TABs
26406
26407         version-etc: update the copyright year it reports
26408         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26409
26410 2010-12-31  Bruno Haible  <bruno@clisp.org>
26411
26412         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26413         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26414         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26415         zero.
26416
26417 2010-12-31  Bruno Haible  <bruno@clisp.org>
26418
26419         pwrite: Work around HP-UX 11.11 bug.
26420         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26421         works and set REPLACE_PWRITE if not.
26422         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26423         function.
26424         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26425
26426 2010-12-31  Bruno Haible  <bruno@clisp.org>
26427
26428         pread: Work around HP-UX 11 bugs.
26429         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26430         and set REPLACE_PREAD if not.
26431         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26432
26433 2010-12-31  Eric Blake  <eblake@redhat.com>
26434
26435         nl_langinfo: fix YESEXPR on Irix 6.5
26436         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26437         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26438         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26439         it.
26440
26441 2010-12-31  Bruno Haible  <bruno@clisp.org>
26442
26443         iconv: Document HP-UX 11 bug.
26444         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26445
26446 2010-12-31  Bruno Haible  <bruno@clisp.org>
26447
26448         ldexpl: Fix link error on HP-UX 11.
26449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26450         LDEXPL_LIBM, using $ISNANL_LIBM.
26451
26452 2010-12-31  Eric Blake  <eblake@redhat.com>
26453
26454         ftello: avoid compilation failure with SunStudio c89
26455         * lib/ftello.c (ftello): Use lseek, not llseek.
26456
26457         tests: avoid failing coreutils tests on cygwin
26458         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26459         (create_exe_shims_): Return 0 when skipping.
26460
26461 2010-12-31  Bruno Haible  <bruno@clisp.org>
26462
26463         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26464         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26465
26466 2010-12-31  Bruno Haible  <bruno@clisp.org>
26467
26468         waitpid: Fix link error in C++ mode.
26469         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26470
26471 2010-12-31  Bruno Haible  <bruno@clisp.org>
26472
26473         isnan: Use GCC built-ins when possible.
26474         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26475         __builtin_isnan.
26476         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26477         (isnan): Define using GCC built-ins for GCC >= 4.0.
26478
26479 2010-12-31  Bruno Haible  <bruno@clisp.org>
26480
26481         isnand: Fix mistake.
26482         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26483         __builtin_isnand.
26484
26485 2010-12-31  Bruno Haible  <bruno@clisp.org>
26486
26487         open: Avoid C++ error on HP-UX 11.
26488         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26489
26490 2010-12-31  Bruno Haible  <bruno@clisp.org>
26491
26492         time_r: Add missing declarations on HP-UX 11.
26493         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26494         instead of HAVE_LOCALTIME_R.
26495         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26496         HAVE_LOCALTIME_R always.
26497         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26498         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26499         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26500         HAVE_LOCALTIME_R.
26501         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26502         * doc/posix-functions/localtime_r.texi: Likewise.
26503
26504 2010-12-29  Eric Blake  <eblake@redhat.com>
26505
26506         mountlist: tweak previous commit
26507         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26508         Reported by Paul Eggert.
26509
26510         mountlist: fix local drive detection on cygwin
26511         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26512         that works for cygwin.
26513
26514 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26515
26516         ftoastr, snprintf: ftoastr + snprintf module
26517         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26518         since the snprintf module now should be good enough here.
26519         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26520         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26521         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26522         GNULIB_SNPRINTF only for the test directory, and the latter
26523         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26524         seems to suffice by itself.
26525
26526 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26527
26528         alloca: one step towards thread-safety
26529         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26530         need for a static variable.  All callers changed.  This does not
26531         make the alloca replacement thread-safe, but it's one step.
26532
26533         tests: minor indenting change
26534         * tests/init.sh: Sync from coreutils housekeeping patch
26535         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26536         to keep lines within 80 columns.
26537
26538 2010-12-28  Jim Meyering  <meyering@redhat.com>
26539
26540         regex: don't infloop on persistent failing calloc
26541         * lib/regexec.c (build_trtable): Return failure indication upon
26542         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26543         In glibc, this was fixed for version 2.13:
26544         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26545
26546 2010-12-28  Bruno Haible  <bruno@clisp.org>
26547             Paul Eggert <eggert@cs.ucla.edu>
26548
26549         linkat: Make implementation robust against system behaviour variations.
26550         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26551         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26552         way, and to -2 if it needs a generic runtime test.
26553         * lib/linkat.c (solaris_optimized_link_immediate,
26554         solaris_optimized_link_follow): New functions.
26555         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26556         (check_same_link): Use it.
26557
26558 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26559
26560         New module 'unigbrk/base'.
26561         * modules/unigbrk/base: New file.
26562         * lib/unigbrk.in.h: New file.
26563
26564         New module 'unigbrk/uc-gbrk-prop'.
26565         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26566         * modules/unigbrk/uc-gbrk-prop: New file.
26567         * lib/unigbrk/gbrkprop.h: New file.
26568         * lib/unigbrk/uc-gbrk-prop.c: New file.
26569
26570         New module 'unigbrk/uc-is-grapheme-break'.
26571         * modules/unigbrk/uc-is-grapheme-break: New file.
26572         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26573         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26574         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26575         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26576         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26577
26578         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26579
26580 2010-12-27  Bruno Haible  <bruno@clisp.org>
26581
26582         linkat test: Avoid failure on Solaris 11 2010-11.
26583         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26584
26585 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26586
26587         utimens: work around glibc rounding bug on more platforms
26588         * lib/utimens.c (fdutimens): Work around rounding bug even if
26589         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26591
26592 2010-12-27  Bruno Haible  <bruno@clisp.org>
26593
26594         select tests: Improve comments.
26595         * tests/test-select.c (do_select): Add comments.
26596
26597 2010-12-27  Bruno Haible  <bruno@clisp.org>
26598
26599         select tests: Safer way of handling timeout.
26600         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26601         at every invocation.
26602
26603 2010-12-27  Bruno Haible  <bruno@clisp.org>
26604
26605         select tests: Use 'bool' where appropriate.
26606         * tests/test-select.c (connect_to_socket): Change argument type to
26607         'bool'.
26608
26609 2010-12-27  Bruno Haible  <bruno@clisp.org>
26610
26611         select tests: Use existing modules.
26612         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26613         (configure.ac): Don't test for unistd.h.
26614         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26615         declared in <unistd.h>.
26616
26617 2010-12-27  Bruno Haible  <bruno@clisp.org>
26618
26619         mbrtowc: Work around a Solaris 7 bug.
26620         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26621         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26622         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26623         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26624         MBRTOWC_NULL_ARG1_BUG.
26625         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26626         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26627         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26628         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26629
26630 2010-12-27  Jim Meyering  <meyering@redhat.com>
26631
26632         read-file.c: tweak syntax
26633         * lib/read-file.c (fread_file): Remove space after "*" in function
26634         definitions.
26635
26636 2010-12-27  Bruno Haible  <bruno@clisp.org>
26637
26638         times test: Avoid gcc warnings on OSF/1.
26639         * tests/test-times.c (main): Cast printf arguments from clock_t to
26640         'long int'.
26641
26642 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26643
26644         utimens: work around glibc rounding bug on older Linux kernels
26645         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26646         on Linux with a glibc whose utimes might not work, then work
26647         around a longstanding glibc bug involving rounding rather than
26648         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26649         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26650
26651 2010-12-26  Bruno Haible  <bruno@clisp.org>
26652
26653         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26654         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26655         _GL_CXXALIAS_SYS.
26656         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26657
26658 2010-12-26  Bruno Haible  <bruno@clisp.org>
26659
26660         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26661         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26662         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26663         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26664         looking for the declaration.
26665         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26666         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26667         problem.
26668         * doc/posix-functions/inet_pton.texi: Likewise.
26669
26670 2010-12-26  Bruno Haible  <bruno@clisp.org>
26671
26672         arpa_inet: Use the common idioms with C++ support.
26673         * lib/arpa_inet.in.h: Include c++defs.h.
26674         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26675         support.
26676         * modules/arpa_inet (Depends-on): Add c++defs.
26677         (Makefile.am): Substitute the contents of c++defs.h.
26678         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26679         * modules/arpa_inet-c++-tests: New file.
26680         * tests/test-arpa_inet-c++.cc: New file.
26681
26682 2010-12-25  Bruno Haible  <bruno@clisp.org>
26683
26684         Fix more C++ link errors on Solaris 8.
26685         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26686         $(LIB_EACCESS).
26687         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26688         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26689         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26690         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26691         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26692
26693 2010-12-25  Bruno Haible  <bruno@clisp.org>
26694
26695         printf-posix: Fix link error when a non-GCC compiler is used.
26696         * lib/stdio.in.h (printf): When not using GCC, override printf
26697         correctly.
26698         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26699
26700 2010-12-25  Bruno Haible  <bruno@clisp.org>
26701
26702         strerror_r-posix: Update doc.
26703         * doc/posix-functions/strerror_r.texi: Update doc about the return
26704         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26705
26706 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26707
26708         utimens: simplify the logic of the previous change
26709         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26710         This should not affect whether the test succeeds or fails.
26711
26712         utimens: configure better on hosts with NFS clock skew
26713         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26714         uses the clock of the local host.  It might use the clock of the
26715         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26716         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26717
26718 2010-12-25  Bruno Haible  <bruno@clisp.org>
26719
26720         ptsname test: Avoid failure on Solaris.
26721         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26722         open a pseudo-terminal; don't use BSD-style ptys.
26723         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26724
26725 2010-12-25  Bruno Haible  <bruno@clisp.org>
26726
26727         ptsname: Avoid ERANGE failure on some systems.
26728         * lib/ptsname.c (buffer): Increase size.
26729
26730 2010-12-25  Bruno Haible  <bruno@clisp.org>
26731
26732         rename, renameat: Avoid test failures at NFS mounted locations.
26733         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26734         so that subsequent mkdir calls succeed.
26735
26736 2010-12-25  Bruno Haible  <bruno@clisp.org>
26737
26738         iswblank: Fix C++ link error on Solaris 8.
26739         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26740         _GL_FUNCDECL_SYS.
26741
26742 2010-12-25  Bruno Haible  <bruno@clisp.org>
26743
26744         unistd: Fix C++ link error on Solaris 8.
26745         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26746
26747 2010-12-25  Bruno Haible  <bruno@clisp.org>
26748
26749         readlink doc: Mention an old glibc bug.
26750         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26751
26752 2010-12-25  Bruno Haible  <bruno@clisp.org>
26753
26754         fcntl-h: Fix for use of C++ on glibc systems.
26755         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26756         also on glibc systems in C++ mode.
26757         Reported by Gary V. Vaughan <gary@gnu.org>.
26758
26759 2010-12-25  Bruno Haible  <bruno@clisp.org>
26760
26761         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26762         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26763
26764 2010-12-25  Bruno Haible  <bruno@clisp.org>
26765
26766         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26767         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26768         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26769         test whether truncl works according to ISO C 99 with IEC 60559.
26770         * m4/truncl-ieee.m4: New file.
26771         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26772         m4/signbit.m4.
26773         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26774
26775 2010-12-25  Bruno Haible  <bruno@clisp.org>
26776
26777         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26778         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26779         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26780         test whether ceill works according to ISO C 99 with IEC 60559.
26781         * m4/ceill-ieee.m4: New file.
26782         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26783         m4/signbit.m4.
26784         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26785
26786 2010-12-25  Bruno Haible  <bruno@clisp.org>
26787
26788         Ensure all prerequisites of <wchar.h> are included.
26789         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26790         before <wchar.h>.
26791         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26792         gl_MBRLEN_NUL_RETVAL): Likewise.
26793         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26794         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26795         AC_FUNC_MBRTOWC): Likewise.
26796         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26797         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26798         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26799         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26800         Likewise.
26801         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26802         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26803         (gl_WCHAR_H): Improve comments.
26804         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26805
26806 2010-12-25  Bruno Haible  <bruno@clisp.org>
26807
26808         strtok_r: Fix C syntax error in autoconf macro.
26809         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26810         characters in test program.
26811
26812 2010-12-24  Bruno Haible  <bruno@clisp.org>
26813
26814         ceil, trunc, round: Fix gcc warnings.
26815         * lib/ceil.c (MIN): Undefine before redefining.
26816         * lib/trunc.c (MIN): Likewise.
26817         * lib/round.c (MIN): Likewise.
26818         Include <math.h> first.
26819
26820 2010-12-24  Bruno Haible  <bruno@clisp.org>
26821
26822         select tests: Avoid failures on OSF/1 5.1.
26823         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26824         failure of closing the last socket; it may fail with ECONNRESET.
26825
26826 2010-12-24  Eric Blake  <eblake@redhat.com>
26827
26828         stdint: avoid HP-UX 10.20 preprocessor bug
26829         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26830         than #if.
26831         * tests/test-floor2.c (main): Likewise.
26832         Reported by Peter O'Gorman.
26833
26834         pipe: make obsoletion transition easier
26835         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26836         * modules/pipe (Files): Include revived file.
26837         (Include): Drop reference, to mirror getdate's behavior.
26838
26839 2010-12-24  Bruno Haible  <bruno@clisp.org>
26840
26841         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26842         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26843         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26844         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26845
26846 2010-12-24  Bruno Haible  <bruno@clisp.org>
26847
26848         gethostname: Ensure declaration on NonStop Kernel.
26849         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26850         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26851
26852 2010-12-24  Bruno Haible  <bruno@clisp.org>
26853
26854         sys_select: Ensure all necessary types on NonStop Kernel.
26855         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26856         include <sys/time.h>.
26857         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26858         NonStop Kernel.
26859         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26860
26861 2010-12-24  Bruno Haible  <bruno@clisp.org>
26862
26863         sys_select: Remove unneeded include.
26864         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26865         have <sys/select.h>.
26866
26867 2010-12-24  Bruno Haible  <bruno@clisp.org>
26868
26869         gethostname: Provide a fallback for HOST_NAME_MAX.
26870         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26871         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26872         instead.
26873         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26874
26875 2010-12-24  Bruno Haible  <bruno@clisp.org>
26876
26877         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26878         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26879         (SA_RESTART): Likewise.
26880         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26881
26882 2010-12-24  Bruno Haible  <bruno@clisp.org>
26883
26884         signal: Define NSIG.
26885         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26886         * tests/test-signal.c (nsig): New variable.
26887         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26888
26889 2010-12-24  Bruno Haible  <bruno@clisp.org>
26890
26891         rename, renameat: Avoid test failures on OSF/1 5.1.
26892         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26893         alternative error codes.
26894         * tests/test-renameat.c (main): Likewise.
26895
26896 2010-12-24  Bruno Haible  <bruno@clisp.org>
26897
26898         *printf: Detect large precisions bug on Solaris 10/SPARC.
26899         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26900         by Paul Eggert.
26901         * tests/test-snprintf-posix.h (test_function): Add this test code here
26902         too.
26903         * tests/test-sprintf-posix.h (test_function): Likewise.
26904         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26905         * tests/test-vasprintf-posix.c (test_function): Likewise.
26906         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26907         around by gnulib.
26908         * doc/posix-functions/printf.texi: Likewise.
26909         * doc/posix-functions/snprintf.texi: Likewise.
26910         * doc/posix-functions/sprintf.texi: Likewise.
26911         * doc/posix-functions/vfprintf.texi: Likewise.
26912         * doc/posix-functions/vprintf.texi: Likewise.
26913         * doc/posix-functions/vsnprintf.texi: Likewise.
26914         * doc/posix-functions/vsprintf.texi: Likewise.
26915         * doc/posix-functions/dprintf.texi: Undo last commit.
26916         * doc/posix-functions/vdprintf.texi: Likewise.
26917
26918 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26919
26920         tests: port test-fdutimensat.c to Solaris 8
26921         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26922         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26923         On Solaris 8, it fails with errno == ENOSYS, because there is no
26924         futimens (so it can't use the fd), and there is no lutimens (so it
26925         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26926
26927         vsnprintf: make more consistent with snprintf; doc fixes
26928
26929         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26930         the byte count return problem was promoted from the snprintf-posix
26931         to the snprintf module.
26932         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26933         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26934         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26935         * tests/test-snprintf.c (main): Check the byte count returned.
26936         * tests/test-vsnprintf.c (main): Likewise.
26937
26938 2010-12-23  Eric Blake  <eblake@redhat.com>
26939
26940         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26941         * modules/sigpipe (License): Relax license.
26942
26943 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26944
26945         doc: document Solaris printf bug with large float precisions
26946         * doc/posix-functions/dprintf.texi (dprintf):
26947         * doc/posix-functions/fprintf.texi (fprintf):
26948         * doc/posix-functions/printf.texi (printf):
26949         * doc/posix-functions/snprintf.texi (snprintf):
26950         * doc/posix-functions/sprintf.texi (sprintf):
26951         * doc/posix-functions/vdprintf.texi (vdprintf):
26952         * doc/posix-functions/vfprintf.texi (vfprintf):
26953         * doc/posix-functions/vprintf.texi (vprintf):
26954         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26955         * doc/posix-functions/vsprintf.texi (vsprintf):
26956         Mention that these functions mishandle large floating point
26957         precisions on Solaris 10.  The same bug is also present in Solaris
26958         8, and I assume earlier.  This causes "cd gnulib-tests; make
26959         check" to fail on Solaris 8 (and I assume, later) when building
26960         the latest coreutils, in test-vasprintf-posix's call to
26961         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26962         the wide flavors (e.g., wprintf) so this patch just updates the
26963         documentation for the narrow ones.
26964
26965         test-posixtm.c: add two tests
26966         * tests/test-posixtm.c: Add two tests, to highlight the
26967         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26968         around this bug; this is merely to document it.
26969
26970 2010-12-22  Bruno Haible  <bruno@clisp.org>
26971
26972         getlogin_r: Work around portability problem on OSF/1.
26973         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26974         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26975         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26976         test for a truncated result.
26977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26978         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26979         * modules/getlogin_r (Depends-on): Add memchr.
26980         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26981
26982 2010-12-22  Bruno Haible  <bruno@clisp.org>
26983
26984         ptsname: Avoid test failure on OSF/1 5.1.
26985         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26986         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26987         (same_slave): New function.
26988         (main): Use it to compare ptsname's result with the expected file name.
26989
26990 2010-12-22  Bruno Haible  <bruno@clisp.org>
26991
26992         Port extended stdio modules to HP NonStop Kernel.
26993         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26994         macros.
26995         * lib/fbufmode.c: Update comments.
26996         * lib/fflush.c: Likewise.
26997         * lib/fpurge.c: Likewise.
26998         * lib/freadable.c: Likewise.
26999         * lib/freadahead.c: Likewise.
27000         * lib/freading.c: Likewise.
27001         * lib/freadptr.c: Likewise.
27002         * lib/freadseek.c: Likewise.
27003         * lib/fseeko.c: Likewise.
27004         * lib/fseterr.c: Likewise.
27005         * lib/fwritable.c: Likewise.
27006         * lib/fwriting.c: Likewise.
27007         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27008
27009 2010-12-22  Bruno Haible  <bruno@clisp.org>
27010
27011         ttyname_r: Work around bug on OSF/1 5.1.
27012         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27013         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27014         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27015         present.
27016         * lib/ttyname_r.c (ttyname_r): Update comments.
27017
27018 2010-12-22  Bruno Haible  <bruno@clisp.org>
27019
27020         round: Implement result sign according to IEEE 754.
27021         * lib/round.c (MIN, MINUS_ZERO): New macros.
27022         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27023         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27024         * tests/test-round-ieee.c (main): Likewise.
27025         * tests/test-roundl-ieee.c (main): Likewise.
27026
27027         trunc: Implement result sign according to IEEE 754.
27028         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27029         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27030         * tests/test-trunc2.c: Include minus-zero.h.
27031         (MINUS_ZERO): New macro.
27032         (trunc_reference): Keep in sync with lib/trunc.c.
27033         * tests/test-truncf2.c: Include minus-zero.h.
27034         (MINUS_ZERO): New macro.
27035         (truncf_reference): Keep in sync with lib/trunc.c.
27036         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27037         * tests/test-trunc-ieee.c (main): Likewise.
27038         * tests/test-truncl-ieee.c (main): Likewise.
27039
27040         ceil: Implement result sign according to IEEE 754.
27041         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27042         (FUNC): Return -0.0 for -1 < x < 0.
27043         * tests/test-ceil2.c: Include minus-zero.h.
27044         (MINUS_ZERO): New macro.
27045         (ceil_reference): Keep in sync with lib/ceil.c.
27046         * tests/test-ceilf2.c: Include minus-zero.h.
27047         (MINUS_ZERO): New macro.
27048         (ceilf_reference): Keep in sync with lib/ceil.c.
27049         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27050         * tests/test-ceil-ieee.c (main): Likewise.
27051         * tests/test-ceill-ieee.c (main): Likewise.
27052
27053         floor: Implement result sign according to IEEE 754.
27054         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27055         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27056         * tests/test-floorf2.c (floorf_reference): Likewise.
27057         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27058         * tests/test-floor-ieee.c (main): Likewise.
27059         * tests/test-floorl-ieee.c (main): Likewise.
27060
27061 2010-12-22  Bruno Haible  <bruno@clisp.org>
27062
27063         getaddrinfo: Update doc.
27064         * doc/posix-functions/gai_strerror.texi: Return type is also different
27065         on AIX and HP-UX.
27066
27067 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27068
27069         getaddrinfo, inet_ntop: Update doc for Solaris.
27070         * doc/posix-functions/gai_strerror.texi: Return type is also an
27071         issue on Solaris 9 and earlier.
27072         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27073         on Solaris 10 and earlier.
27074
27075 2010-12-21  Bruno Haible  <bruno@clisp.org>
27076
27077         New module 'roundl-ieee'.
27078         * modules/roundl-ieee: New file.
27079         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27080         test whether roundl works according to ISO C 99 with IEC 60559.
27081         * m4/roundl-ieee.m4: New file.
27082         * modules/roundl-ieee-tests: New file.
27083         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27084         * tests/test-roundl.c (main): Remove signbit tests.
27085         * modules/roundl-tests (Depends-on): Remove signbit.
27086         * doc/posix-functions/roundl.texi: Mention the new module.
27087
27088 2010-12-21  Bruno Haible  <bruno@clisp.org>
27089
27090         New module 'truncl-ieee'.
27091         * modules/truncl-ieee: New file.
27092         * modules/truncl-ieee-tests: New file.
27093         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27094         * tests/test-truncl.c (main): Remove signbit tests.
27095         * modules/truncl-tests (Depends-on): Remove signbit.
27096         * doc/posix-functions/truncl.texi: Mention the new module.
27097
27098 2010-12-21  Bruno Haible  <bruno@clisp.org>
27099
27100         New module 'ceill-ieee'.
27101         * modules/ceill-ieee: New file.
27102         * modules/ceill-ieee-tests: New file.
27103         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27104         * tests/test-ceill.c (main): Remove signbit tests.
27105         * modules/ceill-tests (Depends-on): Remove signbit.
27106         * doc/posix-functions/ceill.texi: Mention the new module.
27107
27108 2010-12-21  Bruno Haible  <bruno@clisp.org>
27109
27110         New module 'floorl-ieee'.
27111         * modules/floorl-ieee: New file.
27112         * modules/floorl-ieee-tests: New file.
27113         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27114         * tests/test-floorl.c (main): Remove signbit tests.
27115         * modules/floorl-tests (Depends-on): Remove signbit.
27116         * doc/posix-functions/floorl.texi: Mention the new module.
27117
27118 2010-12-21  Bruno Haible  <bruno@clisp.org>
27119
27120         New module 'round-ieee'.
27121         * modules/round-ieee: New file.
27122         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27123         whether round works according to ISO C 99 with IEC 60559.
27124         * m4/round-ieee.m4: New file.
27125         * modules/round-ieee-tests: New file.
27126         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27127         * tests/test-round1.c (main): Remove signbit tests.
27128         * modules/round-tests (Depends-on): Remove 'signbit'.
27129         * doc/posix-functions/round.texi: Mention the new module.
27130
27131 2010-12-21  Bruno Haible  <bruno@clisp.org>
27132
27133         New module 'trunc-ieee'.
27134         * modules/trunc-ieee: New file.
27135         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27136         whether trunc works according to ISO C 99 with IEC 60559.
27137         * m4/trunc-ieee.m4: New file.
27138         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27140         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27141         * modules/trunc-ieee-tests: New file.
27142         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27143         * tests/test-trunc1.c (main): Remove signbit tests.
27144         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27145         * doc/posix-functions/trunc.texi: Mention the new module.
27146
27147 2010-12-21  Bruno Haible  <bruno@clisp.org>
27148
27149         New module 'ceil-ieee'.
27150         * modules/ceil-ieee: New file.
27151         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27152         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27153         ISO C 99 with IEC 60559.
27154         * m4/ceil-ieee.m4: New file.
27155         * modules/ceil (Files): Add lib/ceil.c.
27156         (Depends-on): Add 'float'.
27157         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27158         * lib/math.in.h (ceil): New declaration.
27159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27160         REPLACE_CEIL.
27161         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27162         * modules/ceil-ieee-tests: New file.
27163         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27164         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27165         * doc/posix-functions/ceil.texi: Mention the new module.
27166
27167 2010-12-21  Bruno Haible  <bruno@clisp.org>
27168
27169         New module 'floor-ieee'.
27170         * modules/floor-ieee: New file.
27171         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27172         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27173         ISO C 99 with IEC 60559.
27174         * m4/floor-ieee.m4: New file.
27175         * modules/floor (Files): Add lib/floor.c.
27176         (Depends-on): Add 'float'.
27177         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27178         * lib/math.in.h (floor): New declaration.
27179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27180         REPLACE_FLOOR.
27181         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27182         * modules/floor-ieee-tests: New file.
27183         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27184         * tests/test-math-c++.cc: Check the signature of 'floor'.
27185         * doc/posix-functions/floor.texi: Mention the new module.
27186
27187 2010-12-21  Bruno Haible  <bruno@clisp.org>
27188
27189         New module 'roundf-ieee'.
27190         * modules/roundf-ieee: New file.
27191         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27192         test whether roundf works according to ISO C 99 with IEC 60559.
27193         * m4/roundf-ieee.m4: New file.
27194         * modules/roundf-ieee-tests: New file.
27195         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27196         * tests/test-roundf1.c (main): Remove signbit tests.
27197         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27198         * doc/posix-functions/roundf.texi: Mention the new module.
27199
27200 2010-12-21  Bruno Haible  <bruno@clisp.org>
27201
27202         New module 'truncf-ieee'.
27203         * modules/truncf-ieee: New file.
27204         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27205         test whether truncf works according to ISO C 99 with IEC 60559.
27206         * m4/truncf-ieee.m4: New file.
27207         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27209         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27210         * modules/truncf-ieee-tests: New file.
27211         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27212         * tests/test-truncf1.c (main): Remove signbit tests.
27213         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27214         * doc/posix-functions/truncf.texi: Mention the new module.
27215
27216 2010-12-21  Bruno Haible  <bruno@clisp.org>
27217
27218         New module 'ceilf-ieee'.
27219         * modules/ceilf-ieee: New file.
27220         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27221         test whether ceilf works according to ISO C 99 with IEC 60559.
27222         * m4/ceilf-ieee.m4: New file.
27223         * modules/ceilf-ieee-tests: New file.
27224         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27225         * tests/test-ceilf1.c (main): Remove signbit tests.
27226         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27227         * doc/posix-functions/ceilf.texi: Mention the new module.
27228
27229 2010-12-21  Bruno Haible  <bruno@clisp.org>
27230
27231         New module 'floorf-ieee'.
27232         * modules/floorf-ieee: New file.
27233         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27234         test whether floorf works according to ISO C 99 with IEC 60559.
27235         * m4/floorf-ieee.m4: New file.
27236         * modules/floorf-ieee-tests: New file.
27237         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27238         * tests/test-floorf1.c (main): Remove signbit tests.
27239         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27240         * doc/posix-functions/floorf.texi: Mention the new module.
27241
27242 2010-12-21  Bruno Haible  <bruno@clisp.org>
27243
27244         Support for minus zero in autoconf macros.
27245         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27246         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27247         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27248         * tests/minus-zero.h: Update comments.
27249
27250 2010-12-21  Bruno Haible  <bruno@clisp.org>
27251
27252         Tests for module 'ceil'.
27253         * modules/ceil-tests: New file.
27254         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27255         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27256
27257 2010-12-21  Bruno Haible  <bruno@clisp.org>
27258
27259         Tests for module 'floor'.
27260         * modules/floor-tests: New file.
27261         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27262         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27263
27264 2010-12-21  Bruno Haible  <bruno@clisp.org>
27265
27266         math: Fix indentation.
27267         * lib/math.in.h (floorf): Fix indentation.
27268
27269 2010-12-21  Bruno Haible  <bruno@clisp.org>
27270
27271         Fix cross-compilation guesses on Solaris.
27272         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27273         not match "solaris2.10".
27274         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27275         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27276         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27277
27278 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27279
27280         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27281         This fixes a problem observed with the latest coreutils snapshot
27282         that caused a test to fail on Solaris 8.  src/csplit.c's call
27283         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27284         earlier, instead of returning the number of bytes that would have
27285         been generated; this causes csplit to incorrectly report memory
27286         exhaustion.
27287         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27288         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27289         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27290         comments to match.
27291         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27292         Fix typo in matching older versions of Solaris: "solaris2.10"
27293         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27294         only for guessing while cross-compiling.
27295         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27296
27297 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27298
27299         ftoastr: fix comment again
27300         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27302         Also, simplify example a bit by using flags = 0.
27303
27304 2010-12-20  Bruno Haible  <bruno@clisp.org>
27305
27306         round*, trunc*: Update documentation regarding glibc.
27307         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27308         * doc/posix-functions/round.texi: Likewise.
27309         * doc/posix-functions/roundl.texi: Likewise.
27310         * doc/posix-functions/truncf.texi: Likewise.
27311         * doc/posix-functions/trunc.texi: Likewise.
27312         * doc/posix-functions/truncl.texi: Likewise.
27313
27314 2010-12-20  Bruno Haible  <bruno@clisp.org>
27315
27316         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27317         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27318         * doc/posix-functions/round.texi: Likewise.
27319         * doc/posix-functions/roundl.texi: Likewise.
27320
27321 2010-12-20  Bruno Haible  <bruno@clisp.org>
27322
27323         ttyname_r: Add missing declaration on HP-UX 11.
27324         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27325         HAVE_TTYNAME_R.
27326         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27327         declared. Set HAVE_TTYNAME_R always.
27328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27329         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27330         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27331         HAVE_TTYNAME_R.
27332         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27333
27334 2010-12-20  Bruno Haible  <bruno@clisp.org>
27335
27336         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27337         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27338         * doc/posix-functions/getlogin_r.texi: Likewise.
27339         * tests/test-getlogin.c: Include <errno.h>.
27340         (main): Avoid test failure on HP-UX 11.11.
27341         * tests/test-getlogin_r.c (main): Likewise.
27342
27343 2010-12-20  Bruno Haible  <bruno@clisp.org>
27344
27345         getlogin_r: Add missing declaration on HP-UX 11.
27346         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27347         declared also when it exists as a function.
27348         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27349
27350 2010-12-20  Bruno Haible  <bruno@clisp.org>
27351
27352         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27353         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27354         through wcrtomb.
27355
27356 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27357
27358         ftoastr: fix comment
27359         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27360         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27361
27362 2010-12-19  Bruno Haible  <bruno@clisp.org>
27363
27364         isnan: Ensure it is a macro.
27365         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27366         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27367         Solaris.
27368
27369 2010-12-19  Bruno Haible  <bruno@clisp.org>
27370
27371         ldexpl test: Fix link error on OSF/1 5.1.
27372         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27373
27374 2010-12-19  Bruno Haible  <bruno@clisp.org>
27375
27376         wctype: Make it work in C++ mode on OSF/1 5.1.
27377         * lib/wctype.in.h (iswblank): Declare but not define here.
27378         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27379         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27380         * modules/wctype (Files): Add lib/iswblank.c.
27381
27382 2010-12-19  Bruno Haible  <bruno@clisp.org>
27383
27384         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27385         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27386         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27387
27388 2010-12-19  Bruno Haible  <bruno@clisp.org>
27389
27390         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27392         _POSIX_PII_SOCKET.
27393         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27394         * doc/posix-functions/recvfrom.texi: Likewise.
27395         * doc/posix-functions/send.texi: Likewise.
27396         * doc/posix-functions/sendto.texi: Likewise.
27397
27398 2010-12-19  Bruno Haible  <bruno@clisp.org>
27399
27400         tcgetsid: Add missing declaration on OSF/1 5.1.
27401         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27402         HAVE_TCGETSID.
27403         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27404         Don't set HAVE_TCGETSID.
27405         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27406         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27407         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27408         HAVE_TCGETSID.
27409         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27410
27411 2010-12-19  Bruno Haible  <bruno@clisp.org>
27412
27413         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27414         * lib/stdio.in.h: During the include_next statement, let recursive
27415         includes of this file include only the system header file.
27416
27417 2010-12-19  Bruno Haible  <bruno@clisp.org>
27418
27419         iconv_open: Fix regression from 2010-12-04.
27420         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27421         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27422
27423 2010-12-19  Bruno Haible  <bruno@clisp.org>
27424
27425         stdbool test: Avoid a gcc warning.
27426         * tests/test-stdbool.c (main): Fail if e1 is false.
27427         Reported by Jim Meyering.
27428
27429 2010-12-19  Jim Meyering  <meyering@redhat.com>
27430
27431         setenv: restore to working order
27432         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27433         mistakenly removed.
27434         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27435         HAVE_SETENV.
27436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27437         HAVE_SETENV.
27438
27439 2010-12-19  Bruno Haible  <bruno@clisp.org>
27440
27441         Document some different function declarations on OSF/1 5.1.
27442         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27443         * doc/posix-functions/inet_ntop.texi: Likewise.
27444         * doc/posix-functions/gethostname.texi: Likewise.
27445         * lib/unistd.in.h (gethostname): Update comment.
27446
27447 2010-12-19  Bruno Haible  <bruno@clisp.org>
27448
27449         doc: Mention vasprintf-posix module.
27450         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27451         the 'vasprintf-posix' module.
27452         * doc/glibc-functions/vasprintf.texi: Likewise.
27453
27454 2010-12-19  Bruno Haible  <bruno@clisp.org>
27455
27456         unsetenv: Add missing declaration on OSF/1 5.1.
27457         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27458         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27459         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27461         not HAVE_UNSETENV.
27462         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27463         HAVE_UNSETENV.
27464         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27465
27466 2010-12-19  Bruno Haible  <bruno@clisp.org>
27467
27468         setenv: Add missing declaration on OSF/1 5.1.
27469         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27470         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27471         declared. Don't set HAVE_SETENV.
27472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27473         not HAVE_SETENV.
27474         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27475         HAVE_SETENV.
27476         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27477
27478 2010-12-19  Bruno Haible  <bruno@clisp.org>
27479
27480         nl_langinfo tests: Avoid gcc warning.
27481         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27482
27483 2010-12-19  Bruno Haible  <bruno@clisp.org>
27484
27485         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27486         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27487         _GL_CXXALIAS_SYS.
27488
27489 2010-12-19  Bruno Haible  <bruno@clisp.org>
27490
27491         stdbool: Relax test.
27492         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27493         address to 'bool' work in static initializer, for compilers other than
27494         GCC.
27495
27496 2010-12-19  Bruno Haible  <bruno@clisp.org>
27497
27498         ftello: Add missing declaration on OSF/1 5.1.
27499         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27500         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27502         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27503         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27504
27505 2010-12-19  Bruno Haible  <bruno@clisp.org>
27506
27507         fseeko: Add missing declaration on OSF/1 5.1.
27508         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27511         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27512         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27513
27514 2010-12-19  Bruno Haible  <bruno@clisp.org>
27515
27516         fchdir: Add missing declaration on OSF/1 5.1.
27517         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27520         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27521         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27522
27523 2010-12-19  Bruno Haible  <bruno@clisp.org>
27524
27525         relocatable-prog-wrapper: Separate from relocatable-prog.
27526         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27527         uninstall-relocwrapper rule here.
27528         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27529         Reported by Ian Beckwith <ianb@erislabs.net>.
27530
27531 2010-12-19  Bruno Haible  <bruno@clisp.org>
27532
27533         unistr/u8-mbsnlen: Add missing dependency.
27534         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27535         Reported by Ian Beckwith <ianb@erislabs.net>.
27536
27537 2010-12-19  Bruno Haible  <bruno@clisp.org>
27538
27539         iconv: Make it possible again to use this module without 'iconv-h'.
27540         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27541         if it is not defined.
27542         Reported by Ian Beckwith <ianb@erislabs.net>.
27543
27544 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27545
27546         acl: port to Solaris 8 when copying from tmpfs to ufs
27547         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27548         error number.  Problem observed on Solaris 8 with latest
27549         coreutils, with "mv A B", where A is on a tmpfs file system and B
27550         is on a ufs file system.  This caused coreutils' mv/part-symlink
27551         test to fail.
27552
27553         tests: set fail=0 at start
27554         * tests/init.sh (setup_): Move fail=0 initialization here ...
27555         (mktempd_): ... from here, so that tests can rely on fail being
27556         set to 0 initially.  This fixes a problem in coreutils; see:
27557         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27558
27559 2010-12-18  Bruno Haible  <bruno@clisp.org>
27560
27561         memmem-simple: Stylistic changes.
27562         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27563         Fix preprocessor directive indentation.
27564
27565 2010-12-15  Pádraig Brady <P@draigBrady.com>
27566
27567         memmem, memmem-simple: reorganize and expand empty needle check
27568         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27569         functional checks to memmem-simple so that one has a fully functional
27570         memmem by using just this module.
27571         Restrict the performance only check to the memmem module.
27572         Also expand the empty needle check to ensure the correct
27573         pointer is returned, not just a non NULL pointer.
27574         * doc/glibc-functions/memmem.texi: Rearrange the portability
27575         documentation to correlate with the rearranged checks.
27576         Clarify exactly how the memmem and memmem-simple modules
27577         relate to each other.
27578
27579 2010-12-15  Pádraig Brady <P@draigBrady.com>
27580             Bruno Haible  <bruno@clisp.org>
27581
27582         Improve cross-compilation guesses for uClibc.
27583         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27584         that uClibc does not have the glibc bug.
27585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27586         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27587
27588 2010-12-14  Eric Blake  <eblake@redhat.com>
27589
27590         configmake: provide fallbacks for oldest supported autotools
27591         * m4/configmake.m4: New file.
27592         * modules/configmake (Files): Ship it.
27593         (configure.ac): Use it to guarantee fallbacks.
27594
27595 2010-12-13  Pádraig Brady <P@draigBrady.com>
27596
27597         read-file: Improve handling of large files
27598         * lib/read-file.c (fread_file): Minimize realloc()s
27599         for regular files, and better manage sizes around SIZE_MAX.
27600
27601 2010-12-13  Eric Blake  <eblake@redhat.com>
27602
27603         cloexec, fcntl: relax license
27604         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27605         consent from all contributors.
27606         * modules/fcntl (License): Likewise.
27607
27608 2010-12-10  Bruno Haible  <bruno@clisp.org>
27609
27610         Tests for module 'pipe-posix'.
27611         * modules/pipe-posix-tests: New file.
27612         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27613
27614 2010-12-10  Bruno Haible  <bruno@clisp.org>
27615
27616         pipe-posix: Make it work in C++ mode.
27617         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27618         (pipe): Use common idiom, not a macro definition.
27619         * lib/pipe.c: New file.
27620         * m4/pipe.m4: New file.
27621         * modules/pipe-posix (Description): Enhance.
27622         (Files): Add lib/pipe.c, m4/pipe.m4.
27623         (configure.ac): Invoke gl_FUNC_PIPE.
27624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27625         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27626         * tests/test-unistd-c++.cc: Check the signature of pipe.
27627
27628 2010-12-10  Bruno Haible  <bruno@clisp.org>
27629
27630         Rename module 'pipe' to 'spawn-pipe'.
27631         * modules/spawn-pipe: New file, renamed from modules/pipe.
27632         (Files, configure.ac, Makefile.am): Update.
27633         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27634         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27635         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27636         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27637         "spawn-pipe.h" instead of "pipe.h".
27638         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27639         to gl_SPAWN_PIPE.
27640         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27641         (Files, Makefile.am): Update.
27642         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27643         Update.
27644         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27645         Include "spawn-pipe.h" instead of "pipe.h".
27646         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27647         * lib/javacomp.c: Likewise.
27648         * lib/javaversion.c: Likewise.
27649         * lib/pipe-filter-gi.c: Likewise.
27650         * lib/pipe-filter-ii.c: Likewise.
27651         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27652         * modules/javacomp (Depends-on): Likewise.
27653         * modules/javaversion (Depends-on): Likewise.
27654         * modules/pipe-filter-gi (Depends-on): Likewise.
27655         * modules/pipe-filter-ii (Depends-on): Likewise.
27656         * MODULES.html.sh (Executing programs): Update.
27657         * NEWS: Mention the change.
27658
27659 2010-12-10  Eric Blake  <eblake@redhat.com>
27660
27661         pipe-posix: new module
27662         * modules/pipe-posix: New file.
27663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27664         (gl_UNISTD_H): Check for declaration.
27665         * modules/unistd (Makefile.am): Substitute it.
27666         * lib/unistd.in.h (pipe): Provide it for mingw.
27667         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27668         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27669
27670 2010-12-07  Bruno Haible  <bruno@clisp.org>
27671
27672         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27673         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27674         u8_strcmp_gnu.
27675         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27676
27677 2010-12-06  Bruno Haible  <bruno@clisp.org>
27678
27679         Update internal documentation.
27680         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27681
27682 2010-12-04  Bruno Haible  <bruno@clisp.org>
27683
27684         Put more information about failed tests into the test return codes.
27685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27686         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27687         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27688         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27689         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27690         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27691         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27692         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27693         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27695         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27696         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27697         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27698         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27699         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27700         returns a bit mask.
27701         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27702         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27703         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27704         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27705         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27706         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27707         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27709         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27710         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27711         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27712         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27713         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27715         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27716         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27717         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27718         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27719         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27720         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27721         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27722         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27723         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27724         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27725         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27726         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27727         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27728         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27729         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27730         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27731         gl_PRINTF_PRECISION): Likewise.
27732         * m4/regex.m4 (gl_REGEX): Likewise.
27733         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27734         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27735         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27736         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27739         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27740         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27741         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27742         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27743         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27744         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27745         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27746         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27747         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27748         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27749         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27750         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27752         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27753         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27754         enumerated value.
27755         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27756
27757 2010-12-04  Bruno Haible  <bruno@clisp.org>
27758
27759         Update for Solaris 11 2010-11.
27760         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27761         Express, released in November 2010.
27762
27763 2010-12-04  Bruno Haible  <bruno@clisp.org>
27764
27765         nproc: Relax license.
27766         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27767         and Paul Eggert.
27768         Requested by Ludovic Courtès <ludo@gnu.org>.
27769
27770 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27771
27772         utimecmp: fine-grained src to nearby coarse-grained dest
27773
27774         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27775         and the source is on a file system with higher-resolution time
27776         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27777         not work, and the time stamps are close together, the algorithm to
27778         determine the exact resolution from the read-back mtime was buggy:
27779         it had a "!=" where it should have had an "==".  This bug has been
27780         in the code ever since it was introduced to gnulib.
27781         Problem reported by Dan Jacobson in
27782         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27783
27784 2010-11-30  Bruno Haible  <bruno@clisp.org>
27785
27786         strerror_r-posix: Fix autoconf test.
27787         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27788
27789 2010-11-28  Bruno Haible  <bruno@clisp.org>
27790             Paul Eggert  <eggert@cs.ucla.edu>
27791
27792         Tests for module 'getdomainname'.
27793         * modules/getdomainname-tests: New file.
27794         * tests/test-getdomainname.c: New file, based on
27795         tests/test-gethostname.c.
27796
27797 2010-11-28  Bruno Haible  <bruno@clisp.org>
27798             Paul Eggert  <eggert@cs.ucla.edu>
27799
27800         getdomainname: Use the system function when possible.
27801         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27802         (getdomainname): Replace if needed. Provide the declaration if it is
27803         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27804         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27805         (getdomainname): When the system has getdomainname, call the system
27806         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27807         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27808         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27809         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27810         the function if its second argument is of type 'int' or if it is found
27811         in libnsl.
27812         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27813         <sys/systeminfo.h> and sysinfo().
27814         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27816         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27817         HAVE_GETDOMAINNAME.
27818         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27819         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27820         * doc/glibc-functions/getdomainname.texi: Document the problems with
27821         the getdomainname declaration.
27822
27823 2010-11-28  Bruno Haible  <bruno@clisp.org>
27824
27825         sys_socket: Ensure ss_family field on AIX.
27826         * lib/sys_socket.in.h (ss_family): New macro definition.
27827         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27828         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27829         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27830         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27831         * modules/sys_socket (Makefile.am): Substitute
27832         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27833         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27834
27835 2010-11-27  Bruno Haible  <bruno@clisp.org>
27836
27837         readline: Improve configure output.
27838         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27839         "checking for readline..." result understandable.
27840
27841 2010-11-27  Bruno Haible  <bruno@clisp.org>
27842
27843         *printf-posix: Detect a bug on Solaris 10/x86.
27844         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27845         for floating-point output.
27846         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27847         directive.
27848         * tests/test-snprintf-posix.h (test_function): Likewise.
27849         * tests/test-sprintf-posix.h (test_function): Likewise.
27850         * tests/test-vasprintf-posix.c (test_function): Likewise.
27851         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27852         * doc/posix-functions/printf.texi: Likewise.
27853         * doc/posix-functions/snprintf.texi: Likewise.
27854         * doc/posix-functions/sprintf.texi: Likewise.
27855         * doc/posix-functions/vfprintf.texi: Likewise.
27856         * doc/posix-functions/vprintf.texi: Likewise.
27857         * doc/posix-functions/vsnprintf.texi: Likewise.
27858         * doc/posix-functions/vsprintf.texi: Likewise.
27859         * doc/glibc-functions/obstack_printf.texi: Likewise.
27860         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27861
27862 2010-11-27  Bruno Haible  <bruno@clisp.org>
27863
27864         Fix link error when module libunistring-optional is in use.
27865         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27866         * modules/striconveha-tests (Makefile.am): Likewise.
27867
27868 2010-11-27  Bruno Haible  <bruno@clisp.org>
27869
27870         regex: Mention link dependencies.
27871         * modules/regex (Link): New section.
27872         * modules/rpmatch (Link): Likewise.
27873         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27874
27875 2010-11-27  Bruno Haible  <bruno@clisp.org>
27876
27877         ftoastr: Fix compilation error on Solaris.
27878         * lib/ftoastr.c: Include <config.h>.
27879
27880 2010-11-27  Bruno Haible  <bruno@clisp.org>
27881
27882         getloadavg: Update documentation.
27883         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27884
27885 2010-11-27  Bruno Haible  <bruno@clisp.org>
27886
27887         sys_socket: Fix test whether the functions are declared.
27888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27889         not <sys/select.h>.
27890
27891 2010-11-27  Bruno Haible  <bruno@clisp.org>
27892
27893         getpass: Make sure to get system declaration on some platforms.
27894         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27895         gl_USE_SYSTEM_EXTENSIONS.
27896         * modules/getpass (Depends-on): Add extensions.
27897
27898 2010-11-26  Bruno Haible  <bruno@clisp.org>
27899
27900         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27901         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27902         'iconv' module is present.
27903         (ICONV_CONST): New macro.
27904         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27905         ICONV_CONST.
27906         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27907         set ICONV_CONST.
27908         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27909         here.
27910         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27911         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27912         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27913         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27914         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27915         present.
27916
27917 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27918
27919         ftoastr: comment fix
27920         * lib/ftoastr.c: "little" -> "little or no" in comment
27921
27922 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27923
27924         stdint: port to GCC 4.3 + OSX + Octave
27925         On this platform, stdint.h is buggy and defines int64_t to long
27926         long int.  The replacement defined it to long int, causing
27927         problems with C++ style name mangling.  Instead, trust the system
27928         definition if INT64_MAX is defined, and likewise for the unsigned
27929         variant.   Problem reported by Jarno Rajahalme in
27930         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27931         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27932         and don't mess with int64_t and INT64_MAX in this case.
27933         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27934
27935 2010-11-24  Bruno Haible  <bruno@clisp.org>
27936
27937         doc: Corrections regarding MacOS X 10.4 and 10.5.
27938         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27939         MacOS X.
27940         Reported by Simon Josefsson.
27941
27942 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27943
27944         Uninstall ".bin" files installed by relocwrapper.
27945         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27946         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27947         unless it is already there.
27948
27949 2010-11-21  Bruno Haible  <bruno@clisp.org>
27950
27951         Update for NetBSD 5.0.
27952         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27953         NetBSD; the test fails on NetBSD 5.0.
27954         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27955         about NetBSD.
27956
27957 2010-11-21  Bruno Haible  <bruno@clisp.org>
27958
27959         Update for HP-UX 11.23 and HP-UX 11.31.
27960         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27961         HP-UX.
27962
27963 2010-11-21  Bruno Haible  <bruno@clisp.org>
27964
27965         Update for MacOS X 10.5.
27966         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27967         MacOS X; the test fails on MacOS X 10.5.8.
27968         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27969         about MacOS X.
27970
27971 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27972
27973         bootstrap: add bootstrap_sync option.
27974         See discussion at
27975         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27977         * build-aux/bootstrap: Accept --bootstrap-sync to update
27978         bootstrap if it is not identical to the local gnulib's
27979         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27980         enable this by default.  Accept --no-bootstrap-sync to disable
27981         it.
27982
27983 2010-11-20  Bruno Haible  <bruno@clisp.org>
27984
27985         Ensure that <features.h> is included before __GLIBC__ is tested.
27986         * lib/printf-parse.h: Include <features.h>.
27987         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27988         Reported by Mike Frysinger <vapier@gentoo.org>.
27989
27990         Ensure that <features.h> is included before __GLIBC__ is tested.
27991         * lib/wchar.in.h: Include <features.h>.
27992         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27993         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27994         Reported by Mike Frysinger <vapier@gentoo.org>.
27995
27996         Ensure that <features.h> is included before __GLIBC__ is tested.
27997         * lib/arpa_inet.in.h: Include <features.h>.
27998         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27999         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28000         Reported by Mike Frysinger <vapier@gentoo.org>.
28001
28002         Ensure that <features.h> is included before __GLIBC__ is tested.
28003         * build-aux/link-warning.h: Include <features.h>.
28004         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28005         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28006         Reported by Mike Frysinger <vapier@gentoo.org>.
28007
28008         Ensure that <features.h> is included before __GLIBC__ is tested.
28009         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28010         Reported by Mike Frysinger <vapier@gentoo.org>.
28011
28012 2010-11-20  Bruno Haible  <bruno@clisp.org>
28013
28014         memmem: Fix autoconf test.
28015         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28016
28017 2010-11-20  Bruno Haible  <bruno@clisp.org>
28018
28019         Port to uClibc.
28020         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28021         * lib/fcntl.in.h: Likewise.
28022         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28023         * lib/mbrtowc.c (mbrtowc): Likewise.
28024         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28025         * lib/strerror_r.c: Likewise.
28026         * lib/unistr/u8-strnlen.c: Likewise.
28027         * lib/vasnprintf.c (decimal_point_char): Likewise.
28028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28029         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28031         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28032         * tests/test-sigaction.c (handler, main): Likewise.
28033         * lib/freading.h: Treat uClibc like a non-glibc platform.
28034         * lib/freading.c: Likewise.
28035         * lib/gettext.h: Likewise.
28036         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28037         Likewise.
28038         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28039         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28040         * lib/propername.c (proper_name_utf8): Likewise.
28041         * lib/spawn.in.h: Likewise.
28042         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28043         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28044         mem_cd_iconveh_internal): Likewise.
28045         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28046         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28047         strstr, strcasestr): Likewise.
28048         * lib/unicodeio.c (unicode_to_mb): Likewise.
28049         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28050         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28051         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28052         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28053         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28054         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28055         * lib/unistr/u8-stpncpy.c: Likewise.
28056         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28057         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28058         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28059         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28060         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28061         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28062         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28064         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28065         Likewise.
28066         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28067         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28068         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28070         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28071         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28072         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28073         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28074         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28075         * tests/test-striconveha.c (main): Likewise.
28076         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28077         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28078         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28079         * doc/posix-functions/getline.texi: Likewise.
28080         Reported by Mike Frysinger <vapier@gentoo.org>.
28081
28082 2010-11-20  Bruno Haible  <bruno@clisp.org>
28083
28084         nproc: Fix condition.
28085         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28086         HAVE_PTHREAD_AFFINITY_NP.
28087
28088 2010-11-20  Bruno Haible  <bruno@clisp.org>
28089
28090         Fix a comment.
28091         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28092
28093 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         ftoastr: don't assume snprintf
28096         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28097         Implement a subset of snprintf here, by using sprintf safely.
28098         * modules/ftoastr (Depends-on): Remove snprintf.
28099
28100 2010-11-19  Jim Meyering  <meyering@redhat.com>
28101
28102         test-rename.h: fix compilation failure
28103         * tests/test-rename.h (test_rename): Add omitted "}".
28104
28105 2010-11-17  Jim Meyering  <meyering@redhat.com>
28106
28107         maint.mk: add a URL discussing the no-@acronym policy
28108         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28109
28110 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28111
28112         ftoastr: depend on snprintf, improve comments
28113         * lib/ftoastr.c: Also mention Loitsch's draft.
28114         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28115         needed in the current implementation, but it might simplify
28116         speeding up the code later.
28117         * modules/ftoastr: Depend on snprintf; this improves portability.
28118         Suggested by Bruno Haible in the same email.
28119
28120         ftoastr: port to hosts lacking strtof and strtold
28121         Problem reported by Bruno Haible in
28122         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28123         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28124         environment and strtold (and presumably strtof) are not available.
28125         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28126         (configure.ac): Require gl_C99_STRTOLD.
28127
28128 2010-11-18  Bruno Haible  <bruno@clisp.org>
28129
28130         c-strtold: Avoid link error on AIX 7.
28131         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28132         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28133         (gl_C_STRTOLD): Test whether strtold_l exists.
28134         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28135
28136 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28137
28138         intprops: new macro INT_BITS_STRLEN_BOUND
28139         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28140         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28141         not exposed.  Also, it uses a slightly tighter bound than before;
28142         though this makes no practical difference, we might as well be as
28143         tight as we easily can.
28144
28145         ftoastr: new module, for lossless conversion of floats to short strings
28146         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28147         * modules/ftoastr: New files.
28148
28149 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28150
28151         bootstrap: port to Solaris sed
28152         * build-aux/bootstrap (get_version): Port to Solaris sed.
28153         See Ralf Wildenhues's note in
28154         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28155
28156 2010-11-14  Jim Meyering  <meyering@redhat.com>
28157
28158         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28159         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28160         and move definition closer to sole use.
28161
28162 2010-11-13  Jim Meyering  <meyering@redhat.com>
28163
28164         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28165         Now we require at least autoconf-2.59, which means the work-around
28166         is no longer needed.
28167         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28168         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28169         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28170         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28171         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28172
28173 2010-11-13  Bruno Haible  <bruno@clisp.org>
28174
28175         rename, renameat: Avoid test failures at NFS mounted locations.
28176         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28177         functions.
28178         (test_rename): Use assert_nonexistent.
28179         * tests/test-rename.c: Include <dirent.h>.
28180         * tests/test-renameat.c: Likewise.
28181         Reported by Gary V. Vaughan <gary@gnu.org>.
28182
28183         rename, renameat: Document Linux bug with NFS
28184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28185         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28186         * doc/posix-functions/renameat.texi: Likewise.
28187         Suggested by Eric Blake.
28188
28189 2010-11-13  Bruno Haible  <bruno@clisp.org>
28190
28191         rename test: Add comments.
28192         * tests/test-rename.h (test_rename): Add structure and comments.
28193
28194 2010-11-13  Eric Blake  <eblake@redhat.com>
28195
28196         maintainer-makefile: cover a few more files
28197         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28198         scripts generated within C files, for libvirt.
28199
28200 2010-11-13  Bruno Haible  <bruno@clisp.org>
28201
28202         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28203         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28204         character, return the number of bytes that belong together, not always
28205         1.
28206         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28207         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28208         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28209         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28210         number of bytes of an invalid character.
28211         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28212         (main): Invoke it.
28213         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28214         results.
28215         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28216         malformed byte sequences.
28217         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28218         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28219         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28220         Reported by Ben Pfaff and Paolo Bonzini.
28221
28222 2010-11-13  Bruno Haible  <bruno@clisp.org>
28223
28224         openat: Work around glibc bug with fchownat() and empty file names.
28225         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28226         (gl_FUNC_FCHOWNAT): Invoke it.
28227         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28228         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28229         Reported by Gary V. Vaughan <gary@gnu.org>.
28230
28231 2010-11-13  Bruno Haible  <bruno@clisp.org>
28232
28233         openat: Ensure autoconf macro ordering.
28234         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28235         gl_USE_SYSTEM_EXTENSIONS.
28236         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28237
28238 2010-11-13  Bruno Haible  <bruno@clisp.org>
28239
28240         Update comments.
28241         * lib/unistr/u8-check.c: Update file name in comments.
28242         * lib/unistr/u8-mblen.c: Likewise.
28243         * lib/unistr/u8-prev.c: Likewise.
28244         * lib/unistr/u8-strmblen.c: Likewise.
28245         * lib/unistr/u8-strmbtouc.c: Likewise.
28246
28247 2010-11-13  Jim Meyering  <meyering@redhat.com>
28248
28249         tests: avoid test failure on Solaris 10 due to lack of PATH export
28250         * tests/test-update-copyright.sh: Don't forget to export PATH.
28251
28252         init.sh: ensure that IFS is defined, just in case...
28253         * tests/init.sh (setup_): Ensure that IFS is defined,
28254         so that saving and restoring it works as expected.  This
28255         appears to be useful at least for an old version of dash
28256         from a long time ago (RH 6).  See here for details:
28257         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28258
28259         maint.mk: tighten "test a == b" check
28260         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28261         test to files that contain something like #!/bin/sh.
28262         Without this, coreutils would get two false positives in
28263         the comments of C source files.
28264
28265 2010-11-12  Eric Blake  <eblake@redhat.com>
28266
28267         bootstrap: fix typo in previous attempt
28268         * build-aux/bootstrap (buildreq): Correct the grouping.
28269         Reported by Paul Eggert.
28270
28271         maintainer-makefile: prohibit test x == x
28272         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28273         Based on a report by Matthias Bolte.
28274
28275         bootstrap: allow FreeBSD gzip
28276         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28277         which has no '.' and goes to stderr.
28278         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28279         Reported by Matthias Bolte.
28280
28281         maintainer-makefile: check for i18n setup
28282         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28283         will likely work.
28284
28285 2010-11-12  Bruno Haible  <bruno@clisp.org>
28286
28287         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28288         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28289         * lib/nanosleep.c (nanosleep): Likewise.
28290
28291 2010-11-11  Bruno Haible  <bruno@clisp.org>
28292
28293         fcntl-h: Fix for use of C++ on glibc systems.
28294         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28295         also on glibc systems in C++ mode.
28296         Reported by Gary V. Vaughan <gary@gnu.org>.
28297
28298 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28299
28300         mknod: avoid false failure with dash
28301         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28302
28303 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28304
28305         unlink: Fix "is it should" typo in diagnostic.
28306         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28308
28309 2010-11-11  Bruno Haible  <bruno@clisp.org>
28310
28311         Tests for module 'strerror_r-posix'.
28312         * modules/strerror_r-posix-tests: New file.
28313         * tests/test-strerror_r.c: New file.
28314         * tests/test-string-c++.cc: Check the signature of strerror_r.
28315
28316         New module 'strerror_r-posix'.
28317         * lib/string.in.h (strerror_r): New declaration.
28318         * lib/strerror_r.c: New file.
28319         * m4/strerror_r.m4: New file.
28320         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28321         of strerror_r.
28322         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28323         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28324         * modules/strerror_r-posix: New file.
28325         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28326         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28327         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28328         portability problems.
28329
28330 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28331
28332         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28333         line is also considered for output. Quoted function name in shell
28334         command, so temporary files for functions like MyClass::operator()
28335         are removed correctly without errors.
28336
28337 2010-11-09  Bruno Haible  <bruno@clisp.org>
28338
28339         * doc/posix-functions/strerror.texi: List more failing platforms.
28340
28341         * doc/posix-functions/strerror.texi: Add a comment.
28342
28343 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28344
28345         fdopendir: fix bug on MacOS X when low on file descriptors
28346
28347         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28348         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28349         All callers changed.
28350         (fdopendir): Invoke save_cwd at the top level, not after using
28351         multiple dup() calls to use up file descriptors.  Then retry
28352         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28353         less than the maximum number of open file descriptors, because
28354         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28355         on Mac OS X 10.6.4 for tar 1.24
28356         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28357         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28358         and for tar 1.25
28359         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28360
28361 2010-11-07  Bruno Haible  <bruno@clisp.org>
28362
28363         vasnprintf: Support I flag on glibc systems.
28364         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28365         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28366         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28367         snprintf function.
28368         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28369         glibc systems.
28370         * tests/test-vasnprintf-posix3.c: New file.
28371         * modules/vasnprintf-posix-tests (Files): Add it.
28372         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28373
28374 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28375
28376         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28377         * MODULES.html.sh: For compiler warnings, use name
28378         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28379
28380 2010-11-05  Eric Blake  <eblake@redhat.com>
28381
28382         ceil, floor: avoid spurious failure with icc
28383         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28384         [denormals-as-zero] when optimizing without -mieee-fp option.
28385         * tests/test-floorf2.c (floorf_reference): Likewise.
28386         * tests/test-ceilf1.c (dummy): New function.
28387         (main): Use it to outsmart icc's optimization.
28388         * tests/test-floorf1.c (dummy, main): Likewise.
28389
28390         tests: require working signbit
28391         * modules/ceilf-tests (Depends-on): Add signbit.
28392         * modules/ceill-tests (Depends-on): Likewise.
28393         * modules/floorf-tests (Depends-on): Likewise.
28394         * modules/floorl-tests (Depends-on): Likewise.
28395         * modules/round-tests (Depends-on): Likewise.
28396         * modules/roundf-tests (Depends-on): Likewise.
28397         * modules/roundl-tests (Depends-on): Likewise.
28398         * modules/trunc-tests (Depends-on): Likewise.
28399         * modules/truncf-tests (Depends-on): Likewise.
28400         * modules/truncl-tests (Depends-on): Likewise.
28401
28402         strtod: work around icc bug
28403         * lib/strtod.c (minus_zero): Define to working value.
28404         (strtod): Use it to avoid icc bug.
28405
28406         copysign: enhance tests
28407         * modules/copysign-tests (Files): Add minus-zero.h.
28408         * tests/test-copysign.c (main): Also test zeros.
28409
28410 2010-11-04  Eric Blake  <eblake@redhat.com>
28411
28412         ceil, floor, round, trunc: enhance tests of -0
28413         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28414         * tests/test-ceill.c (main): Likewise.
28415         * tests/test-floorf1.c (main): Likewise.
28416         * tests/test-floorl.c (main): Likewise.
28417         * tests/test-round1.c (main): Likewise.
28418         * tests/test-roundf1.c (main): Likewise.
28419         * tests/test-roundl.c (main): Likewise.
28420         * tests/test-trunc1.c (main): Likewise.
28421         * tests/test-truncf1.c (main): Likewise.
28422         * tests/test-truncl.c (main): Likewise.
28423
28424 2010-11-04  Eric Blake  <eblake@redhat.com>
28425
28426         frexp, tests: work around ICC bug with -zero
28427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28428         works with more compilers.
28429         * tests/minus-zero.h: New file.
28430         * modules/ceilf-tests (Files): Include it.
28431         * modules/ceill-tests (Files): Likewise.
28432         * modules/floorf-tests (Files): Likewise.
28433         * modules/floorl-tests (Files): Likewise.
28434         * modules/frexp-nolibm-tests (Files): Likewise.
28435         * modules/frexp-tests (Files): Likewise.
28436         * modules/frexpl-nolibm-tests (Files): Likewise.
28437         * modules/frexpl-tests (Files): Likewise.
28438         * modules/isnan-tests (Files): Likewise.
28439         * modules/isnand-nolibm-tests (Files): Likewise.
28440         * modules/isnand-tests (Files): Likewise.
28441         * modules/isnanf-nolibm-tests (Files): Likewise.
28442         * modules/isnanf-tests (Files): Likewise.
28443         * modules/isnanl-nolibm-tests (Files): Likewise.
28444         * modules/isnanl-tests (Files): Likewise.
28445         * modules/round-tests (Files): Likewise.
28446         * modules/roundf-tests (Files): Likewise.
28447         * modules/roundl-tests (Files): Likewise.
28448         * modules/ldexpl-tests (Files): Likewise.
28449         * modules/signbit-tests (Files): Likewise.
28450         * modules/snprintf-posix-tests (Files): Likewise.
28451         * modules/sprintf-posix-tests (Files): Likewise.
28452         * modules/strtod-tests (Files): Likewise.
28453         * modules/trunc-tests (Files): Likewise.
28454         * modules/truncf-tests (Files): Likewise.
28455         * modules/truncl-tests (Files): Likewise.
28456         * modules/vsnprintf-posix-tests (Files): Likewise.
28457         * modules/vsprintf-posix-tests (Files): Likewise.
28458         * modules/vasnprintf-posix-tests (Files): Likewise.
28459         * modules/vasprintf-posix-tests (Files): Likewise.
28460         * tests/test-ceilf1.c (main): Use it.
28461         * tests/test-ceill.c (main): Likewise.
28462         * tests/test-floorf1.c (main): Likewise.
28463         * tests/test-floorl.c (main): Likewise.
28464         * tests/test-frexp.c (main): Likewise.
28465         * tests/test-frexpl.c (main): Likewise.
28466         * tests/test-isnan.c (main): Likewise.
28467         * tests/test-isnand.h (main): Likewise.
28468         * tests/test-isnanf.h (main): Likewise.
28469         * tests/test-isnanl.h (main): Likewise.
28470         * tests/test-ldexpl.c (main): Likewise.
28471         * tests/test-round.c (main): Likewise.
28472         * tests/test-roundf.c (main): Likewise.
28473         * tests/test-roundl.c (main): Likewise.
28474         * tests/test-signbit.c (test_signbitf, test_signbitd)
28475         (test_signbitl): Likewise.
28476         * tests/test-snprintf-posix.h (test_function): Likewise.
28477         * tests/test-sprintf-posix.h (test_function): Likewise.
28478         * tests/test-strtod.c (main): Likewise.
28479         * tests/test-trunc1.c (main): Likewise.
28480         * tests/test-truncf1.c (main): Likewise.
28481         * tests/test-truncl.c (main): Likewise.
28482
28483         isnanl: work around icc bug
28484         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28485
28486 2010-11-03  Eric Blake  <eblake@redhat.com>
28487
28488         tests: fix compiler warnings
28489         * tests/test-getopt.h (test_getopt): Fix condition.
28490         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28491         * tests/test-pipe2.c (main): Likewise.
28492         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28493
28494         utimens: fix broken m4 test
28495         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28496
28497 2010-10-28  Bruno Haible  <bruno@clisp.org>
28498
28499         posix_spawn*, getdtablesize: Relax license.
28500         * modules/posix_spawn (License): Change to LGPLv2+.
28501         * modules/posix_spawnp (License): Likewise.
28502         * modules/posix_spawn-internal (License): Likewise.
28503         * modules/posix_spawnattr_init (License): Likewise.
28504         * modules/posix_spawnattr_getflags (License): Likewise.
28505         * modules/posix_spawnattr_setflags (License): Likewise.
28506         * modules/posix_spawnattr_getpgroup (License): Likewise.
28507         * modules/posix_spawnattr_setpgroup (License): Likewise.
28508         * modules/posix_spawnattr_getschedparam (License): Likewise.
28509         * modules/posix_spawnattr_setschedparam (License): Likewise.
28510         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28511         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28512         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28513         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28514         * modules/posix_spawnattr_getsigmask (License): Likewise.
28515         * modules/posix_spawnattr_setsigmask (License): Likewise.
28516         * modules/posix_spawnattr_destroy (License): Likewise.
28517         * modules/posix_spawn_file_actions_init (License): Likewise.
28518         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28519         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28520         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28521         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28522         * modules/getdtablesize (License): Likewise.
28523         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28524
28525 2010-10-26  Bruno Haible  <bruno@clisp.org>
28526
28527         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28528         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28529         Cygwin and mingw.
28530         Suggested by Eric Blake.
28531
28532 2010-10-26  Bruno Haible  <bruno@clisp.org>
28533
28534         stdio: Work around compilation error due to renameat() on Solaris 10.
28535         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28536         * lib/renameat.c: Don't include <unistd.h> here.
28537         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28538         Reported by Paul Eggert and Eric Blake.
28539
28540 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28541
28542         renameat: port to Solaris 10, which declares renameat in unistd.h
28543
28544         * lib/renameat.c: Include unistd.h before stdio.h, because
28545         Solaris 10 declares renameat in unistd.h.  Problem encountered
28546         when building GNU tar 1.24 on Solaris 10.
28547
28548 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28549
28550         fdopendir: fix C89 compilation
28551         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28552         compilers.
28553
28554 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28555
28556         inttostr: simplify by removing unnecessary redundancy
28557         * lib/anytostr.c: Don't include verify.h.
28558         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28559         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28560         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28561         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28562         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28563         Likewise.
28564         * modules/inttostr (Depends-on): Remove 'verify'.
28565
28566 2010-10-23  Bruno Haible  <bruno@clisp.org>
28567
28568         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28569         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28570         Reported by Eric Blake.
28571
28572 2010-10-23  Bruno Haible  <bruno@clisp.org>
28573
28574         Tests: Fix LOCALE_JA on MirBSD 10.
28575         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28576         to an UTF-8 locale.
28577         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28578         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28579         Reported by Eric Blake.
28580
28581 2010-10-21  Bruno Haible  <bruno@clisp.org>
28582
28583         nl_langinfo test: Avoid test failure on NetBSD 5.
28584         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28585         Reported by Eric Blake.
28586
28587 2010-10-21  Eric Blake  <eblake@redhat.com>
28588
28589         c-stack: work around libsigsegv 2.8 bug
28590         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28591         overflow on at least PowerPC64.
28592
28593 2010-10-17  Bruno Haible  <bruno@clisp.org>
28594
28595         userspec: Drop redundant file.
28596         * modules/userspec (Files): Remove lib/inttostr.h.
28597
28598 2010-10-17  Bruno Haible  <bruno@clisp.org>
28599
28600         nl_langinfo tests: Silence some warnings.
28601         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28602         Reported by Jim Meyering.
28603
28604 2010-10-17  Bruno Haible  <bruno@clisp.org>
28605
28606         Make use of GCC's attribute __alloc_size__.
28607         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28608         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28609         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28610         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28611         __alloc_size__.
28612         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28613         Suggested by Jim Meyering.
28614
28615 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28616
28617         bootstrap: anchor .gitignore entries.
28618         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28619         with...
28620         (insert_vc_ignore): ... this new function, which prepends `/' to
28621         all .gitignore entries before passing them to
28622         insert_sorted_if_absent.
28623
28624 2010-10-16  Bruno Haible  <bruno@clisp.org>
28625
28626         nextafter: Fix configure check.
28627         * modules/nextafter (configure.ac): Correct expected prototype.
28628
28629 2010-10-16  Bruno Haible  <bruno@clisp.org>
28630
28631         termios: Update documentation.
28632         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28633
28634 2010-10-16  Bruno Haible  <bruno@clisp.org>
28635
28636         tests: Make them compile with TinyCC.
28637         * tests/test-strstr.c (main): Remove parentheses around array
28638         initializer.
28639
28640 2010-10-15  Eric Blake  <eblake@redhat.com>
28641
28642         ignore-value: make header idempotent
28643         * lib/ignore-value.h: Add double-inclusion guards.
28644         Reported by Stefan Berger.
28645
28646 2010-10-15  Jim Meyering  <meyering@redhat.com>
28647
28648         GNUmakefile: handle "stable" target, not "major"
28649         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28650         lists in maint.mk and announce-gen.  Without this, "make stable"
28651         would fail to ensure that $(VERSION) is up to date.
28652
28653 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28654
28655         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28656         & co.
28657
28658 2010-10-14  Bruno Haible  <bruno@clisp.org>
28659
28660         vasnprintf: Don't set errno to 0.
28661         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28662         block that sets it to 0.
28663         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28664
28665 2010-10-14  Bruno Haible  <bruno@clisp.org>
28666
28667         socketlib: Fix.
28668         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28669         gl_PREREQ_SYS_H_WINSOCK2.
28670         Reported by Ian Beckwith <ianb@erislabs.net>.
28671
28672 2010-10-13  Jim Meyering  <meyering@redhat.com>
28673
28674         test-select-stdin.c: avoid warn_unused_result warnings
28675         * tests/test-select-stdin.c: Include "macros.h".
28676         ASSERT that read and fflush succeed.
28677
28678 2010-10-13  Jim Meyering  <meyering@redhat.com>
28679
28680         git-version-gen: do require git-VC'd files in cwd
28681         * build-aux/git-version-gen: Reject a git version string
28682         if there are no commits associated with the current directory.
28683         This avoids an unlikely false-positive (unrelated dir whose parent
28684         repository also contains a tag matching v*), as pointed out
28685         by Giuseppe Scrivano in
28686         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28687
28688 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28689
28690         argv-iter: omit nonconforming declaration
28691         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28692         enum arg_iter_err declaration, which doesn't conform to C99.
28693         Solaris 10 cc warns about this.
28694
28695 2010-10-13  Eric Blake  <eblake@redhat.com>
28696
28697         termios: fix compilation on mingw
28698         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28699         (gl_TERMIOS_H): Adjust it on mingw.
28700         * modules/termios (Makefile.am): Substitute new key.
28701         * lib/termios.in.h (includes): Make include_next conditional.
28702         * doc/posix-headers/termios.texi (termios.h): Update
28703         documentation.
28704         Reported by Daniel P. Berrange.
28705
28706 2010-10-13  Jim Meyering  <meyering@redhat.com>
28707
28708         git-version-gen: don't require that .git/ be in the current dir
28709         * build-aux/git-version-gen: Adjust this script so that it works
28710         when run from any working directory beneath the top-level .git/-
28711         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28713
28714         test-select: avoid warn_unused_result warnings
28715         * tests/test-select.c: Include "macros.h".
28716         ASSERT that each call to read, write, and pipe succeeds.
28717         While not technically required, also check each "close".
28718         * modules/select-tests (Files): Add tests/macros.h.
28719
28720         test-symlinkat: remove declaration of unused local
28721         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28722
28723         test-inttostr: avoid shadowing warnings
28724         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28725         and use malloc rather than the stack for the same reason as
28726         mentioned in the comment justifying the other allocation.
28727
28728 2010-10-11  Bruno Haible  <bruno@clisp.org>
28729
28730         stdlib: Allow multiple gnulib generated replacements to coexist.
28731         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28732         Reported by Sam Steingold <sds@gnu.org>.
28733
28734 2010-10-11  Jim Meyering  <meyering@redhat.com>
28735
28736         fix a documentation typo
28737         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28738
28739 2010-10-11  Eric Blake  <eblake@redhat.com>
28740
28741         futimens: work around Solaris 11 bug
28742         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28743         * tests/test-futimens.h (test_futimens): Enhance, rather than
28744         weaken test.
28745         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28746
28747 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28748
28749         Indentation.
28750         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28751         higher-level operators more to the left.
28752
28753 2010-10-11  Jim Meyering  <meyering@redhat.com>
28754
28755         test-futimens: avoid unwarranted test failure on Solaris 5.11
28756         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28757         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28758         because it tries to dereference the NULL name argument.
28759
28760 2010-10-11  Bruno Haible  <bruno@clisp.org>
28761
28762         Indentation.
28763         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28764         indentation.
28765
28766 2010-10-11  Jim Meyering  <meyering@redhat.com>
28767
28768         spawn.in.h: make indentation consistent with parentheses
28769         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28770         Make indentation consistent with parentheses.
28771
28772 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28773
28774         Fix mismatched parens in previous commit
28775         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28776         parens.
28777
28778 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28779
28780         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28781
28782         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28783         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28784         * lib/malloca.c: Include "verify.h".
28785         (verify1): Remove, replacing with a verify call.
28786         * lib/relocwrapper.c (verify1): Likewise.
28787         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28788         Likewise.
28789         * modules/malloca (Depends-on): Add 'verify'.
28790         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28791         * modules/vasnprintf (Depends-on): Add 'verify'.
28792         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28793         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28794         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28795         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28796         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28797         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28798         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28799
28800         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28801
28802         Formerly the style was sometimes 2*X - 1, because the C standard
28803         was wrongly thought to disallow ?: in integral constant expressions.
28804         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28805         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28806         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28807         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28808         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28809         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28810         verify that time_t cannot be floating.
28811
28812 2010-10-08  Eric Blake  <eblake@redhat.com>
28813
28814         time: enforce recent POSIX ruling that time_t is integral
28815         * lib/time.in.h (__time_t_must_be_integral): Detect any
28816         problematic systems, allowing the rest of gnulib to assume POSIX.
28817
28818 2010-10-08  Jim Meyering  <meyering@redhat.com>
28819
28820         fdopendir: fix a bug on systems lacking openat and /proc support
28821         OpenBSD 4.7 is one such system.  The most noticeable effect was
28822         failure of any application making nontrivial use of fts: rm, du,
28823         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28824           ./rm: traversal failed: `a': Bad file descriptor
28825         Debugging that, you see that even though FD 6 was closed just
28826         prior to the opendir call in fd_clone_opendir, its resulting
28827         dir->dd_fd was 8, rather than the expected value of 6:
28828
28829         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28830         93                close (fd);
28831         (gdb) n
28832         94                dir = fd_clone_opendir (dupfd);
28833         (gdb) n
28834         95                saved_errno = errno;
28835         (gdb) p dir->dd_fd
28836         $11 = 8
28837
28838         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28839         The problem is that on OpenBSD, fd_clone_opendir has to resort
28840         to using the old-style save/restore CWD mechanism, due to its
28841         lack of openat/proc support, and *that* would steal the FD (6)
28842         that opendir was supposed to use.
28843
28844         The fix is to squirrel away the desired FD so that save_cwd uses a
28845         different one, and then free the dest FD right before calling opendir.
28846         That guarantees opendir will use the required file descriptor.
28847
28848         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28849
28850 2010-10-08  Bruno Haible  <bruno@clisp.org>
28851
28852         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28853         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28854
28855 2010-10-08  Bruno Haible  <bruno@clisp.org>
28856
28857         nanosleep: Make replacement POSIX compliant.
28858         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28859         is out of range.
28860         Reported by Jim Meyering.
28861
28862 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28863
28864         bootstrap: add hook for altering gnulib.mk, for Bison
28865         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28866         the Bison bootstrapping process can rewrite file names and variables
28867         in this file before later parts of 'bootstrap' use the file.
28868         Bison wants to include lib/gnulib.mk from the top-level makefile,
28869         so it needs the file names in this file to be relative to the top
28870         level, not relative to lib; plus it needs variable names to be
28871         rewritten.
28872         (slurp): Use the new function.
28873
28874         bootstrap: reformat for readability
28875         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28876
28877 2010-10-08  Eric Blake  <eblake@redhat.com>
28878
28879         docs: update cygwin progress
28880         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28881         1.7.7.
28882         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28883         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28884         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28885         * doc/posix-functions/carg.texi (carg): Likewise.
28886         * doc/posix-functions/cargf.texi (cargf): Likewise.
28887         * doc/posix-functions/casin.texi (casin): Likewise.
28888         * doc/posix-functions/casinf.texi (casinf): Likewise.
28889         * doc/posix-functions/casinh.texi (casinh): Likewise.
28890         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28891         * doc/posix-functions/catan.texi (catan): Likewise.
28892         * doc/posix-functions/catanf.texi (catanf): Likewise.
28893         * doc/posix-functions/catanh.texi (catanh): Likewise.
28894         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28895         * doc/posix-functions/ccos.texi (ccos): Likewise.
28896         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28897         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28898         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28899         * doc/posix-functions/cexp.texi (cexp): Likewise.
28900         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28901         * doc/posix-functions/cimag.texi (cimag): Likewise.
28902         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28903         * doc/posix-functions/clog.texi (clog): Likewise.
28904         * doc/posix-functions/clogf.texi (clogf): Likewise.
28905         * doc/posix-functions/conj.texi (conj): Likewise.
28906         * doc/posix-functions/conjf.texi (conjf): Likewise.
28907         * doc/posix-functions/cpow.texi (cpow): Likewise.
28908         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28909         * doc/posix-functions/cproj.texi (cproj): Likewise.
28910         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28911         * doc/posix-functions/creal.texi (creal): Likewise.
28912         * doc/posix-functions/crealf.texi (crealf): Likewise.
28913         * doc/posix-functions/csin.texi (csin): Likewise.
28914         * doc/posix-functions/csinf.texi (csinf): Likewise.
28915         * doc/posix-functions/csinh.texi (csinh): Likewise.
28916         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28917         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28918         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28919         * doc/posix-functions/ctan.texi (ctan): Likewise.
28920         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28921         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28922         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28923         * doc/posix-headers/complex.texi (complex.h): Likewise.
28924
28925 2010-10-07  Jim Meyering  <meyering@redhat.com>
28926
28927         parse-datetime: avoid compilation failure on OpenBSD 4.7
28928         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28929         This works around a compilation failure on OpenBSD 4.7:
28930         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28931
28932 2010-10-07  Eric Blake  <eblake@redhat.com>
28933
28934         docs: update cygwin progress
28935         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28936         1.7.6.
28937         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28938         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28939         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28940         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28941         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28942         Likewise.
28943         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28944         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28945         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28946         Likewise.
28947         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28948         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28949         Likewise.
28950         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28951         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28952         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28953         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28954         Likewise.
28955         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28956         Likewise.
28957         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28958
28959         docs: update parse-datetime history
28960         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28961         documentation of this function's history and alternatives.
28962
28963         cygwin: use more robust version check
28964         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28965         exclude an eventual cygwin 1.9.1.
28966         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28967         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28968         (gl_FUNC_STRCASESTR): Likewise.
28969         Reported by Bruno Haible.
28970
28971 2010-10-06  Bruno Haible  <bruno@clisp.org>
28972
28973         string, sys_select: Avoid #including large headers unless necessary.
28974         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28975         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28976         OSF/1, BeOS, Haiku.
28977         Reported by Jim Meyering.
28978
28979 2010-10-05  Eric Blake  <eblake@redhat.com>
28980
28981         memmem, strstr, strcasestr: fix bug with long periodic needle
28982         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28983         periodic needle having false positive.
28984         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28985         and cygwin 1.7.7.
28986         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28988         (gl_FUNC_STRCASESTR): Likewise.
28989         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28990         * tests/test-memmem.c (main): Expose the bug.
28991         * tests/test-strcasestr.c (main): Likewise.
28992         * tests/test-strstr.c (main): Likewise.
28993         * tests/test-c-strcasestr.c (main): Likewise.
28994         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28995         * doc/posix-functions/strstr.texi (strstr): Likewise.
28996         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28997         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28998
28999 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29000
29001         parse-datetime: do some more renaming
29002         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29003         parse_datetime, not get_date.  Mention the renaming.
29004         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29005         in comments.
29006         * m4/bison.m4: Likewise.
29007
29008 2010-10-05  Eric Blake  <eblake@redhat.com>
29009
29010         parse-datetime: better name than get_date
29011         * NEWS: Reword the deprecation notice.
29012         * modules/get_date: Rename to modules/parse-datetime.
29013         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29014         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29015         * lib/get_date.y: Rename to lib/parse-datetime.y.
29016         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29017         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29018         * doc/getdate.texi: Provide fallback wrapper.
29019         * lib/getdate.h: Move guts, and wrap...
29020         * lib/parse-datetime.h: ...new file.
29021         * lib/parse-datetime.y (get_date): Rename...
29022         (parse_datetime): ...to this.
29023         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29024         (gl_PARSE_DATETIME): ...to this.
29025         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29026         documentation.
29027         * modules/getdate (Files): Provide fallback docs and header.
29028         (Notice, Depends-on): Update references.
29029         * tests/test-parse-datetime.c: Likewise.
29030         * DEPENDENCIES: Likewise.
29031         * MODULES.html.sh (Date and time <time.h>): Likewise.
29032         * doc/parse-datetime.texi (Date input formats)
29033         (Authors of parse_datetime): Likewise.
29034         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29035         (Include): Likewise.
29036         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29037         * gnulib-tool: Likewise.
29038         * m4/bison.m4 (gl_BISON): Likewise.
29039         Suggested by Bruno Haible.
29040
29041 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29042
29043         more ports to Solaris tr, which needs [] around ranges
29044         * gnulib-tool: Solaris tr needs [] around ranges.
29045         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29046         * tests/test-pipe-filter-gi1.c (main): Likewise.
29047         * tests/test-pipe-filter-ii1.c (main): Likewise.
29048
29049 2010-10-05  Eric Blake  <eblake@redhat.com>
29050
29051         bootstrap: fix Solaris regression
29052         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29053         around ranges.
29054         Reported by Pádraig Brady.
29055
29056         bootstrap: work with pkg-config
29057         * build-aux/bootstrap (check_versions): Also transliterate - in
29058         prerequisite name.
29059         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29060         prerequisites that were already found, to avoid confusion.
29061         Reported by Justin Clift.
29062
29063         faccessat: remove unused wrappers
29064         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29065         presence of these wrappers dragged in -lgen on Solaris.
29066         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29067
29068 2010-10-05  Jim Meyering  <meyering@redhat.com>
29069
29070         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29071         * Makefile (sc_pragma_columns): New syntax-check rule.
29072
29073 2010-10-04  Bruno Haible  <bruno@clisp.org>
29074
29075         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29076         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29077         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29078         Reported by Bruce Korb and Eric Blake.
29079
29080 2010-10-04  Bruno Haible  <bruno@clisp.org>
29081
29082         threadlib: Make option --with-libpth-prefix work.
29083         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29084         use $LIBPTH, not just -lpth.
29085
29086 2010-10-04  Bruno Haible  <bruno@clisp.org>
29087
29088         Avoid line length limitation from HP NonStop system header files.
29089         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29090         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29091         * lib/ctype.in.h: Likewise.
29092         * lib/dirent.in.h: Likewise.
29093         * lib/errno.in.h: Likewise.
29094         * lib/fcntl.in.h: Likewise.
29095         * lib/float.in.h: Likewise.
29096         * lib/getopt.in.h: Likewise.
29097         * lib/iconv.in.h: Likewise.
29098         * lib/inttypes.in.h: Likewise.
29099         * lib/langinfo.in.h: Likewise.
29100         * lib/locale.in.h: Likewise.
29101         * lib/math.in.h: Likewise.
29102         * lib/netdb.in.h: Likewise.
29103         * lib/netinet_in.in.h: Likewise.
29104         * lib/poll.in.h: Likewise.
29105         * lib/pthread.in.h: Likewise.
29106         * lib/pty.in.h: Likewise.
29107         * lib/sched.in.h: Likewise.
29108         * lib/se-selinux.in.h: Likewise.
29109         * lib/search.in.h: Likewise.
29110         * lib/signal.in.h: Likewise.
29111         * lib/spawn.in.h: Likewise.
29112         * lib/stdarg.in.h: Likewise.
29113         * lib/stddef.in.h: Likewise.
29114         * lib/stdint.in.h: Likewise.
29115         * lib/stdio.in.h: Likewise.
29116         * lib/stdlib.in.h: Likewise.
29117         * lib/string.in.h: Likewise.
29118         * lib/strings.in.h: Likewise.
29119         * lib/sys_file.in.h: Likewise.
29120         * lib/sys_ioctl.in.h: Likewise.
29121         * lib/sys_select.in.h: Likewise.
29122         * lib/sys_socket.in.h: Likewise.
29123         * lib/sys_stat.in.h: Likewise.
29124         * lib/sys_time.in.h: Likewise.
29125         * lib/sys_times.in.h: Likewise.
29126         * lib/sys_utsname.in.h: Likewise.
29127         * lib/sys_wait.in.h: Likewise.
29128         * lib/sysexits.in.h: Likewise.
29129         * lib/termios.in.h: Likewise.
29130         * lib/time.in.h: Likewise.
29131         * lib/unistd.in.h: Likewise.
29132         * lib/wchar.in.h: Likewise.
29133         * lib/wctype.in.h: Likewise.
29134         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29135         * modules/ctype (Makefile.am): Likewise.
29136         * modules/dirent (Makefile.am): Likewise.
29137         * modules/errno (Makefile.am): Likewise.
29138         * modules/fcntl-h (Makefile.am): Likewise.
29139         * modules/float (Makefile.am): Likewise.
29140         * modules/getopt-posix (Makefile.am): Likewise.
29141         * modules/iconv-h (Makefile.am): Likewise.
29142         * modules/inttypes (Makefile.am): Likewise.
29143         * modules/langinfo (Makefile.am): Likewise.
29144         * modules/locale (Makefile.am): Likewise.
29145         * modules/math (Makefile.am): Likewise.
29146         * modules/netdb (Makefile.am): Likewise.
29147         * modules/netinet_in (Makefile.am): Likewise.
29148         * modules/poll-h (Makefile.am): Likewise.
29149         * modules/pthread (Makefile.am): Likewise.
29150         * modules/pty (Makefile.am): Likewise.
29151         * modules/sched (Makefile.am): Likewise.
29152         * modules/search (Makefile.am): Likewise.
29153         * modules/selinux-h (Makefile.am): Likewise.
29154         * modules/signal (Makefile.am): Likewise.
29155         * modules/spawn (Makefile.am): Likewise.
29156         * modules/stdarg (Makefile.am): Likewise.
29157         * modules/stddef (Makefile.am): Likewise.
29158         * modules/stdint (Makefile.am): Likewise.
29159         * modules/stdio (Makefile.am): Likewise.
29160         * modules/stdlib (Makefile.am): Likewise.
29161         * modules/string (Makefile.am): Likewise.
29162         * modules/strings (Makefile.am): Likewise.
29163         * modules/sys_file (Makefile.am): Likewise.
29164         * modules/sys_ioctl (Makefile.am): Likewise.
29165         * modules/sys_select (Makefile.am): Likewise.
29166         * modules/sys_socket (Makefile.am): Likewise.
29167         * modules/sys_stat (Makefile.am): Likewise.
29168         * modules/sys_time (Makefile.am): Likewise.
29169         * modules/sys_times (Makefile.am): Likewise.
29170         * modules/sys_utsname (Makefile.am): Likewise.
29171         * modules/sys_wait (Makefile.am): Likewise.
29172         * modules/sysexits (Makefile.am): Likewise.
29173         * modules/termios (Makefile.am): Likewise.
29174         * modules/time (Makefile.am): Likewise.
29175         * modules/unistd (Makefile.am): Likewise.
29176         * modules/wchar (Makefile.am): Likewise.
29177         * modules/wctype (Makefile.am): Likewise.
29178
29179 2010-10-04  Bruno Haible  <bruno@clisp.org>
29180
29181         read-file tests: Avoid a test failure on NonStop Kernel.
29182         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29183         a regular file.
29184         Reported by Joachim Schmitz <schmitz@hp.com>.
29185
29186 2010-10-03  Bruno Haible  <bruno@clisp.org>
29187
29188         gnulib-tool: Fixes for --create-testdir with --libtool.
29189         * gnulib-tool (func_get_automake_snippet): Don't augment
29190         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29191         an executable.
29192         (func_create_testdir): Handle module 'alloca' like func_import.
29193         Reported by Bruce Korb <bruce.korb@gmail.com>.
29194
29195 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29196
29197         Avoid some lines longer than 80 characters.
29198         * lib/stdint.in.h: Break long comment lines.
29199         * lib/math.in.h: Likewise.
29200         (_GL_NUM_UINT_WORDS): New macro, for readability.
29201         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29202         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29203         * lib/stdlib.in.h: Likewise.
29204         * lib/spawn.in.h: Likewise.
29205         * lib/sys_socket.in.h: Update an URL.
29206         * lib/sys_stat.in.h: Break long line.
29207
29208 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29209
29210         Improve pmccabe2html.
29211         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29212         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29213         when the sources change. Remove the line in the HTML about "Used
29214         ranges" (which implied that there might be other unused ranges),
29215         rename "Resume" to "Summary" (easier to understand for more users).
29216         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29217         styles, and some unnecessary blank lines.
29218
29219 2010-10-03  Bruno Haible  <bruno@clisp.org>
29220             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29221
29222         acl: Add support for ACLs on NonStop Kernel.
29223         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29224         Check whether the function aclsort() exists.
29225         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29226         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29227         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29228         (acl_nontrivial [HAVE_ACLSORT]: New function.
29229         (file_has_acl): Implement for NonStop Kernel.
29230         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29231         (qset_acl): Implement for NonStop Kernel.
29232         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29233         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29234         (main): Implement for NonStop Kernel.
29235         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29236         Kernel. Handle this flavor.
29237         * tests/test-set-mode-acl.sh: Likewise.
29238         * tests/test-copy-acl.sh: Likewise.
29239         * tests/test-copy-file.sh: Likewise.
29240
29241 2010-10-03  Bruno Haible  <bruno@clisp.org>
29242
29243         Info about ACLs on NonStop Kernel.
29244         * doc/acl-resources.txt: Add info about NonStop Kernel.
29245         References by Joachim Schmitz <schmitz@hp.com>.
29246
29247 2010-10-02  Bruno Haible  <bruno@clisp.org>
29248
29249         Define missing EDQUOT on NonStop Kernel.
29250         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29251         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29252         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29253         missing.
29254         * doc/posix-headers/errno.texi: Mention the NSK bug.
29255         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29256         Reported by Joachim Schmitz <schmitz@hp.com>.
29257
29258 2010-10-02  Bruno Haible  <bruno@clisp.org>
29259
29260         Update doc for POSIX:2008.
29261         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29262         Update URL of POSIX specification.
29263
29264 2010-10-02  Bruno Haible  <bruno@clisp.org>
29265
29266         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29267         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29268         from gnulib, not from Automake.
29269
29270 2010-10-02  Bruno Haible  <bruno@clisp.org>
29271
29272         New module 'system-posix'.
29273         * modules/system-posix: New file.
29274         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29275         module is present.
29276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29277         GNULIB_SYSTEM_POSIX.
29278         * modules/stdlib (Depends-on): Remove sys_wait.
29279         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29280         * doc/posix-functions/system.texi: Mention the new module.
29281         * doc/posix-headers/stdlib.texi: Likewise.
29282         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29283         define test_sys_wait_macros to a no-op.
29284         Reported by Sam Steingold <sds@gnu.org>.
29285
29286 2010-09-30  Bruno Haible  <bruno@clisp.org>
29287
29288         More renaming from 'getdate' to 'get_date'.
29289         * doc/get_date.texi: Renamed from doc/getdate.texi.
29290         * modules/get_date (Files): Update.
29291         * MODULES.html.sh (Date and time <time.h>): Update.
29292         * DEPENDENCIES: Update.
29293         * gnulib-tool: Update comment.
29294         * m4/bison.m4 (gl_BISON): Likewise.
29295         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29296
29297 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29298
29299         bootstrap: support ACLOCAL_FLAGS during aclocal
29300         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29301         can add additional -I dir for third-party .m4 files.
29302
29303 2010-09-30  Eric Blake  <eblake@redhat.com>
29304
29305         bootstrap: use glibtoolize on MacOS
29306         * build-aux/bootstrap (check_versions): Convert libtool into
29307         libtoolize.
29308         (tool search): Move libtool check earlier, and look for
29309         glibtoolize for MacOS.
29310         (gnulib_tool_options): Auto-add --libtool when appropriate.
29311         Reported by Justin Clift.
29312
29313         poll: fix typo that broke test on MacOS
29314         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29315         Reported by Justin Clift.
29316
29317         getdate: rename to get_date
29318         Note: getdate.h is not renamed, to minimize client impact.
29319         * modules/getdate: Mark obsolete.  Move old contents...
29320         * modules/get_date: ...to new module name.
29321         * modules/getdate-tests: Move...
29322         * modules/get_date-tests: ...here.
29323         * m4/getdate.m4: Move...
29324         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29325         * lib/getdate.y: Move...
29326         * lib/get_date.y: ...here.
29327         * tests/test-getdate.c: Move...
29328         * tests/test-get_date.c: ...here.
29329         * doc/posix-functions/getdate.texi (getdate): Update name.
29330         * NEWS: Mention the change.
29331
29332 2010-09-29  Bruno Haible  <bruno@clisp.org>
29333
29334         Separate the module 'waitpid' from the module 'sys_wait'.
29335         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29336         present.
29337         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29338         gl_MODULE_INDICATOR_FOR_TESTS.
29339         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29340         * modules/sys_wait (Depends-on): Remove waitpid.
29341         (Makefile.am): Substitute GNULIB_WAITPID.
29342         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29343         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29344         signature only if the 'waitpid' module is present.
29345         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29346         * NEWS: Mention the change.
29347         * modules/grantpt (Depends-on): Add waitpid.
29348         * modules/wait-process (Depends-on): Likewise.
29349
29350 2010-09-29  Bruno Haible  <bruno@clisp.org>
29351
29352         More tests for module 'sys_wait'.
29353         * modules/sys_wait-c++-tests: New file.
29354         * tests/test-sys_wait-c++.cc: New file.
29355         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29356         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29357
29358 2010-09-29  Bruno Haible  <bruno@clisp.org>
29359
29360         New module 'waitpid'.
29361         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29362         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29363         Don't include <process.h>.
29364         (waitpid): Declare only, using modern idiom.
29365         * m4/waitpid.m4: New file.
29366         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29367         * modules/waitpid: New file.
29368         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29369         (Makefile.am): Update.
29370         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29371
29372 2010-09-28  Bruno Haible  <bruno@clisp.org>
29373
29374         poll: Assume ANSI C.
29375         * lib/poll.c (poll): Use an ANSI C declaration.
29376
29377 2010-09-28  Bruno Haible  <bruno@clisp.org>
29378
29379         poll-h: Create poll.h on all platforms.
29380         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29381         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29382         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29383         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29384         (gl_REPLACE_POLL_H): Don't set POLL_H.
29385         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29386         * modules/poll-h (Depends-on): Add include_next.
29387         (Makefile.am): Create poll.h unconditionally. Substitute also
29388         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29389
29390 2010-09-28  Bruno Haible  <bruno@clisp.org>
29391
29392         Tests for module 'poll-h'.
29393         * modules/poll-h-c++-tests: New file.
29394         * tests/test-poll-h-c++.cc: New file.
29395
29396         Tests for module 'poll-h'.
29397         * modules/poll-h-tests: New file.
29398         * tests/test-poll-h.c: New file.
29399
29400 2010-09-28  Bruno Haible  <bruno@clisp.org>
29401
29402         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29403         * modules/poll-h (Depends-on): Add 'extensions'.
29404
29405 2010-09-28  Bruno Haible  <bruno@clisp.org>
29406
29407         New module 'poll-h'.
29408         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29409         (poll): Use modern idiom.
29410         * modules/poll-h: New file.
29411         * modules/poll (Files): Remove lib/poll.in.h.
29412         (Depends-on): Add poll-h.
29413         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29414         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29415         * m4/poll_h.m4: New file.
29416         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29417         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29418         and invoke gl_REPLACE_POLL_H.
29419         * lib/poll.c: Use common idiom.
29420         * tests/test-poll.c: Likewise.
29421         * doc/posix-headers/poll.texi: Mention the poll-h module.
29422         Suggested by Eric Blake.
29423
29424 2010-09-26  Bruno Haible  <bruno@clisp.org>
29425
29426         sys_wait: Implement WSTOPSIG.
29427         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29428         Reported by Simon Josefsson.
29429
29430 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29431
29432         stdlib, sys_wait: Avoid compilation error on mingw.
29433         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29434
29435 2010-09-26  Bruno Haible  <bruno@clisp.org>
29436
29437         stdlib tests: Avoid code duplication.
29438         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29439         * modules/sys_wait-tests (Files): Likewise.
29440         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29441         * tests/test-stdlib.c: Include test-sys_wait.h.
29442         (main): Invoke test_sys_wait_macros.
29443         * tests/test-sys_wait.c: Include test-sys_wait.h.
29444         (main): Invoke test_sys_wait_macros.
29445
29446 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29447
29448         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29449         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29450         sure Windows sockets are working before calling getaddrinfo.
29451         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29452         * doc/gnulib.texi (Windows sockets): Fix typo.
29453
29454 2010-09-25  Bruno Haible  <bruno@clisp.org>
29455
29456         Tests for module 'regex-quote'.
29457         * modules/regex-quote-tests: New file.
29458         * tests/test-regex-quote.c: New file.
29459
29460         New module 'regex-quote'.
29461         * lib/regex-quote.h: New file.
29462         * lib/regex-quote.c: New file.
29463         * modules/regex-quote: New file.
29464         Suggested by Reuben Thomas <rrt@sc3d.org>.
29465
29466 2010-09-24  Bruno Haible  <bruno@clisp.org>
29467
29468         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29469         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29470
29471 2010-09-23  Bruno Haible  <bruno@clisp.org>
29472
29473         setenv: Relax license.
29474         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29475         Blake.
29476         Requested by Eric Blake.
29477
29478 2010-09-22  Bruno Haible  <bruno@clisp.org>
29479
29480         termios: Relax license.
29481         * modules/termios (License): Change to LGPLv2+.
29482         Requested by Eric Blake.
29483
29484 2010-09-22  Bruno Haible  <bruno@clisp.org>
29485
29486         threadlib: Allow the package to change the default to 'no'.
29487         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29488         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29489         Reported by Paul Eggert.
29490
29491 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29492             Bruno Haible  <bruno@clisp.org>
29493
29494         Fix endless loop in mbmemcasecoll.
29495         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29496         byte.
29497         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29498
29499 2010-09-22  Bruno Haible  <bruno@clisp.org>
29500
29501         Tests for module 'memcoll'.
29502         * modules/memcoll-tests: New file.
29503         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29504
29505         memcoll, xmemcoll: Clarify size vs. length.
29506         * modules/memcoll.c (memcoll0): Clarify specification.
29507         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29508         passed to collate_error.
29509
29510 2010-09-22  Bruno Haible  <bruno@clisp.org>
29511
29512         Tests for module 'memcasecmp'.
29513         * modules/memcasecmp-tests: New file.
29514         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29515
29516 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29517
29518         * lib/pthread.in.h: Add split double-inclusion guard, and include
29519         system <pthread.h> if there is one.  Use @@-style as in other
29520         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29521         pthread.h doesn't.
29522         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29523         (pthread_mutexattr_settype, pthread_mutex_trylock):
29524         New static inline functions, if there's no system <pthread.h>.
29525         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29526         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29527         Approximate with mutexes if the system lacks spinlocks, as in
29528         MacOS.
29529         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29530         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29531         @@-style.  Check for spinlocks separately.
29532         (gl_PTHREAD_DEFAULTS): New macro.
29533         * modules/pthread: Redo to use a more typical style for in.h files.
29534
29535 2010-09-21  Eric Blake  <eblake@redhat.com>
29536
29537         net_if: enhance tests
29538         * tests/test-net_if.c (main): Move signature checks earlier.
29539         Print failures to stderr.
29540         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29541         Document the bug that we do not yet fix.
29542
29543 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29544
29545         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29546         about gnulib, not GSS.
29547
29548 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29549
29550         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29551         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29552         for Emacs.
29553         * build-aux/pmccabe2html: Make Makefile.am example code more
29554         cut-and-paste friendly.
29555
29556 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29557
29558         * tests/test-net_if.c: New file.
29559         * modules/net_if-tests: New file.
29560
29561 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29562
29563         pthread: add pthread_spin_destroy
29564         * lib/pthread.in.h (pthread_spin_destroy): New function.
29565
29566 2010-09-19  Bruno Haible  <bruno@clisp.org>
29567
29568         gnulib-tool: Fix --help output.
29569         * gnulib-tool (func_usage): Fix help message.
29570         Reported by Reuben Thomas <rrt@sc3d.org>.
29571
29572 2010-09-18  Jim Meyering  <meyering@redhat.com>
29573
29574         maint.mk: avoid unexpanded \n in two diagnostics
29575         * top/maint.mk (sc_prohibit_always_true_header_tests):
29576         Don't use a literal \n in a halt=... assignment.  It would not be
29577         expanded, and the two \n bytes would appear in the diagnostic output
29578         rather than the desired newline.  Use halt=$$(printf ... instead.
29579         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29580
29581 2010-09-18  Bruno Haible  <bruno@clisp.org>
29582
29583         netinet_in: Doc tweak.
29584         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29585         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29586
29587 2010-09-18  Jim Meyering  <meyering@redhat.com>
29588
29589         init.sh: correct an outdated comment
29590         * tests/init.sh (create_exe_shims_):  s/function/alias/
29591
29592         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29593         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29594         a file named "*.exe" is removed between the glob expansion and the
29595         processing of that oddly named file.
29596
29597 2010-09-17  Eric Blake  <eblake@redhat.com>
29598
29599         mirbsd: add some more support
29600         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29601         in BSD family.
29602         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29603         devices as OpenBSD.
29604         * m4/host-os.m4 (mirbsd): Add MirBSD.
29605
29606         tests: fix unportable assumption on sys/wait.h
29607         * tests/test-sys_wait.c (main): Relax test.
29608         * tests/test-stdlib.c (main): Likewise.
29609
29610         init.sh: accommodate directory with no .exes
29611         * tests/init.sh: Accomodate directory containing only scripts.
29612
29613         tests: avoid compiler warning
29614         * tests/test-stdlib.c (main): Use the variable.
29615
29616         fdutimens, fdutimensat: update signature, again
29617         * lib/utimens.h (gl_futimens): Delete, and move signature...
29618         (fdutimens): ...here.
29619         (fdutimensat): Rearrange signature.
29620         (lutimensat): Rename variable for clarity.
29621         * lib/fdutimensat.c (fdutimensat): Update signature.
29622         * lib/utimens.c (fdutimens): Likewise.
29623         (gl_futimens): Delete.
29624         (utimens, lutimens): Update callers.
29625         * lib/futimens.c (futimens): Likewise.
29626         * tests/test-fdutimensat.c: Likewise.
29627         * tests/test-utimens.c: Likewise.
29628         * tests/test-futimens.h: Update comment.
29629         * NEWS: Mention this.
29630         Suggested by Paul Eggert.
29631
29632 2010-09-17  Bruno Haible  <bruno@clisp.org>
29633
29634         Take over the maintenance of some older macros from Autoconf.
29635         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29636         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29637         GNU Autoconf.
29638         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29639         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29640
29641 2010-09-17  Eric Blake  <eblake@redhat.com>
29642
29643         fdutimensat: drop atflag validation
29644         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29645         with valid fd, to close a race scenario where futimens is
29646         unsupported and FILE was replaced by a symlink.
29647         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29648         accordingly.
29649         Suggested by Paul Eggert.
29650
29651 2010-09-16  Bruno Haible  <bruno@clisp.org>
29652
29653         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29654         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29655
29656 2010-09-16  Bruno Haible  <bruno@clisp.org>
29657
29658         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29659         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29660         login_tty exists.
29661         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29662
29663 2010-09-16  Bruno Haible  <bruno@clisp.org>
29664
29665         login_tty: Make the replacement code work on BSD systems.
29666         * lib/login_tty.c: Include <sys/ioctl.h>.
29667         (login_tty): Use ioctl TIOCSCTTY when available.
29668         * modules/login_tty (Depends-on): Add sys_ioctl.
29669         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29670
29671 2010-09-16  Bruno Haible  <bruno@clisp.org>
29672
29673         login_tty: Stricter unit test.
29674         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29675         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29676         and tcgetsid() after login_tty.
29677         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29678
29679 2010-09-16  Bruno Haible  <bruno@clisp.org>
29680
29681         New module 'tcgetsid'.
29682         * lib/tcgetsid.c: New file.
29683         * m4/tcgetsid.m4: New file.
29684         * modules/tcgetsid: New file.
29685         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29686         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29687         GNULIB_TCGETSID, HAVE_TCGETSID.
29688         * lib/termios.in.h: Include <sys/types.h>.
29689         (tcgetsid): New declaration.
29690         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29691         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29692         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29693         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29694
29695 2010-09-16  Bruno Haible  <bruno@clisp.org>
29696
29697         Tests for module 'termios'.
29698         * modules/termios-c++-tests: New file.
29699         * modules/termios-tests: New file.
29700         * tests/test-termios-c++.cc: New file.
29701         * tests/test-termios.c: New file.
29702
29703         New module 'termios'.
29704         * modules/termios: New file.
29705         * lib/termios.in.h: New file.
29706         * m4/termios_h.m4: New file.
29707         * doc/posix-headers/termios.texi: Mention the new module.
29708
29709 2010-09-16  Eric Blake  <eblake@redhat.com>
29710
29711         fdutimensat: add an atflag parameter
29712         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29713         * lib/utimens.h (fdutimensat): Update prototype.
29714         * tests/test-fdutimensat.c: Adjust test to match.
29715         * NEWS: Document the change.
29716         Suggested by Paul Eggert.
29717
29718 2010-09-16  Bruno Haible  <bruno@clisp.org>
29719
29720         Fix typos in comments.
29721         * lib/striconveh.h: Fix typo in comment.
29722         * lib/login_tty.c (login_tty): Likewise.
29723
29724 2010-09-15  Bruno Haible  <bruno@clisp.org>
29725
29726         stdlib: clarify MirBSD WEXITSTATUS bug
29727         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29728         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29729
29730 2010-09-15  Eric Blake  <eblake@redhat.com>
29731
29732         stdlib: work around MirBSD WEXITSTATUS bug
29733         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29734         * modules/stdlib (Depends-on): Add sys_wait.
29735         * tests/test-sys_wait.c (main): Enhance test.
29736         * tests/test-stdlib.c (main): Likewise.
29737         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29738
29739         docs: mention MacOS issue with WEXITSTATUS(constant)
29740         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29741         issue.
29742         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29743
29744         strnlen: add tests
29745         * modules/strnlen-tests: New file.
29746         * tests/test-strnlen.c: Likewise.
29747
29748 2010-09-14  Bruno Haible  <bruno@clisp.org>
29749
29750         unistr/base: Avoid link errors when module 'libunistring' is also used.
29751         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29752         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29753         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29754         Declare also when HAVE_LIBUNISTRING is set.
29755         Reported by Pádraig Brady <P@draigbrady.com>.
29756
29757 2010-09-14  Eric Blake  <eblake@redhat.com>
29758
29759         test-rawmemchr: make more robust
29760         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29761         (Depends-on, configure.ac): Add needed prerequisites to use it.
29762         * modules/memchr-tests (Files, Depends-on, configure.ac):
29763         Likewise, to avoid implicit reliance on memchr module prereqs.
29764         * tests/test-memchr.c (main): Ensure proper masking.
29765         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29766         reads.
29767
29768         memchr: detect glibc Alpha bug
29769         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29770         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29771         Alpha.
29772         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29773         * tests/test-memchr.c (main): Enhance test.
29774         Reported by Nelson H. F. Beebe.
29775
29776 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29777
29778         fts, getcwd, glob: audit for dirfd returning -1
29779         * lib/fts.c (opendir): Remove #define; no longer used.
29780         (opendirat): New arg PDIR_FD.  All callers changed.
29781         (fts_build, _opendir2): Use new opendirat to avoid the need for
29782         dirfd, or for checking whether dirfd returns a negative value.
29783         Don't use opendir; always use openat followed by fdopendir.
29784         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29785         it.
29786         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29787         returns -1 here.
29788         * modules/fts (Depends-on): Remove dirfd.
29789         * modules/getcwd (Depends-on): Likewise.
29790
29791 2010-09-13  Eric Blake  <eblake@redhat.com>
29792
29793         float: fix broken MirBSD header
29794         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29795         * doc/posix-headers/float.texi (float.h): Document it.
29796
29797 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29798
29799         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29800         * lib/fts.c (opendirat): New arg extra_flags.
29801         (__opendir2): Use it to avoid following symlinks when opening
29802         a directory, if symlinks are not supposed to be followed.  See
29803         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29804
29805         fdopendir: preserve argument fd before returning
29806         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29807         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29808         (fdopendir): Use them, arranging for FD to be open to the same
29809         directory that it was when it started.  (It might be temporarily
29810         closed while fdopendir is running, so this not thread- or
29811         signal-safe.)  Be careful to do the right thing even when file
29812         descriptors are scarce and dup fails with errno == EMFILE.  See
29813         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29814
29815 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29816
29817         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29818         * NEWS: Document change.
29819         * m4/regex.m4: Disable test for regoff_t size.
29820
29821 2010-09-13  Jim Meyering  <meyering@redhat.com>
29822
29823         fts: don't operate on an invalid file descriptor after failed dup
29824         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29825         negative file descriptor.
29826
29827 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29828
29829         savedir: add streamsavedir, deprecate fdsavedir
29830         * NEWS: Mention deprecation of fdsavedir.
29831         * lib/savedir.c (streamsavedir): New extern function, whose name
29832         ends in "savedir" to be consistent with the others.  This differs
29833         from savedirstream in that it doesn't close its argument.  The
29834         next version of GNU tar will use this instead of fdsavedir, to
29835         avoid some race conditions and conserve file descriptors.
29836         (savedirstream): Reimplement as a wrapper around streamsavedir.
29837         (fdsavedir): Add a comment deprecating this function.  As far as
29838         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29839         * lib/savedir.h (streamsavedir): New decl.
29840         (fdsavedir): Add a comment deprecating this.
29841
29842 2010-09-10  Bruno Haible  <bruno@clisp.org>
29843
29844         langinfo: Fix last commit.
29845         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29846         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29848
29849 2010-09-10  Bruno Haible  <bruno@clisp.org>
29850
29851         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29852         * lib/progreloc.c (O_EXEC): Define fallback.
29853
29854 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29855
29856         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29857         * NEWS: Document recent changes to fcntl-h.
29858         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29859         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29860         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29861         Similarly for O_SEARCH; this last was already true, but not documented.
29862         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29863         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29864         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29865         Likewise.
29866         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29867         is zero, not whether it is defined.
29868         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29869         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29870         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29871
29872 2010-09-10  Bruno Haible  <bruno@clisp.org>
29873
29874         langinfo, nl_langinfo: Fix for IRIX 5.3.
29875         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29876         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29877         HAVE_LANGINFO_YESEXPR.
29878         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29879         HAVE_LANGINFO_YESEXPR.
29880         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29881         HAVE_LANGINFO_T_FMT_AMPM is 0.
29882         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29883         HAVE_LANGINFO_YESEXPR is 0.
29884         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29885         NOEXPR.
29886         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29887         * doc/posix-functions/nl_langinfo.texi: Likewise.
29888         Reported by Eric Blake.
29889
29890 2010-09-10  Bruno Haible  <bruno@clisp.org>
29891
29892         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29893         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29894         on FreeBSD 8.0 and OpenBSD 4.6.
29895         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29896         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29897         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29898         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29899         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29900         ac_includes_default.
29901         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29902
29903 2010-09-09  Eric Blake  <eblake@redhat.com>
29904
29905         strsignal: work around NetBSD bug
29906         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29907         * lib/string.in.h (includes): Likewise.
29908         * doc/posix-functions/strsignal.texi (strsignal): Document the
29909         bug.
29910         Reported by Nelson H. F. Beebe.
29911
29912         gnulib-tool: work with NetBSD /bin/sh
29913         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29914         (func_get_description, func_get_comment, func_get_status)
29915         (func_get_notice, func_get_applicability, func_get_filelist)
29916         (func_get_dependencies, func_get_autoconf_early_snippet)
29917         (func_get_autoconf_snippet, func_get_automake_snippet)
29918         (func_get_include_directive, func_get_link_directive)
29919         (func_get_license, func_get_maintainer, func_import): Avoid
29920         shell syntax errors from parsing syntax extensions.
29921
29922 2010-09-09  Bruno Haible  <bruno@clisp.org>
29923
29924         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29925         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29926         a reliable way to determine whether the 'alias' command works.
29927
29928 2010-09-08  Jim Meyering  <meyering@redhat.com>
29929
29930         init.sh: penalize a set-x-impaired shell; don't disqualify it
29931         * tests/init.sh: Too many shells corrupt application stderr when
29932         you set -x, so we can't afford to disqualify them, since at least
29933         on Irix-6.5, that would disqualify all bourne shells.
29934         Instead, use a two-pass approach.
29935         On the first pass, try to find a shell that meets the stricter
29936         condition that set -x does not corrupt stderr.
29937         If no shell meets the stricter condition, retest each candidate
29938         shell, but without that extra condition.  Finally, when
29939         VERBOSE=yes is requested and set -x might cause trouble, simply
29940         issue a warning and refrain from enabling debug output.
29941
29942 2010-09-08  Eric Blake  <eblake@redhat.com>
29943
29944         unsetenv: fix OpenBSD bug
29945         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29946         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29947         documentation.
29948         Reported by Jim Meyering.
29949
29950         strtod: work around IRIX 6.5 bug
29951         * lib/strtod.c (strtod): Reparse number on shorter string if
29952         exponent parse was invalid.
29953         * tests/test-strtod.c (main): Add check for "0x1p 2".
29954         Reported by Tom G. Christensen.
29955
29956         getopt: optimize previous patch
29957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29958         empty variable.  Speed up awk script.
29959         Reported by Paolo Bonzini.
29960
29961 2010-09-08  Jim Meyering  <meyering@redhat.com>
29962
29963         test.sh: disqualify shells for which set -x corrupts stderr
29964         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29965         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29966         appear in stderr output.  For example, this command:
29967             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29968         prints "P=1" on those two systems:
29969
29970 2010-09-08  Bruno Haible  <bruno@clisp.org>
29971
29972         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29973         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29974         commands, because some shells ignore redirections when there is an
29975         error in the command lookup.
29976         Reported by Eric Blake.
29977
29978 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29979
29980         * lib/regex.h: Fix a mention of `regex_compile' (should be
29981         `re_compile_pattern').
29982         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29983         (re_set_registers): Correct name of parameter in comment.
29984
29985         * doc/regex.texi: Add documentation for missing syntax flags.
29986         Remove commented-out documentation of defunct syntax option
29987         RE_NO_EMPTY_ALTS.
29988         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29989         Add documentation of re_set_registers.
29990         Document trick to re-use a pattern buffer by setting fastmap manually.
29991         Update documentation of struct re_pattern_buffer per public members.
29992         Uncomment documentation of equivalence class operators and
29993         collating symbol operators, since they are now implemented,
29994         Explain leftmost-longest matching in relation to alternatives.
29995         Tidy documentation of substring matching.
29996         Remove POSIX documentation, which is done better in
29997         glibc, and refer the reader there. Keep BSD API documentation, as
29998         that is not readily available elsewhere.
29999
30000 2010-09-07  Eric Blake  <eblake@redhat.com>
30001
30002         getopt: handle POSIXLY_CORRECT set but not exported
30003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30004         export state of POSIXLY_CORRECT, due to bash set -o posix.
30005         Reported by Dustin J. Mitchell.
30006
30007 2010-09-05  Bruno Haible  <bruno@clisp.org>
30008
30009         gnulib-tool: Highlight the changed options.
30010         * gnulib-tool (func_usage): Display the --import, --add-import,
30011         --remove-import explanations in bold font.
30012
30013 2010-09-06  Karl Berry  <karl@gnu.org>
30014
30015         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30016
30017 2010-09-05  Bruno Haible  <bruno@clisp.org>
30018
30019         uniwidth/width: Update comment.
30020         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30021         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30022
30023 2010-09-05  Bruno Haible  <bruno@clisp.org>
30024
30025         isinf, isnan: Relax license.
30026         * modules/isinf (License): Change from GPL to LGPL, with consent from
30027         Ben Pfaff.
30028         * modules/isnan (License): Likewise.
30029         Requested by Ludovic Courtès.
30030
30031 2010-09-04  Bruno Haible  <bruno@clisp.org>
30032
30033         gnulib-tool: Help migration from --import to --add-import or --update.
30034         * gnulib-tool: Emit a verbose error message when --import is used
30035         without any module name.
30036
30037 2010-09-04  Bruno Haible  <bruno@clisp.org>
30038
30039         Update doc about gnulib-tool.
30040         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30041         'gnulib-tool --update' in more detail.
30042         Reported by Eric Blake.
30043
30044 2010-09-04  Bruno Haible  <bruno@clisp.org>
30045
30046         gnulib-tool: Change --import. New options --add/remove-import.
30047         * gnulib-tool: New options --add-import, --remove-import.
30048         (func_usage): Document them.
30049         (have_associative): Define always.
30050         (func_import): In import mode, don't merge the specified settings with
30051         the cached settings. Implement remove-import mode.
30052         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30053         Explain when to use them versus --import.
30054         (Simple update): Use --add-import instead of --import.
30055         * NEWS: Mention the change.
30056
30057 2010-09-04  Bruno Haible  <bruno@clisp.org>
30058
30059         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30060         separate gnulib.mk.
30061
30062 2010-09-04  Bruno Haible  <bruno@clisp.org>
30063
30064         gnulib-tool: Don't talk about CVS any more.
30065         * gnulib-tool (func_usage, func_import): Write "version control"
30066         instead of CVS.
30067
30068 2010-09-04  Jim Meyering  <meyering@redhat.com>
30069
30070         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30071         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30072         false positives (whose names may be ill-chosen) when searching
30073         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30074         would cause a false-positive.
30075
30076         avoid coreutils "make distcheck" failure
30077         Coreutils tests with an absolute build directory name that contains
30078         a space.  Not quoting this directory name caused a failure.
30079         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30080         * tests/test-vc-list-files-cvs.sh: Likewise.
30081
30082 2010-09-04  Bruno Haible  <bruno@clisp.org>
30083
30084         gnulib-tool: Avoid error when run in a package without Makefile.am.
30085         * gnulib-tool: When collecting the m4dirs in a package that does not
30086         have a Makefile.am, eliminate those directories that contain no
30087         gnulib-cache.m4. Fix expression that counts these directories.
30088
30089 2010-09-04  Bruno Haible  <bruno@clisp.org>
30090
30091         update-copyright test: Improve output when perl is missing or too old.
30092         * tests/test-update-copyright.sh: Move test of Perl version down after
30093         the test whether Perl exists. Provide an explanation relating Perl's
30094         error message to Automake's SKIP: message.
30095
30096 2010-09-04  Bruno Haible  <bruno@clisp.org>
30097
30098         Don't augment PATH in TESTS_ENVIRONMENT.
30099         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30100         set abs_aux_dir instead of augmenting PATH.
30101         * modules/vc-list-files-tests (Makefile.am): Likewise.
30102         * tests/test-update-copyright.sh: Augment PATH here.
30103         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30104         path_prepend_.
30105         * tests/test-vc-list-files-git.sh: Likewise.
30106
30107 2010-09-04  Jim Meyering  <meyering@redhat.com>
30108
30109         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30110         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30111
30112 2010-09-04  Bruno Haible  <bruno@clisp.org>
30113
30114         strdup: Fix compilation error in C++ mode.
30115         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30116         the macro.
30117
30118 2010-09-04  Bruno Haible  <bruno@clisp.org>
30119
30120         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30121         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30122         macro into a function.
30123         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30124
30125 2010-09-04  Bruno Haible  <bruno@clisp.org>
30126
30127         Set PATH_SEPARATOR the same way autoconf does.
30128         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30129         the value of PATH_SEPARATOR the same way autoconf-generated configure
30130         scripts do.
30131         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30132         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30133
30134 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30135
30136         Set PATH_SEPARATOR the same way autoconf does.
30137         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30138         the same way autoconf-generated configure scripts do.
30139         * posix-modules: Likewise.
30140
30141 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30142
30143         hash: fix safe_hasher const typo
30144         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30145         const; otherwise, there is a type error later.
30146
30147 2010-09-02  Jim Meyering  <meyering@redhat.com>
30148
30149         test-update-copyright.sh: require perl 5.8.0
30150         * tests/test-update-copyright.sh: Require 5.8.0,
30151         which Tom G. Christensen has confirmed is adequate,
30152         while 5.6.1 is not.
30153
30154 2010-09-02  Eric Blake  <eblake@redhat.com>
30155
30156         tests: init.sh improvements for re-exec'ing with zsh
30157         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30158         -vx through shell re-exec.
30159         Reported by Tom G. Christensen.
30160
30161         wctype: fix typo in previous commit
30162         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30163         Reported by Ludovic Courtès.
30164
30165 2010-09-02  Jim Meyering  <meyering@redhat.com>
30166
30167         test-update-copyright.sh: skip test if Perl is too old
30168         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30169         Reported by Tom G. Christensen.
30170
30171 2010-09-02  Bruno Haible  <bruno@clisp.org>
30172
30173         wctype: Avoid compilation error on IRIX 6.5.30.
30174         * lib/wctype.in.h (iswblank): Declare with a replacement if
30175         REPLACE_ISWBLANK is set.
30176         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30177         declared. Set REPLACE_ISWBLANK.
30178         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30179         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30180         * doc/posix-headers/wctype.texi: Likewise.
30181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30182
30183 2010-09-01  Bruno Haible  <bruno@clisp.org>
30184
30185         New module 'socketlib'.
30186         * modules/socketlib: New file.
30187         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30188         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30189         * modules/sockets (Depends-on): Add socketlib.
30190         Suggested by Sam Steingold <sds@gnu.org>.
30191
30192 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30193
30194         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30195
30196         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30197         when one needs search access to a directory but not read access.
30198         On systems where it is available, it works in some cases where
30199         O_RDONLY does not, namely on directories that are searchable but
30200         not readable, and which need only to be searchable.  If O_SEARCH
30201         is not available, fall back to the traditional method of using
30202         O_RDONLY.
30203
30204         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30205         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30206         when opening a directory that needs only to be searchable.
30207         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30208         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30209         * lib/openat-proc.c (openat_proc_name): Likewise.
30210         * lib/openat.c (openat_needs_fchdir): Likewise.
30211         * lib/save-cwd.c (save_cwd): Likewise.
30212         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30213
30214 2010-08-28  Bruno Haible  <bruno@clisp.org>
30215
30216         New module 'host-cpu-c-abi'.
30217         * modules/host-cpu-c-abi: New file.
30218         * m4/host-cpu-c-abi.m4: New file, based on part of
30219         clisp/src/m4/general.m4.
30220         Requested by Sam Steingold <sds@gnu.org>.
30221
30222 2010-08-31  Eric Blake  <eblake@redhat.com>
30223         and Jim Meyering  <meyering@redhat.com>
30224
30225         hash: factor, and guard against misbehaving hasher function
30226         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30227         of table->hasher's return value.  Also protect against a hash value
30228         so large that adding it to table->bucket results in a NULL pointer.
30229         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30230         Use it in place of open-coded check-and-abort.
30231
30232 2010-08-30  Bruno Haible  <bruno@clisp.org>
30233
30234         hash: silence spurious clang warning
30235         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30236         Reported by Eric Blake.
30237
30238 2010-08-30  Eric Blake  <eblake@redhat.com>
30239
30240         strstr, memmem, strcasestr: avoid leaked shell message
30241         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30242         FreeBSD.
30243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30245
30246         tests: silence clang warning
30247         * tests/test-malloca.c (do_allocation): Avoid dead store.
30248
30249 2010-08-29  Bruno Haible  <bruno@clisp.org>
30250
30251         gettext: Fix recent mistake.
30252         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30253
30254 2010-08-29  Bruno Haible  <bruno@clisp.org>
30255
30256         selinux-h: Offer a --without-selinux option.
30257         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30258         --without-selinux was specified, skip all tests and define
30259         HAVE_SELINUX_SELINUX_H to 0.
30260         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30261         set LIB_SELINUX to empty.
30262         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30263         gl_LIBSELINUX. If --without-selinux was specified, replace
30264         selinux/context.h.
30265         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30266
30267 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30268             Bruno Haible  <bruno@clisp.org>
30269
30270         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30271         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30272         of HAVE_REALLOC.
30273         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30274         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30275         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30276         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30277
30278 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30279             Bruno Haible  <bruno@clisp.org>
30280
30281         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30282         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30283         HAVE_CALLOC.
30284         * lib/xmalloc.c: Update accordingly.
30285         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30286         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30287         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30288
30289 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30290             Bruno Haible  <bruno@clisp.org>
30291
30292         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30293         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30294         HAVE_MALLOC.
30295         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30296         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30297         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30298
30299 2010-08-29  Bruno Haible  <bruno@clisp.org>
30300
30301         Update modules list.
30302         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30303         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30304         (String handling <string.h>): Add astrxfrm.
30305         (File system functions): Add readlinkat.
30306
30307 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30308
30309         Tests for module 'realloc-gnu'.
30310         * modules/realloc-gnu-tests: New file.
30311         * tests/test-realloc-gnu.c: New file.
30312
30313         Tests for module 'calloc-gnu'.
30314         * modules/calloc-gnu-tests: New file.
30315         * tests/test-calloc-gnu.c: New file.
30316
30317         Tests for module 'malloc-gnu'.
30318         * modules/malloc-gnu-tests: New file.
30319         * tests/test-malloc-gnu.c: New file.
30320
30321 2010-08-28  Bruno Haible  <bruno@clisp.org>
30322
30323         Rename module 'realloc' -> 'realloc-gnu'.
30324         * modules/realloc-gnu: New file, copied from modules/realloc.
30325         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30326         obsolete.
30327         * modules/mgetgroups (Depends-on): Update.
30328         * doc/posix-functions/realloc.texi: Update.
30329         * NEWS: Mention the change.
30330
30331         Rename module 'calloc' -> 'calloc-gnu'.
30332         * modules/calloc-gnu: New file, copied from modules/calloc.
30333         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30334         obsolete.
30335         * doc/posix-functions/calloc.texi: Update.
30336         * NEWS: Mention the change.
30337
30338         Rename module 'malloc' -> 'malloc-gnu'.
30339         * modules/malloc-gnu: New file, copied from modules/malloc.
30340         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30341         obsolete.
30342         * modules/argp (Depends-on): Update.
30343         * modules/regex (Depends-on): Update.
30344         * doc/posix-functions/malloc.texi: Update.
30345         * NEWS: Mention the change.
30346
30347 2010-08-28  Eric Blake  <eblake@redhat.com>
30348
30349         pread, pwrite: add missing dependency
30350         * modules/pread (Depends-on): Add extensions.
30351         * modules/pwrite (Depends-on): Likewise.
30352
30353 2010-08-28  Bruno Haible  <bruno@clisp.org>
30354
30355         unistr/u*-strchr: Fix tests dependencies.
30356         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30357         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30358         Reported by Ian Beckwith <ianb@erislabs.net>.
30359
30360 2010-08-28  Bruno Haible  <bruno@clisp.org>
30361
30362         read-file: Don't occupy too much unused memory.
30363         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30364
30365 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30366             Eric Blake  <eblake@redhat.com>
30367             Bruno Haible  <bruno@clisp.org>
30368
30369         read-file: Avoid memory reallocations with regular files.
30370         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30371         (fread_file): With regular files, use the remaining length as the
30372         initial buffer size.  Check against overflow.
30373         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30374         sys_stat.
30375
30376 2010-08-28  Bruno Haible  <bruno@clisp.org>
30377
30378         ftello: Relax license.
30379         * modules/ftello (License): Relax to LGPLv2+.
30380         Reported by Eric Blake.
30381
30382 2010-08-28  Bruno Haible  <bruno@clisp.org>
30383
30384         Avoid relocwrapper link errors due to gnulib replacement functions.
30385         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30386         function.
30387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30388
30389 2010-08-28  Bruno Haible  <bruno@clisp.org>
30390
30391         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30392         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30393         defined.
30394         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30395         Suggested by Eric Blake.
30396
30397 2010-08-28  Bruno Haible  <bruno@clisp.org>
30398
30399         sys_socket, netdb: Ensure socklen_t gets defined.
30400         * modules/sys_socket (Depends-on): Add socklen.
30401         * modules/netdb (Depends-on): Likewise.
30402         * modules/getaddrinfo (Depends-on): Remove socklen.
30403         * modules/getsockopt (Depends-on): Likewise.
30404         * modules/setsockopt (Depends-on): Likewise.
30405         * tests/test-sys_socket.c: Check that socklen_t is defined.
30406         * tests/test-netdb.c: Likewise.
30407         * m4/socklen.m4: Update comments.
30408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30409
30410 2010-08-27  Eric Blake  <eblake@redhat.com>
30411
30412         login_tty: add missing dependency
30413         * modules/login_tty (Depends-on): Add pty.
30414
30415 2010-08-26  Eric Blake  <eblake@redhat.com>
30416
30417         lib-symbol-versions: fix m4 quoting
30418         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30419         format for AC_LINK_IFELSE.
30420
30421         glob: fix compile test
30422         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30423
30424         btowc: fix missing file
30425         * modules/btowc (Files): Also ship locale-fr.m4.
30426
30427         lseek: fix link test
30428         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30429         AC_LINK_IFELSE.
30430
30431         include_next: silence autoconf 2.68 warning
30432         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30433         AC_COMPILE_IFELSE as special.
30434         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30435         autoconf < 2.68.
30436
30437         acl: fix compilation test
30438         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30439         AC_COMPILE_IFELSE.
30440
30441 2010-08-26  Bruno Haible  <bruno@clisp.org>
30442
30443         Modernize AC_TRY_RUN invocations.
30444         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30445         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30446         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30447         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30448         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30449         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30450         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30452         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30453         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30454         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30455         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30456         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30457         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30458         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30459         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30460         gl_MBRLEN_NUL_RETVAL): Likewise.
30461         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30462         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30463         Likewise.
30464         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30465         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30466         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30467         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30468         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30469         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30470         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30471         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30472         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30473         Likewise.
30474         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30475         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30476         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30477         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30478         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30479         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30481         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30482         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30484
30485 2010-08-26  Bruno Haible  <bruno@clisp.org>
30486
30487         Modernize AC_TRY_LINK invocations.
30488         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30489         AC_TRY_LINK.
30490         * m4/argp.m4 (gl_ARGP): Likewise.
30491         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30492         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30493         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30494         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30495         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30496         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30497         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30498         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30499         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30500         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30501         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30502         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30503         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30504         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30505         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30506         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30507         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30508         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30509         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30510         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30511         Likewise.
30512         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30513         Likewise.
30514         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30515         Likewise.
30516         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30517         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30518         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30519         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30520         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30521         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30522         * m4/servent.m4 (gl_SERVENT): Likewise.
30523         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30524         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30525         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30526         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30527         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30528         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30529         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30530         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30531         * modules/tsearch-tests (configure.ac): Likewise.
30532
30533 2010-08-26  Bruno Haible  <bruno@clisp.org>
30534
30535         Modernize AC_TRY_COMPILE invocations.
30536         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30537         AC_TRY_COMPILE.
30538         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30539         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30540         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30541         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30542         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30543         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30544         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30545         * m4/lock.m4 (gl_LOCK): Likewise.
30546         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30547         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30548         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30549         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30550         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30551         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30552         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30553         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30554         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30555         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30556         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30557         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30558         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30559         extraneous semicolon.
30560
30561 2010-08-26  Jim Meyering  <meyering@redhat.com>
30562
30563         stat-time: relax license LGPL
30564         * modules/stat-time (License): Change from GPL to LGPL,
30565         with consent from all contributors, for use in libguile.
30566         Requested by Ludovic Courtès.
30567
30568 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30569
30570         poll: return immediately on POLLHUP.
30571         * lib/poll.c (poll): Always set timeout before wait_timeout is
30572         computed.
30573
30574 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30575
30576         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30577         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30578         rmdir ("dir/.//"), unlinkat.
30579
30580 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30581
30582         stdbool: avoid spurious failure with modern xlc
30583         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30584
30585 2010-08-24  Bruno Haible  <bruno@clisp.org>
30586
30587         getloadavg: simplify code
30588         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30589         gl_have_func. Update comments.
30590
30591 2010-08-24  Eric Blake  <eblake@redhat.com>
30592
30593         getloadavg: don't define SVR4 on cygwin
30594         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30595         only define SVR4 when -lkvm is required.
30596         Reported by Yaakov Selkowitz.
30597
30598 2010-08-24  Bruno Haible  <bruno@clisp.org>
30599
30600         priv-set: fix comment
30601         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30602
30603 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30604
30605         priv-set: fix comments
30606         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30607         to match code, as suggested by David Bartley in:
30608         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30609
30610 2010-08-23  Eric Blake  <eblake@redhat.com>
30611
30612         stdbool: avoid rejecting clang
30613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30614         * tests/test-stdbool.c: Enable more tests if using the system
30615         <stdbool.h> instead of the gnulib replacement.
30616         (main): Move xlc bug test to a runtime test for all compilers.
30617         Reported by Anders Kaseorg.
30618
30619         argz: fix shell quoting issue
30620         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30621         Reported by Charles Wilson.
30622
30623 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30624             Erik Faye-Lund <kusmabite@gmail.com>
30625
30626         poll, select: handle ERROR_BROKEN_PIPE.
30627         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30628         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30629         * lib/select.c (win32_compute_revents): Do not mark a pipe
30630         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30631
30632 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30633
30634         fts: allow compilation with C++
30635         * lib/fts_.h: Specify extern "C" linkage with C++.
30636
30637 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30638
30639         Fix gnulib-tool sed script de-commentation for AIX sed.
30640         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30641         sed.
30642
30643 2010-08-17  Eric Blake  <eblake@redhat.com>
30644
30645         test-stddef: test for (some) offsetof bugs
30646         * tests/test-stddef.c: Enhance test to ensure correct type of
30647         offsetof.
30648         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30649         that we are not fixing at this time.
30650
30651 2010-08-15  Bruno Haible  <bruno@clisp.org>
30652
30653         stpncpy: Allow stpncpy to be defined as a macro.
30654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30655         if it's already correctly declared.
30656         * lib/string.in.h (stpncpy): Undefine before redefining.
30657         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30658
30659 2010-08-14  Bruno Haible  <bruno@clisp.org>
30660
30661         Rename module 'memxfrm' to 'amemxfrm'.
30662         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30663         (amemxfrm): Renamed from memxfrm.
30664         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30665         (amemxfrm): Renamed from memxfrm.
30666         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30667         * NEWS: Mention the change.
30668         * MODULES.html.sh (String handling <string.h>): Update.
30669         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30670         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30671         * lib/unicase/u16-casexfrm.c: Likewise.
30672         * lib/unicase/u32-casexfrm.c: Likewise.
30673         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30674         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30675         * lib/uninorm/u16-normxfrm.c: Likewise.
30676         * lib/uninorm/u32-normxfrm.c: Likewise.
30677         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30678         memxfrm.
30679         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30680         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30681         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30682         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30683         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30684         Suggested by Paul Eggert.
30685
30686 2010-08-14  Bruno Haible  <bruno@clisp.org>
30687
30688         Tests for module 'astrxfrm'.
30689         * modules/astrxfrm-tests: New file.
30690         * tests/test-astrxfrm.c: New file.
30691
30692         New module 'astrxfrm'.
30693         * lib/astrxfrm.h: New file.
30694         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30695         * modules/astrxfrm: New file.
30696
30697 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30698
30699         regex: Tweak doc.
30700         * doc/regex.texi (Overview): Don't mention regex.c.
30701         (GNU Regular Expression Compiling): Likewise.
30702         (Match-end-of-line Operator): Mention 'not_eol'.
30703
30704 2010-08-14  Brian Gough  <bjg@gnu.org>
30705             Bruno Haible  <bruno@clisp.org>
30706
30707         git-merge-changelog: add doc relating to use with bzr and hg.
30708         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30709
30710 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30711
30712         pthread: fix pthread.h creation for srcdir != builddir
30713         * modules/pthread (Makefile.am): Fix the rule to work also in a
30714         non-srcdir build.
30715
30716 2010-08-13  Karl Berry  <karl@gnu.org>
30717
30718         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30719         * doc/posix-*/*: force line break before @url of POSIX
30720         specifications.
30721         Suggested by Werner Lemberg.
30722
30723 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30724
30725         strtod: fix const diagnostic
30726         * lib/strtod.c (strtod): Don't assign const char * to char *,
30727         as this elicits a warning from GCC when warnings are enabled.
30728
30729 2010-08-10  Pádraig Brady <P@draigbrady.com>
30730         and Eric Blake  <eblake@redhat.com>
30731
30732         copy-acl: ignore ENOTSUP on HP-UX
30733         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30734         so that it is available for HP-UX.
30735         * lib/copy-acl.c (qcopy_acl): Use it.
30736         Reported by Patrick M. Callahan.
30737
30738 2010-08-10  Eric Blake  <eblake@redhat.com>
30739
30740         open, chown: relax license
30741         * modules/open (License): Change to LGPLv2+, with consent by all
30742         authors, for use in augeas.
30743         * modules/chown (License): Likewise.
30744         * modules/lchown (Likewise): Likewise.
30745         Requested by Adam Stokes.
30746
30747 2010-08-09  Karl Berry  <karl@gnu.org>
30748
30749         * build-aux/ar-lib: new file, import from Automake.
30750         * config/srclist.txt: autocheck for updates.
30751
30752 2010-08-09  Eric Blake  <eblake@redhat.com>
30753
30754         readlinkat: adjust client modules
30755         * modules/areadlinkat (Depends-on): Use readlinkat, not
30756         symlinkat.
30757         * modules/areadlinkat-with-size (Depends-on): Likewise.
30758
30759         mknod: be more vocal about danger of running tests as root
30760         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30761         root, since that is just asking for problems.
30762         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30763
30764         readlinkat: split into its own module
30765         * modules/symlinkat: Split readlinkat...
30766         * modules/readlinkat: ...into separate module.
30767         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30768         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30769         * lib/symlinkat.c (readlinkat): Move...
30770         * lib/readlinkat.c: ...into new file.
30771         * modules/symlinkat-tests: Split readlinkat test...
30772         * modules/readlinkat-tests: ...into separate module.
30773         * tests/test-symlinkat.c: Split...
30774         * tests/test-readlinkat.c: ...into new file.
30775         * NEWS: Document the split.
30776         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30777         * lib/unistd.in.h (readlinkat): Likewise.
30778         Suggested by Bruno Haible.
30779
30780 2010-08-08  Bruno Haible  <bruno@clisp.org>
30781
30782         memxfrm: Speed up.
30783         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30784         that usually only one call to strxfrm is necessary for each string
30785         part.
30786         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30787
30788 2010-08-07  Karl Berry  <karl@gnu.org>
30789
30790         * doc/posix-headers/limits.texi,
30791         * doc/posix-functions/malloc.texi,
30792         * doc/posix-functions/strsignal.texi: missing @item.
30793         * doc/ld-version-script.texi: spurious leading i.
30794         * doc/regex.texi (Interval Operators): no commas inside @var.
30795
30796 2010-08-01  Bruno Haible  <bruno@clisp.org>
30797
30798         Integrate the regex documentation.
30799         * doc/gnulib.texi: Define 'cn' index.
30800         (Regular expressions): New a chapter that includes regex.texi and
30801         regexprops-generic.texi.
30802         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30803         syntax.
30804
30805         Whitespace cleanup.
30806         * doc/regex.texi: Remove trailing spaces.
30807
30808         Add regex documentation.
30809         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30810         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30811         Written by Kathy A. Hargreaves and Karl Berry.
30812
30813 2010-08-01  Bruno Haible  <bruno@clisp.org>
30814
30815         link: Update documentation.
30816         * doc/posix-functions/link.texi: Update regarding Solaris.
30817
30818 2010-07-31  Bruno Haible  <bruno@clisp.org>
30819
30820         Update modules list.
30821         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30822         (String handling <string.h>): Add memcmp2, memxfrm.
30823         (Container data structures): Add xlist, xsublist, xoset.
30824         (Core language properties): Add alignof, unused-parameter.
30825         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30826         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30827         (Unibyte characters <ctype.h>): New section.
30828         (String handling <string.h>): New section.
30829         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30830         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30831         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30832         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30833         tan, tanh, tanl, y0, y1, yn.
30834         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30835         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30836         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30837         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30838         unlockpt, vdprintf, vdprintf-posix.
30839         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30840         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30841         xconcat-filename.
30842         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30843         getdtablesize, pipe2, pipe2-safer.
30844         (Security): New section.
30845         (Networking functions): Add accept4.
30846         (Signal handling): Add sigpipe.
30847         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30848         mbmemcasecoll.
30849         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30850         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30851         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30852         pipe-filter-ii.
30853         (Misc): Add argp-version-etc, login_tty, parse-duration.
30854
30855 2010-07-31  Bruno Haible  <bruno@clisp.org>
30856
30857         Improve doc in MODULES.html.
30858         * modules/linkat (Description): Add the word "function".
30859         * modules/mkfifo (Description): Likewise.
30860         * modules/mknod (Description): Likewise.
30861         * modules/remove (Description): Likewise.
30862         * modules/renameat (Description): Likewise.
30863         * modules/stat (Description): Likewise.
30864         * modules/symlink (Description): Likewise.
30865         * modules/unlink (Description): Likewise.
30866
30867 2010-07-31  Bruno Haible  <bruno@clisp.org>
30868
30869         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30870         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30871         option --enable/disable-c++ instead of --enable/disable-cxx.
30872         * NEWS: Mention the change.
30873
30874 2010-07-31  Bruno Haible  <bruno@clisp.org>
30875
30876         readlink, areadlink: Relax test a bit.
30877         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30878         alternative to ENOTDIR.
30879         * tests/test-areadlink.h (test_areadlink): Likewise.
30880         Reported by Rainer Tammer.
30881
30882 2010-07-31  Bruno Haible  <bruno@clisp.org>
30883
30884         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30885         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30886         character, perform the search using U_STRCHR.
30887         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30888         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30889         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30890         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30891         Suggested by Paolo Bonzini.
30892
30893 2010-07-31  Bruno Haible  <bruno@clisp.org>
30894
30895         unistr/u*-strstr: Fix dependencies.
30896         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30897         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30898         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30899
30900 2010-07-31  Bruno Haible  <bruno@clisp.org>
30901
30902         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30903         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30904         the beginning of the loop.
30905         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30906         cases in 'switch' statement.
30907
30908         unistr/u8-strchr: Fix several bugs.
30909         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30910         the string. When not found, return NULL, not a pointer near the end.
30911
30912         More tests for unistr/u8-strchr.
30913         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30914         that the function does not read past the first occurrence of the byte
30915         being searched.
30916         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30917         * tests/unistr/test-u16-strchr.c (main): New function.
30918         * tests/unistr/test-u32-strchr.c (main): New function.
30919
30920 2010-07-31  Bruno Haible  <bruno@clisp.org>
30921
30922         posix-modules: Ignore backup files of documentation files.
30923         * posix-modules: grep only through files named *.texi.
30924
30925 2010-07-31  Bruno Haible  <bruno@clisp.org>
30926
30927         symlinkat: Fix documentation.
30928         * doc/posix-functions/readlinkat.texi: Fix module name.
30929
30930 2010-07-31  Bruno Haible  <bruno@clisp.org>
30931
30932         fchownat: Replace also when chown has the trailing slash bug.
30933         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30934         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30935         introduced on 2010-04-10.
30936         Reported by Rainer Tammer.
30937
30938 2010-07-31  Bruno Haible  <bruno@clisp.org>
30939
30940         linkat: Work around AIX 7.1 bug.
30941         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30942         whether linkat handles trailing slash correctly. If not, replace linkat
30943         and define LINKAT_TRAILING_SLASH_BUG.
30944         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30945         check whether (fd1,file1) points to a directory if file1 or file2 ends
30946         in a slash. Code taken from lib/link.c.
30947         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30948         Reported by Rainer Tammer.
30949
30950 2010-07-31  Bruno Haible  <bruno@clisp.org>
30951
30952         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30953         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30954         This disables an xlc optimization that was causing wrong test results.
30955         Reported by Rainer Tammer.
30956
30957 2010-07-31  Bruno Haible  <bruno@clisp.org>
30958
30959         iconv: Work around AIX 6.1..7.1 bug.
30960         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30961         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30962         cross-compiling, guess no on all versions of AIX.
30963         Reported by Rainer Tammer.
30964
30965 2010-07-31  Bruno Haible  <bruno@clisp.org>
30966
30967         readlink: Relax test a bit.
30968         * tests/test-readlink.h (test_readlink): Allow different errno value
30969         when readlink is called with a file name that ends in / and refers to
30970         a file.
30971         Suggested by Eric Blake.
30972         Reported by Rainer Tammer.
30973
30974 2010-07-31  Bruno Haible  <bruno@clisp.org>
30975
30976         copysign: Does not require -lm on glibc systems.
30977         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30978         gl_COMMON_DOUBLE_MATHFUNC.
30979         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30980
30981 2010-07-31  Bruno Haible  <bruno@clisp.org>
30982
30983         duplocale: Work around AIX 7.1 bug.
30984         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30985         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30986         * lib/duplocale.c (rpl_duplocale): Update comment.
30987         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30988         Reported by Rainer Tammer.
30989
30990 2010-07-30  Bruno Haible  <bruno@clisp.org>
30991
30992         dirfd: Avoid link error on AIX 7.1.
30993         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30994         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30995         exist, set REPLACE_DIRFD.
30996         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30997         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30998         * doc/posix-functions/dirfd.texi: Update.
30999         Reported by Rainer Tammer.
31000
31001 2010-07-30  Eric Blake  <eblake@redhat.com>
31002
31003         strtod: next round of AIX fixes
31004         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31005         exponent.
31006         * tests/test-strtod.c (main): Enhance tests.
31007         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31008         Reported by Rainer Tammer.
31009
31010         futimens: fix configure check
31011         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31012         Reported by Bruno Haible.
31013
31014 2010-07-30  Bruno Haible  <bruno@clisp.org>
31015
31016         getline: Update regarding AIX.
31017         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31018         Reported by Rainer Tammer.
31019
31020 2010-07-30  Bruno Haible  <bruno@clisp.org>
31021
31022         wcwidth: Drop replacement on AIX 7.
31023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31024         AIX 7.
31025         Reported by Rainer Tammer.
31026
31027 2010-07-30  Bruno Haible  <bruno@clisp.org>
31028
31029         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31030         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31031         a 'char *'.
31032         Reported by Rainer Tammer.
31033
31034 2010-07-30  Bruno Haible  <bruno@clisp.org>
31035
31036         unlink: Update regarding AIX.
31037         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31038         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31039         Reported by Rainer Tammer.
31040
31041 2010-07-30  Bruno Haible  <bruno@clisp.org>
31042
31043         symlink: Update regarding AIX.
31044         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31045         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31046         Reported by Rainer Tammer.
31047
31048 2010-07-30  Bruno Haible  <bruno@clisp.org>
31049
31050         strndup: Update regarding AIX.
31051         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31052         AIX 7.
31053         Reported by Rainer Tammer.
31054
31055 2010-07-30  Bruno Haible  <bruno@clisp.org>
31056
31057         stat: Update regarding AIX.
31058         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31059         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31060         Reported by Rainer Tammer.
31061
31062 2010-07-30  Bruno Haible  <bruno@clisp.org>
31063
31064         truncl: Fix autoconf test.
31065         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31066         whether truncl works.
31067         Reported by Rainer Tammer.
31068
31069 2010-07-30  Bruno Haible  <bruno@clisp.org>
31070
31071         round: Update regarding AIX.
31072         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31073         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31074         Reported by Rainer Tammer.
31075
31076 2010-07-30  Bruno Haible  <bruno@clisp.org>
31077
31078         rename: Update regarding AIX.
31079         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31080         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31081         Reported by Rainer Tammer.
31082
31083 2010-07-30  Bruno Haible  <bruno@clisp.org>
31084
31085         printf.m4: Update regarding AIX.
31086         * m4/printf.m4: Update comments regarding AIX.
31087         Reported by Rainer Tammer.
31088
31089 2010-07-30  Bruno Haible  <bruno@clisp.org>
31090
31091         iconv: Update regarding AIX.
31092         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31093         AIX 7.
31094         Reported by Rainer Tammer.
31095
31096 2010-07-30  Bruno Haible  <bruno@clisp.org>
31097
31098         getopt: Update regarding AIX.
31099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31100         no on AIX.
31101         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31102         Reported by Rainer Tammer.
31103
31104 2010-07-30  Bruno Haible  <bruno@clisp.org>
31105
31106         ldexpl; Update regarding AIX.
31107         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31108         on AIX 7.
31109         Reported by Rainer Tammer.
31110
31111 2010-07-30  Bruno Haible  <bruno@clisp.org>
31112
31113         frexpl: Update regarding AIX.
31114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31115         on AIX 7.
31116         Reported by Rainer Tammer.
31117
31118 2010-07-30  Bruno Haible  <bruno@clisp.org>
31119
31120         open, fopen: Update regarding AIX.
31121         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31122         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31123         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31124         * doc/posix-functions/fopen.texi: Likewise.
31125         Reported by Rainer Tammer.
31126
31127 2010-07-30  Bruno Haible  <bruno@clisp.org>
31128
31129         chown: Update doc regarding AIX.
31130         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31131         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31132         Reported by Rainer Tammer.
31133
31134 2010-07-30  Eric Blake  <eblake@redhat.com>
31135
31136         strtod: fix bug in replacement function on AIX
31137         * lib/strtod.c (strtod): Special case broken "0x" parse in
31138         underlying strtod.
31139         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31140         * doc/posix-functions/strtod.texi (strtod): Likewise.
31141         Reported by Rainer Tammer.
31142
31143 2010-07-30  Bruno Haible  <bruno@clisp.org>
31144
31145         mbrlen: Fix cross-compilation guess for AIX.
31146         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31147         guess. Leftover from 2008-12-22.
31148
31149 2010-07-30  Bruno Haible  <bruno@clisp.org>
31150
31151         mbrtowc: Fix cross-compilation guess for AIX.
31152         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31153         guess. Leftover from 2008-12-21.
31154
31155 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31156
31157         init.sh: work around trap limitation of some shells
31158         * tests/init.sh (setup_): Move exit trap outside of shell function.
31159
31160 2010-07-29  Eric Blake  <eblake@redhat.com>
31161
31162         strtod: aid debugging
31163         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31164         understanding why strtod is rejected.
31165
31166 2010-07-28  Bruno Haible  <bruno@clisp.org>
31167
31168         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31169         * lib/unistr/u8-chr.c: Include <string.h>.
31170         * tests/unistr/test-u8-chr.c: Likewise.
31171         * tests/unistr/test-u16-chr.c: Likewise.
31172         * tests/unistr/test-u32-chr.c: Likewise.
31173         * tests/unistr/test-u8-strchr.c: Likewise.
31174         * tests/unistr/test-u16-strchr.c: Likewise.
31175         * tests/unistr/test-u32-strchr.c: Likewise.
31176         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31177         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31178         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31179         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31180
31181 2010-07-28  Bruno Haible  <bruno@clisp.org>
31182
31183         Use spaces for indentation, not tabs.
31184         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31185
31186 2010-07-27  Bruno Haible  <bruno@clisp.org>
31187
31188         mbspcasecmp: Fix function specification.
31189         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31190         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31191         Reported by Eric Blake <eblake@redhat.com>.
31192
31193 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31194
31195         timespec: use cast and not conditional, as truncation isn't possible
31196         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31197         instead of a conditional.  Comment about the situation in more detail.
31198         This undoes most of the 2009-10-29 patch.
31199
31200 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31201
31202         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31203         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31204         * lib/unistr/u8-strchr.c: Likewise.
31205         * modules/unistr/u8-chr: Depend on memchr.
31206
31207         unistr/u*-strchr: add tests
31208         * modules/unistr/u8-strchr-tests: New file.
31209         * modules/unistr/u16-strchr-tests: New file.
31210         * modules/unistr/u32-strchr-tests: New file.
31211         * tests/unistr/test-strchr.h: New file.
31212         * tests/unistr/test-u8-strchr.c: New file.
31213         * tests/unistr/test-u16-strchr.c: New file.
31214         * tests/unistr/test-u32-strchr.c: New file.
31215
31216         unistr/u*-chr: test multibyte sequences more
31217         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31218         test vector.
31219         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31220         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31221         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31222
31223         unistr/u*-chr: test multibyte sequences
31224         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31225
31226         unistr/u*-chr: prepare for multibyte tests
31227         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31228         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31229         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31230         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31231         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31232         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31233
31234 2010-07-18  Bruno Haible  <bruno@clisp.org>
31235
31236         unistr/u8-strchr: Optimize non-ASCII argument case.
31237         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31238         because the first byte often matches anyway.
31239         Reported by Pádraig Brady <P@draigbrady.com>.
31240
31241 2010-07-15  Karl Berry  <karl@gnu.org>
31242
31243         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31244
31245 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31246
31247         getcwd: on Solaris, work better if ancestors are inaccessible
31248         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31249         buffer and size, try again with a large buffer.  This works better
31250         on Solaris, since its getcwd succeeds even if the path to the root
31251         is inaccessible, and this is helpful in common cases such as .zfs
31252         hidden directories.  Problem reported by J Chapman Flack in
31253         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31254         Use system getcwd if it's declared, not merely if it's partly
31255         working; use the partly-working test only to avoid needless effort
31256         if the system getcwd fails.
31257         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31258         comment that was already obsolete and is now even more obsolete.
31259         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31260         now might call strdup.
31261
31262 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31263
31264         pthread: Add enough so that coreutils/src/sort.c compiles.
31265         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31266         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31267         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31268         Include <sys/types.h>, in case it defines pthread_t.
31269         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31270         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31271         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31272         (pthread_rwlockattr_t, pthread_spinlock_t):
31273         New typedefs, if HAVE_PTHREAD_T is not defined.
31274         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31275         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31276         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31277         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31278         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31279         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31280         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31281         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31282         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31283         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31284         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31285         New macros.
31286         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31287         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31288         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31289         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31290         (pthread_spin_unlock): New dummy functions.
31291         (pthread_create): Return EAGAIN; don't set errno.
31292         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31293         require AC_C_INLINE.
31294         * modules/pthread (Depends-on): Add sched, time.
31295         (pthread.h): Use AM_V_GEN.
31296
31297 2010-07-13  Bruno Haible  <bruno@clisp.org>
31298
31299         striconveh: Don't malloc memory if the result buffer is sufficient.
31300         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31301         buffer if its size is sufficient.
31302         Reported by Ludovic Courtès <ludo@gnu.org>.
31303
31304 2010-07-13  Bruno Haible  <bruno@clisp.org>
31305
31306         strtod: Add safety check.
31307         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31308
31309 2010-07-12  Bruno Haible  <bruno@clisp.org>
31310
31311         Unify tests that set gl_cv_func_ldexpl_no_libm.
31312         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31313         gl_FUNC_LDEXPL.
31314         (gl_FUNC_LDEXPL): Invoke it.
31315         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31316
31317 2010-07-12  Bruno Haible  <bruno@clisp.org>
31318
31319         Unify tests that set gl_cv_func_ldexp_no_libm.
31320         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31321         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31322         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31323         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31324         * modules/strtod (Files): Add m4/ldexp.m4.
31325
31326 2010-07-12  Bruno Haible  <bruno@clisp.org>
31327
31328         Unify tests that set gl_cv_func_frexpl_no_libm.
31329         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31330         gl_FUNC_FREXPL_NO_LIBM.
31331         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31332         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31333
31334 2010-07-12  Bruno Haible  <bruno@clisp.org>
31335
31336         Unify tests that set gl_cv_func_frexp_no_libm.
31337         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31338         gl_FUNC_FREXP_NO_LIBM.
31339         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31340         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31341
31342 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31343
31344         memcoll: clarify sizes versus lengths, document better, and tweak perf
31345         * lib/memcoll.c (strcoll_loop, memcoll0):
31346         Improve quality of descriptive comments.  Name variables
31347         consistently as to whether they are lengths (which do not include
31348         terminating null) versus sizes (which do).
31349         * lib/xmemcoll.c (xmemcoll0): Likewise.
31350         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31351         returned when s1size == 0; this is easier to compile and saves
31352         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31353
31354 2010-07-12  Bruno Haible  <bruno@clisp.org>
31355
31356         Tests for module '_Exit'.
31357         * modules/_Exit-tests: New file.
31358         * tests/test-_Exit.sh: New file.
31359         * tests/test-_Exit.c: New file.
31360
31361         New module '_Exit'.
31362         * lib/stdlib.in.h (__attribute__): New macro.
31363         (_Exit): New declaration.
31364         * lib/_Exit.c: New file.
31365         * m4/_Exit.m4: New file.
31366         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31367         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31368         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31369         * modules/_Exit: New file.
31370         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31371         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31372
31373 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31374
31375         strtod: make it more-accurate typically, and don't require libm
31376         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31377         Include limits.h.  Don't include string.h.
31378         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31379         (locale_isspace): New function, so that no casts are needed to
31380         check whether *s is a space.
31381         (ldexp): Provide an unused dummy if not available.
31382         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31383         (strtod): Use them.  This implementation prefers to use the
31384         underlying strtod if available, falling back on our own code
31385         only to fix known bugs.  This is more likely to produce an
31386         accurate result.  Also, it avoids the use of libm functions.
31387         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31388         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31389         was absent, but it caused a test failure with coreutils.
31390         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31391         with libm.
31392         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31393         * modules/strtod-tests (Makefile.am): Likewise.
31394
31395 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31396             Bruno Haible  <bruno@clisp.org>
31397
31398         unistr/u8-strchr: Optimize ASCII argument case.
31399         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31400
31401 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31402
31403         (x)memcoll: minor tweaks
31404         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31405         is after the type that it qualifies.
31406         (memcoll0): Likewise.
31407         * lib/memcoll.h (memcoll0): Likewise.
31408         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31409         * lib/xmemcoll.h (xmemcoll0): Likewise.
31410         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31411         differs from memcoll in that the NUL byte is part of the argument.
31412         Omit the abort-checks, as performance is a real issue here.  Plus,
31413         the checks were wrong anyway (an off-by-one error).  Omit local
31414         variable 'diff', as it's a bit clearer that way.
31415         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31416         no longer needed.
31417
31418 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31419
31420         (x)memcoll: speedup when input is known to be NUL delimited
31421         * lib/memcoll.c: Include stdlib.
31422         (memcoll0): New function.
31423         (strcoll_loop): New function, refactored for use in both memcoll
31424         and memcoll0.
31425         * lib/memcoll.h (memcoll0): Add prototype.
31426         * lib/xmemcoll.c (xmemcoll0): New function.
31427         (collate_error): New function, refactored for use in both xmemcoll
31428         and xmemcoll0.
31429         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31430         * m4/memcoll.m4: add inline invocation.
31431
31432 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31433
31434         * build-aux/bootstrap: Remove any local translations
31435         from the translation project synchronization directory,
31436         so that local only translations are not distributed.
31437
31438 2010-07-04  Bruno Haible  <bruno@clisp.org>
31439
31440         fsusage: Clarify which code applies to which platforms.
31441         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31442         platform.
31443         * lib/fsusage.c (get_fs_usage): Likewise.
31444
31445 2010-07-04  Bruno Haible  <bruno@clisp.org>
31446
31447         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31448         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31449         Reported by Martin Lambers <marlam@marlam.de>.
31450
31451 2010-07-04  Jim Meyering  <meyering@redhat.com>
31452
31453         hash: once again explicitly disallow insertion of NULL
31454         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31455         inserting a NULL pointer cannot work with these functions.
31456         Add a comment with details.
31457         This reverts part of the 2010-07-01 commit, 5bef1a35
31458         "hash: extend module to deal with non-pointer keys".
31459
31460 2010-07-01  Bruno Haible  <bruno@clisp.org>
31461
31462         stdbool: Update doc.
31463         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31464         Info from Christian Weisgerber <naddy@mips.inka.de>.
31465
31466 2010-07-01  Jim Meyering  <meyering@redhat.com>
31467
31468         hash: extend module to deal with non-pointer keys
31469         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31470         but that allows insertion of non-pointer entries.
31471         Do not disallow an ENTRY value of NULL.
31472         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31473         * lib/hash.h (hash_insert0): Declare.
31474
31475 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31476
31477         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31478         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31479         not present (i.e. with autoconf 2.59 and when using gettextize, not
31480         gnulib), require AC_GNU_SOURCE instead.
31481
31482 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31483
31484         idpriv-drop: Fix tests.
31485         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31486         not to the test-idpriv-droptemp program.
31487
31488 2010-06-29  Bruno Haible  <bruno@clisp.org>
31489
31490         string: Fix syntax error with g++ 2.96.
31491         * lib/string.in.h (__pure__): Remove definition.
31492         (_GL_ATTRIBUTE_PURE): New macro.
31493         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31494         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31495         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31496
31497 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31498
31499         unitypes: Fix bug introduced on 2010-05-18.
31500         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31501
31502 2010-06-22  Eric Blake  <eblake@redhat.com>
31503
31504         memmem: slight optimization
31505         * lib/str-two-way.h (critical_factorization): Update comments.
31506         Reduce work during factorization phase.
31507         Reported by Carlos Bueno <carlos@bueno.org>.
31508
31509 2010-06-21  Bruno Haible  <bruno@clisp.org>
31510
31511         Fix HAVE_CALLOC_POSIX misnomer.
31512         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31513         !HAVE_CALLOC_POSIX.
31514         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31515         HAVE_CALLOC_POSIX.
31516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31517         instead of HAVE_CALLOC_POSIX.
31518         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31519         HAVE_CALLOC_POSIX.
31520
31521         Use modern idiom for calloc() replacement.
31522         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31523         AC_FUNC_CALLOC.
31524         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31525         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31526         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31527         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31528         (gl_REPLACE_CALLOC): New macro.
31529
31530 2010-06-21  Bruno Haible  <bruno@clisp.org>
31531
31532         Fix HAVE_REALLOC_POSIX misnomer.
31533         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31534         !HAVE_REALLOC_POSIX.
31535         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31536         HAVE_REALLOC_POSIX.
31537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31538         instead of HAVE_REALLOC_POSIX.
31539         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31540         HAVE_REALLOC_POSIX.
31541
31542         Use modern idiom for realloc() replacement.
31543         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31544         AC_FUNC_REALLOC.
31545         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31546         Autoconf's AC_FUNC_REALLOC.
31547         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31548         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31549         (gl_REPLACE_REALLOC): New macro.
31550         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31551
31552 2010-06-21  Bruno Haible  <bruno@clisp.org>
31553
31554         Fix HAVE_MALLOC_POSIX misnomer.
31555         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31556         !HAVE_MALLOC_POSIX.
31557         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31558         HAVE_MALLOC_POSIX.
31559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31560         instead of HAVE_MALLOC_POSIX.
31561         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31562         HAVE_MALLOC_POSIX.
31563
31564         Use modern idiom for malloc() replacement.
31565         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31566         AC_FUNC_MALLOC.
31567         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31568         Autoconf's AC_FUNC_MALLOC.
31569         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31570         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31571         (gl_REPLACE_MALLOC): New macro.
31572         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31573
31574 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31575
31576         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31577         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31578         This macro takes 3 arguments, not 4.
31579
31580 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31581
31582         ipv6: fix detection under mingw
31583         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31584         in6_addr.
31585
31586 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31587
31588         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31589         that strtod() works when cross-compiling to a glibc version known
31590         to work.
31591
31592 2010-06-15  Bruno Haible  <bruno@clisp.org>
31593
31594         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31595
31596 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31597
31598         select: Correct timeout.
31599         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31600
31601 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31602
31603         git-version-gen: init shell var to avoid env var influence
31604         * build-aux/git-version-gen (v): Init shell var to empty.
31605
31606 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31607
31608         priv-set: Don't assume that priv.h exists merely because getppriv does.
31609         See Jan Andersen's bug report about AIX 5L in
31610         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31611         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31612         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31613         * lib/priv-set.h: Likewise.
31614         * tests/test-priv-set.c: Likewise.
31615
31616 2010-06-13  Bruno Haible  <bruno@clisp.org>
31617
31618         relocatable: Make it easier to test whether to install wrappers.
31619         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31620         RELOCATABLE_VIA_WRAPPER.
31621
31622 2010-06-13  Bruno Haible  <bruno@clisp.org>
31623
31624         gnulib-tool: Display specified modules and dependencies differently.
31625         * gnulib-tool (func_show_module_list): New function.
31626         (func_import, func_create_testdir): Invoke it.
31627         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31628
31629 2010-06-13  Bruno Haible  <bruno@clisp.org>
31630
31631         gnulib-tool: Align code of func_import and func_create_testdir.
31632         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31633         specified_modules.
31634
31635 2010-06-12  Jim Meyering  <meyering@redhat.com>
31636
31637         test-inttostr: avoid spurious failure on Solaris 9
31638         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31639         to accept "%ju".  Reported by Bruno Haible.
31640
31641 2010-06-11  Jim Meyering  <meyering@redhat.com>
31642
31643         test-sys_socket: mark variables as used more readably
31644         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31645         as "used" explicitly via (void) statement casts.  This is more
31646         readable than using them in an artificial return expression.
31647         Suggestion from Bruno Haible.
31648
31649 2010-06-11  Bruno Haible  <bruno@clisp.org>
31650
31651         Avoid some more warnings from "gcc -Wwrite-strings".
31652         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31653         to 'const char *'.
31654         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31655         * tests/test-c-strcasestr.c (main): Likewise.
31656         * tests/test-mbscasestr1.c (main): Likewise.
31657         * tests/test-mbscasestr2.c (main): Likewise.
31658         * tests/test-memmem.c (main): Likewise.
31659         * tests/test-strstr.c (main): Likewise.
31660         * tests/test-strcasestr.c (main): Likewise.
31661
31662 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31663
31664         init.sh: change framework_failure_ to fail with status 99, not 1
31665         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31666         automake's parallel-tests rule that this is an unexpected failure,
31667         even if the test is listed in XFAIL_TESTS.
31668
31669 2010-06-11  Jim Meyering  <meyering@redhat.com>
31670
31671         test-inttostr: avoid warnings about 4-6KB literal strings
31672         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31673         Include "macros.h", for its definition of ASSERT.
31674         (CK): s/assert/ASSERT/
31675         * modules/inttostr-tests (Files): Add macros.h.
31676
31677         init.sh: don't use $ME_ or skip_ before they are defined
31678         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31679         their first uses.  Also hoist their companions: warn_, fail_,
31680         framework_failure_, $stderr_fileno.  Prompted by a patch from
31681         Stefano Lattarini.
31682
31683         test-sys_socket: avoid set-but-not-used warnings from gcc
31684         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31685         avoid warning about set-but-not-used variables.
31686
31687         test-xvasprintf: avoid 'const' discard warnings
31688         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31689         "const" when assigning from literal strings.
31690         (test_xasprintf): Add "void" in function argument list to placate
31691         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31692
31693         tests: avoid compilation warnings in argmatch and exclude tests...
31694         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31695         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31696         Since it always exits, declare with the "noreturn" attribute.
31697         * tests/test-argmatch.c: Likewise.
31698
31699         tests: avoid 'const' discard warnings in mbsstr tests
31700         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31701         * tests/test-mbsstr2.c (main): Likewise.
31702
31703         test-verify: avoid warning from gcc's -Wmissing-declarations
31704         * tests/test-verify.c (function): Declare to be static.
31705
31706         test-inttostr.c: include <string.h> for use of strcmp
31707         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31708
31709         test-linkat: avoid failed assertion on "other" architectures
31710         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31711         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31712         sparc: https://bugs.launchpad.net/bugs/591968
31713
31714 2010-06-11  Jim Meyering  <meyering@redhat.com>
31715
31716         printf.m4: avoid autoconf's "Expanded Before Required" warning
31717         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31718         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31719         autoconf warning.
31720
31721 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31722
31723         Replacement header templates are now named with ".in", not "_".
31724         * doc/gnulib-intro.texi: Correct.
31725
31726 2010-06-10  Jim Meyering  <meyering@redhat.com>
31727
31728         inttostr-tests: depend on snprintf, not snprintf-posix
31729         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31730         snprintf-posix, to avoid this aclocal failure:
31731           missing file gnulib-tests/vasnprintf.c
31732           configure.ac:45: error: expected source file, required through \
31733           AC_LIBSOURCES, not found
31734
31735 2010-06-10  Jim Meyering  <meyering@redhat.com>
31736
31737         inttostr: add a new function, inttostr, and tests
31738         The namesake function was not available.  The existence of the
31739         template file, inttostr.c makes its addition nontrivial.
31740         * lib/anytostr.c: Rename from inttostr.c.
31741         (anytostr): Rename from inttostr.
31742         * lib/inttostr.c: New file.
31743         * modules/inttostr (Files): Add anytostr.c.
31744         (Makefile.am): Set lib_SOURCES instead of ...
31745         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31746         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31747         * lib/offtostr.c: Likewise.
31748         * lib/uinttostr.c: Likewise.
31749         * lib/umaxtostr.c: Likewise.
31750         * modules/inttostr-tests: New file.
31751         * tests/test-inttostr.c: New file.  Test these functions.
31752
31753 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31754             Bruno Haible  <bruno@clisp.org>
31755
31756         Add "Extending Gnulib" chapter to manual.
31757         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31758         chapter.
31759         (Extending Gnulib): New chapter.
31760         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31761         chapter.
31762
31763 2010-06-09  Bruno Haible  <bruno@clisp.org>
31764
31765         Avoid relocwrapper link errors due to gnulib replacement functions.
31766         * lib/areadlink.c: Use the system's malloc, realloc functions.
31767         (areadlink): Set errno to ENOMEM explicitly.
31768         * modules/areadlink (Depends-on): Remove malloc-posix.
31769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31770
31771 2010-06-09  Bruno Haible  <bruno@clisp.org>
31772
31773         Avoid relocwrapper link errors due to gnulib replacement functions.
31774         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31775         * lib/malloca.c: Likewise.
31776         * lib/relocatable.c: Likewise.
31777         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31778         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31779         * lib/setenv.c: Use the system's malloc, realloc functions.
31780         * lib/strerror.c: Use the system's sprintf function.
31781         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31782
31783 2010-06-04  Bruno Haible  <bruno@clisp.org>
31784
31785         Prefer documented low-level autoconf macro names.
31786         * m4/lib-link.m4: Use m4_translit instead of translit.
31787         * m4/environ.m4: Likewise.
31788         * m4/mathfunc.m4: Likewise.
31789         * m4/onceonly.m4: Likewise.
31790         * m4/stdint.m4: Likewise.
31791         Suggested by Eric Blake.
31792
31793 2010-06-04  Martin Lambers  <marlam@marlam.de>
31794             Bruno Haible  <bruno@clisp.org>
31795
31796         havelib: Allow library names with '+' characters.
31797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31798         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31799
31800 2010-06-09  Bruno Haible  <bruno@clisp.org>
31801
31802         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31803         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31804         realloc failed.
31805
31806 2010-06-08  Peter Simons  <simons@cryp.to>
31807
31808         maint.mk: make the news-check rule more configurable
31809         * top/maint.mk (news-check-lines-spec): New variable.
31810         (news-check): Use "sed -n 1,10p" in place of "head".
31811
31812 2010-06-07  Jim Meyering  <meyering@redhat.com>
31813
31814         do-release-commit-and-tag: fix typo in --help
31815         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31816
31817         regex: avoid new dead-code warning with gcc-4.6.0
31818         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31819         if-block containing a while-loop.  It's been unused for at least
31820         5 years.
31821
31822 2010-06-05  Bruno Haible  <bruno@clisp.org>
31823
31824         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31825         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31826
31827 2010-06-04  Bruno Haible  <bruno@clisp.org>
31828
31829         Update to GNU gettext 0.18.1.
31830         * modules/gettext (configure.ac): Require gettext infrastructure from
31831         version 0.18.1.
31832
31833 2010-06-03  Bruno Haible  <bruno@clisp.org>
31834
31835         Don't use AC_LIBOBJ with file names in subdirectories.
31836         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31837         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31838         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31839         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31840         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31841         gl_LIBUNISTRING_LIBSOURCE.
31842         (Makefile.am): Augment lib_SOURCES here, conditionally.
31843         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31844
31845 2010-06-03  Bruno Haible  <bruno@clisp.org>
31846
31847         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31848         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31849         expansion does not end with a newline.
31850         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31851         unnecessary newline.
31852
31853 2010-06-03  Bruno Haible  <bruno@clisp.org>
31854
31855         Reduce dependencies.
31856         * tests/test-quotearg.h: New file, extracted from
31857         tests/test-quotearg.c.
31858         * tests/test-quotearg-simple.c: New file, extracted from
31859         tests/test-quotearg.c.
31860         * tests/test-quotearg.c: Don't include <ctype.h>.
31861         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31862         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31863         use_quote_double_quotes, use_quotearg_colon): Moved to
31864         tests/test-quotearg.h.
31865         (results_g, flag_results, custom_quotes, custom_results): Moved
31866         to tests/test-quotearg-simple.c.
31867         (main): Moved the part that does not depend on gettext to
31868         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31869         performed.
31870         * modules/quotearg-simple: New file.
31871         * modules/quotearg-simple-tests: New file.
31872         * modules/quotearg (Depends-on): Add quotearg-simple.
31873         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31874         (Files): Add tests/test-quotearg.h.
31875         Reported by Paolo Bonzini.
31876
31877 2010-06-03  Bruno Haible  <bruno@clisp.org>
31878
31879         Reduce dependencies.
31880         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31881
31882 2010-06-03  Bruno Haible  <bruno@clisp.org>
31883
31884         time: Undefine more broken macros.
31885         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31886         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31887         Reported by Eric Blake.
31888
31889 2010-06-03  Bruno Haible  <bruno@clisp.org>
31890
31891         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31892         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31893         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31894         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31895         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31896         Reported by Ludovic Courtès <ludo@gnu.org>.
31897
31898 2010-06-02  Eric Blake  <eblake@redhat.com>
31899
31900         time: work with mingw + pthreads-win32 library
31901         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31902         if timespec is defined only in pthread.h.
31903         * modules/time (Makefile.am): Substitute it.
31904         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31905         <pthread.h>, when needed.
31906         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31907         from the library.
31908
31909 2010-05-31  Bruno Haible  <bruno@clisp.org>
31910
31911         Avoid expanding two macros in the wrong order.
31912         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31913         gl_LIBUNISTRING if it is defined.
31914         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31915         autoconf >= 2.64.
31916         Reported by Ludovic Courtès <ludo@gnu.org>.
31917
31918 2010-05-27  Jim Meyering  <meyering@redhat.com>
31919
31920         maint.mk: also prohibit "#undef" of always-defined symbols
31921         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31922         Allow more than one space before the symbol name.
31923         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31924         the regexp uses alternation.
31925
31926 2010-05-26  Eric Blake  <eblake@redhat.com>
31927
31928         maint.mk: avoid echo -e
31929         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31930         Convert all uses of echo -* to printf.
31931         Reported by Matthias Bolte.
31932
31933 2010-05-25  Bruno Haible  <bruno@clisp.org>
31934
31935         Update to GNU gettext 0.18, part 2.
31936         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31937         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31938
31939 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31940
31941         Add missing include in test-pwrite.c.
31942         * tests/test-pwrite.c: Include string.h, for strcmp.
31943
31944 2010-05-24  Bruno Haible  <bruno@clisp.org>
31945
31946         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31947
31948 2010-05-24  Bruno Haible  <bruno@clisp.org>
31949
31950         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31951         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31952         iconveh_error argument.
31953         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31954         U_STRCONV_TO_LOCALE.
31955         * lib/unistr/u16-strcoll.c: Likewise.
31956         * lib/unistr/u32-strcoll.c: Likewise.
31957         * modules/unistr/u8-strcoll (Depends-on): Add
31958         uniconv/u8-strconv-to-enc, localcharset. Remove
31959         uniconv/u8-strconv-to-locale.
31960         (configure.ac): Bump version number.
31961         * modules/unistr/u16-strcoll (Depends-on): Add
31962         uniconv/u16-strconv-to-enc, localcharset. Remove
31963         uniconv/u16-strconv-to-locale.
31964         (configure.ac): Bump version number.
31965         * modules/unistr/u32-strcoll (Depends-on): Add
31966         uniconv/u32-strconv-to-enc, localcharset. Remove
31967         uniconv/u32-strconv-to-locale.
31968         (configure.ac): Bump version number.
31969
31970 2010-05-24  Bruno Haible  <bruno@clisp.org>
31971
31972         Avoid a test failure on NetBSD 5.0.
31973         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31974         an iconv() bug.
31975
31976 2010-05-24  Bruno Haible  <bruno@clisp.org>
31977
31978         Adjust #include directive style.
31979         * modules/regex (Includes): Recommend to write <regex.h>.
31980
31981 2010-05-24  Bruno Haible  <bruno@clisp.org>
31982
31983         regex: Don't require alloca.
31984         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31985         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31986         only inside if (0).
31987
31988 2010-05-23  Jim Meyering  <meyering@redhat.com>
31989
31990         test-renameat.c: include <sys/stat.h>
31991         * tests/test-renameat.c: Include <sys/stat.h>; required for
31992         definition of S_IS* macros.
31993
31994 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31995
31996         Update maintainer documentation for 'relocatable-prog' module.
31997         * doc/relocatable-maint.texi: Update.
31998         Comments by Bruno Haible.
31999
32000 2010-05-23  Bruno Haible  <bruno@clisp.org>
32001
32002         git-merge-changelog: Enable --split-merged-entry by default.
32003         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32004         (usage): Don't mention this option any more.
32005         Reported by Ralf Wildenhues.
32006
32007 2010-05-23  Jim Meyering  <meyering@redhat.com>
32008
32009         test-pwrite: do not leave behind a test file named "out"
32010         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32011         The trivial-looking use of init.sh is really necessary.
32012         It ensures that the temporary file, "out", is created in
32013         a temporary directory, and removed upon termination.
32014         * tests/test-pwrite.sh: Re-add file.
32015         * modules/pwrite-tests: Reference it.
32016
32017 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32018
32019         Fix output redirection buglet in init.sh.
32020         * tests/init.sh: Fix redirection of stderr.
32021
32022 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32023
32024         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32025
32026 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32027
32028         * modules/valgrind-tests: New file.
32029         * m4/valgrind-tests.m4: New file.
32030         * doc/valgrind-tests.texi: New file.
32031         * doc/gnulib.texi (Running self-tests under valgrind): New
32032         section.
32033
32034 2010-05-19  Bruno Haible  <bruno@clisp.org>
32035
32036         Clean up dead code in recent commit.
32037         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32038         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32039         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32040         Suggested by Paolo Bonzini.
32041
32042 2010-05-19  Bruno Haible  <bruno@clisp.org>
32043
32044         Avoid valgrind error reports from libunistring.
32045         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32046         * modules/libunistring (Files): Add it.
32047         * modules/libunistring-optional (Files): Likewise.
32048
32049 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32050             Bruno Haible  <bruno@clisp.org>
32051
32052         New module 'libunistring-optional'.
32053         * modules/libunistring-optional: New file.
32054         * m4/libunistring-base.m4: New file.
32055         * m4/libunistring-optional.m4: New file.
32056         * lib/unicase.in.h: Renamed from lib/unicase.h.
32057         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32058         * lib/unictype.in.h: Renamed from lib/unictype.h.
32059         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32060         * lib/uniname.in.h: Renamed from lib/uniname.h.
32061         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32062         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32063         * lib/unistr.in.h: Renamed from lib/unistr.h.
32064         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32065         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32066         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32067         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32068         gl_LIBUNISTRING. If the library was found, determine the installed
32069         version and set LIBUNISTRING_VERSION.
32070         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32071         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32072         handle a configuration option --with-included-libunistring.
32073         * modules/libunistring (Files): Add m4/absolute-header.m4.
32074         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32075         Add m4/libunistring-base.m4.
32076         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32077         (Makefile.am): Build unicase.h from unicase.in.h.
32078         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32079         Add m4/libunistring-base.m4.
32080         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32081         (Makefile.am): Build uniconv.h from uniconv.in.h.
32082         * modules/unictype/base (Files): Use unictype.in.h instead of
32083         unictype.h. Add m4/libunistring-base.m4.
32084         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32085         (Makefile.am): Build unictype.h from unictype.in.h.
32086         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32087         Add m4/libunistring-base.m4.
32088         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32089         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32090         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32091         Add m4/libunistring-base.m4.
32092         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32093         (Makefile.am): Build uniname.h from uniname.in.h.
32094         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32095         Add m4/libunistring-base.m4.
32096         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32097         (Makefile.am): Build uninorm.h from uninorm.in.h.
32098         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32099         unistdio.h. Add m4/libunistring-base.m4.
32100         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32101         (Makefile.am): Build unistdio.h from unistdio.in.h.
32102         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32103         Add m4/libunistring-base.m4.
32104         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32105         (Makefile.am): Build unistr.h from unistr.in.h.
32106         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32107         Add m4/libunistring-base.m4.
32108         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32109         (Makefile.am): Build unitypes.h from unitypes.in.h.
32110         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32111         Add m4/libunistring-base.m4.
32112         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32113         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32114         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32115         uniwidth.h. Add m4/libunistring-base.m4.
32116         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32117         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32118         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32119         instead of augmenting lib_SOURCES.
32120         * modules/unicase/empty-suffix-context: Likewise.
32121         * modules/unicase/locale-language: Likewise.
32122         * modules/unicase/tolower: Likewise.
32123         * modules/unicase/totitle: Likewise.
32124         * modules/unicase/toupper: Likewise.
32125         * modules/unicase/u8-casecmp: Likewise.
32126         * modules/unicase/u8-casecoll: Likewise.
32127         * modules/unicase/u8-casefold: Likewise.
32128         * modules/unicase/u8-casexfrm: Likewise.
32129         * modules/unicase/u8-ct-casefold: Likewise.
32130         * modules/unicase/u8-ct-tolower: Likewise.
32131         * modules/unicase/u8-ct-totitle: Likewise.
32132         * modules/unicase/u8-ct-toupper: Likewise.
32133         * modules/unicase/u8-is-cased: Likewise.
32134         * modules/unicase/u8-is-casefolded: Likewise.
32135         * modules/unicase/u8-is-lowercase: Likewise.
32136         * modules/unicase/u8-is-titlecase: Likewise.
32137         * modules/unicase/u8-is-uppercase: Likewise.
32138         * modules/unicase/u8-prefix-context: Likewise.
32139         * modules/unicase/u8-suffix-context: Likewise.
32140         * modules/unicase/u8-tolower: Likewise.
32141         * modules/unicase/u8-totitle: Likewise.
32142         * modules/unicase/u8-toupper: Likewise.
32143         * modules/unicase/u16-casecmp: Likewise.
32144         * modules/unicase/u16-casecoll: Likewise.
32145         * modules/unicase/u16-casefold: Likewise.
32146         * modules/unicase/u16-casexfrm: Likewise.
32147         * modules/unicase/u16-ct-casefold: Likewise.
32148         * modules/unicase/u16-ct-tolower: Likewise.
32149         * modules/unicase/u16-ct-totitle: Likewise.
32150         * modules/unicase/u16-ct-toupper: Likewise.
32151         * modules/unicase/u16-is-cased: Likewise.
32152         * modules/unicase/u16-is-casefolded: Likewise.
32153         * modules/unicase/u16-is-lowercase: Likewise.
32154         * modules/unicase/u16-is-titlecase: Likewise.
32155         * modules/unicase/u16-is-uppercase: Likewise.
32156         * modules/unicase/u16-prefix-context: Likewise.
32157         * modules/unicase/u16-suffix-context: Likewise.
32158         * modules/unicase/u16-tolower: Likewise.
32159         * modules/unicase/u16-totitle: Likewise.
32160         * modules/unicase/u16-toupper: Likewise.
32161         * modules/unicase/u32-casecmp: Likewise.
32162         * modules/unicase/u32-casecoll: Likewise.
32163         * modules/unicase/u32-casefold: Likewise.
32164         * modules/unicase/u32-casexfrm: Likewise.
32165         * modules/unicase/u32-ct-casefold: Likewise.
32166         * modules/unicase/u32-ct-tolower: Likewise.
32167         * modules/unicase/u32-ct-totitle: Likewise.
32168         * modules/unicase/u32-ct-toupper: Likewise.
32169         * modules/unicase/u32-is-cased: Likewise.
32170         * modules/unicase/u32-is-casefolded: Likewise.
32171         * modules/unicase/u32-is-lowercase: Likewise.
32172         * modules/unicase/u32-is-titlecase: Likewise.
32173         * modules/unicase/u32-is-uppercase: Likewise.
32174         * modules/unicase/u32-prefix-context: Likewise.
32175         * modules/unicase/u32-suffix-context: Likewise.
32176         * modules/unicase/u32-tolower: Likewise.
32177         * modules/unicase/u32-totitle: Likewise.
32178         * modules/unicase/u32-toupper: Likewise.
32179         * modules/unicase/ulc-casecmp: Likewise.
32180         * modules/unicase/ulc-casecoll: Likewise.
32181         * modules/unicase/ulc-casexfrm: Likewise.
32182         * modules/uniconv/u8-conv-from-enc: Likewise.
32183         * modules/uniconv/u8-conv-to-enc: Likewise.
32184         * modules/uniconv/u8-strconv-from-enc: Likewise.
32185         * modules/uniconv/u8-strconv-from-locale: Likewise.
32186         * modules/uniconv/u8-strconv-to-enc: Likewise.
32187         * modules/uniconv/u8-strconv-to-locale: Likewise.
32188         * modules/uniconv/u16-conv-from-enc: Likewise.
32189         * modules/uniconv/u16-conv-to-enc: Likewise.
32190         * modules/uniconv/u16-strconv-from-enc: Likewise.
32191         * modules/uniconv/u16-strconv-from-locale: Likewise.
32192         * modules/uniconv/u16-strconv-to-enc: Likewise.
32193         * modules/uniconv/u16-strconv-to-locale: Likewise.
32194         * modules/uniconv/u32-conv-from-enc: Likewise.
32195         * modules/uniconv/u32-conv-to-enc: Likewise.
32196         * modules/uniconv/u32-strconv-from-enc: Likewise.
32197         * modules/uniconv/u32-strconv-from-locale: Likewise.
32198         * modules/uniconv/u32-strconv-to-enc: Likewise.
32199         * modules/uniconv/u32-strconv-to-locale: Likewise.
32200         * modules/unictype/bidicategory-byname: Likewise.
32201         * modules/unictype/bidicategory-name: Likewise.
32202         * modules/unictype/bidicategory-of: Likewise.
32203         * modules/unictype/bidicategory-test: Likewise.
32204         * modules/unictype/block-list: Likewise.
32205         * modules/unictype/block-test: Likewise.
32206         * modules/unictype/category-C: Likewise.
32207         * modules/unictype/category-Cc: Likewise.
32208         * modules/unictype/category-Cf: Likewise.
32209         * modules/unictype/category-Cn: Likewise.
32210         * modules/unictype/category-Co: Likewise.
32211         * modules/unictype/category-Cs: Likewise.
32212         * modules/unictype/category-L: Likewise.
32213         * modules/unictype/category-Ll: Likewise.
32214         * modules/unictype/category-Lm: Likewise.
32215         * modules/unictype/category-Lo: Likewise.
32216         * modules/unictype/category-Lt: Likewise.
32217         * modules/unictype/category-Lu: Likewise.
32218         * modules/unictype/category-M: Likewise.
32219         * modules/unictype/category-Mc: Likewise.
32220         * modules/unictype/category-Me: Likewise.
32221         * modules/unictype/category-Mn: Likewise.
32222         * modules/unictype/category-N: Likewise.
32223         * modules/unictype/category-Nd: Likewise.
32224         * modules/unictype/category-Nl: Likewise.
32225         * modules/unictype/category-No: Likewise.
32226         * modules/unictype/category-P: Likewise.
32227         * modules/unictype/category-Pc: Likewise.
32228         * modules/unictype/category-Pd: Likewise.
32229         * modules/unictype/category-Pe: Likewise.
32230         * modules/unictype/category-Pf: Likewise.
32231         * modules/unictype/category-Pi: Likewise.
32232         * modules/unictype/category-Po: Likewise.
32233         * modules/unictype/category-Ps: Likewise.
32234         * modules/unictype/category-S: Likewise.
32235         * modules/unictype/category-Sc: Likewise.
32236         * modules/unictype/category-Sk: Likewise.
32237         * modules/unictype/category-Sm: Likewise.
32238         * modules/unictype/category-So: Likewise.
32239         * modules/unictype/category-Z: Likewise.
32240         * modules/unictype/category-Zl: Likewise.
32241         * modules/unictype/category-Zp: Likewise.
32242         * modules/unictype/category-Zs: Likewise.
32243         * modules/unictype/category-and: Likewise.
32244         * modules/unictype/category-and-not: Likewise.
32245         * modules/unictype/category-byname: Likewise.
32246         * modules/unictype/category-name: Likewise.
32247         * modules/unictype/category-none: Likewise.
32248         * modules/unictype/category-of: Likewise.
32249         * modules/unictype/category-or: Likewise.
32250         * modules/unictype/category-test: Likewise.
32251         * modules/unictype/combining-class: Likewise.
32252         * modules/unictype/ctype-alnum: Likewise.
32253         * modules/unictype/ctype-alpha: Likewise.
32254         * modules/unictype/ctype-blank: Likewise.
32255         * modules/unictype/ctype-cntrl: Likewise.
32256         * modules/unictype/ctype-digit: Likewise.
32257         * modules/unictype/ctype-graph: Likewise.
32258         * modules/unictype/ctype-lower: Likewise.
32259         * modules/unictype/ctype-print: Likewise.
32260         * modules/unictype/ctype-punct: Likewise.
32261         * modules/unictype/ctype-space: Likewise.
32262         * modules/unictype/ctype-upper: Likewise.
32263         * modules/unictype/ctype-xdigit: Likewise.
32264         * modules/unictype/decimal-digit: Likewise.
32265         * modules/unictype/digit: Likewise.
32266         * modules/unictype/mirror: Likewise.
32267         * modules/unictype/numeric: Likewise.
32268         * modules/unictype/property-alphabetic: Likewise.
32269         * modules/unictype/property-ascii-hex-digit: Likewise.
32270         * modules/unictype/property-bidi-arabic-digit: Likewise.
32271         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32272         * modules/unictype/property-bidi-block-separator: Likewise.
32273         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32274         * modules/unictype/property-bidi-common-separator: Likewise.
32275         * modules/unictype/property-bidi-control: Likewise.
32276         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32277         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32278         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32279         * modules/unictype/property-bidi-european-digit: Likewise.
32280         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32281         * modules/unictype/property-bidi-left-to-right: Likewise.
32282         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32283         * modules/unictype/property-bidi-other-neutral: Likewise.
32284         * modules/unictype/property-bidi-pdf: Likewise.
32285         * modules/unictype/property-bidi-segment-separator: Likewise.
32286         * modules/unictype/property-bidi-whitespace: Likewise.
32287         * modules/unictype/property-byname: Likewise.
32288         * modules/unictype/property-combining: Likewise.
32289         * modules/unictype/property-composite: Likewise.
32290         * modules/unictype/property-currency-symbol: Likewise.
32291         * modules/unictype/property-dash: Likewise.
32292         * modules/unictype/property-decimal-digit: Likewise.
32293         * modules/unictype/property-default-ignorable-code-point: Likewise.
32294         * modules/unictype/property-deprecated: Likewise.
32295         * modules/unictype/property-diacritic: Likewise.
32296         * modules/unictype/property-extender: Likewise.
32297         * modules/unictype/property-format-control: Likewise.
32298         * modules/unictype/property-grapheme-base: Likewise.
32299         * modules/unictype/property-grapheme-extend: Likewise.
32300         * modules/unictype/property-grapheme-link: Likewise.
32301         * modules/unictype/property-hex-digit: Likewise.
32302         * modules/unictype/property-hyphen: Likewise.
32303         * modules/unictype/property-id-continue: Likewise.
32304         * modules/unictype/property-id-start: Likewise.
32305         * modules/unictype/property-ideographic: Likewise.
32306         * modules/unictype/property-ids-binary-operator: Likewise.
32307         * modules/unictype/property-ids-trinary-operator: Likewise.
32308         * modules/unictype/property-ignorable-control: Likewise.
32309         * modules/unictype/property-iso-control: Likewise.
32310         * modules/unictype/property-join-control: Likewise.
32311         * modules/unictype/property-left-of-pair: Likewise.
32312         * modules/unictype/property-line-separator: Likewise.
32313         * modules/unictype/property-logical-order-exception: Likewise.
32314         * modules/unictype/property-lowercase: Likewise.
32315         * modules/unictype/property-math: Likewise.
32316         * modules/unictype/property-non-break: Likewise.
32317         * modules/unictype/property-not-a-character: Likewise.
32318         * modules/unictype/property-numeric: Likewise.
32319         * modules/unictype/property-other-alphabetic: Likewise.
32320         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32321         * modules/unictype/property-other-grapheme-extend: Likewise.
32322         * modules/unictype/property-other-id-continue: Likewise.
32323         * modules/unictype/property-other-id-start: Likewise.
32324         * modules/unictype/property-other-lowercase: Likewise.
32325         * modules/unictype/property-other-math: Likewise.
32326         * modules/unictype/property-other-uppercase: Likewise.
32327         * modules/unictype/property-paired-punctuation: Likewise.
32328         * modules/unictype/property-paragraph-separator: Likewise.
32329         * modules/unictype/property-pattern-syntax: Likewise.
32330         * modules/unictype/property-pattern-white-space: Likewise.
32331         * modules/unictype/property-private-use: Likewise.
32332         * modules/unictype/property-punctuation: Likewise.
32333         * modules/unictype/property-quotation-mark: Likewise.
32334         * modules/unictype/property-radical: Likewise.
32335         * modules/unictype/property-sentence-terminal: Likewise.
32336         * modules/unictype/property-soft-dotted: Likewise.
32337         * modules/unictype/property-space: Likewise.
32338         * modules/unictype/property-terminal-punctuation: Likewise.
32339         * modules/unictype/property-test: Likewise.
32340         * modules/unictype/property-titlecase: Likewise.
32341         * modules/unictype/property-unassigned-code-value: Likewise.
32342         * modules/unictype/property-unified-ideograph: Likewise.
32343         * modules/unictype/property-uppercase: Likewise.
32344         * modules/unictype/property-variation-selector: Likewise.
32345         * modules/unictype/property-white-space: Likewise.
32346         * modules/unictype/property-xid-continue: Likewise.
32347         * modules/unictype/property-xid-start: Likewise.
32348         * modules/unictype/property-zero-width: Likewise.
32349         * modules/unictype/scripts: Likewise.
32350         * modules/unictype/syntax-c-ident: Likewise.
32351         * modules/unictype/syntax-c-whitespace: Likewise.
32352         * modules/unictype/syntax-java-ident: Likewise.
32353         * modules/unictype/syntax-java-whitespace: Likewise.
32354         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32355         * modules/unilbrk/u8-width-linebreaks: Likewise.
32356         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32357         * modules/unilbrk/u16-width-linebreaks: Likewise.
32358         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32359         * modules/unilbrk/u32-width-linebreaks: Likewise.
32360         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32361         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32362         * modules/uniname/uniname: Likewise.
32363         * modules/uninorm/canonical-decomposition: Likewise.
32364         * modules/uninorm/composition: Likewise.
32365         * modules/uninorm/decomposing-form: Likewise.
32366         * modules/uninorm/decomposition: Likewise.
32367         * modules/uninorm/filter: Likewise.
32368         * modules/uninorm/nfc: Likewise.
32369         * modules/uninorm/nfd: Likewise.
32370         * modules/uninorm/nfkc: Likewise.
32371         * modules/uninorm/nfkd: Likewise.
32372         * modules/uninorm/u8-normalize: Likewise.
32373         * modules/uninorm/u8-normcmp: Likewise.
32374         * modules/uninorm/u8-normcoll: Likewise.
32375         * modules/uninorm/u8-normxfrm: Likewise.
32376         * modules/uninorm/u16-normalize: Likewise.
32377         * modules/uninorm/u16-normcmp: Likewise.
32378         * modules/uninorm/u16-normcoll: Likewise.
32379         * modules/uninorm/u16-normxfrm: Likewise.
32380         * modules/uninorm/u32-normalize: Likewise.
32381         * modules/uninorm/u32-normcmp: Likewise.
32382         * modules/uninorm/u32-normcoll: Likewise.
32383         * modules/uninorm/u32-normxfrm: Likewise.
32384         * modules/unistdio/u8-asnprintf: Likewise.
32385         * modules/unistdio/u8-asprintf: Likewise.
32386         * modules/unistdio/u8-snprintf: Likewise.
32387         * modules/unistdio/u8-sprintf: Likewise.
32388         * modules/unistdio/u8-u8-asnprintf: Likewise.
32389         * modules/unistdio/u8-u8-asprintf: Likewise.
32390         * modules/unistdio/u8-u8-snprintf: Likewise.
32391         * modules/unistdio/u8-u8-sprintf: Likewise.
32392         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32393         * modules/unistdio/u8-u8-vasprintf: Likewise.
32394         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32395         * modules/unistdio/u8-u8-vsprintf: Likewise.
32396         * modules/unistdio/u8-vasnprintf: Likewise.
32397         * modules/unistdio/u8-vasprintf: Likewise.
32398         * modules/unistdio/u8-vsnprintf: Likewise.
32399         * modules/unistdio/u8-vsprintf: Likewise.
32400         * modules/unistdio/u16-asnprintf: Likewise.
32401         * modules/unistdio/u16-asprintf: Likewise.
32402         * modules/unistdio/u16-snprintf: Likewise.
32403         * modules/unistdio/u16-sprintf: Likewise.
32404         * modules/unistdio/u16-u16-asnprintf: Likewise.
32405         * modules/unistdio/u16-u16-asprintf: Likewise.
32406         * modules/unistdio/u16-u16-snprintf: Likewise.
32407         * modules/unistdio/u16-u16-sprintf: Likewise.
32408         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32409         * modules/unistdio/u16-u16-vasprintf: Likewise.
32410         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32411         * modules/unistdio/u16-u16-vsprintf: Likewise.
32412         * modules/unistdio/u16-vasnprintf: Likewise.
32413         * modules/unistdio/u16-vasprintf: Likewise.
32414         * modules/unistdio/u16-vsnprintf: Likewise.
32415         * modules/unistdio/u16-vsprintf: Likewise.
32416         * modules/unistdio/u32-asnprintf: Likewise.
32417         * modules/unistdio/u32-asprintf: Likewise.
32418         * modules/unistdio/u32-snprintf: Likewise.
32419         * modules/unistdio/u32-sprintf: Likewise.
32420         * modules/unistdio/u32-u32-asnprintf: Likewise.
32421         * modules/unistdio/u32-u32-asprintf: Likewise.
32422         * modules/unistdio/u32-u32-snprintf: Likewise.
32423         * modules/unistdio/u32-u32-sprintf: Likewise.
32424         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32425         * modules/unistdio/u32-u32-vasprintf: Likewise.
32426         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32427         * modules/unistdio/u32-u32-vsprintf: Likewise.
32428         * modules/unistdio/u32-vasnprintf: Likewise.
32429         * modules/unistdio/u32-vasprintf: Likewise.
32430         * modules/unistdio/u32-vsnprintf: Likewise.
32431         * modules/unistdio/u32-vsprintf: Likewise.
32432         * modules/unistdio/ulc-asnprintf: Likewise.
32433         * modules/unistdio/ulc-asprintf: Likewise.
32434         * modules/unistdio/ulc-fprintf: Likewise.
32435         * modules/unistdio/ulc-snprintf: Likewise.
32436         * modules/unistdio/ulc-sprintf: Likewise.
32437         * modules/unistdio/ulc-vasnprintf: Likewise.
32438         * modules/unistdio/ulc-vasprintf: Likewise.
32439         * modules/unistdio/ulc-vfprintf: Likewise.
32440         * modules/unistdio/ulc-vsnprintf: Likewise.
32441         * modules/unistdio/ulc-vsprintf: Likewise.
32442         * modules/unistr/u8-check: Likewise.
32443         * modules/unistr/u8-chr: Likewise.
32444         * modules/unistr/u8-cmp: Likewise.
32445         * modules/unistr/u8-cmp2: Likewise.
32446         * modules/unistr/u8-cpy: Likewise.
32447         * modules/unistr/u8-cpy-alloc: Likewise.
32448         * modules/unistr/u8-endswith: Likewise.
32449         * modules/unistr/u8-mblen: Likewise.
32450         * modules/unistr/u8-mbsnlen: Likewise.
32451         * modules/unistr/u8-mbtouc: Likewise.
32452         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32453         * modules/unistr/u8-mbtoucr: Likewise.
32454         * modules/unistr/u8-move: Likewise.
32455         * modules/unistr/u8-next: Likewise.
32456         * modules/unistr/u8-prev: Likewise.
32457         * modules/unistr/u8-set: Likewise.
32458         * modules/unistr/u8-startswith: Likewise.
32459         * modules/unistr/u8-stpcpy: Likewise.
32460         * modules/unistr/u8-stpncpy: Likewise.
32461         * modules/unistr/u8-strcat: Likewise.
32462         * modules/unistr/u8-strchr: Likewise.
32463         * modules/unistr/u8-strcmp: Likewise.
32464         * modules/unistr/u8-strcoll: Likewise.
32465         * modules/unistr/u8-strcpy: Likewise.
32466         * modules/unistr/u8-strcspn: Likewise.
32467         * modules/unistr/u8-strdup: Likewise.
32468         * modules/unistr/u8-strlen: Likewise.
32469         * modules/unistr/u8-strmblen: Likewise.
32470         * modules/unistr/u8-strmbtouc: Likewise.
32471         * modules/unistr/u8-strncat: Likewise.
32472         * modules/unistr/u8-strncmp: Likewise.
32473         * modules/unistr/u8-strncpy: Likewise.
32474         * modules/unistr/u8-strnlen: Likewise.
32475         * modules/unistr/u8-strpbrk: Likewise.
32476         * modules/unistr/u8-strrchr: Likewise.
32477         * modules/unistr/u8-strspn: Likewise.
32478         * modules/unistr/u8-strstr: Likewise.
32479         * modules/unistr/u8-strtok: Likewise.
32480         * modules/unistr/u8-to-u16: Likewise.
32481         * modules/unistr/u8-to-u32: Likewise.
32482         * modules/unistr/u8-uctomb: Likewise.
32483         * modules/unistr/u16-check: Likewise.
32484         * modules/unistr/u16-chr: Likewise.
32485         * modules/unistr/u16-cmp: Likewise.
32486         * modules/unistr/u16-cmp2: Likewise.
32487         * modules/unistr/u16-cpy: Likewise.
32488         * modules/unistr/u16-cpy-alloc: Likewise.
32489         * modules/unistr/u16-endswith: Likewise.
32490         * modules/unistr/u16-mblen: Likewise.
32491         * modules/unistr/u16-mbsnlen: Likewise.
32492         * modules/unistr/u16-mbtouc: Likewise.
32493         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32494         * modules/unistr/u16-mbtoucr: Likewise.
32495         * modules/unistr/u16-move: Likewise.
32496         * modules/unistr/u16-next: Likewise.
32497         * modules/unistr/u16-prev: Likewise.
32498         * modules/unistr/u16-set: Likewise.
32499         * modules/unistr/u16-startswith: Likewise.
32500         * modules/unistr/u16-stpcpy: Likewise.
32501         * modules/unistr/u16-stpncpy: Likewise.
32502         * modules/unistr/u16-strcat: Likewise.
32503         * modules/unistr/u16-strchr: Likewise.
32504         * modules/unistr/u16-strcmp: Likewise.
32505         * modules/unistr/u16-strcoll: Likewise.
32506         * modules/unistr/u16-strcpy: Likewise.
32507         * modules/unistr/u16-strcspn: Likewise.
32508         * modules/unistr/u16-strdup: Likewise.
32509         * modules/unistr/u16-strlen: Likewise.
32510         * modules/unistr/u16-strmblen: Likewise.
32511         * modules/unistr/u16-strmbtouc: Likewise.
32512         * modules/unistr/u16-strncat: Likewise.
32513         * modules/unistr/u16-strncmp: Likewise.
32514         * modules/unistr/u16-strncpy: Likewise.
32515         * modules/unistr/u16-strnlen: Likewise.
32516         * modules/unistr/u16-strpbrk: Likewise.
32517         * modules/unistr/u16-strrchr: Likewise.
32518         * modules/unistr/u16-strspn: Likewise.
32519         * modules/unistr/u16-strstr: Likewise.
32520         * modules/unistr/u16-strtok: Likewise.
32521         * modules/unistr/u16-to-u32: Likewise.
32522         * modules/unistr/u16-to-u8: Likewise.
32523         * modules/unistr/u16-uctomb: Likewise.
32524         * modules/unistr/u32-check: Likewise.
32525         * modules/unistr/u32-chr: Likewise.
32526         * modules/unistr/u32-cmp: Likewise.
32527         * modules/unistr/u32-cmp2: Likewise.
32528         * modules/unistr/u32-cpy: Likewise.
32529         * modules/unistr/u32-cpy-alloc: Likewise.
32530         * modules/unistr/u32-endswith: Likewise.
32531         * modules/unistr/u32-mblen: Likewise.
32532         * modules/unistr/u32-mbsnlen: Likewise.
32533         * modules/unistr/u32-mbtouc: Likewise.
32534         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32535         * modules/unistr/u32-mbtoucr: Likewise.
32536         * modules/unistr/u32-move: Likewise.
32537         * modules/unistr/u32-next: Likewise.
32538         * modules/unistr/u32-prev: Likewise.
32539         * modules/unistr/u32-set: Likewise.
32540         * modules/unistr/u32-startswith: Likewise.
32541         * modules/unistr/u32-stpcpy: Likewise.
32542         * modules/unistr/u32-stpncpy: Likewise.
32543         * modules/unistr/u32-strcat: Likewise.
32544         * modules/unistr/u32-strchr: Likewise.
32545         * modules/unistr/u32-strcmp: Likewise.
32546         * modules/unistr/u32-strcoll: Likewise.
32547         * modules/unistr/u32-strcpy: Likewise.
32548         * modules/unistr/u32-strcspn: Likewise.
32549         * modules/unistr/u32-strdup: Likewise.
32550         * modules/unistr/u32-strlen: Likewise.
32551         * modules/unistr/u32-strmblen: Likewise.
32552         * modules/unistr/u32-strmbtouc: Likewise.
32553         * modules/unistr/u32-strncat: Likewise.
32554         * modules/unistr/u32-strncmp: Likewise.
32555         * modules/unistr/u32-strncpy: Likewise.
32556         * modules/unistr/u32-strnlen: Likewise.
32557         * modules/unistr/u32-strpbrk: Likewise.
32558         * modules/unistr/u32-strrchr: Likewise.
32559         * modules/unistr/u32-strspn: Likewise.
32560         * modules/unistr/u32-strstr: Likewise.
32561         * modules/unistr/u32-strtok: Likewise.
32562         * modules/unistr/u32-to-u16: Likewise.
32563         * modules/unistr/u32-to-u8: Likewise.
32564         * modules/unistr/u32-uctomb: Likewise.
32565         * modules/uniwbrk/u8-wordbreaks: Likewise.
32566         * modules/uniwbrk/u16-wordbreaks: Likewise.
32567         * modules/uniwbrk/u32-wordbreaks: Likewise.
32568         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32569         * modules/uniwbrk/wordbreak-property: Likewise.
32570         * modules/uniwidth/u8-strwidth: Likewise.
32571         * modules/uniwidth/u8-width: Likewise.
32572         * modules/uniwidth/u16-strwidth: Likewise.
32573         * modules/uniwidth/u16-width: Likewise.
32574         * modules/uniwidth/u32-strwidth: Likewise.
32575         * modules/uniwidth/u32-width: Likewise.
32576         * modules/uniwidth/width: Likewise.
32577         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32578         with $(LIBUNISTRING).
32579         * modules/unicase/ignorable-tests: Likewise.
32580         * modules/unicase/locale-language-tests: Likewise.
32581         * modules/unicase/tolower-tests: Likewise.
32582         * modules/unicase/totitle-tests: Likewise.
32583         * modules/unicase/toupper-tests: Likewise.
32584         * modules/unicase/u8-casecmp-tests: Likewise.
32585         * modules/unicase/u8-casecoll-tests: Likewise.
32586         * modules/unicase/u8-casefold-tests: Likewise.
32587         * modules/unicase/u8-is-cased-tests: Likewise.
32588         * modules/unicase/u8-is-casefolded-tests: Likewise.
32589         * modules/unicase/u8-is-lowercase-tests: Likewise.
32590         * modules/unicase/u8-is-titlecase-tests: Likewise.
32591         * modules/unicase/u8-is-uppercase-tests: Likewise.
32592         * modules/unicase/u8-tolower-tests: Likewise.
32593         * modules/unicase/u8-totitle-tests: Likewise.
32594         * modules/unicase/u8-toupper-tests: Likewise.
32595         * modules/unicase/u16-casecmp-tests: Likewise.
32596         * modules/unicase/u16-casecoll-tests: Likewise.
32597         * modules/unicase/u16-casefold-tests: Likewise.
32598         * modules/unicase/u16-is-cased-tests: Likewise.
32599         * modules/unicase/u16-is-casefolded-tests: Likewise.
32600         * modules/unicase/u16-is-lowercase-tests: Likewise.
32601         * modules/unicase/u16-is-titlecase-tests: Likewise.
32602         * modules/unicase/u16-is-uppercase-tests: Likewise.
32603         * modules/unicase/u16-tolower-tests: Likewise.
32604         * modules/unicase/u16-totitle-tests: Likewise.
32605         * modules/unicase/u16-toupper-tests: Likewise.
32606         * modules/unicase/u32-casecmp-tests: Likewise.
32607         * modules/unicase/u32-casecoll-tests: Likewise.
32608         * modules/unicase/u32-casefold-tests: Likewise.
32609         * modules/unicase/u32-is-cased-tests: Likewise.
32610         * modules/unicase/u32-is-casefolded-tests: Likewise.
32611         * modules/unicase/u32-is-lowercase-tests: Likewise.
32612         * modules/unicase/u32-is-titlecase-tests: Likewise.
32613         * modules/unicase/u32-is-uppercase-tests: Likewise.
32614         * modules/unicase/u32-tolower-tests: Likewise.
32615         * modules/unicase/u32-totitle-tests: Likewise.
32616         * modules/unicase/u32-toupper-tests: Likewise.
32617         * modules/unicase/ulc-casecmp-tests: Likewise.
32618         * modules/unicase/ulc-casecoll-tests: Likewise.
32619         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32620         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32621         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32622         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32623         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32624         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32625         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32626         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32627         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32628         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32629         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32630         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32631         * modules/unictype/bidicategory-byname-tests: Likewise.
32632         * modules/unictype/bidicategory-name-tests: Likewise.
32633         * modules/unictype/bidicategory-of-tests: Likewise.
32634         * modules/unictype/bidicategory-test-tests: Likewise.
32635         * modules/unictype/block-list-tests: Likewise.
32636         * modules/unictype/block-of-tests: Likewise.
32637         * modules/unictype/block-test-tests: Likewise.
32638         * modules/unictype/category-C-tests: Likewise.
32639         * modules/unictype/category-Cc-tests: Likewise.
32640         * modules/unictype/category-Cf-tests: Likewise.
32641         * modules/unictype/category-Cn-tests: Likewise.
32642         * modules/unictype/category-Co-tests: Likewise.
32643         * modules/unictype/category-Cs-tests: Likewise.
32644         * modules/unictype/category-L-tests: Likewise.
32645         * modules/unictype/category-Ll-tests: Likewise.
32646         * modules/unictype/category-Lm-tests: Likewise.
32647         * modules/unictype/category-Lo-tests: Likewise.
32648         * modules/unictype/category-Lt-tests: Likewise.
32649         * modules/unictype/category-Lu-tests: Likewise.
32650         * modules/unictype/category-M-tests: Likewise.
32651         * modules/unictype/category-Mc-tests: Likewise.
32652         * modules/unictype/category-Me-tests: Likewise.
32653         * modules/unictype/category-Mn-tests: Likewise.
32654         * modules/unictype/category-N-tests: Likewise.
32655         * modules/unictype/category-Nd-tests: Likewise.
32656         * modules/unictype/category-Nl-tests: Likewise.
32657         * modules/unictype/category-No-tests: Likewise.
32658         * modules/unictype/category-P-tests: Likewise.
32659         * modules/unictype/category-Pc-tests: Likewise.
32660         * modules/unictype/category-Pd-tests: Likewise.
32661         * modules/unictype/category-Pe-tests: Likewise.
32662         * modules/unictype/category-Pf-tests: Likewise.
32663         * modules/unictype/category-Pi-tests: Likewise.
32664         * modules/unictype/category-Po-tests: Likewise.
32665         * modules/unictype/category-Ps-tests: Likewise.
32666         * modules/unictype/category-S-tests: Likewise.
32667         * modules/unictype/category-Sc-tests: Likewise.
32668         * modules/unictype/category-Sk-tests: Likewise.
32669         * modules/unictype/category-Sm-tests: Likewise.
32670         * modules/unictype/category-So-tests: Likewise.
32671         * modules/unictype/category-Z-tests: Likewise.
32672         * modules/unictype/category-Zl-tests: Likewise.
32673         * modules/unictype/category-Zp-tests: Likewise.
32674         * modules/unictype/category-Zs-tests: Likewise.
32675         * modules/unictype/category-and-not-tests: Likewise.
32676         * modules/unictype/category-and-tests: Likewise.
32677         * modules/unictype/category-byname-tests: Likewise.
32678         * modules/unictype/category-name-tests: Likewise.
32679         * modules/unictype/category-none-tests: Likewise.
32680         * modules/unictype/category-of-tests: Likewise.
32681         * modules/unictype/category-or-tests: Likewise.
32682         * modules/unictype/category-test-withtable-tests: Likewise.
32683         * modules/unictype/combining-class-tests: Likewise.
32684         * modules/unictype/ctype-alnum-tests: Likewise.
32685         * modules/unictype/ctype-alpha-tests: Likewise.
32686         * modules/unictype/ctype-blank-tests: Likewise.
32687         * modules/unictype/ctype-cntrl-tests: Likewise.
32688         * modules/unictype/ctype-digit-tests: Likewise.
32689         * modules/unictype/ctype-graph-tests: Likewise.
32690         * modules/unictype/ctype-lower-tests: Likewise.
32691         * modules/unictype/ctype-print-tests: Likewise.
32692         * modules/unictype/ctype-punct-tests: Likewise.
32693         * modules/unictype/ctype-space-tests: Likewise.
32694         * modules/unictype/ctype-upper-tests: Likewise.
32695         * modules/unictype/ctype-xdigit-tests: Likewise.
32696         * modules/unictype/decimal-digit-tests: Likewise.
32697         * modules/unictype/digit-tests: Likewise.
32698         * modules/unictype/mirror-tests: Likewise.
32699         * modules/unictype/numeric-tests: Likewise.
32700         * modules/unictype/property-alphabetic-tests: Likewise.
32701         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32702         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32703         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32704         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32705         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32706         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32707         * modules/unictype/property-bidi-control-tests: Likewise.
32708         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32709         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32710         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32711         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32712         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32713         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32714         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32715         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32716         * modules/unictype/property-bidi-pdf-tests: Likewise.
32717         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32718         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32719         * modules/unictype/property-byname-tests: Likewise.
32720         * modules/unictype/property-combining-tests: Likewise.
32721         * modules/unictype/property-composite-tests: Likewise.
32722         * modules/unictype/property-currency-symbol-tests: Likewise.
32723         * modules/unictype/property-dash-tests: Likewise.
32724         * modules/unictype/property-decimal-digit-tests: Likewise.
32725         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32726         * modules/unictype/property-deprecated-tests: Likewise.
32727         * modules/unictype/property-diacritic-tests: Likewise.
32728         * modules/unictype/property-extender-tests: Likewise.
32729         * modules/unictype/property-format-control-tests: Likewise.
32730         * modules/unictype/property-grapheme-base-tests: Likewise.
32731         * modules/unictype/property-grapheme-extend-tests: Likewise.
32732         * modules/unictype/property-grapheme-link-tests: Likewise.
32733         * modules/unictype/property-hex-digit-tests: Likewise.
32734         * modules/unictype/property-hyphen-tests: Likewise.
32735         * modules/unictype/property-id-continue-tests: Likewise.
32736         * modules/unictype/property-id-start-tests: Likewise.
32737         * modules/unictype/property-ideographic-tests: Likewise.
32738         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32739         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32740         * modules/unictype/property-ignorable-control-tests: Likewise.
32741         * modules/unictype/property-iso-control-tests: Likewise.
32742         * modules/unictype/property-join-control-tests: Likewise.
32743         * modules/unictype/property-left-of-pair-tests: Likewise.
32744         * modules/unictype/property-line-separator-tests: Likewise.
32745         * modules/unictype/property-logical-order-exception-tests: Likewise.
32746         * modules/unictype/property-lowercase-tests: Likewise.
32747         * modules/unictype/property-math-tests: Likewise.
32748         * modules/unictype/property-non-break-tests: Likewise.
32749         * modules/unictype/property-not-a-character-tests: Likewise.
32750         * modules/unictype/property-numeric-tests: Likewise.
32751         * modules/unictype/property-other-alphabetic-tests: Likewise.
32752         * modules/unictype/property-other-default-ignorable-code-point-tests:
32753         Likewise.
32754         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32755         * modules/unictype/property-other-id-continue-tests: Likewise.
32756         * modules/unictype/property-other-id-start-tests: Likewise.
32757         * modules/unictype/property-other-lowercase-tests: Likewise.
32758         * modules/unictype/property-other-math-tests: Likewise.
32759         * modules/unictype/property-other-uppercase-tests: Likewise.
32760         * modules/unictype/property-paired-punctuation-tests: Likewise.
32761         * modules/unictype/property-paragraph-separator-tests: Likewise.
32762         * modules/unictype/property-pattern-syntax-tests: Likewise.
32763         * modules/unictype/property-pattern-white-space-tests: Likewise.
32764         * modules/unictype/property-private-use-tests: Likewise.
32765         * modules/unictype/property-punctuation-tests: Likewise.
32766         * modules/unictype/property-quotation-mark-tests: Likewise.
32767         * modules/unictype/property-radical-tests: Likewise.
32768         * modules/unictype/property-sentence-terminal-tests: Likewise.
32769         * modules/unictype/property-soft-dotted-tests: Likewise.
32770         * modules/unictype/property-space-tests: Likewise.
32771         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32772         * modules/unictype/property-test-tests: Likewise.
32773         * modules/unictype/property-titlecase-tests: Likewise.
32774         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32775         * modules/unictype/property-unified-ideograph-tests: Likewise.
32776         * modules/unictype/property-uppercase-tests: Likewise.
32777         * modules/unictype/property-variation-selector-tests: Likewise.
32778         * modules/unictype/property-white-space-tests: Likewise.
32779         * modules/unictype/property-xid-continue-tests: Likewise.
32780         * modules/unictype/property-xid-start-tests: Likewise.
32781         * modules/unictype/property-zero-width-tests: Likewise.
32782         * modules/unictype/scripts-tests: Likewise.
32783         * modules/unictype/syntax-c-ident-tests: Likewise.
32784         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32785         * modules/unictype/syntax-java-ident-tests: Likewise.
32786         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32787         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32788         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32789         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32790         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32791         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32792         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32793         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32794         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32795         * modules/uniname/uniname-tests: Likewise.
32796         * modules/uninorm/canonical-decomposition-tests: Likewise.
32797         * modules/uninorm/compat-decomposition-tests: Likewise.
32798         * modules/uninorm/composition-tests: Likewise.
32799         * modules/uninorm/decomposing-form-tests: Likewise.
32800         * modules/uninorm/decomposition-tests: Likewise.
32801         * modules/uninorm/filter-tests: Likewise.
32802         * modules/uninorm/nfc-tests: Likewise.
32803         * modules/uninorm/nfd-tests: Likewise.
32804         * modules/uninorm/nfkc-tests: Likewise.
32805         * modules/uninorm/nfkd-tests: Likewise.
32806         * modules/uninorm/u8-normcmp-tests: Likewise.
32807         * modules/uninorm/u8-normcoll-tests: Likewise.
32808         * modules/uninorm/u16-normcmp-tests: Likewise.
32809         * modules/uninorm/u16-normcoll-tests: Likewise.
32810         * modules/uninorm/u32-normcmp-tests: Likewise.
32811         * modules/uninorm/u32-normcoll-tests: Likewise.
32812         * modules/unistdio/u8-asnprintf-tests: Likewise.
32813         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32814         * modules/unistdio/u8-vasprintf-tests: Likewise.
32815         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32816         * modules/unistdio/u8-vsprintf-tests: Likewise.
32817         * modules/unistdio/u16-asnprintf-tests: Likewise.
32818         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32819         * modules/unistdio/u16-vasprintf-tests: Likewise.
32820         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32821         * modules/unistdio/u16-vsprintf-tests: Likewise.
32822         * modules/unistdio/u32-asnprintf-tests: Likewise.
32823         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32824         * modules/unistdio/u32-vasprintf-tests: Likewise.
32825         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32826         * modules/unistdio/u32-vsprintf-tests: Likewise.
32827         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32828         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32829         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32830         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32831         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32832         * modules/unistr/u8-check-tests: Likewise.
32833         * modules/unistr/u8-chr-tests: Likewise.
32834         * modules/unistr/u8-cmp-tests: Likewise.
32835         * modules/unistr/u8-cmp2-tests: Likewise.
32836         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32837         * modules/unistr/u8-cpy-tests: Likewise.
32838         * modules/unistr/u8-mblen-tests: Likewise.
32839         * modules/unistr/u8-mbsnlen-tests: Likewise.
32840         * modules/unistr/u8-mbtouc-tests: Likewise.
32841         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32842         * modules/unistr/u8-mbtoucr-tests: Likewise.
32843         * modules/unistr/u8-move-tests: Likewise.
32844         * modules/unistr/u8-next-tests: Likewise.
32845         * modules/unistr/u8-prev-tests: Likewise.
32846         * modules/unistr/u8-set-tests: Likewise.
32847         * modules/unistr/u8-stpcpy-tests: Likewise.
32848         * modules/unistr/u8-stpncpy-tests: Likewise.
32849         * modules/unistr/u8-strcat-tests: Likewise.
32850         * modules/unistr/u8-strcmp-tests: Likewise.
32851         * modules/unistr/u8-strcoll-tests: Likewise.
32852         * modules/unistr/u8-strcpy-tests: Likewise.
32853         * modules/unistr/u8-strdup-tests: Likewise.
32854         * modules/unistr/u8-strlen-tests: Likewise.
32855         * modules/unistr/u8-strmblen-tests: Likewise.
32856         * modules/unistr/u8-strmbtouc-tests: Likewise.
32857         * modules/unistr/u8-strncat-tests: Likewise.
32858         * modules/unistr/u8-strncmp-tests: Likewise.
32859         * modules/unistr/u8-strncpy-tests: Likewise.
32860         * modules/unistr/u8-strnlen-tests: Likewise.
32861         * modules/unistr/u8-to-u16-tests: Likewise.
32862         * modules/unistr/u8-to-u32-tests: Likewise.
32863         * modules/unistr/u8-uctomb-tests: Likewise.
32864         * modules/unistr/u16-check-tests: Likewise.
32865         * modules/unistr/u16-chr-tests: Likewise.
32866         * modules/unistr/u16-cmp-tests: Likewise.
32867         * modules/unistr/u16-cmp2-tests: Likewise.
32868         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32869         * modules/unistr/u16-cpy-tests: Likewise.
32870         * modules/unistr/u16-mblen-tests: Likewise.
32871         * modules/unistr/u16-mbsnlen-tests: Likewise.
32872         * modules/unistr/u16-mbtouc-tests: Likewise.
32873         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32874         * modules/unistr/u16-mbtoucr-tests: Likewise.
32875         * modules/unistr/u16-move-tests: Likewise.
32876         * modules/unistr/u16-next-tests: Likewise.
32877         * modules/unistr/u16-prev-tests: Likewise.
32878         * modules/unistr/u16-set-tests: Likewise.
32879         * modules/unistr/u16-stpcpy-tests: Likewise.
32880         * modules/unistr/u16-stpncpy-tests: Likewise.
32881         * modules/unistr/u16-strcat-tests: Likewise.
32882         * modules/unistr/u16-strcmp-tests: Likewise.
32883         * modules/unistr/u16-strcoll-tests: Likewise.
32884         * modules/unistr/u16-strcpy-tests: Likewise.
32885         * modules/unistr/u16-strdup-tests: Likewise.
32886         * modules/unistr/u16-strlen-tests: Likewise.
32887         * modules/unistr/u16-strmblen-tests: Likewise.
32888         * modules/unistr/u16-strmbtouc-tests: Likewise.
32889         * modules/unistr/u16-strncat-tests: Likewise.
32890         * modules/unistr/u16-strncmp-tests: Likewise.
32891         * modules/unistr/u16-strncpy-tests: Likewise.
32892         * modules/unistr/u16-strnlen-tests: Likewise.
32893         * modules/unistr/u16-to-u32-tests: Likewise.
32894         * modules/unistr/u16-to-u8-tests: Likewise.
32895         * modules/unistr/u16-uctomb-tests: Likewise.
32896         * modules/unistr/u32-check-tests: Likewise.
32897         * modules/unistr/u32-chr-tests: Likewise.
32898         * modules/unistr/u32-cmp-tests: Likewise.
32899         * modules/unistr/u32-cmp2-tests: Likewise.
32900         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32901         * modules/unistr/u32-cpy-tests: Likewise.
32902         * modules/unistr/u32-mblen-tests: Likewise.
32903         * modules/unistr/u32-mbsnlen-tests: Likewise.
32904         * modules/unistr/u32-mbtouc-tests: Likewise.
32905         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32906         * modules/unistr/u32-mbtoucr-tests: Likewise.
32907         * modules/unistr/u32-move-tests: Likewise.
32908         * modules/unistr/u32-next-tests: Likewise.
32909         * modules/unistr/u32-prev-tests: Likewise.
32910         * modules/unistr/u32-set-tests: Likewise.
32911         * modules/unistr/u32-stpcpy-tests: Likewise.
32912         * modules/unistr/u32-stpncpy-tests: Likewise.
32913         * modules/unistr/u32-strcat-tests: Likewise.
32914         * modules/unistr/u32-strcmp-tests: Likewise.
32915         * modules/unistr/u32-strcoll-tests: Likewise.
32916         * modules/unistr/u32-strcpy-tests: Likewise.
32917         * modules/unistr/u32-strdup-tests: Likewise.
32918         * modules/unistr/u32-strlen-tests: Likewise.
32919         * modules/unistr/u32-strmblen-tests: Likewise.
32920         * modules/unistr/u32-strmbtouc-tests: Likewise.
32921         * modules/unistr/u32-strncat-tests: Likewise.
32922         * modules/unistr/u32-strncmp-tests: Likewise.
32923         * modules/unistr/u32-strncpy-tests: Likewise.
32924         * modules/unistr/u32-strnlen-tests: Likewise.
32925         * modules/unistr/u32-to-u16-tests: Likewise.
32926         * modules/unistr/u32-to-u8-tests: Likewise.
32927         * modules/unistr/u32-uctomb-tests: Likewise.
32928         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32929         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32930         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32931         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32932         * modules/uniwidth/u8-strwidth-tests: Likewise.
32933         * modules/uniwidth/u8-width-tests: Likewise.
32934         * modules/uniwidth/u16-strwidth-tests: Likewise.
32935         * modules/uniwidth/u16-width-tests: Likewise.
32936         * modules/uniwidth/u32-strwidth-tests: Likewise.
32937         * modules/uniwidth/u32-width-tests: Likewise.
32938         * modules/uniwidth/width-tests: Likewise.
32939
32940 2010-05-18  Richard Jones  <rjones@redhat.com>
32941
32942         doc: users.txt: list hivex
32943         * users.txt: Add hivex.
32944
32945 2010-05-18  Richard Jones  <rjones@redhat.com>
32946
32947         doc: users.txt: list febootstrap
32948         * users.txt: Add febootstrap.
32949
32950 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32951
32952         bootstrap: fix an error when gnulib is not used as a git submodule
32953         * build-aux/bootstrap (gnulib_path): If its length is zero then
32954         assign "gnulib" to it.
32955         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32956
32957 2010-05-16  Bruno Haible  <bruno@clisp.org>
32958
32959         Avoid autoconf warnings about AM_ICONV.
32960         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32961         2.64.
32962
32963 2010-05-16  Bruno Haible  <bruno@clisp.org>
32964
32965         absolute-header: Make the macro usable in more situations.
32966         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32967         from gl_ABSOLUTE_HEADER.
32968         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32969
32970 2010-05-16  James Youngman  <jay@gnu.org>
32971
32972         doc: update users.txt
32973         * users.txt: Add CSSC.
32974
32975 2010-05-16  Jim Meyering  <meyering@redhat.com>
32976
32977         init.sh: fix an error in the previous change; add more comments
32978         * tests/init.sh: Compare exit code in loop against 9, not 2.
32979         Patch by Bruno Haible.
32980         Make the two tests more similar by adding an empty "then" clause.
32981         Add comments.
32982
32983         init.sh: avoid unnecessary shell re-exec
32984         * tests/init.sh: Improve the re-exec-required check to first test the
32985         current shell.  If it passes the test, do not search for a shell that
32986         does pass, and do not re-exec.  This test is particularly contorted to
32987         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32988         of $(...) evokes a syntax error and causes immediate shell exit with
32989         status 2.  Bruno Haible reported that the re-exec made it impossible
32990         to single-step through any init.sh-using script.
32991
32992 2010-05-16  Bruno Haible  <bruno@clisp.org>
32993
32994         Fix collision between gnulib's and libintl's printf replacements.
32995         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32996         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32997         (printf): When using GNU C, map the __printf__ function to rpl_printf
32998         via __asm__. When not using GNU C, define rpl_printf instead of
32999         __printf__.
33000         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33001         commit.
33002         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33003         commit.
33004         * m4/asm-underscore.m4: New file.
33005         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33006         * modules/stdio (Files): Add m4/asm-underscore.m4.
33007         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33008         Reported by Ben Pfaff.
33009
33010 2010-05-16  Bruno Haible  <bruno@clisp.org>
33011
33012         verify: Avoid skipping the test on openSUSE 11.0.
33013         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33014
33015 2010-05-13  Bruno Haible  <bruno@clisp.org>
33016
33017         Avoid useless warnings from G++.
33018         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33019         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33020         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33021
33022 2010-05-11  Jim Meyering  <meyering@redhat.com>
33023
33024         maint.mk: tweak preceding change
33025         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33026         regexps tighter by anchoring at EOL, and make the new group "shy"
33027         for slightly decreased overhead.
33028
33029 2010-05-11  Eric Blake  <eblake@redhat.com>
33030
33031         maint.mk: gnulib doesn't guarantee NSIG
33032         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33033
33034 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33035
33036         test-pwrite.c: Remove unused variable declaration.
33037         * tests/test-pwrite.c (main): Remove read_buf declaration.
33038
33039         Remove useless test-pwrite.sh file.
33040         * tests/test-pwrite.sh: Delete file.
33041         * modules/pwrite-tests: Remove references.
33042         Reported by Bruno Haible.
33043
33044 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33045
33046         init.sh: fix a typo
33047         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33048
33049 2010-05-10  Jim Meyering  <meyering@redhat.com>
33050
33051         maint.mk: avoid using a temporary file in the always-defined-macros check
33052         * top/maint.mk (.re-defmac): Remove rule.
33053         (gl_trap_): Remove definition.
33054         (sc_prohibit_always-defined_macros): Rewrite not to create and
33055         depend on a temporary file.  Instead, depend on GNU grep's ability
33056         to read a list of regular expressions from stdin when given "-f -".
33057
33058 2010-05-09  Bruno Haible  <bruno@clisp.org>
33059
33060         Update to GNU gettext 0.18, part 1.
33061         * m4/gettext.m4: Update to GNU gettext 0.18.
33062         * m4/intl.m4: Likewise.
33063         * m4/po.m4: Likewise.
33064         * modules/gettext (Files): Add m4/fcntl-o.m4.
33065         (configure.ac): Require gettext infrastructure from version 0.18.
33066
33067 2010-05-09  Jim Meyering  <meyering@redhat.com>
33068
33069         init.sh: enable MALLOC_PERTURB_
33070         * tests/init.sh: Enable glibc's malloc-perturbing option.
33071
33072         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33073         With my recent change in init.sh from the two-line form:
33074             -#   : ${srcdir=.}
33075             -#   . "$srcdir/init.sh"; path_prepend_ .
33076             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33077         I noticed that using the one-line form would cause this test
33078         to fail with a false-positive, or to stop working altogether,
33079         depending on whether help-version changed or all the tests did.
33080         * top/maint.mk (_hv_regex): Remove this definition.
33081         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33082         (_hv_regex_strong): Use a stronger regex to check for conformance.
33083         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33084         Give a separate diagnostic for lack of conforming use.
33085
33086         maint.mk: prohibit definition of symbols defined by gnulib
33087         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33088         definition of symbols defined by gnulib.
33089
33090 2010-05-09  Bruno Haible  <bruno@clisp.org>
33091
33092         acl: Avoid test failure on Cygwin-hosted mingw.
33093         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33094
33095 2010-05-09  Bruno Haible  <bruno@clisp.org>
33096
33097         error: Use system's fcntl function.
33098         * lib/error.c (fcntl): Undefine.
33099
33100 2010-05-09  Jim Meyering  <meyering@redhat.com>
33101
33102         verify: adjust formatting to be more consistent
33103         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33104         argument-list '('s, and after one comma.
33105
33106 2010-05-09  Bruno Haible  <bruno@clisp.org>
33107
33108         error: More reliable output on mingw.
33109         * lib/error.c: Include <windows.h>.
33110         (is_open): New function.
33111         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33112         defined.
33113
33114 2010-05-09  Bruno Haible  <bruno@clisp.org>
33115
33116         vasnprintf: Fix syntax errors in libintl build on mingw.
33117         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33118         pad_ourselves and prec_ourselves after use.
33119
33120 2010-05-08  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/config.charset: Update comments for Cygwin 1.7.
33123         * lib/localcharset.c: Likewise.
33124
33125 2010-05-07  Jim Meyering  <meyering@redhat.com>
33126
33127         init.sh: improve comments
33128         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33129         . "${srcdir=.}/init.sh"; path_prepend_ .
33130         Add a note about path_prepend_ and the alternative of using
33131         TESTS_ENVIRONMENT.
33132
33133 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33134
33135         exclude: Unescape hashed patterns in wildcard mode.
33136         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33137         to the hash list.
33138         * tests/test-exclude8.sh: New test case.
33139         * modules/exclude-tests: Add new test.
33140
33141 2010-05-05  Eric Blake  <eblake@redhat.com>
33142
33143         verify: automate tests
33144         * modules/verify-tests: New module.
33145         * tests/test-verify.sh: New file.
33146         * tests/test-verify.c: Guard each negative test with a unique id.
33147         Also avoid warning about unused left hand of comma expressions.
33148
33149 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33150
33151         Further improvements to verify.h, suggested by Eric Blake.
33152         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33153         the GL_* versions, to avoid collision with OpenGL.
33154         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33155         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33156         than testing merely whether it's defined.
33157
33158         Modify verify.h to pacify gcc -Wredundant_decls.
33159         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33160         These use the prefix "GL_" since they're likely to be useful elsewhere.
33161         We may need to break them out into a different .h file.
33162         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33163         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33164         of verify_function__.
33165
33166 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33167
33168         Tests for module pwrite.
33169         * modules/pwrite-tests: New file.
33170         * tests/test-pwrite.sh: New file.
33171         * tests/test-pwrite.c: New file.
33172
33173         New module pwrite.
33174         * lib/unistd.in.h (pwrite): New declaration.
33175         * lib/pwrite.c: New file, from glibc with modifications.
33176         * m4/pwrite.m4: New file.
33177         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33178         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33179         REPLACE_PWRITE.
33180         * modules/pwrite: New file.
33181         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33182         REPLACE_PWRITE.
33183         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33184         * doc/posix-functions/pwrite.texi: Mention the new module.
33185
33186 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33187
33188         pread: Update documentation.
33189         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33190
33191 2010-05-04  Eric Blake  <eblake@redhat.com>
33192
33193         docs: update cygwin progress
33194         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33195         this bug.
33196         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33197         Added in cygwin 1.7.2.
33198         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33199         Likewise.
33200         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33201         Likewise.
33202         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33203         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33204         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33205         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33206         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33207         Mention nproc module.
33208         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33209         bug in cygwin 1.7.5 addition.
33210         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33211         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33212         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33213         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33214         1.7.5.
33215         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33216         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33217         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33218         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33219         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33220         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33221         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33222         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33223         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33224         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33225         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33226         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33227         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33228         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33229         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33230         Likewise.
33231         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33232         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33233         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33234         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33235         Likewise.
33236         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33237         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33238         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33239         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33240         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33241         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33242         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33243         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33244         Likewise.
33245         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33246         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33247         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33248         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33249         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33250         Likewise.
33251         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33252         Likewise.
33253         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33254         Likewise.
33255         * doc/glibc-functions/xdrrec_endofrecord.texi
33256         (xdrrec_endofrecord): Likewise.
33257         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33258         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33259         Likewise.
33260         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33261         Likewise.
33262
33263 2010-05-04  Jim Meyering  <meyering@redhat.com>
33264
33265         gendocs.sh: make its "-s FILE" option more useful
33266         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33267         $PACKAGE to reflect the probably-different basename of "FILE".
33268
33269 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33270
33271         bootstrap: don't ignore download_po_files failure
33272         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33273         failure.
33274
33275 2010-05-03  Jim Meyering  <meyering@redhat.com>
33276
33277         maint.mk: allow to pass options to gendocs.sh
33278         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33279         (gendocs_options_): New overridable variable.
33280
33281         gnu-web-doc-update: don't ignore configure or build failure
33282         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33283
33284         announce-gen: backslash-escape '@'s in --help output
33285         * build-aux/announce-gen: Fix syntax errors.
33286
33287         maint.mk, announce-gen: allow project-specific announcement mail headers
33288         * top/maint.mk (translation_project_): Define default.
33289         (announcement_Cc_, announcement_mail_headers_): Likewise.
33290         (announcement): Invoke announce-gen with new --mail-headers option.
33291         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33292
33293         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33294         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33295         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33296         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33297         line in the "err2" output file when running "make check" in verbose
33298         mode (i.e., with set -x enabled).
33299
33300 2010-05-03  Bruno Haible  <bruno@clisp.org>
33301
33302         wctob: Fix for weird platforms.
33303         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33304         argument value.
33305
33306 2010-05-03  Jim Meyering  <meyering@redhat.com>
33307
33308         maint.mk: prohibit unwarranted use of <strings.h>
33309         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33310         strings.h in a file that does not also use strcasecmp, strncasecmp,
33311         ffs or ffsll.
33312
33313         maint.mk: remove obsolete comments
33314         * top/maint.mk: Remove stale, commented-out rules.
33315
33316 2010-05-02  Bruno Haible  <bruno@clisp.org>
33317
33318         wcwidth: Declare also when it's aliased.
33319         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33320         macro.
33321
33322 2010-05-02  Bruno Haible  <bruno@clisp.org>
33323
33324         Fix regression from 2010-04-25.
33325         * gnulib-tool (func_modules_transitive_closure): Check the status of
33326         all modules, not only of the tests that are of the form foo-tests where
33327         foo is a module.
33328
33329 2010-05-02  Bruno Haible  <bruno@clisp.org>
33330
33331         wctob: Work around nasty Cygwin 1.7.2 bug.
33332         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33333         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33334
33335 2010-05-01  Bruno Haible  <bruno@clisp.org>
33336
33337         fpurge: Sharper test.
33338         * tests/test-fpurge.c (main): Add one more ftell check.
33339         * modules/fpurge-tests (Depends-on): Add ftell.
33340         Suggested by Eric Blake.
33341
33342 2010-05-01  Bruno Haible  <bruno@clisp.org>
33343
33344         ftello: Another test.
33345         * tests/test-ftello3.c: New file.
33346         * modules/ftello-tests (Files): Add it.
33347         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33348         MOSTLYCLEANFILES.
33349
33350         ftell: Another test.
33351         * tests/test-ftell3.c: New file.
33352         * modules/ftell-tests (Files): Add it.
33353         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33354         MOSTLYCLEANFILES.
33355
33356 2010-05-01  Bruno Haible  <bruno@clisp.org>
33357
33358         ftell, ftello: Work around Solaris bug.
33359         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33360         * lib/ftello.c: Include stdio-impl.h.
33361         (ftello): On Solaris, when _IOWRT is set, compute the result without
33362         looking at _IOREAD.
33363         * modules/ftello (Files): Add lib/stdio-impl.h.
33364         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33365         * doc/posix-functions/ftello.texi: Likewise.
33366         Reported by Eric Blake.
33367
33368 2010-05-01  Bruno Haible  <bruno@clisp.org>
33369
33370         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33371         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33372         the _IOWRT flag is also set.
33373
33374 2010-05-01  Bruno Haible  <bruno@clisp.org>
33375
33376         Fix doc about a HP-UX stdio bug.
33377         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33378         * doc/posix-functions/ftello.texi: Likewise.
33379
33380 2010-05-01  Bruno Haible  <bruno@clisp.org>
33381
33382         lseek test: Fix failure on Solaris.
33383         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33384         output.
33385
33386 2010-04-30  Jim Meyering  <meyering@redhat.com>
33387
33388         bootstrap: don't ignore failure to generate po*/Makevars
33389         * build-aux/bootstrap (with_gettext): Don't ignore failure
33390         to create po/Makevars or runtime-po/Makevars.
33391
33392 2010-04-29  Eric Blake  <eblake@redhat.com>
33393
33394         headers: relax license to LGPLv2+
33395         * modules/fcntl-h (License): Relax license.
33396         * modules/getopt-posix (License): Likewise.
33397         * modules/locale (License): Likewise.
33398         * modules/math (License): Likewise.
33399         * modules/pty (License): Likewise.
33400         * modules/sched (License): Likewise.
33401         * modules/search (License): Likewise.
33402         * modules/spawn (License): Likewise.
33403         * modules/stdarg (License): Likewise.
33404         * modules/sysexits (License): Likewise.
33405
33406 2010-04-29  Jim Meyering  <meyering@redhat.com>
33407
33408         inttypes: relax license to LGPLv2+
33409         * modules/inttypes (License): Relax license.
33410
33411 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33412
33413         * top/maint.mk (indent): Run twice to produce idempotent results.
33414
33415 2010-04-28  Bruno Haible  <bruno@clisp.org>
33416
33417         getdate: Generate getdate.c in the source directory.
33418         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33419         MOSTLYCLEANFILES.
33420         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33421
33422 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33423
33424         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33425         is not declared as a const *; avoid warnings in that case.
33426
33427 2010-04-28  Eric Blake  <eblake@redhat.com>
33428
33429         canonicalize-lgpl: avoid compiler warning
33430         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33431         declaration' / 'extraneous semicolon' warning with some compilers.
33432         Reported by Andreas Gruenbacher.
33433
33434 2010-04-28  Jim Meyering  <meyering@redhat.com>
33435
33436         init.sh: ensure a more reliable exit status when exiting via trap
33437         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33438         Inspired by patches from Dmitry V. Levin.
33439         Also trap on signal 3 (SIGQUIT).
33440
33441 2010-04-27  Bruno Haible  <bruno@clisp.org>
33442
33443         Update doc about utimes().
33444         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33445         'utimens' module.
33446         Reported by Andreas Gruenbacher <agruen@suse.de>.
33447
33448 2010-04-27  Eric Blake  <eblake@redhat.com>
33449
33450         full-read, full-write: relax license
33451         * modules/full-read (License): Drop to LGPLv2+.
33452         * modules/full-write (License): Likewise.
33453         * modules/safe-read (License): Likewise.
33454         * modules/safe-write (License): Likewise.
33455
33456         pthread: mention library for linking
33457         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33458
33459 2010-04-27  Jim Meyering  <meyering@redhat.com>
33460
33461         maint.mk: fix a bug introduced in last change
33462         * top/maint.mk (gl_assured_headers_): Now that all names are on
33463         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33464         is not anchored to end of word, it should be adequate.
33465
33466         maint.mk: avoid side-effect in latest syntax-check
33467         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33468         to run commands via $(shell...), and hence to incur cost only when
33469         the new rule is actually run.
33470
33471         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33472         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33473         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33474         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33475         (gl_assured_headers_, az_, AZ_): Define.
33476         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33477
33478 2010-04-26  Jim Meyering  <jim@meyering.net>
33479             Bruno Haible  <bruno@clisp.org>
33480
33481         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33482         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33483         Prompted by an exchange with Gilles Espinasse.
33484
33485 2010-04-26  Jim Meyering  <meyering@redhat.com>
33486
33487         git-version-gen: aesthetic tweak
33488         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33489         so that the command remains on a single line.
33490
33491 2010-04-26  Eric Blake  <eblake@redhat.com>
33492
33493         git-version-gen: allow use on EBCDIC hosts
33494         * build-aux/git-version-gen (dirty): Use literal rather than tying
33495         ourselves to ascii.
33496         Reported by Steve Goetze.
33497
33498 2010-04-25  Bruno Haible  <bruno@clisp.org>
33499
33500         netdb: Add support for GNULIB_POSIXCHECK.
33501         * lib/netdb.in.h: Include warn-on-use.h.
33502         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33503         functions are used when GNULIB_POSIXCHECK is defined and the
33504         getaddrinfo module is not in use.
33505         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33506         freeaddrinfo, gai_strerror, getnameinfo are declared.
33507         * modules/netdb (Depends-on): Add warn-on-use.
33508         (Makefile.am): Include warn-on-use.h in netdb.h.
33509
33510 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33511
33512         build: avoid "make check" failure without .git/ directory
33513         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33514         there is no .git/ directory.
33515
33516 2010-04-25  Bruno Haible  <bruno@clisp.org>
33517
33518         ptsname: Fix misuse of ttyname_r.
33519         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33520         of errno.
33521
33522 2010-04-25  Bruno Haible  <bruno@clisp.org>
33523
33524         ttyname_r: Make it work on Solaris 10.
33525         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33526         if the system function has the POSIX declaration. Test whether the
33527         function fails if the buffer is less than 128 bytes large.
33528         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33529         system's ttyname_r function. Provide a reasonably large buffer.
33530         * modules/ttyname_r (Depends-on): Add extensions.
33531         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33532
33533 2010-04-25  Bruno Haible  <bruno@clisp.org>
33534
33535         Use the 'extensions' module for some more functions on Solaris.
33536         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33537         module.
33538         * doc/posix-functions/ctime_r.texi: Likewise.
33539         * doc/posix-functions/getgrgid_r.texi: Likewise.
33540         * doc/posix-functions/getgrnam_r.texi: Likewise.
33541         * doc/posix-functions/getpwnam_r.texi: Likewise.
33542         * doc/posix-functions/getpwuid_r.texi: Likewise.
33543         * doc/posix-functions/readdir_r.texi: Likewise.
33544         * doc/posix-functions/sigwait.texi: Likewise.
33545         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33546         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33547
33548 2010-04-25  Bruno Haible  <bruno@clisp.org>
33549
33550         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33551         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33552         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33553         * lib/ttyname_r.c: Include <limits.h>.
33554         (ttyname_r): Define using the system's ttyname_r function, if it exists
33555         and not on Solaris.
33556         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33557         set.
33558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33559         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33560         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33561         Reported by Simon Josefsson.
33562
33563 2010-04-25  Bruno Haible  <bruno@clisp.org>
33564
33565         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33566         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33567         * doc/posix-functions/ctime_r.texi: Likewise.
33568         * doc/posix-functions/getgrgid_r.texi: Likewise.
33569         * doc/posix-functions/getgrnam_r.texi: Likewise.
33570         * doc/posix-functions/getlogin_r.texi: Likewise.
33571         * doc/posix-functions/getpwnam_r.texi: Likewise.
33572         * doc/posix-functions/getpwuid_r.texi: Likewise.
33573         * doc/posix-functions/readdir_r.texi: Likewise.
33574         * doc/posix-functions/sigwait.texi: Likewise.
33575         * doc/posix-functions/ttyname_r.texi: Likewise.
33576         Reported by Simon Josefsson.
33577
33578 2010-04-25  Bruno Haible  <bruno@clisp.org>
33579
33580         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33581         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33582         also to --create-testdir.
33583         (func_acceptable): Don't consider the status of *-tests modules here.
33584         (func_modules_transitive_closure): Consider it here, before including a
33585         test module.
33586         (func_import, func_create_testdir): Set inc_all_direct_tests,
33587         inc_all_indirect_tests.
33588         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33589         --create-testdir and --create-megatestdir.
33590
33591 2010-04-25  Bruno Haible  <bruno@clisp.org>
33592
33593         gnulib-tool: Add --without-*-tests options.
33594         * gnulib-tool (func_usage): Document the --without-*-tests options.
33595         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33596         excl_unportable_tests): New variables.
33597         Fail if they are specified with --import or --update.
33598         (func_acceptable): Respect the excl_*_tests variables.
33599         (func_import): Set the excl_*_tests variables to empty.
33600
33601 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33602             Bruno Haible  <bruno@clisp.org>
33603
33604         Work around a MacOS X 10.4 bug with openpty.
33605         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33606         * tests/test-openpty.c (main): Close the master side explicitly.
33607
33608 2010-04-25  Bruno Haible  <bruno@clisp.org>
33609
33610         strnlen: Fix a C++ test error on MacOS X and Solaris.
33611         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33612         the function is not declared.
33613         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33614         Simon Josefsson.
33615
33616 2010-04-24  Bruno Haible  <bruno@clisp.org>
33617
33618         Avoid a gcc warning.
33619         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33620         of correct type for %08lx directive.
33621         Reported by Eric Blake.
33622
33623 2010-04-24  Bruno Haible  <bruno@clisp.org>
33624
33625         vasnprintf: Correct errno value in case of out-of-memory.
33626         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33627         or sprintf. Use the errno value from SNPRINTF or sprintf.
33628         Reported by Ian Beckwith <ianb@erislabs.net>.
33629
33630 2010-04-24  Bruno Haible  <bruno@clisp.org>
33631
33632         ansi-c++-opt: Find correct compiler when cross-compiling.
33633         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33634         AC_CHECK_PROGS.
33635         Reported by Simon Josefsson.
33636
33637 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33638
33639         vc-list-files: Add support for subversion
33640         * build-aux/vc-list-files: Use "svn list" to generate the list of
33641         files controlled by subversion.
33642
33643 2010-04-23  Jim Meyering  <meyering@redhat.com>
33644
33645         vc-list-files tests: convert to use init.sh
33646         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33647         path_prepend_.
33648         Use Exit, not exit.
33649         Use skip_ rather than open coding it.
33650         Remove trap set-up and compare definitions.
33651         * tests/test-vc-list-files-git.sh: Likewise.
33652         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33653
33654 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33655
33656         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33657         backup files.
33658
33659 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33660
33661         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33662
33663 2010-04-20  Eric Blake  <eblake@redhat.com>
33664
33665         tests: be robust to ignored SIGPIPE
33666         * tests/test-select-in.sh: Consume all output.
33667         * tests/test-lseek.sh: Check correct exit status, while avoiding
33668         EPIPE.
33669
33670 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33671             Bruno Haible  <bruno@clisp.org>
33672
33673         visibility: Don't use -fvisibility if it leads to a warning.
33674         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33675         yes, don't pretend that visibility works if it leads to a warning.
33676         Reported by Mike Gran <spk121@yahoo.com>.
33677
33678 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33679
33680         * build-aux/bootstrap: Use "git -h" for testing for supported options
33681         instead of "git --help".  The short-form option only shows a summary,
33682         and doesn't layout the full man page.  Grep for the full option name
33683         in the summary, too.
33684
33685 2010-04-19  Bruno Haible  <bruno@clisp.org>
33686
33687         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33688         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33689         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33690         mention of RELOCATABLE_STRIP.
33691         Reported by Sylvain Beucler <beuc@beuc.net>.
33692
33693 2010-04-19  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/diffseq.h: Fix typo in comment.
33696         Reported by Eric Blake.
33697
33698 2010-04-19  Bruno Haible  <bruno@clisp.org>
33699
33700         ioctl: Move autoconf macro to a .m4 file.
33701         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33702         * modules/ioctl (Files): Add it.
33703         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33704         Reported by Ian Beckwith <ianb@erislabs.net>.
33705
33706 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33707             Bruno Haible  <bruno@clisp.org>
33708
33709         diffseq: Accommodate use-case with abstract arrays.
33710         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33711         is not defined.
33712         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33713         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33714
33715 2010-04-18  Bruno Haible  <bruno@clisp.org>
33716
33717         * doc/posix-headers/stdbool.texi: More precise wording.
33718
33719 2010-04-17  Jim Meyering  <meyering@redhat.com>
33720
33721         maint.mk: use gnu-style indentation in an embedded perl script
33722         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33723         Rename variable: s/two/last_two_bytes/
33724
33725 2010-04-16  Eric Blake  <eblake@redhat.com>
33726
33727         test-stdbool: skip test that fails with Solaris CC
33728         * tests/test-stdbool.c (f): Skip test that causes compilation
33729         error under buggy C++ compiler.
33730         * lib/stdbool.in.h: Document the limitation.
33731         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33732
33733         setenv: allow compilation with C++
33734         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33735         register keyword.
33736
33737         stdint: allow test to pass with C++
33738         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33739
33740         getopt: allow compilation with C++
33741         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33742         struct.
33743         * lib/getopt.c (_getopt_internal_r): Use correct type.
33744         Reported by Dagobert Michelson, via Joel E. Denny.
33745
33746 2010-04-16  Bruno Haible  <bruno@clisp.org>
33747
33748         Override netdb.h always.
33749         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33750         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33751         Reported by Ludovic Courtès <ludo@gnu.org>.
33752
33753 2010-04-15  Bruno Haible  <bruno@clisp.org>
33754
33755         openpty: Fix mistake from 2010-03-21.
33756         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33757         Reported by Simon Josefsson.
33758
33759 2010-04-15  Eric Blake  <eblake@redhat.com>
33760
33761         test-forkpty: fix expected signature
33762         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33763         Reported by Simon Josefsson.
33764
33765 2010-04-15  Jim Meyering  <meyering@redhat.com>
33766
33767         maint.mk: texinfo_suffix_re_: correct the default regexp
33768         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33769
33770         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33771         make it configurable via texinfo_suffix_re_.
33772
33773 2010-04-14  Eric Blake  <eblake@redhat.com>
33774
33775         strtok_r: relax license to LGPLv2+
33776         * modules/strtok_r (License): Relax license.
33777         Reported by Matthias Bolte.
33778
33779 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33780
33781         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33782         version 1.4.4 by default instead of requiring the libgcrypt
33783         version used during build.  This makes it possible to use the
33784         application with older but still binary compatible libgcrypt
33785         versions.
33786
33787 2010-04-13  Eric Blake  <eblake@redhat.com>
33788
33789         getopt-gnu: match recent glibc fixes and posix ruling
33790         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33791         '+' handling, when requesting extensions.
33792         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33793         'W;' handling.
33794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33795         * doc/posix-functions/getopt.texi (getopt): Document this.
33796         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33797         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33798         Likewise.
33799
33800         getopt: merge bug fixes from glibc
33801         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33802         diagnostics.  Honor '+:' correctly.  Reject ';'.
33803
33804         getopt-posix: detect MacOS bug
33805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33806         optind when missing a required argument.
33807         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33808         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33809         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33810         Likewise.
33811
33812         getopt-posix: avoid spurious failure on Solaris
33813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33814         an indicator that setting optind=1 is sufficient for reset.
33815
33816         getopt-posix: avoid spurious failure on FreeBSD
33817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33818         in POSIX mode, since the m4 test uses it.
33819
33820         gnulib-tool: silence warning on BSD sh
33821         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33822
33823 2010-04-13  Jim Meyering  <meyering@redhat.com>
33824
33825         doc: users.txt: GNU patch now uses gnulib
33826         * users.txt: Add patch.
33827
33828 2010-04-12  Jim Meyering  <meyering@redhat.com>
33829
33830         maint.mk: generate more concise timing data for syntax-check rules
33831         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33832         " done" from each line that reports a syntax-check test duration.
33833
33834 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33835
33836         git-version-gen: use "git update-index..." rather than "git status"
33837         * build-aux/git-version-gen: Use git update-index --refresh, not
33838         "git status".  With some versions of git, "git status" would fail
33839         to update the index and result in an unwarranted "-dirty" suffix.
33840
33841 2010-04-11  Jim Meyering  <meyering@redhat.com>
33842
33843         openat: correct formatting (no semantic change)
33844         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33845         Suggested by Bruno Haible.
33846
33847 2010-04-11  Bruno Haible  <bruno@clisp.org>
33848
33849         Stricter declaration checking in testdirs.
33850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33851         If for_tests is true, augment AM_CPPFLAGS to define
33852         GNULIB_STRICT_CHECKING.
33853         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33854         GNULIB_STRICT_CHECKING is defined, verify that the function is
33855         declared.
33856
33857 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33858             Bruno Haible  <bruno@clisp.org>
33859
33860         libunistring: Improve configure output.
33861         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33862         Don't say "consider installing GNU libunistring" when checking again
33863         with libiconv.
33864
33865 2010-04-11  Bruno Haible  <bruno@clisp.org>
33866
33867         libunistring: Correct value of $LTLIBUNISTRING.
33868         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33869         correct the value of $LTLIBUNISTRING.
33870
33871 2010-04-11  Bruno Haible  <bruno@clisp.org>
33872
33873         havelib: Add static libraries to LIBS in the right order.
33874         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33875         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33876
33877 2010-04-11  Bruno Haible  <bruno@clisp.org>
33878
33879         libunistring: Detect libunistring also when it depends on libiconv.
33880         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33881         the second AC_LIB_HAVE_LINKFLAGS invocation.
33882
33883 2010-04-11  James Youngman  <jay@gnu.org>
33884
33885         close-stream: declare local scalars to be "const"
33886         * lib/close-stream.c (close_stream): Make boolean variables const
33887         to document the fact that we set but do not change them.
33888
33889 2010-04-11  Bruno Haible  <bruno@clisp.org>
33890
33891         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33892
33893 2010-04-11  Jim Meyering  <meyering@redhat.com>
33894
33895         maint.mk: don't include dist-check.mk
33896         * top/maint.mk: Remove bogus include directive.
33897
33898         maint.mk: improve empty-line-at-EOF check
33899         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33900         solution, rather than tail+Perl-based one.  The latter would read
33901         a few kilobytes from the end of each file, and did not handle empty
33902         files properly.
33903
33904         maint.mk: print the elapsed time for each syntax-check rule
33905         * top/maint.mk (sc_m_rules_): Save start time in a file.
33906         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33907         (local-check): Interpose the .z rules
33908
33909 2010-04-11  Jim Meyering  <meyering@redhat.com>
33910
33911         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33912         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33913         empty file with one that ends in an empty line.
33914
33915 2010-04-10  Bruno Haible  <bruno@clisp.org>
33916
33917         mkdir: Make it work on mingw64.
33918         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33919         * lib/mkdir.c: Update comment.
33920         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33921
33922 2010-04-10  Bruno Haible  <bruno@clisp.org>
33923
33924         Don't override improved macro from newer autoconf.
33925         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33926         autoconf >= 2.62.
33927         Reported by Joel E. Denny <jdenny@clemson.edu>.
33928
33929 2010-04-10  Jim Meyering  <meyering@redhat.com>
33930
33931         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33932         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33933
33934         maint.mk: correct a diagnostic
33935         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33936         in diagnostic; now use $prohibit.
33937
33938 2010-04-10  Bruno Haible  <address@hidden>
33939
33940         fchownat: Fix a C++ test error on Solaris 8.
33941         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33942         the function does not exist.
33943
33944 2010-04-10  Bruno Haible  <bruno@clisp.org>
33945
33946         vasnprintf: Add more tests.
33947         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33948         (test_function): Test converting an invalid wide string.
33949
33950         vasnprintf: Correct handling of unconvertible wide string arguments.
33951         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33952         VASNPRINTF.
33953         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33954         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33955         smaller than the expected maximum need for the directive. Set errno to
33956         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33957         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33958         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33959         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33960         * modules/vasnprintf (Files): Add m4/printf.m4.
33961         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33962
33963 2010-04-10  Bruno Haible  <bruno@clisp.org>
33964
33965         vasnprintf: Fix crash in %ls directive.
33966         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33967         string is passed as argument to %ls, with no precision and no width.
33968         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33969
33970 2010-04-10  Bruno Haible  <bruno@clisp.org>
33971
33972         vasnprintf: Fix multiple test failures on mingw.
33973         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33974         _snprintf, or snwprintf, not _snwprintf.
33975
33976 2010-04-10  Bruno Haible  <bruno@clisp.org>
33977
33978         write: Fix a C++ test error on mingw.
33979         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33980
33981 2010-04-10  Bruno Haible  <bruno@clisp.org>
33982
33983         vasnprintf test: Reduce code duplication.
33984         * tests/test-vasnprintf.c (test_function): New function, extracted from
33985         test_vasnprintf.
33986         (test_vasnprintf, test_asnprintf): Invoke it.
33987
33988 2010-04-10  Bruno Haible  <bruno@clisp.org>
33989
33990         strnlen: Fix warning in C++ mode on MacOS X.
33991         * lib/string.in.h (strnlen): Use the modern idiom.
33992         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33993         defining strnlen as a macro already in <config.h>.
33994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33995         REPLACE_STRNLEN.
33996         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33997         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33998
33999 2010-04-08  James Youngman  <jay@gnu.org>
34000
34001         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34002         the example.
34003
34004 2010-04-09  Jim Meyering  <meyering@redhat.com>
34005
34006         maint.mk: print better diagnostic when there is no $(_hv_file)
34007         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34008         announce that when $(_hv_file) (aka help-version) does not exist.
34009
34010         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34011         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34012         not try to interpret its random input bytes.  Jarno Rajahalme reported
34013         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34014         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34015         (mktempd_): Likewise, just in case.
34016
34017         ftruncate: add two years to projected module removal date: 2012
34018         * m4/ftruncate.m4: Adjust comments.
34019
34020         ftruncate: mark module as obsolete; even MinGW provides it, now
34021         * modules/ftruncate (Status): Obsolete.
34022         (Notice): Say that.
34023         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34024         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34025
34026 2010-04-08  Bruno Haible  <bruno@clisp.org>
34027
34028         Fix side effects from tests-related modules.
34029         * modules/dprintf-posix (Comment): New section.
34030         * modules/fprintf-posix (Comment): Likewise.
34031         * modules/obstack-printf-posix (Comment): Likewise.
34032         * modules/printf-posix (Comment): Likewise.
34033         * modules/snprintf-posix (Comment): Likewise.
34034         * modules/sprintf-posix (Comment): Likewise.
34035         * modules/vasnprintf-posix (Comment): Likewise.
34036         * modules/vasprintf-posix (Comment): Likewise.
34037         * modules/vdprintf-posix (Comment): Likewise.
34038         * modules/vfprintf-posix (Comment): Likewise.
34039         * modules/vprintf-posix (Comment): Likewise.
34040         * modules/vsnprintf-posix (Comment): Likewise.
34041         * modules/vsprintf-posix (Comment): Likewise.
34042         * modules/xprintf-posix (Comment): Likewise.
34043         * modules/xvasprintf-posix (Comment): Likewise.
34044         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34045         * modules/floorf-tests (Depends-on): Likewise.
34046         * modules/round-tests (Depends-on): Likewise.
34047         * modules/roundf-tests (Depends-on): Likewise.
34048         * modules/trunc-tests (Depends-on): Likewise.
34049         * modules/truncf-tests (Depends-on): Likewise.
34050         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34051         'fprintf-posix' module is not present.
34052         * tests/test-floorf2.c (check): Likewise.
34053         * tests/test-trunc2.c (check): Likewise.
34054         * tests/test-truncf2.c (check): Likewise.
34055         * tests/test-round2.c (equal): Likewise.
34056         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34057
34058 2010-04-07  Karl Berry  <karl@gnu.org>
34059
34060         * config/srclist.txt,
34061         * config/srclistvars.sh,
34062         * config/srclist-update: doc fixes.
34063
34064 2010-04-07  Jim Meyering  <meyering@redhat.com>
34065
34066         maint.mk: add a PATH crosschecking syntax-check rule
34067         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34068         Useful if you use a test like the one in help-version (coreutils,
34069         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34070         printed by prog --version.
34071
34072 2010-04-06  Bruno Haible  <bruno@clisp.org>
34073
34074         Fix link error on mingw.
34075         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34076         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34077
34078 2010-04-06  Bruno Haible  <bruno@clisp.org>
34079
34080         Assume rmdir exists.
34081         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34082
34083 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34084
34085         doc: update users.txt
34086         * users.txt: Add gcal.
34087
34088 2010-04-06  Jim Meyering  <meyering@redhat.com>
34089
34090         init.sh: simply unset TMPDIR rather than risking env -i
34091         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34092         although it probably works fine on all Unix-based systems, some
34093         systems (Cygwin?) cannot tolerate a totally cleared environment.
34094         Suggestion from Eric Blake.
34095
34096 2010-04-06  Jim Meyering  <meyering@redhat.com>
34097
34098         init.sh: portability fix: use env's POSIX-specified -i option not -u
34099         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34100         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34101
34102 2010-04-05  Bruno Haible  <bruno@clisp.org>
34103
34104         btowc: Work around Cygwin 1.7.2 bug.
34105         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34106         does not map NUL to 0.
34107         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34108
34109 2010-04-05  Bruno Haible  <bruno@clisp.org>
34110
34111         Make the multithread modules work on Cygwin 1.7.2.
34112         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34113         imported symbols can be declared weak, so that it returns "no" on
34114         Cygwin 1.7.2.
34115
34116 2010-04-05  Bruno Haible  <bruno@clisp.org>
34117
34118         Use the module 'strncat'.
34119         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34120
34121         Tests for module 'strncat'.
34122         * modules/strncat-tests: New file.
34123         * tests/test-strncat.c: New file.
34124
34125         New module 'strncat'.
34126         * lib/string.in.h (strncat): New declaration.
34127         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34128         * m4/strncat.m4: New file, based on m4/memchr.m4.
34129         * modules/strncat: New file.
34130         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34131         is declared.
34132         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34133         REPLACE_STRNCAT.
34134         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34135         REPLACE_STRNCAT.
34136         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34137         module.
34138         * tests/test-string-c++.cc: Check signature of strncat.
34139
34140 2010-04-05  Jim Meyering  <meyering@redhat.com>
34141
34142         xstrtoumax-tests: convert to use init.sh
34143         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34144         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34145         Use Exit, not exit.
34146         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34147
34148         xstrtoimax-tests: convert to use init.sh
34149         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34150         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34151         Use Exit, not exit.
34152         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34153
34154 2010-04-05  Bruno Haible  <bruno@clisp.org>
34155
34156         sys_socket: Avoid #define replacements in C++ mode.
34157         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34158         warning to the function if possible, rather than #defining the symbol
34159         to a dysfunctional alias.
34160
34161 2010-04-05  Bruno Haible  <bruno@clisp.org>
34162
34163         fseeko: Fix C++ test error on mingw.
34164         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34165         gl_FUNC_FSEEKO.
34166         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34167         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34168         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34169         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34170
34171 2010-04-05  Bruno Haible  <bruno@clisp.org>
34172
34173         duplocale: Improve test output.
34174         * tests/test-duplocale.c (main): Print reason for skipped test.
34175
34176 2010-04-05  Bruno Haible  <bruno@clisp.org>
34177
34178         Assume rmdir exists.
34179         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34180         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34181
34182 2010-04-05  Bruno Haible  <bruno@clisp.org>
34183
34184         Fix link error on Solaris 8 with cc.
34185         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34186
34187 2010-04-05  Bruno Haible  <bruno@clisp.org>
34188
34189         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34190         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34191
34192 2010-04-05  Bruno Haible  <bruno@clisp.org>
34193
34194         vasprintf: Update documentation.
34195         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34196
34197 2010-04-05  Bruno Haible  <bruno@clisp.org>
34198
34199         ptsname: Improve test.
34200         * tests/test-ptsname.c (main): Also try the various master names of BSD
34201         systems.
34202
34203 2010-04-05  Bruno Haible  <bruno@clisp.org>
34204
34205         memchr: Avoid a possible C++ test error.
34206         * lib/string.in.h (memchr): Provide declaration if function is missing.
34207         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34208         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34210         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34211
34212 2010-04-05  Bruno Haible  <bruno@clisp.org>
34213
34214         strtok_r: Improve idiom.
34215         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34216         AC_LIBOBJ is used.
34217
34218 2010-04-05  Bruno Haible  <bruno@clisp.org>
34219
34220         strdup: Improve idiom.
34221         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34222         AC_LIBOBJ is used.
34223         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34224         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34225         when AC_LIBOBJ is used.
34226
34227 2010-04-05  Bruno Haible  <bruno@clisp.org>
34228
34229         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34230         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34231         don't set REPLACE_MBSINIT to 1.
34232         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34233         don't set REPLACE_MBRTOWC to 1.
34234         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34235         exist, don't set REPLACE_MBSRTOWCS to 1.
34236         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34237         exist, don't set REPLACE_MBSNRTOWCS to 1.
34238         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34239         don't set REPLACE_WCRTOMB to 1.
34240         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34241         exist, don't set REPLACE_WCSRTOMBS to 1.
34242         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34243         exist, don't set REPLACE_WCSNRTOMBS to 1.
34244
34245 2010-04-05  Bruno Haible  <bruno@clisp.org>
34246
34247         ldexpl: Improve idiom.
34248         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34249         make sure to set HAVE_DECL_LDEXPL to 0.
34250
34251 2010-04-05  Jim Meyering  <meyering@redhat.com>
34252
34253         xstrtol-tests: convert to use init.sh
34254         * modules/xstrtol-tests (Files): Add tests/init.sh.
34255         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34256         Use Exit, not exit.
34257         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34258
34259         atexit-tests: convert to use init.sh
34260         * modules/atexit-tests (Files): Add tests/init.sh.
34261         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34262         Use Exit, not exit.
34263         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34264
34265         init.sh: fix typo
34266         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34267
34268         init.sh: make it easier for a test script to write to the tty, ...
34269         when using automake's parallel-tests mode.
34270         * tests/init.sh (stderr_fileno_): Define overridable variable.
34271         (warn_): New function, to use it.
34272         (fail_, skip_, framework_failure_): Use warn_.
34273
34274 2010-04-04  Bruno Haible  <bruno@clisp.org>
34275
34276         btowc: Avoid warning.
34277         * lib/btowc.c: Include <stdlib.h>.
34278         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34279
34280 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34281             Bruno Haible  <bruno@clisp.org>
34282
34283         wchar: Port to NetBSD 1.5.
34284         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34285         * lib/wctype.in.h (WEOF): Likewise.
34286
34287 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34288             Bruno Haible  <bruno@clisp.org>
34289
34290         Port extended stdio to NetBSD 1.5.
34291         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34292         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34293         older.
34294
34295 2010-04-04  Bruno Haible  <bruno@clisp.org>
34296
34297         string: Remove unused substitution.
34298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34299         HAVE_DECL_STRERROR.
34300         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34301
34302 2010-04-04  Bruno Haible  <bruno@clisp.org>
34303
34304         strtod: Avoid a possible C++ test error.
34305         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34306         set REPLACE_STRTOD.
34307
34308 2010-04-04  Bruno Haible  <bruno@clisp.org>
34309
34310         strerror: Update documentation.
34311         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34312
34313 2010-04-04  Bruno Haible  <bruno@clisp.org>
34314
34315         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34316         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34317         _GL_CXXALIAS_SYS_CAST.
34318
34319 2010-04-04  Bruno Haible  <bruno@clisp.org>
34320
34321         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34322         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34323         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34324         REPLACE_FREXPL to 1.
34325         * doc/posix-functions/frexpl.texi: Update documentation.
34326
34327 2010-04-04  Bruno Haible  <bruno@clisp.org>
34328
34329         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34330         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34331
34332 2010-04-04  Bruno Haible  <bruno@clisp.org>
34333
34334         Implement nanosleep for native Windows.
34335         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34336
34337 2010-04-04  Bruno Haible  <bruno@clisp.org>
34338
34339         math: Fix some C++ test errors on Solaris 8.
34340         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34341
34342 2010-04-04  Bruno Haible  <bruno@clisp.org>
34343
34344         math: Fix some C++ test errors on Cygwin.
34345         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34346         truncl): Provide declaration if the system does not have it.
34347         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34348         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34349         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34350         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34351         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34352         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34353         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34354         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34355         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34356         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34357         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34358         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34359         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34360         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34361         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34362         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34364         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34365         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34366         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34367         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34368         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34369
34370 2010-04-04  Bruno Haible  <bruno@clisp.org>
34371
34372         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34373         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34374         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34375         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34376         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34377         * m4/isinf.m4 (gl_ISINF): Likewise.
34378         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34379
34380 2010-04-04  Bruno Haible  <bruno@clisp.org>
34381
34382         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34383         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34384
34385 2010-04-04  Bruno Haible  <bruno@clisp.org>
34386
34387         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34388         * modules/tmpfile (configure.ac): Update.
34389
34390         tmpfile: Fix C++ test error on mingw.
34391         * lib/stdio.in.h (tmpfile): New declaration.
34392         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34393         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34394         * modules/tmpfile (Depends-on): Add stdio.
34395         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34396         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34397         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34398         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34399         REPLACE_TMPFILE.
34400         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34401
34402 2010-04-04  Bruno Haible  <bruno@clisp.org>
34403
34404         ioctl: Fix C++ test error on mingw.
34405         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34406         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34407         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34408
34409 2010-04-03  Bruno Haible  <bruno@clisp.org>
34410
34411         wcwidth: Fix C++ test error on mingw.
34412         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34414         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34415
34416 2010-04-03  Bruno Haible  <bruno@clisp.org>
34417
34418         nanosleep: Fix C++ test error on mingw.
34419         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34420         * lib/time.in.h (nanosleep): Use modern idiom.
34421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34422         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34423         REPLACE_NANOSLEEP to 1.
34424         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34425         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34426
34427 2010-04-03  Bruno Haible  <bruno@clisp.org>
34428
34429         strptime: Fix C++ test error on mingw.
34430         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34431         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34432         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34433         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34434         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34435         not REPLACE_STRPTIME.
34436         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34437         REPLACE_STRPTIME.
34438
34439 2010-04-03  Bruno Haible  <bruno@clisp.org>
34440
34441         timegm: Fix C++ test error on mingw.
34442         * lib/time.in.h (timegm): Use modern idiom.
34443         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34444         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34445         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34446         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34447
34448 2010-04-03  Bruno Haible  <bruno@clisp.org>
34449
34450         timegm: Assume declaration if function exists.
34451         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34452         if it exists. Don't clobber ac_cv_func_timegm.
34453
34454 2010-04-03  Bruno Haible  <bruno@clisp.org>
34455
34456         time_r: Fix C++ test error on mingw.
34457         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34458         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34459         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34460         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34461         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34462
34463 2010-04-03  Bruno Haible  <bruno@clisp.org>
34464
34465         time_r: Minor updates.
34466         * modules/time_r (Description): Mention the provided functions.
34467         * lib/time_r.c: Don't include <string.h>.
34468         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34469         * doc/posix-functions/localtime_r.texi: Likewise.
34470
34471 2010-04-03  Bruno Haible  <bruno@clisp.org>
34472
34473         time: Fix regression introduced on 2010-03-08.
34474         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34475         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34476
34477 2010-04-03  Jim Meyering  <meyering@redhat.com>
34478
34479         maint.mk: don't silently disable project-specific syntax-check rules
34480         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34481         that they need to convert their project-specific syntax-check rules
34482         to use the new _sc_search_regexp.
34483
34484 2010-04-03  Bruno Haible  <bruno@clisp.org>
34485
34486         fchdir: Fix regression introduced on 2010-03-08.
34487         * lib/unistd.in.h (fchdir): Fix declaration.
34488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34490         REPLACE_FCHDIR.
34491         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34492         REPLACE_FCHDIR.
34493
34494 2010-04-03  Bruno Haible  <bruno@clisp.org>
34495
34496         getpagesize: Fix C++ test error on mingw.
34497         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34498         system does not declare the function.
34499         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34500         declared.
34501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34502         HAVE_DECL_GETPAGESIZE.
34503         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34504
34505 2010-04-03  Bruno Haible  <bruno@clisp.org>
34506
34507         stdio: Make C++ tests work on mingw.
34508         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34509         does not declare the function.
34510
34511 2010-04-03  Bruno Haible  <bruno@clisp.org>
34512
34513         ftello: Fix C++ test error on mingw.
34514         * lib/stdio.in.h (ftello): Use modern idiom.
34515         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34516         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34517         is missing and that it needs to be replaced.
34518         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34520         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34521
34522 2010-04-03  Bruno Haible  <bruno@clisp.org>
34523
34524         fseeko: Fix C++ test error on mingw.
34525         * lib/stdio.in.h (fseeko): Use modern idiom.
34526         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34527         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34528         is missing and that it needs to be replaced.
34529         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34531         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34532
34533 2010-04-03  Bruno Haible  <bruno@clisp.org>
34534
34535         mkstemp: Fix C++ test error on mingw.
34536         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34537         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34538         function is missing and that it needs to be replaced.
34539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34540         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34541
34542 2010-04-03  Bruno Haible  <bruno@clisp.org>
34543
34544         stpncpy: Fix C++ test error on mingw.
34545         * lib/string.in.h (stpncpy): Use modern idiom.
34546         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34547         function is missing and that it needs to be replaced.
34548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34549         REPLACE_STPNCPY.
34550         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34551
34552 2010-04-03  Bruno Haible  <bruno@clisp.org>
34553
34554         sys_stat: Fix C++ test error on mingw.
34555         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34556         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34557
34558 2010-04-03  Bruno Haible  <bruno@clisp.org>
34559
34560         pty: Update doc.
34561         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34562
34563 2010-04-03  Bruno Haible  <bruno@clisp.org>
34564
34565         unistd: Fix C++ test error on mingw.
34566         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34567
34568 2010-04-03  Bruno Haible  <bruno@clisp.org>
34569
34570         Update doc regarding mingw.
34571         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34572         * doc/glibc-functions/login_tty.texi: Likewise.
34573         * doc/glibc-functions/forkpty.texi: Likewise.
34574
34575 2010-04-03  Bruno Haible  <bruno@clisp.org>
34576
34577         stdlib: Avoid compilation failure of c-strtold on mingw.
34578         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34579
34580 2010-04-03  Bruno Haible  <bruno@clisp.org>
34581
34582         locale: Make C++ tests work on Cygwin and mingw.
34583         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34584         cannot provide the function.
34585         Reported by Simon Josefsson.
34586
34587 2010-04-03  Bruno Haible  <bruno@clisp.org>
34588
34589         localename: Port to MacOS X 10.6.
34590         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34591         memory layout of the locales in MacOS X 10.6 as well.
34592         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34593
34594 2010-04-02  Bruno Haible  <bruno@clisp.org>
34595
34596         gnulib-tool: Ensure that long-running tests are executed last.
34597         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34598         running tests after the one for the other tests.
34599
34600 2010-04-02  Bruno Haible  <bruno@clisp.org>
34601
34602         gnulib-tool: Ensure the tests in the main directory are executed first.
34603         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34604         start with the current directory.
34605
34606 2010-04-02  Bruno Haible  <bruno@clisp.org>
34607
34608         Tests for module 'havelib', moved here from GNU gettext.
34609         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34610         modifications.
34611         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34612         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34613         with modifications.
34614         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34615         modifications.
34616         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34617         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34618         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34619         with modifications.
34620         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34621         with modifications.
34622         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34623         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34624         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34625         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34626         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34627         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34628         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34629         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34630         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34631         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34632         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34633         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34634         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34635         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34636         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34637         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34638         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34639         with modifications.
34640         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34641         with modifications.
34642         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34643         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34644         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34645         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34646         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34647         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34648         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34649         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34650         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34651         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34652         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34653         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34654         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34655         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34656         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34657         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34658         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34659         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34660         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34661         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34662         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34663         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34664         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34665         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34666         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34667         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34668         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34669         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34670         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34671         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34672         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34673         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34674         * tests/havelib/rpathx/rpathx.c: New file, from
34675         gettext/autoconf-lib-link.
34676         * tests/havelib/rpathx/Makefile.am: New file, from
34677         gettext/autoconf-lib-link.
34678         * tests/havelib/rpathx/configure.ac: New file, from
34679         gettext/autoconf-lib-link with modifications.
34680         * tests/havelib/rpathy/rpathy.c: New file, from
34681         gettext/autoconf-lib-link.
34682         * tests/havelib/rpathy/Makefile.am: New file, from
34683         gettext/autoconf-lib-link.
34684         * tests/havelib/rpathy/configure.ac: New file, from
34685         gettext/autoconf-lib-link with modifications.
34686         * tests/havelib/rpathz/rpathz.c: New file, from
34687         gettext/autoconf-lib-link.
34688         * tests/havelib/rpathz/Makefile.am: New file, from
34689         gettext/autoconf-lib-link.
34690         * tests/havelib/rpathz/configure.ac: New file, from
34691         gettext/autoconf-lib-link with modifications.
34692         * tests/havelib/rpathlx/usex.c: New file, from
34693         gettext/autoconf-lib-link.
34694         * tests/havelib/rpathlx/Makefile.am: New file, from
34695         gettext/autoconf-lib-link.
34696         * tests/havelib/rpathlx/configure.ac: New file, from
34697         gettext/autoconf-lib-link with modifications.
34698         * tests/havelib/rpathly/usey.c: New file, from
34699         gettext/autoconf-lib-link.
34700         * tests/havelib/rpathly/Makefile.am: New file, from
34701         gettext/autoconf-lib-link.
34702         * tests/havelib/rpathly/configure.ac: New file, from
34703         gettext/autoconf-lib-link with modifications.
34704         * tests/havelib/rpathlz/usez.c: New file, from
34705         gettext/autoconf-lib-link.
34706         * tests/havelib/rpathlz/Makefile.am: New file, from
34707         gettext/autoconf-lib-link.
34708         * tests/havelib/rpathlz/configure.ac: New file, from
34709         gettext/autoconf-lib-link with modifications.
34710         * tests/havelib/rpathlyx/usey.c: New file, from
34711         gettext/autoconf-lib-link.
34712         * tests/havelib/rpathlyx/Makefile.am: New file, from
34713         gettext/autoconf-lib-link.
34714         * tests/havelib/rpathlyx/configure.ac: New file, from
34715         gettext/autoconf-lib-link with modifications.
34716         * tests/havelib/rpathlzyx/usez.c: New file, from
34717         gettext/autoconf-lib-link.
34718         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34719         gettext/autoconf-lib-link.
34720         * tests/havelib/rpathlzyx/configure.ac: New file, from
34721         gettext/autoconf-lib-link with modifications.
34722         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34723         with modifications.
34724
34725 2010-04-02  Bruno Haible  <bruno@clisp.org>
34726
34727         gnulib-tool: Create distributed built sources also for the tests.
34728         * gnulib-tool (func_create_testdir): Also generate distributed built
34729         sources in the tests directory.
34730
34731 2010-04-02  Bruno Haible  <bruno@clisp.org>
34732
34733         gnulib-tool: Obey user's environment variables.
34734         * gnulib-tool (func_create_testdir): When creating built sources,
34735         respect the environment variables for autoconf, automake, etc. given by
34736         the user.
34737
34738 2010-04-02  Bruno Haible  <bruno@clisp.org>
34739
34740         gnulib-tool: Provide the value of --m4-base to modules.
34741         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34742         of gl_m4_base.
34743
34744 2010-04-02  Eric Blake  <eblake@redhat.com>
34745
34746         maint.mk: fix some fallout
34747         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34748         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34749
34750 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34751
34752         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34753         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34754         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34755         (sc_cast_of_x_alloc_return_value): Likewise.
34756         (sc_cast_of_alloca_return_value): Likewise.
34757         (sc_space_tab): Likewise.
34758         (sc_prohibit_atoi_atof): Likewise.
34759         (sc_prohibit_magic_number_exit): Likewise.
34760         (sc_error_exit_success): Likewise.
34761         (sc_file_system): Likewise.
34762         (sc_prohibit_have_config_h): Likewise.
34763         (sc_require_config_h): Likewise.
34764         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34765         (sc_obsolete_symbols): Likewise.
34766         (sc_changelog): Likewise.
34767         (sc_program_name): Likewise.
34768         (sc_the_the): Likewise.
34769         (sc_trailing_blank): Likewise.
34770         (sc_two_space_separator_in_usage): Likewise.
34771         (sc_useless_cpp_parens): Likewise.
34772         (sc_GPL_version): Likewise.
34773         (sc_GFDL_version): Likewise.
34774         (sc_texinfo_acronym): Likewise.
34775         (sc_prohibit_cvs_keyword): Likewise.
34776         (sc_prohibit_stat_st_blocks): Likewise.
34777         (sc_prohibit_S_IS_definition): Likewise.
34778         (sc_redundant_const): Likewise.
34779         (sc_makefile_TAB_only_indentation): Likewise.
34780         (sc_m4_quote_check): Likewise.
34781         (sc_makefile_path_separator_check): Likewise.
34782         (sc_copyright_check): Likewise.
34783         (sc_Wundef_boolean): Likewise.
34784         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34785
34786         maint.mk: match 0 or more whitespace-before-function-call '('
34787         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34788         that have zero or two-and-more spaces between the function name
34789         and the open parenthesis.
34790         (sc_error_message_warn_fatal): Likewise.
34791         (sc_error_message_uppercase): Likewise.
34792         (sc_error_message_period): Likewise.
34793
34794 2010-03-31  Eric Blake  <eblake@redhat.com>
34795
34796         maint.mk: check for [ as well as test
34797         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34798         Based on a libvirt report by Matthias Bolte.
34799
34800         gnumakefile: don't squelch _version output
34801         * top/GNUmakefile (_version): Create one-shot dependency rather
34802         than using $(shell) when version must be regenerated.
34803         (_autoreconf): Run verbosely, by default.
34804
34805         sys_time: avoid compiler warnings
34806         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34807         unconditional, fixing regression from 2010-03-29.
34808         Reported by Simon Josefsson.
34809
34810 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34811
34812         maint.mk: s/_header_without_use/_sc_header_without_use/
34813         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34814         (sc_prohibit_assert_without_use): Use the new name.
34815         (sc_prohibit_close_stream_without_use): Likewise.
34816         (sc_prohibit_getopt_without_use): Likewise.
34817         (sc_prohibit_quotearg_without_use): Likewise.
34818         (sc_prohibit_quote_without_use): Likewise.
34819         (sc_prohibit_long_options_without_use): Likewise.
34820         (sc_prohibit_inttostr_without_use): Likewise.
34821         (sc_prohibit_ignore_value_without_use): Likewise.
34822         (sc_prohibit_error_without_use): Likewise.
34823         (sc_prohibit_xalloc_without_use): Likewise.
34824         (sc_prohibit_hash_without_use): Likewise.
34825         (sc_prohibit_hash_pjw_without_use): Likewise.
34826         (sc_prohibit_safe_read_without_use): Likewise.
34827         (sc_prohibit_argmatch_without_use): Likewise.
34828         (sc_prohibit_canonicalize_without_use): Likewise.
34829         (sc_prohibit_root_dev_ino_without_use): Likewise.
34830         (sc_prohibit_openat_without_use): Likewise.
34831         (sc_prohibit_c_ctype_without_use): Likewise.
34832         (sc_prohibit_signal_without_use): Likewise.
34833         (sc_prohibit_intprops_without_use): Likewise.
34834
34835 2010-03-30  Eric Blake  <eblake@redhat.com>
34836
34837         maint: improve module indicators
34838         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34839         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34840         columns, and avoid extra macro expansion.
34841
34842         fdopendir: work around FreeBSD bug
34843         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34844         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34845         * modules/dirent (Makefile.am): Substitute it.
34846         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34847         declaration.
34848         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34849         fix.
34850         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34851
34852 2010-03-29  Bruno Haible  <bruno@clisp.org>
34853
34854         Emit #pragma system_header after the inclusion guard, not before.
34855         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34856         guard that spans the entire file, not before. This enables an
34857         optimization in GCC's preprocessor.
34858         * lib/ctype.in.h: Likewise.
34859         * lib/dirent.in.h: Likewise.
34860         * lib/errno.in.h: Likewise.
34861         * lib/float.in.h: Likewise.
34862         * lib/getopt.in.h: Likewise.
34863         * lib/iconv.in.h: Likewise.
34864         * lib/langinfo.in.h: Likewise.
34865         * lib/locale.in.h: Likewise.
34866         * lib/math.in.h: Likewise.
34867         * lib/netdb.in.h: Likewise.
34868         * lib/netinet_in.in.h: Likewise.
34869         * lib/pty.in.h: Likewise.
34870         * lib/sched.in.h: Likewise.
34871         * lib/se-selinux.in.h: Likewise.
34872         * lib/search.in.h: Likewise.
34873         * lib/spawn.in.h: Likewise.
34874         * lib/stdarg.in.h: Likewise.
34875         * lib/stdint.in.h: Likewise.
34876         * lib/string.in.h: Likewise.
34877         * lib/strings.in.h: Likewise.
34878         * lib/sys_file.in.h: Likewise.
34879         * lib/sys_ioctl.in.h: Likewise.
34880         * lib/sys_time.in.h: Likewise.
34881         * lib/sys_times.in.h: Likewise.
34882         * lib/sys_utsname.in.h: Likewise.
34883         * lib/sys_wait.in.h: Likewise.
34884         * lib/sysexits.in.h: Likewise.
34885         * lib/wctype.in.h: Likewise.
34886
34887 2010-03-28  James Youngman  <jay@gnu.org>
34888
34889         save-cwd: don't leak a file descriptor when the caller execs.
34890         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34891         saved file descriptor.
34892         * modules/save-cwd (Depends-on): Depend on cloexec.
34893
34894 2010-03-29  Bruno Haible  <bruno@clisp.org>
34895
34896         Remove vestiges of fts-lgpl module.
34897         * lib/fts_.h: Assume GNULIB_FTS is 1.
34898         * lib/fts.c: Likewise.
34899         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34900
34901 2010-03-28  Bruno Haible  <bruno@clisp.org>
34902
34903         Fix definition of tests witness macro.
34904         * gnulib-tool (func_import): Fix definition of witness macro.
34905
34906 2010-03-28  Bruno Haible  <bruno@clisp.org>
34907
34908         Fix ioctl's protoype on glibc systems.
34909         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34910         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34911         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34912         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34913         signature. If not, arrange to replace the ioctl function.
34914         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34915         REPLACE_IOCTL.
34916         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34917         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34918         Reported by Ludovic Courtès <ludo@gnu.org>.
34919
34920 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34921
34922         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34923         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34924         made it so grep -r --include=GLOB* ... did not work.
34925
34926 2010-03-26  Jim Meyering  <meyering@redhat.com>
34927             Eric Blake  <eblake@redhat.com>
34928
34929         maint.mk: prohibit use of test's -o and -a operators
34930         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34931
34932 2010-03-28  Bruno Haible  <bruno@clisp.org>
34933
34934         Remove unused GNULIB_XYZ macro definitions.
34935         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34936         invocation.
34937
34938 2010-03-28  Bruno Haible  <bruno@clisp.org>
34939
34940         Mark privileged tests modules.
34941         * modules/idpriv-drop-tests (Status): New section.
34942         * modules/idpriv-droptemp-tests (Status): New section.
34943
34944 2010-03-28  Bruno Haible  <bruno@clisp.org>
34945
34946         Split C++ tests into separate tests modules.
34947         * modules/dirent-c++-tests: New file, extracted from
34948         modules/dirent-tests.
34949         * modules/dirent-tests: Depend on it.
34950         * modules/fcntl-h-c++-tests: New file, extracted from
34951         modules/fcntl-h-tests.
34952         * modules/fcntl-h-tests: Depend on it.
34953         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34954         * modules/glob-tests: Depend on it.
34955         * modules/iconv-h-c++-tests: New file, extracted from
34956         modules/iconv-h-tests.
34957         * modules/iconv-h-tests: Depend on it.
34958         * modules/langinfo-c++-tests: New file, extracted from
34959         modules/langinfo-tests.
34960         * modules/langinfo-tests: Depend on it.
34961         * modules/locale-c++-tests: New file, extracted from
34962         modules/locale-tests.
34963         * modules/locale-tests: Depend on it.
34964         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34965         * modules/math-tests: Depend on it.
34966         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34967         * modules/pty-tests: Depend on it.
34968         * modules/search-c++-tests: New file, extracted from
34969         modules/search-tests.
34970         * modules/search-tests: Depend on it.
34971         * modules/signal-c++-tests: New file, extracted from
34972         modules/signal-tests.
34973         * modules/signal-tests: Depend on it.
34974         * modules/spawn-c++-tests: New file, extracted from
34975         modules/spawn-tests.
34976         * modules/spawn-tests: Depend on it.
34977         * modules/stdio-c++-tests: New file, extracted from
34978         modules/stdio-tests.
34979         * modules/stdio-tests: Depend on it.
34980         * modules/stdlib-c++-tests: New file, extracted from
34981         modules/stdlib-tests.
34982         * modules/stdlib-tests: Depend on it.
34983         * modules/string-c++-tests: New file, extracted from
34984         modules/string-tests.
34985         * modules/string-tests: Depend on it.
34986         * modules/sys_ioctl-c++-tests: New file, extracted from
34987         modules/sys_ioctl-tests.
34988         * modules/sys_ioctl-tests: Depend on it.
34989         * modules/sys_select-c++-tests: New file, extracted from
34990         modules/sys_select-tests.
34991         * modules/sys_select-tests: Depend on it.
34992         * modules/sys_socket-c++-tests: New file, extracted from
34993         modules/sys_socket-tests.
34994         * modules/sys_socket-tests: Depend on it.
34995         * modules/sys_stat-c++-tests: New file, extracted from
34996         modules/sys_stat-tests.
34997         * modules/sys_stat-tests: Depend on it.
34998         * modules/sys_time-c++-tests: New file, extracted from
34999         modules/sys_time-tests.
35000         * modules/sys_time-tests: Depend on it.
35001         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35002         * modules/time-tests: Depend on it.
35003         * modules/unistd-c++-tests: New file, extracted from
35004         modules/unistd-tests.
35005         * modules/unistd-tests: Depend on it.
35006         * modules/wchar-c++-tests: New file, extracted from
35007         modules/wchar-tests.
35008         * modules/wchar-tests: Depend on it.
35009         * modules/wctype-c++-tests: New file, extracted from
35010         modules/wctype-tests.
35011         * modules/wctype-tests: Depend on it.
35012         Reported by Simon Josefsson.
35013
35014 2010-03-28  Bruno Haible  <bruno@clisp.org>
35015
35016         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35017         * gnulib-tool (func_exists_module): New function, extracted from
35018         func_verify_module.
35019         (func_verify_module): Use it.
35020         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35021         'foo' only if 'foo' exists.
35022         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35023         module.
35024
35025 2010-03-28  Bruno Haible  <bruno@clisp.org>
35026
35027         gnulib-tool: Add support for special categories of tests.
35028         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35029         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35030         (func_usage): Document them.
35031         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35032         inc_unportable_tests, inc_all_tests): New variables.
35033         (func_acceptable): Consider these variables.
35034         (func_modules_transitive_closure): Make it work when the 'Status' field
35035         consists of multiple words.
35036         (func_import): Store and restore the values of inc_cxx_tests,
35037         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35038         inc_all_tests in gnulib-comp.m4.
35039         (func_create_testdir): Set inc_all_tests to true.
35040         * doc/gnulib.texi (Extra tests modules): New section.
35041         Suggested by Jim Meyering.
35042
35043 2010-03-28  Bruno Haible  <bruno@clisp.org>
35044
35045         ansi-c++-opt: Allow turning off the C++ build by default.
35046         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35047         gl_CXX_CHOICE_DEFAULT_NO is defined.
35048         Requested by Eric Blake.
35049
35050 2010-03-28  Bruno Haible  <bruno@clisp.org>
35051
35052         unistd: Avoid #define replacements in C++ mode.
35053         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35054         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35055         setsockopt, shutdown, select): In C++, attach a warning to the function
35056         if possible, rather than #defining the symbol to a dysfunctional alias.
35057         Reported by John W. Eaton <jwe@gnu.org>.
35058
35059 2010-03-28  Bruno Haible  <bruno@clisp.org>
35060
35061         Fix link errors on mingw.
35062         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35063         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35064         $(LIBSOCKET).
35065         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35066         $(LIBSOCKET).
35067
35068 2010-03-28  Bruno Haible  <bruno@clisp.org>
35069             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35070
35071         lib-ignore: Determine different options for different compilers.
35072         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35073         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35074         Add comments.
35075         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35076         * NEWS: Mention the change.
35077
35078 2010-03-27  Bruno Haible  <bruno@clisp.org>
35079
35080         Remove unused GNULIB_XYZ macro definitions.
35081         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35082         * modules/fseek (configure.ac): Likewise.
35083         * modules/ioctl (configure.ac): Likewise.
35084         * modules/open (configure.ac): Likewise.
35085         * modules/stdlib-safer (configure.ac): Likewise.
35086
35087 2010-03-27  Bruno Haible  <bruno@clisp.org>
35088
35089         Add a remark about certain modules.
35090         * modules/malloc (Comment): New section.
35091         * modules/realloc (Comment): Likewise.
35092         * modules/sigpipe (Comment): Likewise.
35093
35094 2010-03-27  Bruno Haible  <bruno@clisp.org>
35095
35096         Resolve conflict between the two kinds of module indicators.
35097         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35098         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35099         * modules/canonicalize (configure.ac): Invoke
35100         gl_MODULE_INDICATOR_FOR_TESTS.
35101         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35102         GNULIB_XYZ.
35103         * tests/test-dirent-c++.cc: Likewise.
35104         * tests/test-dirent-safer.c: Likewise.
35105         * tests/test-dup2.c: Likewise.
35106         * tests/test-fchdir.c: Likewise.
35107         * tests/test-fcntl-h-c++.cc: Likewise.
35108         * tests/test-getopt.c: Likewise.
35109         * tests/test-getopt.h: Likewise.
35110         * tests/test-langinfo-c++.cc: Likewise.
35111         * tests/test-locale-c++.cc: Likewise.
35112         * tests/test-math-c++.cc: Likewise.
35113         * tests/test-pty-c++.cc: Likewise.
35114         * tests/test-search-c++.cc: Likewise.
35115         * tests/test-signal-c++.cc: Likewise.
35116         * tests/test-spawn-c++.cc: Likewise.
35117         * tests/test-stdio-c++.cc: Likewise.
35118         * tests/test-stdlib-c++.cc: Likewise.
35119         * tests/test-string-c++.cc: Likewise.
35120         * tests/test-sys_ioctl-c++.cc: Likewise.
35121         * tests/test-sys_select-c++.cc: Likewise.
35122         * tests/test-sys_socket-c++.cc: Likewise.
35123         * tests/test-sys_stat-c++.cc: Likewise.
35124         * tests/test-sys_time-c++.cc: Likewise.
35125         * tests/test-time-c++.cc: Likewise.
35126         * tests/test-unistd-c++.cc: Likewise.
35127         * tests/test-wchar-c++.cc: Likewise.
35128         * tests/uninorm/test-u8-nfc.c: Likewise.
35129         * tests/uninorm/test-u8-nfd.c: Likewise.
35130         * tests/uninorm/test-u8-nfkc.c: Likewise.
35131         * tests/uninorm/test-u8-nfkd.c: Likewise.
35132         * tests/uninorm/test-u16-nfc.c: Likewise.
35133         * tests/uninorm/test-u16-nfd.c: Likewise.
35134         * tests/uninorm/test-u16-nfkc.c: Likewise.
35135         * tests/uninorm/test-u16-nfkd.c: Likewise.
35136         * tests/uninorm/test-u32-nfc.c: Likewise.
35137         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35138         * tests/uninorm/test-u32-nfd.c: Likewise.
35139         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35140         * tests/uninorm/test-u32-nfkc.c: Likewise.
35141         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35142         * tests/uninorm/test-u32-nfkd.c: Likewise.
35143         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35144         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35145
35146 2010-03-27  Bruno Haible  <bruno@clisp.org>
35147
35148         Distinguish two kinds of module indicators.
35149         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35150         gl_MODULE_INDICATOR.
35151         (gl_MODULE_INDICATOR): New macro.
35152         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35153         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35154         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35155         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35156         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35157         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35158         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35159         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35160         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35161         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35162         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35163         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35165         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35166         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35167         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35168         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35169         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35170         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35171         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35172         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35173         * modules/cloexec (configure.ac): Likewise.
35174         * modules/getopt-gnu (configure.ac): Likewise.
35175         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35176         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35177         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35178         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35179
35180 2010-03-27  Bruno Haible  <bruno@clisp.org>
35181
35182         New module description field 'Comment'.
35183         * gnulib-tool: New option --extract-comment.
35184         (func_usage): Document it.
35185         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35186         (func_get_comment): New function.
35187         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35188
35189 2010-03-27  Bruno Haible  <bruno@clisp.org>
35190
35191         Addendum to 2010-02-07 commit.
35192         * gnulib-tool (func_usage): Document --extract-applicability option.
35193
35194 2010-03-27  Bruno Haible  <bruno@clisp.org>
35195
35196         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35197         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35198         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35199         rather than link errors.
35200
35201 2010-03-27  Bruno Haible  <bruno@clisp.org>
35202
35203         Avoid side effects from tests-related modules on the compilation of lib.
35204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35205         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35206         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35207         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35208         macro.
35209         (func_import): Define a witness macro. Assign it a value that depends
35210         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35211         tests-related modules.
35212         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35213         Reported by Jim Meyering.
35214
35215 2010-03-27  Bruno Haible  <bruno@clisp.org>
35216
35217         Factorize common .m4 code.
35218         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35219         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35220         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35221         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35222         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35223         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35224         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35225         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35226         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35227         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35228         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35229         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35230         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35231         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35232         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35233         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35234         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35235         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35237         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35238         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35239         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35240         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35241         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35242         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35243         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35244         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35245         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35246         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35247         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35248         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35249         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35250
35251 2010-03-27  Bruno Haible  <bruno@clisp.org>
35252
35253         Fix a compilation error on Cygwin with g++ >= 4.3.
35254         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35255         if it is undefined or if we alias it to chmod.
35256         (lstat): Don't warn about the use of this function if it is undefined
35257         or if we alias it to stat.
35258         Reported by Simon Josefsson.
35259
35260 2010-03-27  Bruno Haible  <bruno@clisp.org>
35261
35262         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35263         * modules/getlogin (configure.ac): Update.
35264
35265         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35266         * modules/getlogin_r (configure.ac): Update.
35267
35268         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35269         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35270         * modules/inet_ntop (configure.ac): Update.
35271
35272         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35273         * modules/inet_pton (configure.ac): Update.
35274
35275         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35276         * modules/mbslen (configure.ac): Update.
35277
35278         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35279         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35280         * modules/forkpty (configure.ac): Update.
35281         * modules/openpty (configure.ac): Update.
35282
35283 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35284
35285         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35286         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35287
35288 2010-03-25  Eric Blake  <eblake@redhat.com>
35289
35290         maint: use pragma consistently across replacement headers
35291         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35292         * lib/dirent.in.h (system_header): Likewise.
35293         * lib/errno.in.h (system_header): Likewise.
35294         * lib/float.in.h (system_header): Likewise.
35295         * lib/getopt.in.h (system_header): Likewise.
35296         * lib/iconv.in.h (system_header): Likewise.
35297         * lib/inttypes.in.h (system_header): Likewise.
35298         * lib/langinfo.in.h (system_header): Likewise.
35299         * lib/locale.in.h (system_header): Likewise.
35300         * lib/math.in.h (system_header): Likewise.
35301         * lib/netdb.in.h (system_header): Likewise.
35302         * lib/netinet_in.in.h (system_header): Likewise.
35303         * lib/pty.in.h (system_header): Likewise.
35304         * lib/sched.in.h (system_header): Likewise.
35305         * lib/se-selinux.in.h (system_header): Likewise.
35306         * lib/search.in.h (system_header): Likewise.
35307         * lib/spawn.in.h (system_header): Likewise.
35308         * lib/stdarg.in.h (system_header): Likewise.
35309         * lib/stdint.in.h (system_header): Likewise.
35310         * lib/string.in.h (system_header): Likewise.
35311         * lib/strings.in.h (system_header): Likewise.
35312         * lib/sys_file.in.h (system_header): Likewise.
35313         * lib/sys_ioctl.in.h (system_header): Likewise.
35314         * lib/sys_socket.in.h (system_header): Likewise.
35315         * lib/sys_times.in.h (system_header): Likewise.
35316         * lib/sys_utsname.in.h (system_header): Likewise.
35317         * lib/sys_wait.in.h (system_header): Likewise.
35318         * lib/sysexits.in.h (system_header): Likewise.
35319         * lib/unistd.in.h (system_header): Likewise.
35320         * lib/wctype.in.h (system_header): Likewise.
35321
35322         arpa/inet: fix mingw compilation warning
35323         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35324         Reported by Matthew Bolte.
35325
35326 2010-03-25  Bruno Haible  <bruno@clisp.org>
35327
35328         Avoid collision between gnulib wrapper and libintl wrapper.
35329         * lib/printf.c (printf): Don't define if a printf wrapper is already
35330         defined in intl/printf.c.
35331         Reported by Michel Boaventura <michel@michelboaventura.com>.
35332
35333 2010-03-25  Bruno Haible  <bruno@clisp.org>
35334
35335         Use ANSI C.
35336         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35337
35338 2010-03-25  Bruno Haible  <bruno@clisp.org>
35339
35340         Minor formatting changes.
35341         * lib/acosl.c: Insert space before function argument list.
35342         * lib/argz.c: Likewise.
35343         * lib/asinl.c: Likewise.
35344         * lib/expl.c: Likewise.
35345         * lib/gen-uni-tables.c: Likewise.
35346         * lib/gettext.h: Likewise.
35347         * lib/glthread/lock.h: Likewise.
35348         * lib/tanl.c: Likewise.
35349         * lib/uniname/uniname.c: Likewise.
35350         * tests/test-idpriv-drop.c: Likewise.
35351         * tests/test-idpriv-droptemp.c: Likewise.
35352         * tests/test-lock.c: Likewise.
35353         * tests/test-tls.c: Likewise.
35354         * lib/argp-help.c: Insert space before function-like macro argument
35355         list.
35356         * lib/memcmp.c: Likewise.
35357         * tests/test-base64.c: Likewise.
35358         * lib/localename.c: Insert space before sizeof's argument list.
35359         * lib/safe-alloc.h: Likewise.
35360         * lib/file-set.h: Insert space before macro argument list.
35361         * tests/test-argp.c: Likewise.
35362         * lib/argp-namefrob.h: Insert space before function parameter list.
35363         * lib/getaddrinfo.c: Likewise.
35364         * lib/netdb.in.h: Likewise.
35365         * lib/parse-duration.h: Likewise.
35366         * lib/parse-duration.c: Likewise.
35367         * lib/poll.c: Likewise.
35368         * lib/select.c: Likewise.
35369         * lib/trim.h: Likewise.
35370         * tests/test-usleep.c: Likewise.
35371         * lib/ldexpl.c: Insert space before function parameter list and before
35372         function argument list.
35373         * lib/logl.c: Likewise.
35374         * lib/sqrtl.c: Likewise.
35375         * lib/trim.c: Likewise.
35376         * lib/cosl.c: Use GNU style indentation. Insert space before function
35377         argument list.
35378         * lib/sinl.c: Likewise.
35379         * lib/tsearch.c: Insert space after 'for'.
35380         Reported by Jim Meyering.
35381
35382 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35383
35384         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35385         config header before grepping, as it's not present before
35386         autoreconf/configure are run.  Reported by Simon Josefsson.
35387
35388 2010-03-23  Bruno Haible  <bruno@clisp.org>
35389
35390         pt_chown: Make it work with automake < 1.11.
35391         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35392         Reported by Simon Josefsson.
35393
35394 2010-03-23  Bruno Haible  <bruno@clisp.org>
35395
35396         pt_chown: Don't depend on GPLed modules.
35397         * lib/pt_chown.c: Don't include idpriv.h.
35398         (main): Don't drop privileges.
35399         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35400         Reported by Simon Josefsson.
35401
35402 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35403
35404         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35405         suggestions from karl@freefriends.org (Karl Berry).
35406
35407 2010-03-22  Eric Blake  <eblake@redhat.com>
35408
35409         gethostname: further tweaks
35410         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35411         are overriding gethostname.
35412         Suggested by Bruno Haible.
35413
35414 2010-03-21  Bruno Haible  <bruno@clisp.org>
35415
35416         Fix comments.
35417         * lib/forkpty.c (rpl_forkpty): Fix comment.
35418         * lib/openpty.c (rpl_openpty): Likewise.
35419         Reported by Eric Blake.
35420
35421 2010-03-22  Eric Blake  <eblake@redhat.com>
35422
35423         gethostname: fix build on mingw
35424         * lib/unistd.in.h (includes): Work around fact that mingw
35425         <winsock2.h> re-includes <unistd.h>, by avoiding any
35426         redeclarations if we are being included by <winsock2.h>.
35427         Reported by Matthias Bolte.
35428
35429 2010-03-21  Bruno Haible  <bruno@clisp.org>
35430
35431         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35432         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35433         modifications.
35434         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35435         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35436         provide the replacement.
35437         * modules/forkpty (Depends-on): Add openpty, login_tty.
35438         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35439         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35440         * doc/glibc-functions/forkpty.texi: More supported platforms.
35441         * config/srclist.txt: Add forkpty.c (commented).
35442
35443 2010-03-21  Bruno Haible  <bruno@clisp.org>
35444
35445         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35446         (Makefile.am): Verify that PTY_LIB is defined.
35447
35448         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35449
35450 2010-03-21  Bruno Haible  <bruno@clisp.org>
35451
35452         Tests for module 'login_tty'.
35453         * modules/login_tty-tests: New file.
35454         * tests/test-login_tty.c: New file.
35455
35456         New module 'login_tty'.
35457         * lib/login_tty.c: New file.
35458         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35459         * modules/login_tty: New file.
35460         * doc/glibc-functions/login_tty.texi: Mention the new module.
35461
35462 2010-03-21  Bruno Haible  <bruno@clisp.org>
35463
35464         login_tty: Documentation.
35465         * doc/glibc-functions/login_tty.texi: New file.
35466         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35467
35468 2010-03-21  Bruno Haible  <bruno@clisp.org>
35469
35470         pty: Consistent macro naming.
35471         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35472         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35473         * modules/pty (configure.ac): Update.
35474
35475 2010-03-21  Bruno Haible  <bruno@clisp.org>
35476
35477         Tests for openpty: Make stricter.
35478         * tests/test-openpty.c (main): Add test of canonical processing and
35479         erase.
35480         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35481
35482         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35483         * lib/openpty.c (openpty): New replacement function.
35484         * lib/pty.in.h: Include <termios.h>.
35485         (openpty): Update declaration. Add comments.
35486         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35487         is not declared, arrange to provide the replacement. Check for _getpty
35488         and posix_openpt.
35489         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35490         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35491         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35492         * modules/pty-tests (test_pty_c___LDADD): New variable.
35493         * doc/glibc-functions/openpty.texi: More supported platforms.
35494
35495 2010-03-21  Bruno Haible  <bruno@clisp.org>
35496
35497         setenv: Tweaks.
35498         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35499         the test program.
35500         * doc/posix-functions/setenv.texi: Update platforms list.
35501
35502 2010-03-21  Bruno Haible  <bruno@clisp.org>
35503
35504         New module 'unlockpt'.
35505         * lib/unlockpt.c: New file, from glibc with modifications.
35506         * m4/unlockpt.m4: New file.
35507         * modules/unlockpt: New file.
35508         * lib/stdlib.in.h (unlockpt): New declaration.
35509         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35510         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35511         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35512         HAVE_UNLOCKPT.
35513         * doc/posix-functions/unlockpt.texi: Mention the new module.
35514         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35515         * config/srclist.txt: Add unlockpt.c (commented).
35516
35517 2010-03-21  Jim Meyering  <meyering@redhat.com>
35518
35519         maint.mk: prohibit inclusion of "intprops.h" without use
35520         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35521
35522 2010-03-21  Bruno Haible  <bruno@clisp.org>
35523
35524         New module 'grantpt'.
35525         * lib/grantpt.c: New file, from glibc with modifications.
35526         * m4/grantpt.m4: New file.
35527         * modules/grantpt: New file.
35528         * lib/stdlib.in.h (grantpt): New declaration.
35529         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35530         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35531         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35532         HAVE_GRANTPT.
35533         * doc/posix-functions/grantpt.texi: Mention the new module.
35534         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35535         * config/srclist.txt: Add grantpt.c (commented).
35536
35537 2010-03-21  Bruno Haible  <bruno@clisp.org>
35538
35539         New module 'pt_chown'.
35540         * lib/pt_chown.c: New file, from glibc with modifications.
35541         * lib/pty-private.h: New file, from glibc with modifications.
35542         * modules/pt_chown: New file.
35543         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35544
35545 2010-03-21  Bruno Haible  <bruno@clisp.org>
35546
35547         Tests for module 'ptsname'.
35548         * modules/ptsname-tests: New file.
35549         * tests/test-ptsname.c: New file.
35550
35551         New module 'ptsname'.
35552         * lib/ptsname.c: New file, from glibc with modifications.
35553         * m4/ptsname.m4: New file.
35554         * modules/ptsname: New file.
35555         * lib/stdlib.in.h (ptsname): New declaration.
35556         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35557         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35558         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35559         HAVE_PTSNAME.
35560         * doc/posix-functions/ptsname.texi: Mention the new module.
35561         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35562         * config/srclist.txt: Add ptsname.c (commented).
35563
35564 2010-03-21  Bruno Haible  <bruno@clisp.org>
35565
35566         Tests for module 'ttyname_r'.
35567         * modules/ttyname_r-tests: New file.
35568         * tests/test-ttyname_r.c: New file.
35569
35570         New module 'ttyname_r'.
35571         * lib/ttyname_r.c: New file.
35572         * m4/ttyname_r.m4: New file.
35573         * modules/ttyname_r: New file.
35574         * lib/unistd.in.h (ttyname_r): New declaration.
35575         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35576         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35577         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35578         HAVE_TTYNAME_R.
35579         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35580         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35581
35582 2010-03-20  Bruno Haible  <bruno@clisp.org>
35583
35584         signal: Undefine macro definitions in C++ mode.
35585         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35586         sigfillset): Undefine macro definitions from the system header in C++
35587         mode.
35588         Reported by John W. Eaton <jwe@gnu.org>.
35589
35590 2010-03-20  Bruno Haible  <bruno@clisp.org>
35591
35592         Ensure no #include statements inside extern "C" { ... }.
35593         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35594         contain #include statements.
35595         * lib/time.in.h: Likewise.
35596
35597 2010-03-20  Bruno Haible  <bruno@clisp.org>
35598
35599         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35600         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35601         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35602         Reported by John W. Eaton <jwe@gnu.org>.
35603
35604 2010-03-20  Bruno Haible  <bruno@clisp.org>
35605
35606         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35607         Reported by Jim Meyering.
35608
35609 2010-03-20  Bruno Haible  <bruno@clisp.org>
35610
35611         pipe: Set errno upon failure.
35612         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35613         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35614         errno value in error message.
35615
35616 2010-03-20  Bruno Haible  <bruno@clisp.org>
35617             Jim Meyering  <meyering@redhat.com>
35618
35619         lchown: Avoid "unused variable" warning.
35620         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35621
35622 2010-03-20  Bruno Haible  <bruno@clisp.org>
35623
35624         Work around unlink() bug on MacOS X 10.5.6.
35625         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35626         attempting to unlink a parent directory.
35627         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35628         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35629         activate for the replacement function.
35630         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35631
35632 2010-03-20  Bruno Haible  <bruno@clisp.org>
35633
35634         Fix link errors on Solaris 8.
35635         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35636         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35637
35638 2010-03-19  Jim Meyering  <meyering@redhat.com>
35639
35640         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35641         The _LIBC implementation of build_range_exp correctly honors the
35642         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35643         However, the non-_LIBC implementation would ignore that syntax-bit
35644         flag and return REG_ERANGE unconditionally.
35645         This change makes it honor that flag.
35646         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35647         Make two pointer parameters "const".
35648         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35649         (parse_bracket_exp): Update caller.
35650
35651         regex.m4: correct the reversed range endpoint ([b-a]) test
35652         * m4/regex.m4: When requiring that [b-a] evoke failure,
35653         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35654         test pass once again for x86-based systems.
35655
35656 2010-03-19  Bruno Haible  <bruno@clisp.org>
35657
35658         scandir: Fix link error on Solaris 8.
35659         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35660         macros.
35661
35662 2010-03-19  Bruno Haible  <bruno@clisp.org>
35663
35664         getusershell: Fix documentation.
35665         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35666         module.
35667         * doc/glibc-functions/setusershell.texi: Likewise.
35668
35669         getusershell: Provide declaration, missing on Solaris 9.
35670         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35671         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35672         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35673         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35675         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35676         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35677         HAVE_GETUSERSHELL.
35678         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35679
35680 2010-03-19  Bruno Haible  <bruno@clisp.org>
35681
35682         wctype: Provide iswblank function.
35683         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35684         exists and is fine.
35685         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35686         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35687         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35688         * doc/posix-functions/iswblank.texi: Update.
35689
35690 2010-03-19  Bruno Haible  <bruno@clisp.org>
35691
35692         Tests of module 'pty' in C++ mode.
35693         * modules/pty-tests: New file.
35694         * tests/test-pty-c++.cc: New file.
35695         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35696
35697 2010-03-19  Eric Blake  <eblake@redhat.com>
35698
35699         logb: fix documentation
35700         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35701         1.5 declaration bug.
35702
35703         forkpty, openpty: prefer glibc's const-safe prototype
35704         * lib/forkpty.c (rpl_forkpty): New file.
35705         * lib/openpty.c (rpl_openpty): Likewise.
35706         * modules/forkpty (Files): Distribute it.
35707         * modules/openpty (Files): Likewise.
35708         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35709         check...
35710         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35711         replacement for for non-const BSD signature.
35712         * modules/pty (Makefile.am): Substitute witnesses.
35713         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35714         * tests/test-forkpty.c: Update signature check.
35715         * tests/test-openpty.c: Likewise.
35716         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35717         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35718
35719         forkpty, openpty: split functions into new modules
35720         * modules/pty (Makefile.am): Substitute new witnesses.
35721         (Libraries): Move library detection...
35722         * modules/forkpty: ...into new module.
35723         * modules/openpty: Another new module.
35724         * modules/pty-tests: Rename and split...
35725         * modules/forkpty-tests: ...to this...
35726         * modules/openpty-tests: ...and this.
35727         * tests/test-pty.c: Rename and split...
35728         * tests/test-forkpty.c: ...to this...
35729         * tests/test-openpty.c: ...and this.
35730         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35731         (gl_PTY): Split library searching...
35732         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35733         (gl_FORKPTY, gl_OPENPTY): New macros.
35734         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35735         * NEWS: Mention the split.
35736         * MODULES.html.sh (Misc): Document the modules.
35737         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35738         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35739
35740         pty: improve replacement header
35741         * lib/pty.in.h: New file.
35742         * modules/pty (Files): Ship it.
35743         (Makefile.am): Always build replacement.
35744         * m4/pty.m4: Rename...
35745         * m4/pty_h.m4: ...to this.
35746         (gl_PTY): Modernize setting of witness macros; update check of
35747         forkpty to take proper advantage of cache.
35748         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35749
35750         getopt: avoid compiler warning
35751         * lib/getopt.c (attribute_hidden): Remove unused macro.
35752
35753 2010-03-18  Bruno Haible  <bruno@clisp.org>
35754
35755         Fix link errors on Solaris 8.
35756         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35757         * modules/search-tests (test_search_c___LDADD): Likewise.
35758         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35759         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35760         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35761         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35762         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35763         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35764         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35765
35766 2010-03-18  Bruno Haible  <bruno@clisp.org>
35767
35768         Fix bug introduced on 2010-03-14.
35769         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35770         (gl_SPAWN_H): Require it.
35771         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35772         Reported by Simon Josefsson.
35773
35774 2010-03-18  Bruno Haible  <bruno@clisp.org>
35775
35776         Fix typo introduced on 2009-12-31.
35777         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35778         posix_spawn_file_actions_adddup2.
35779
35780 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35781         and Eric Blake  <eblake@redhat.com>
35782
35783         test-vc-list-files-git: make more robust
35784         * tests/test-vc-list-files-git.sh: Unset problematic environment
35785         variables.  Chain commands together.
35786
35787 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35788
35789         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35790         `AC_CHECK_DECL' invocation.
35791
35792 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35793
35794         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35795         appears before executable statements. Suggested by Petr Sumbera
35796         <Petr.Sumbera@Sun.COM>.
35797
35798 2010-03-14  Bruno Haible  <bruno@clisp.org>
35799
35800         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35801         portability problems. Instead use a simpler test.
35802         (main): Check that invalid arguments are rejected only on Linux.
35803
35804 2010-03-14  Bruno Haible  <bruno@clisp.org>
35805
35806         Fix bug introduced on 2009-12-31.
35807         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35808         gl_PREREQ_SYS_H_WINSOCK2 always.
35809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35810         SYS_SOCKET_H variable.
35811         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35812         Update comments.
35813         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35814         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35815         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35817         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35818
35819 2010-03-14  Bruno Haible  <bruno@clisp.org>
35820
35821         Fix values returned by sinl, cosl.
35822         * lib/trigl.h: Add specification comments.
35823         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35824         that combines the values from the precomputed table with the values of
35825         the Chebyshev polynomials.
35826
35827 2010-03-14  Bruno Haible  <bruno@clisp.org>
35828
35829         Fix compilation error when modules 'posix_spawn[p]' are not used.
35830         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35832
35833 2010-03-14  Bruno Haible  <bruno@clisp.org>
35834
35835         Fix compilation error on mingw when module 'time_r' is not used.
35836         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35837         is 1.
35838         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35839         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35840         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35841         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35842
35843 2010-03-14  Bruno Haible  <bruno@clisp.org>
35844
35845         Fix compilation error with Sun C.
35846         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35847         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35848         instead of GCC specific ULONG_LONG_MAX.
35849         * lib/xstrtoll.c: Likewise.
35850         * lib/xstrtoull.c: Likewise.
35851
35852 2010-03-13  Bruno Haible  <bruno@clisp.org>
35853
35854         Allow the user to disable C++ code and tests.
35855         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35856         (gl_PROG_ANSI_CXX): Require it.
35857
35858 2010-03-13  Bruno Haible  <bruno@clisp.org>
35859
35860         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35861         cases.
35862
35863 2010-03-13  Bruno Haible  <bruno@clisp.org>
35864
35865         Test that gnulib does not break the standard C++ headers.
35866         * tests/test-locale-c++2.cc: New file.
35867         * modules/locale-tests (Files): Add it.
35868         (Makefile.am): Compile it for test-locale-c++.
35869         * tests/test-math-c++2.cc: New file.
35870         * modules/math-tests (Files): Add it.
35871         (Makefile.am): Compile it for test-math-c++.
35872         * tests/test-signal-c++2.cc: New file.
35873         * modules/signal-tests (Files): Add it.
35874         (Makefile.am): Compile it for test-signal-c++.
35875         * tests/test-stdio-c++2.cc: New file.
35876         * modules/stdio-tests (Files): Add it.
35877         (Makefile.am): Compile it for test-stdio-c++.
35878         * tests/test-stdlib-c++2.cc: New file.
35879         * modules/stdlib-tests (Files): Add it.
35880         (Makefile.am): Compile it for test-stdlib-c++.
35881         * tests/test-string-c++2.cc: New file.
35882         * modules/string-tests (Files): Add it.
35883         (Makefile.am): Compile it for test-string-c++.
35884         * tests/test-time-c++2.cc: New file.
35885         * modules/time-tests (Files): Add it.
35886         (Makefile.am): Compile it for test-time-c++.
35887         Reported by John W. Eaton <jwe@gnu.org>.
35888
35889 2010-03-13  Bruno Haible  <bruno@clisp.org>
35890
35891         * gnulib-tool (func_usage): Clarify which options are available for
35892         --create-testdir and --create-megatestdir.
35893
35894 2010-03-13  Bruno Haible  <bruno@clisp.org>
35895
35896         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35897         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35898         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35899         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35900         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35901         when appropriate.
35902         Reported by Jim Meyering.
35903
35904 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35905
35906         * gnulib-tool (func_import): Explain origin of code.
35907
35908 2010-03-12  Bruno Haible  <bruno@clisp.org>
35909
35910         Fix problem with automake's definition of CXXLINK.
35911         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35912         Reported by Simon Josefsson and Ludovic Courtès.
35913
35914 2010-03-12  Bruno Haible  <bruno@clisp.org>
35915
35916         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35917         stable releases.
35918
35919 2010-03-11  Bruno Haible  <bruno@clisp.org>
35920
35921         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35922         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35923         whether the system provides one variant or multiple variants of the
35924         function.
35925         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35926         C++ compilers.
35927         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35928         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35929         Reported by Jim Meyering.
35930
35931 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35932
35933         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35934
35935 2010-03-08  Bruno Haible  <bruno@clisp.org>
35936
35937         gnulib-tool: Add support for --libtool in --create-testdir.
35938         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35939         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35940
35941 2010-03-08  Eric Blake  <eblake@redhat.com>
35942
35943         gnulib-tool.texi: mention possibility of git submodule
35944         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35945         submodules.
35946         * doc/.gitignore: Ignore another generated file.
35947
35948 2010-03-08  Karl Berry  <karl@gnu.org>
35949
35950         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35951         of committing gnulib files while skipping others.
35952
35953 2010-03-07  Bruno Haible  <bruno@clisp.org>
35954
35955         Tests of module 'wctype' in C++ mode.
35956         * tests/test-wctype-c++.cc: New file.
35957         * modules/wctype-tests (Files): Add it and tests/signature.h.
35958         (Depends-on): Add ansi-c++-opt.
35959         (Makefile.am): Arrange to compile and run test-wctype-c++.
35960
35961         Tests of module 'wchar' in C++ mode.
35962         * tests/test-wchar-c++.cc: New file.
35963         * modules/wchar-tests (Files): Add it and tests/signature.h.
35964         (Depends-on): Add ansi-c++-opt.
35965         (Makefile.am): Arrange to compile and run test-wchar-c++.
35966         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35967         gl_MODULE_INDICATOR.
35968
35969         Tests of module 'unistd' in C++ mode.
35970         * tests/test-unistd-c++.cc: New file.
35971         * modules/unistd-tests (Files): Add it and tests/signature.h.
35972         (Depends-on): Add ansi-c++-opt.
35973         (Makefile.am): Arrange to compile and run test-unistd-c++.
35974         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35975         gl_MODULE_INDICATOR.
35976
35977         Tests of module 'time' in C++ mode.
35978         * tests/test-time-c++.cc: New file.
35979         * modules/time-tests (Files): Add it and tests/signature.h.
35980         (Depends-on): Add ansi-c++-opt.
35981         (Makefile.am): Arrange to compile and run test-time-c++.
35982         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35983
35984         Tests of module 'sys_time' in C++ mode.
35985         * tests/test-sys_time-c++.cc: New file.
35986         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35987         (Depends-on): Add ansi-c++-opt.
35988         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35989         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35990         gl_MODULE_INDICATOR.
35991
35992         Tests of module 'sys_stat' in C++ mode.
35993         * tests/test-sys_stat-c++.cc: New file.
35994         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35995         (Depends-on): Add ansi-c++-opt.
35996         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35997         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35998         gl_MODULE_INDICATOR.
35999
36000         Tests of module 'sys_socket' in C++ mode.
36001         * tests/test-sys_socket-c++.cc: New file.
36002         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36003         (Depends-on): Add ansi-c++-opt.
36004         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36005         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36006         gl_MODULE_INDICATOR.
36007
36008         Tests of module 'sys_select' in C++ mode.
36009         * tests/test-sys_select-c++.cc: New file.
36010         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36011         (Depends-on): Add ansi-c++-opt.
36012         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36013         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36014         gl_MODULE_INDICATOR.
36015
36016         Tests of module 'sys_ioctl' in C++ mode.
36017         * tests/test-sys_ioctl-c++.cc: New file.
36018         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36019         (Depends-on): Add ansi-c++-opt.
36020         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36021         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36022         gl_MODULE_INDICATOR.
36023
36024         Tests of module 'string' in C++ mode.
36025         * tests/test-string-c++.cc: New file.
36026         * modules/string-tests (Files): Add it and tests/signature.h.
36027         (Depends-on): Add ansi-c++-opt.
36028         (Makefile.am): Arrange to compile and run test-string-c++.
36029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36030         gl_MODULE_INDICATOR.
36031
36032         Tests of module 'stdlib' in C++ mode.
36033         * tests/test-stdlib-c++.cc: New file.
36034         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36035         (Depends-on): Add ansi-c++-opt.
36036         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36037         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36038         gl_MODULE_INDICATOR.
36039
36040         Tests of module 'stdio' in C++ mode.
36041         * tests/test-stdio-c++.cc: New file.
36042         * modules/stdio-tests (Files): Add it and tests/signature.h.
36043         (Depends-on): Add ansi-c++-opt.
36044         (Makefile.am): Arrange to compile and run test-stdio-c++.
36045         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36046         gl_MODULE_INDICATOR.
36047
36048         Tests of module 'spawn' in C++ mode.
36049         * tests/test-spawn-c++.cc: New file.
36050         * modules/spawn-tests (Files): Add it and tests/signature.h.
36051         (Depends-on): Add ansi-c++-opt.
36052         (Makefile.am): Arrange to compile and run test-spawn-c++.
36053         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36054         gl_MODULE_INDICATOR.
36055
36056         Tests of module 'signal' in C++ mode.
36057         * tests/test-signal-c++.cc: New file.
36058         * modules/signal-tests (Files): Add it and tests/signature.h.
36059         (Depends-on): Add ansi-c++-opt.
36060         (Makefile.am): Arrange to compile and run test-signal-c++.
36061         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36062         gl_MODULE_INDICATOR.
36063
36064         Tests of module 'search' in C++ mode.
36065         * tests/test-search-c++.cc: New file.
36066         * modules/search-tests (Files): Add it and tests/signature.h.
36067         (Depends-on): Add ansi-c++-opt.
36068         (Makefile.am): Arrange to compile and run test-search-c++.
36069         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36070         gl_MODULE_INDICATOR.
36071
36072         Tests of module 'math' in C++ mode.
36073         * tests/test-math-c++.cc: New file.
36074         * modules/math-tests (Files): Add it and tests/signature.h.
36075         (Depends-on): Add ansi-c++-opt.
36076         (Makefile.am): Arrange to compile and run test-math-c++.
36077         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36078
36079         Tests of module 'locale' in C++ mode.
36080         * tests/test-locale-c++.cc: New file.
36081         * modules/locale-tests (Files): Add it and tests/signature.h.
36082         (Depends-on): Add ansi-c++-opt.
36083         (Makefile.am): Arrange to compile and run test-locale-c++.
36084         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36085         gl_MODULE_INDICATOR.
36086
36087         Tests of module 'langinfo' in C++ mode.
36088         * tests/test-langinfo-c++.cc: New file.
36089         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36090         (Depends-on): Add ansi-c++-opt.
36091         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36092         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36093         gl_MODULE_INDICATOR.
36094
36095         Tests of module 'iconv-h' in C++ mode.
36096         * tests/test-iconv-h-c++.cc: New file.
36097         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36098         (Depends-on): Add ansi-c++-opt.
36099         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36100
36101         Tests of module 'glob' in C++ mode.
36102         * tests/test-glob-c++.cc: New file.
36103         * modules/glob-tests (Files): Add it.
36104         (Depends-on): Add ansi-c++-opt.
36105         (Makefile.am): Arrange to compile and run test-glob-c++.
36106
36107         Tests of module 'fcntl-h' in C++ mode.
36108         * tests/test-fcntl-h-c++.cc: New file.
36109         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36110         (Depends-on): Add ansi-c++-opt.
36111         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36112         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36113         gl_MODULE_INDICATOR.
36114
36115         Tests of module 'dirent' in C++ mode.
36116         * tests/test-dirent-c++.cc: New file.
36117         * modules/dirent-tests (Files): Add it and tests/signature.h.
36118         (Depends-on): Add ansi-c++-opt.
36119         (Makefile.am): Arrange to compile and run test-dirent-c++.
36120         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36121         gl_MODULE_INDICATOR.
36122
36123         New module 'ansi-c++-opt'.
36124         * modules/ansi-c++-opt: New file.
36125         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36126
36127         Document C++ namespace mode.
36128         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36129
36130         wctype: Avoid #define replacements in C++ mode.
36131         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36132         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36133         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36134         In C++, define a namespaced alias symbol.
36135         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36136         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36137         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36138         rule.
36139
36140         wchar: Avoid #define replacements in C++ mode.
36141         * lib/wchar.in.h: Include c++defs.h.
36142         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36143         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36144         symbol.
36145         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36146         * modules/wchar (Depends-on): Add c++defs.
36147         (Makefile.am): Update wchar.h rule.
36148
36149         unistd: Avoid #define replacements in C++ mode.
36150         * lib/unistd.in.h: Include c++defs.h.
36151         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36152         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36153         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36154         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36155         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36156         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36157         symbol.
36158         (environ): Update.
36159         * modules/unistd (Depends-on): Add c++defs.
36160         (Makefile.am): Update unistd.h rule.
36161
36162         time: Avoid #define replacements in C++ mode.
36163         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36164         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36165         define a namespaced alias symbol.
36166         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36167         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36168         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36169         * modules/time (Depends-on): Add c++defs, warn-on-use.
36170         (Makefile.am): Update time.h rule.
36171         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36172         * modules/nanosleep (configure.ac): Likewise.
36173         * modules/strptime (configure.ac): Likewise.
36174         * modules/timegm (configure.ac): Likewise.
36175
36176         sys_time: Avoid #define replacements in C++ mode.
36177         * lib/sys_time.in.h: Include c++defs.h.
36178         (gettimeofday): In C++, define a namespaced alias symbol.
36179         * modules/sys_time (Depends-on): Add c++defs.
36180         (Makefile.am): Update sys/time.h rule.
36181
36182         sys_stat: Avoid #define replacements in C++ mode.
36183         * lib/sys_stat.in.h: Include c++defs.h.
36184         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36185         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36186         namespaced alias symbol.
36187         In C++, define a namespaced alias symbol.
36188         * modules/sys_stat (Depends-on): Add c++defs.
36189         (Makefile.am): Update sys/stat.h rule.
36190
36191         sys_socket: Avoid #define replacements in C++ mode.
36192         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36193         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36194         definitions also when the system has a <sys/socket.h>.
36195         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36196         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36197         In C++, define a namespaced alias symbol.
36198         * modules/sys_socket (Depends-on): Add c++defs.
36199         (Makefile.am): Update sys/socket.h rule.
36200
36201         sys_select: Avoid #define replacements in C++ mode.
36202         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36203         definitions also when the system has a <sys/select.h>.
36204         (select): In C++, define a namespaced alias symbol.
36205         * modules/sys_select (Depends-on): Add c++defs.
36206         (Makefile.am): Update sys/select.h rule.
36207
36208         sys_ioctl: Avoid #define replacements in C++ mode.
36209         * lib/sys_ioctl.in.h: Include c++defs.h.
36210         (ioctl): In C++, define a namespaced alias symbol.
36211         * modules/sys_ioctl (Depends-on): Add c++defs.
36212         (Makefile.am): Update sys/ioctl.h rule.
36213
36214         string: Avoid #define replacements in C++ mode.
36215         * lib/string.in.h: Include c++defs.h.
36216         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36217         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36218         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36219         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36220         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36221         * modules/string (Depends-on): Add c++defs.
36222         (Makefile.am): Update string.h rule.
36223
36224         stdlib: Avoid #define replacements in C++ mode.
36225         * lib/stdlib.in.h: Include c++defs.h.
36226         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36227         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36228         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36229         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36230         symbol.
36231         * modules/stdlib (Depends-on): Add c++defs.
36232         (Makefile.am): Update stdlib.h rule.
36233
36234         stdio: Avoid #define replacements in C++ mode.
36235         * lib/stdio.in.h: Include c++defs.h.
36236         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36237         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36238         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36239         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36240         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36241         namespaced alias symbol.
36242         * modules/stdio (Depends-on): Add c++defs.
36243         (Makefile.am): Update stdio.h rule.
36244
36245         spawn: Avoid #define replacements in C++ mode.
36246         * lib/spawn.in.h: Include c++defs.h.
36247         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36248         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36249         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36250         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36251         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36252         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36253         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36254         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36255         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36256         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36257         In C++, define a namespaced alias symbol.
36258         * modules/spawn (Depends-on): Add c++defs.
36259         (Makefile.am): Update spawn.h rule.
36260
36261         signal: Avoid #define replacements in C++ mode.
36262         * lib/signal.in.h: Include c++defs.h.
36263         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36264         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36265         namespaced alias symbol.
36266         * modules/signal (Depends-on): Add c++defs.
36267         (Makefile.am): Update signal.h rule.
36268
36269         search: Avoid #define replacements in C++ mode.
36270         * lib/search.in.h: Include c++defs.h.
36271         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36272         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36273         symbol.
36274         * modules/search (Depends-on): Add c++defs.
36275         (Makefile.am): Update search.h rule.
36276
36277         math: Avoid #define replacements in C++ mode.
36278         * lib/math.in.h: Include c++defs.h.
36279         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36280         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36281         trunc, truncl): In C++, define a namespaced alias symbol.
36282         * modules/math (Depends-on): Add c++defs.
36283         (Makefile.am): Update math.h rule.
36284
36285         locale: Avoid #define replacements in C++ mode.
36286         * lib/locale.in.h: Include c++defs.h.
36287         (duplocale): In C++, define a namespaced alias symbol.
36288         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36289         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36290         * modules/locale (Depends-on): Add c++defs.
36291         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36292
36293         langinfo: Avoid #define replacements in C++ mode.
36294         * lib/langinfo.in.h: Include c++defs.h.
36295         (nl_langinfo): In C++, define a namespaced alias symbol.
36296         * modules/langinfo (Depends-on): Add c++defs.
36297         (Makefile.am): Update langinfo.h rule.
36298
36299         iconv-h: Avoid #define replacements in C++ mode.
36300         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36301         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36302         symbol.
36303         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36304         whenever iconv is present.
36305         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36306         (Makefile.am): Update iconv.h rule.
36307
36308         glob: Avoid #define replacements in C++ mode.
36309         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36310         (_gl_glob_errfunc_fn): New type.
36311         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36312         symbol.
36313         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36314         (Makefile.am): Update glob.h rule.
36315
36316         fcntl-h: Avoid #define replacements in C++ mode.
36317         * lib/fcntl.in.h: Include c++defs.h.
36318         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36319         * modules/fcntl-h (Depends-on): Add c++defs.
36320         (Makefile.am): Update fcntl.h rule.
36321
36322         dirent: Avoid #define replacements in C++ mode.
36323         * lib/dirent.in.h: Include c++defs.h.
36324         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36325         namespaced alias symbol.
36326         (dirfd): Update declaration.
36327         * modules/dirent (Depends-on): Add c++defs.
36328         (Makefile.am): Update dirent.h rule.
36329
36330         ctype: Make it usable in C++ code.
36331         * lib/ctype.in.h: Include c++defs.h.
36332         (isblank): Declare as extern "C".
36333         * modules/ctype (Depends-on): Add c++defs.
36334         (Makefile.am): Update ctype.h rule.
36335
36336         New module 'c++defs'.
36337         * modules/c++defs: New file.
36338         * build-aux/c++defs.h: New file.
36339         Reported by John W. Eaton <jwe@gnu.org>.
36340
36341 2010-03-07  Bruno Haible  <bruno@clisp.org>
36342
36343         logb: Provide missing declaration for Cygwin.
36344         * lib/math.in.h (logb): New declaration.
36345         * m4/logb.m4: New file.
36346         * modules/logb (Files): Add m4/logb.m4.
36347         (Depends-on): Add math.
36348         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36349         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36351         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36352         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36353
36354 2010-03-07  Bruno Haible  <bruno@clisp.org>
36355
36356         Fix test-cond link error.
36357         * tests/test-cond.c: Include <stdio.h>.
36358
36359 2010-03-07  Bruno Haible  <bruno@clisp.org>
36360
36361         Fix test-dirent-safer link error.
36362         * modules/dirent-safer-tests (Makefile.am): Define
36363         test_dirent_safer_LDADD.
36364
36365 2010-03-07  Bruno Haible  <bruno@clisp.org>
36366
36367         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36368         among default module list.
36369
36370 2010-03-07  Bruno Haible  <bruno@clisp.org>
36371
36372         Fix link error on platforms with GNU libiconv.
36373         * modules/unistr/u8-strcoll-tests (Makefile): Define
36374         test_u8_strcoll_LDADD.
36375         * modules/unistr/u16-strcoll-tests (Makefile): Define
36376         test_u16_strcoll_LDADD.
36377         * modules/unistr/u32-strcoll-tests (Makefile): Define
36378         test_u32_strcoll_LDADD.
36379
36380 2010-03-07  Bruno Haible  <bruno@clisp.org>
36381
36382         Use POSIX declarations for socket functions.
36383         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36384         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36385         rpl_sendto): Change declaration to match POSIX.
36386         * lib/connect.c (rpl_connect): Likewise.
36387         * lib/accept.c (rpl_accept): Likewise.
36388         * lib/bind.c (rpl_bind): Likewise.
36389         * lib/getpeername.c (rpl_getpeername): Likewise.
36390         * lib/getsockname.c (rpl_getsockname): Likewise.
36391         * lib/recv.c (rpl_recv): Likewise.
36392         * lib/send.c (rpl_send): Likewise.
36393         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36394         * lib/sendto.c (rpl_sendto): Likewise.
36395
36396 2010-03-06  Bruno Haible  <bruno@clisp.org>
36397
36398         Clarify access, euidaccess, faccessat.
36399         * doc/posix-functions/faccessat.texi: Mention security problem under
36400         "Other problems", not "Portability problems".
36401         * doc/posix-functions/access.texi: Likewise. Mention a related security
36402         problem.
36403         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36404         * lib/euidaccess.c: Add comments about platforms.
36405         * lib/unistd.in.h (access, euidaccess): Add warnings.
36406
36407 2010-03-07  Bruno Haible  <bruno@clisp.org>
36408
36409         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36410         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36411         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36412         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36413         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36414         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36415         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36416         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36417         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36418         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36419         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36420         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36421         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36422         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36423         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36424         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36425         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36426         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36427         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36428         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36429         Likewise.
36430         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36431         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36432         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36433         Likewise.
36434         * tests/test-spawn.c (main): Make it work when
36435         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36436
36437 2010-03-07  Bruno Haible  <bruno@clisp.org>
36438
36439         Fix incorrect Makefile.am generation in German locale.
36440         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36441         Execute sed command with character range in C locale.
36442
36443 2010-03-06  Bruno Haible  <bruno@clisp.org>
36444
36445         Tests for module 'iconv-h'.
36446         * modules/iconv-h-tests: New file.
36447         * tests/test-iconv-h.c: New file.
36448
36449         New module 'iconv-h'.
36450         * modules/iconv-h: New file.
36451         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36452         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36453         (configure.ac): Remove gl_ICONV_H.
36454         (Makefile.am): Remove rule for iconv.h.
36455
36456 2010-03-06  Bruno Haible  <bruno@clisp.org>
36457
36458         More consistent naming of *.m4 files.
36459         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36460         * modules/wctype (Files): Update.
36461
36462         More consistent naming of *.m4 files.
36463         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36464         * modules/wchar (Files): Update.
36465
36466 2010-03-06  Jim Meyering  <meyering@redhat.com>
36467
36468         euidaccess: relax license to LGPLv2+
36469         * modules/euidaccess (License): Relax to LGPLv2+.
36470
36471 2010-03-06  Bruno Haible  <bruno@clisp.org>
36472
36473         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36474         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36475         (Makefile.am): Augment lib_SOURCES instead.
36476
36477 2010-03-04  Jim Meyering  <meyering@redhat.com>
36478
36479         utime: remove obsolete module
36480         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36481         unnecessary for years, and has been marked as obsolete for 10 months.
36482         * modules/utime: Remove file.
36483         * lib/utime.c: Remove file.
36484         * m4/utime.m4: Remove file.
36485         * m4/utimes-null.m4: Remove file.
36486         * doc/posix-functions/utime.texi (utime): Remove reference to
36487         the module.  Move the sole "fixed by gnulib" item into the
36488         "problems not fixed by Gnulib" list.
36489         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36490
36491 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36492
36493         * modules/exit (License): Relax license to LGPLv2+.
36494         (Status): Mark as obsolete.
36495         * NEWS: Mention deprecated 'exit' module.
36496         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36497         of now obsolete 'exit'.
36498
36499 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36500
36501         fts-lgpl: remove unused module
36502         * modules/fts-lgpl: Remove.
36503         * MODULES.html.sh (func_all_modules): Adjust.
36504         * check-module (find_included_lib_files): Adjust.
36505         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36506
36507 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36508
36509         copy-acl: enhance Solaris ACL error handling
36510         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36511         * lib/set-mode-acl.c (qset_acl): Likewise.
36512
36513 2010-03-02  Bruno Haible  <bruno@clisp.org>
36514
36515         spawn: Don't override the system defined values on FreeBSD 8.
36516         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36517         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36518         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36519         if HAVE_POSIX_SPAWN is 1.
36520         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36521
36522 2010-03-01  Bruno Haible  <bruno@clisp.org>
36523
36524         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36525         regarding Automake.
36526
36527 2010-02-25  Bruno Haible  <bruno@clisp.org>
36528
36529         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36530         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36531         setting, not afterwards.
36532         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36533
36534 2010-02-24  Eric Blake  <eblake@redhat.com>
36535
36536         bootstrap, git-version-gen: use timestamp
36537         * build-aux/git-version-gen (scriptversion): Force UTC.
36538         * build-aux/bootstrap (scriptversion): New variable.
36539
36540         bootstrap: allow older git
36541         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36542         older than 1.6.4.  Requested by the libvirt project.
36543
36544 2010-02-23  Eric Blake  <eblake@redhat.com>
36545
36546         warn-on-use: work with old autoconf
36547         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36548         AS_VAR semantics of autoconf 2.60.
36549         Reported by Bruno Haible.
36550
36551         bootstrap: improve some comments
36552         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36553         clarification comments.
36554
36555         gettimeofday: provide correct function
36556         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36557         when replacement is declared, otherwise provide gettimeofday.
36558         Reported by Michael Goffioul.
36559
36560 2010-02-23  Jim Meyering  <meyering@redhat.com>
36561
36562         lib-ignore: relax license to "unlimited", not LGPLv2+
36563         * modules/lib-ignore (License): Relax to "unlimited".
36564
36565 2010-02-23  Jim Meyering  <meyering@redhat.com>
36566
36567         lib-ignore: relax license to LGPLv2+
36568         * modules/lib-ignore (License): Relax to LGPLv2+.
36569
36570 2010-02-22  Eric Blake  <eblake@redhat.com>
36571
36572         lseek: avoid bash 3.2 broken pipe bug
36573         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36574         warning from bash 3.2.
36575         Reported by Ben Pfaff, with analysis from Bruno Haible.
36576
36577         bootstrap: support non-FSF copyright holder
36578         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36579         bootstrap.conf override of COPYRIGHT_HOLDER.
36580         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36581
36582         bootstrap: interoperate with gettext 0.14.1
36583         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36584
36585         bootstrap: allow for alternate submodule location
36586         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36587         hardcoding submodule location.
36588         (gnulib_mk): Allow direct use of Makefile.am.
36589
36590         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36591         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36592         rather than reconfiguring where the submodule points.
36593
36594         gettimeofday: restore support for platforms that lack function
36595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36596         replacement if function is missing.
36597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36598         * modules/sys_time (Makefile.am): Substitute it.
36599         * lib/sys_time.in.h (gettimeofday): Check it.
36600         Reported by Michael Goffioul.
36601
36602 2010-02-21  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/stdio.in.h (obstack_printf): Fix typo.
36605
36606 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36607
36608         vc-list-files: use bzr ls's -R option
36609         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36610         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36611
36612 2010-02-21  Jim Meyering  <meyering@redhat.com>
36613
36614         init.sh: fix EXEEXT shims to work also for names like test-prog
36615         * tests/init.sh: Re-exec a better shell, when needed.
36616         If the current shell lacks support for posix $(...), an init.sh-using
36617         test will now try to find a shell that supports that.  If EXEEXT is
36618         nonempty, we also require support for hyphen-in-alias-name and shell
36619         substitutions like ${var#glob}.  Failure to find such a shell results
36620         in a skipped test.
36621
36622 2010-02-21  Bruno Haible  <bruno@clisp.org>
36623
36624         Really work around around "broken pipe" error message from bash 3.2.
36625         * gnulib-tool (func_reset_sigpipe): Remove function.
36626         (echo): In bash 3.2, define to a function that uses printf.
36627         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36628
36629 2010-02-20  Bruno Haible  <bruno@clisp.org>
36630
36631         Restore support for automake 1.9.6 with autoconf 2.61.
36632         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36633         Reported by James Youngman <jay@gnu.org>.
36634
36635 2010-02-20  Bruno Haible  <bruno@clisp.org>
36636
36637         Improve *printf warning condition.
36638         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36639         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36640         and the function is overridden due to SIGPIPE emulation.
36641
36642 2010-02-20  Bruno Haible  <bruno@clisp.org>
36643
36644         * lib/stdio.in.h: Tweak comments.
36645
36646 2010-02-19  Bruno Haible  <bruno@clisp.org>
36647
36648         Make it easier to find modules. New gnulib-tool option '--find'.
36649         * gnulib-tool: New option --find.
36650         (func_usage): Document it.
36651         (func_sanitize_modulelist): New function, extracted from
36652         func_all_modules.
36653         (func_all_modules): Invoke it.
36654         * doc/gnulib-tool.texi (Which modules?): New node.
36655
36656 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36657
36658         * lib/sys_select.in.h: Provide select replacement even if
36659         sys/select.h exists on a system, for Interix.
36660
36661 2010-02-18  Jim Meyering  <meyering@redhat.com>
36662
36663         init.sh: don't use $(...) just yet
36664         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36665         to accommodate e.g., Solaris' /bin/sh.
36666
36667 2010-02-17  Bruno Haible  <bruno@clisp.org>
36668
36669         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36670         Reported by Ludovic Courtès <ludo@gnu.org>.
36671
36672 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36673
36674         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36675         linking with -lintl.
36676
36677 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36678
36679         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36680         if not provided by the system's netdb.h.  Reported by
36681         ludo@gnu.org (Ludovic Courtès).
36682
36683 2010-02-15  Jim Meyering  <meyering@redhat.com>
36684
36685         init.sh: improve portability and efficiency
36686         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36687         "dummy" in a for loop.
36688         Use '!', not '^' to select the complement of a character set used
36689         in a "case" statement.
36690         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36691         Suggestions from Eric Blake.
36692
36693         init.sh: automatically accommodate programs with the .exe suffix
36694         Automatically arrange for an invocation of "prog" to execute the
36695         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36696         may use the simpler "prog", yet still work when built on a system
36697         that requires specifying the added suffix.
36698         Do this by constructing a function named "prog" that invokes
36699         "prog.exe" for each .exe file in selected directories.
36700         * tests/init.sh (find_exe_basenames_): New function.
36701         (create_exe_shim_functions_): New function.
36702         (path_prepend_): Use it.
36703
36704         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36705         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36706         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36707
36708 2010-02-14  Jim Meyering  <meyering@redhat.com>
36709
36710         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36711         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36712         (sc_prohibit_hash_pjw_without_use): New rule.
36713
36714         maint.mk: allow the default upload destination dir to be overridden
36715         * top/maint.mk (upload_dest_dir_): Define with a default that
36716         preserves the status quo.
36717         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36718         Reported by Peter Simons.
36719
36720         maint.mk: prohibit inclusion of "hash.h" without_use
36721         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36722
36723 2010-02-10  Jim Meyering  <meyering@redhat.com>
36724
36725         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36726         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36727
36728 2010-02-09  Eric Blake  <ebb9@byu.net>
36729         and Bruno Haible  <bruno@clisp.org>
36730
36731         obstack-printf-posix: ensure declaration
36732         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36733         extracted from gl_FUNC_OBSTACK_PRINTF.
36734         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36735         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36736         Likewise.
36737         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36738         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36739         0.
36740
36741 2010-02-08  Bruno Haible  <bruno@clisp.org>
36742
36743         gnulib-tool: Fix typo in 2010-02-07 commit.
36744         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36745         Reported by Eric Blake.
36746
36747 2010-02-07  Bruno Haible  <bruno@clisp.org>
36748
36749         gnulib-tool: Fix up caching patches.
36750         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36751         option --no-cache. Use associative arrays when supported by the shell.
36752         (sed_comments): New variable.
36753         (modcache): Renamed from do_cache.
36754         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36755         abbreviate unnecessarily.
36756         (have_associative): New variable.
36757         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36758         way also for ksh and zsh.
36759         (func_init_sed_convert_to_cache_statements): New function, extracted
36760         from func_cache_lookup_module. Add support for associative arrays.
36761         Don't set the c_MODULE_cached variable here. Ignore all lines before
36762         the first field header. Remove only the final newline, not all trailing
36763         newlines. Support empty fields correctly. Limit the use of 'eval' to
36764         assignments.
36765         (func_get_description, func_get_status, func_get_notice,
36766         func_get_applicability, func_get_filelist, func_get_dependencies,
36767         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36768         func_get_automake_snippet, func_get_include_directive,
36769         func_get_link_directive, func_get_license, func_get_maintainer):
36770         Update documentation. List the unoptimized code first. Add support for
36771         associative arrays. Limit the use of 'eval' to assignments.
36772         (func_get_applicability): Undo stylistic pessimisations.
36773         (func_get_automake_snippet, func_get_include_directive): Reduce code
36774         duplication.
36775         (func_modules_transitive_closure, func_modules_add_dummy,
36776         func_modules_notice, func_modules_to_filelist, func_add_file,
36777         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36778         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36779         func_create_testdir, func_create_megatestdir): Update documentation.
36780
36781 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36782
36783         * gnulib-tool (func_cache_lookup_module): Store the module name
36784         belonging to the cache variable; error out if two different
36785         module names map to the same cache variable name.
36786
36787 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36788
36789         gnulib-tool: Make caching optional.
36790         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36791         Update matching short versions of --no-changelog.
36792         (func_usage): Update.
36793         (sed_extract_cache_prog): Renamed from ...
36794         (sed_extract_prog): ... this; revert to old extraction script.
36795         (func_get_description, func_get_status)
36796         (func_get_notice, func_get_applicability, func_get_filelist)
36797         (func_get_dependencies, func_get_autoconf_early_snippet)
36798         (func_get_autoconf_snippet, func_get_automake_snippet)
36799         (func_get_include_directive, func_get_link_directive)
36800         (func_get_license, func_get_maintainer): If $do_cache is false,
36801         use old, non-caching extraction scripts.
36802         Suggestion by Bruno Haible.
36803
36804 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36805
36806         gnulib-tool: cache module metainformation.
36807         * gnulib-tool (sed_extract_prog): Match newline before each
36808         header, and rewrite header to a shell variable suffix.
36809         (func_cache_var, func_cache_lookup_module): New functions,
36810         to turn a module name into a cache variable prefix, and to
36811         look up and cache module metainformation.
36812         (func_get_description, func_get_status)
36813         (func_get_notice, func_get_applicability, func_get_filelist)
36814         (func_get_dependencies, func_get_autoconf_early_snippet)
36815         (func_get_autoconf_snippet, func_get_automake_snippet)
36816         (func_get_include_directive, func_get_link_directive)
36817         (func_get_license, func_get_maintainer): Use
36818         func_cache_lookup_module.
36819
36820 2010-02-07  Bruno Haible  <bruno@clisp.org>
36821
36822         fnctl: Fix missing dependency.
36823         * modules/fcntl (Depends-on): Add getdtablesize.
36824         Reported by John W. Eaton <jwe@gnu.org>.
36825
36826 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36827
36828         Argp: fix recognition of short alias options.
36829
36830         * lib/argp-parse.c (convert_options): Fix improper use of
36831         `|' between character values.
36832         * tests/test-argp.c (group1_option): New alias option
36833         --read (-r).
36834         (group1_parser): Special handling for 'r'.
36835         (test15): New test case.
36836         (test_fun): Add test15.
36837         * tests/test-argp-2.sh: Update expected --help and --usage
36838         outputs.
36839
36840 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36841
36842         * tests/test-argp.c: Fix indentation.
36843
36844 2010-02-04  Eric Blake  <ebb9@byu.net>
36845
36846         gettimeofday: expose type of second argument
36847         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36848         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36849         * tests/test-gettimeofday.c: Use it to silence warning.
36850         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36851         the issue.
36852
36853 2010-02-03  Jim Meyering  <meyering@redhat.com>
36854
36855         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36856         * lib/regcomp.c (TYPE_SIGNED): Define.
36857         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36858
36859         regcomp.c: avoid a new -Wshadow warning
36860         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36861
36862 2010-02-01  Jim Meyering  <meyering@redhat.com>
36863
36864         removing useless parentheses in cpp #define directives
36865         For motivation, see commit c0221df4, "define STREQ(a,b)
36866         consistently, removing useless parentheses"
36867         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36868         * lib/mountlist.c (MNT_IGNORE): Likewise.
36869         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36870
36871 2010-02-01  Eric Blake  <ebb9@byu.net>
36872
36873         sys_time: use link-warning
36874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36875         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36876         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36877         * modules/sys_time (Depends-on): Add warn-on-use.
36878         (Makefile.am): Always build replacement.
36879         (configure.ac): Update substitutions.
36880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36881         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36882         bother with SYS_TIME_H.
36883         * modules/gettimeofday (configure.ac): Declare indicator.
36884         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36885         in use.
36886
36887         closein-tests: silence compiler warning
36888         * tests/test-closein.c (main): Ignore fread result.
36889         * modules/closein-tests (Depends-on): Add ignore-value.
36890
36891         tests: silence warning about system return
36892         * tests/test-areadlink-with-size.c (main): Ignore system result.
36893         * tests/test-areadlink.c (main): Likewise.
36894         * tests/test-areadlinkat-with-size.c (main): Likewise.
36895         * tests/test-areadlinkat.c (main): Likewise.
36896         * tests/test-canonicalize-lgpl.c (main): Likewise.
36897         * tests/test-canonicalize.c (main): Likewise.
36898         * tests/test-chown.c (main): Likewise.
36899         * tests/test-fchownat.c (main): Likewise.
36900         * tests/test-fdutimensat.c (main): Likewise.
36901         * tests/test-fstatat.c (main): Likewise.
36902         * tests/test-futimens.c (main): Likewise.
36903         * tests/test-lchown.c (main): Likewise.
36904         * tests/test-link.c (main): Likewise.
36905         * tests/test-linkat.c (main): Likewise.
36906         * tests/test-lstat.c (main): Likewise.
36907         * tests/test-mkdir.c (main): Likewise.
36908         * tests/test-mkdirat.c (main): Likewise.
36909         * tests/test-mkfifo.c (main): Likewise.
36910         * tests/test-mkfifoat.c (main): Likewise.
36911         * tests/test-mknod.c (main): Likewise.
36912         * tests/test-readlink.c (main): Likewise.
36913         * tests/test-remove.c (main): Likewise.
36914         * tests/test-rename.c (main): Likewise.
36915         * tests/test-renameat.c (main): Likewise.
36916         * tests/test-rmdir.c (main): Likewise.
36917         * tests/test-symlink.c (main): Likewise.
36918         * tests/test-symlinkat.c (main): Likewise.
36919         * tests/test-unlink.c (main): Likewise.
36920         * tests/test-unlinkat.c (main): Likewise.
36921         * tests/test-utimens.c (main): Likewise.
36922         * tests/test-utimensat.c (main): Likewise.
36923         * modules/areadlink-tests (Depends-on): Add ignore-value.
36924         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36925         * modules/areadlinkat-tests (Depends-on): Likewise.
36926         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36927         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36928         * modules/canonicalize-tests (Depends-on): Likewise.
36929         * modules/chown-tests (Depends-on): Likewise.
36930         * modules/fdutimensat-tests (Depends-on): Likewise.
36931         * modules/futimens-tests (Depends-on): Likewise.
36932         * modules/lchown-tests (Depends-on): Likewise.
36933         * modules/link-tests (Depends-on): Likewise.
36934         * modules/linkat-tests (Depends-on): Likewise.
36935         * modules/lstat-tests (Depends-on): Likewise.
36936         * modules/mkdir-tests (Depends-on): Likewise.
36937         * modules/mkfifo-tests (Depends-on): Likewise.
36938         * modules/mkfifoat-tests (Depends-on): Likewise.
36939         * modules/mknod-tests (Depends-on): Likewise.
36940         * modules/openat-tests (Depends-on): Likewise.
36941         * modules/readlink-tests (Depends-on): Likewise.
36942         * modules/remove-tests (Depends-on): Likewise.
36943         * modules/rename-tests (Depends-on): Likewise.
36944         * modules/renameat-tests (Depends-on): Likewise.
36945         * modules/rmdir-tests (Depends-on): Likewise.
36946         * modules/symlink-tests (Depends-on): Likewise.
36947         * modules/symlinkat-tests (Depends-on): Likewise.
36948         * modules/unlink-tests (Depends-on): Likewise.
36949         * modules/utimens-tests (Depends-on): Likewise.
36950         * modules/utimensat-tests (Depends-on): Likewise.
36951
36952 2010-01-31  Bruno Haible  <bruno@clisp.org>
36953
36954         Perform the same test for many <math.h> functions.
36955         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36956         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36957         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36958         of gl_MATHFUNC.
36959         * modules/acos (configure.ac): Likewise.
36960         * modules/asin (configure.ac): Likewise.
36961         * modules/atan (configure.ac): Likewise.
36962         * modules/atan2 (configure.ac): Likewise.
36963         * modules/cbrt (configure.ac): Likewise.
36964         * modules/copysign (configure.ac): Likewise.
36965         * modules/cos (configure.ac): Likewise.
36966         * modules/cosh (configure.ac): Likewise.
36967         * modules/erf (configure.ac): Likewise.
36968         * modules/erfc (configure.ac): Likewise.
36969         * modules/exp (configure.ac): Likewise.
36970         * modules/fmod (configure.ac): Likewise.
36971         * modules/hypot (configure.ac): Likewise.
36972         * modules/j0 (configure.ac): Likewise.
36973         * modules/j1 (configure.ac): Likewise.
36974         * modules/jn (configure.ac): Likewise.
36975         * modules/lgamma (configure.ac): Likewise.
36976         * modules/log (configure.ac): Likewise.
36977         * modules/log10 (configure.ac): Likewise.
36978         * modules/log1p (configure.ac): Likewise.
36979         * modules/pow (configure.ac): Likewise.
36980         * modules/remainder (configure.ac): Likewise.
36981         * modules/sin (configure.ac): Likewise.
36982         * modules/sinh (configure.ac): Likewise.
36983         * modules/tan (configure.ac): Likewise.
36984         * modules/tanh (configure.ac): Likewise.
36985         * modules/y0 (configure.ac): Likewise.
36986         * modules/y1 (configure.ac): Likewise.
36987         * modules/yn (configure.ac): Likewise.
36988         Suggested by Paolo Bonzini.
36989
36990 2010-01-31  Bruno Haible  <bruno@clisp.org>
36991
36992         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36993
36994 2010-01-31  Bruno Haible  <bruno@clisp.org>
36995
36996         Work around getdelim() bug on FreeBSD 8.0.
36997         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36998         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36999         not work.
37000         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37001         is 1.
37002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37003         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37004         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37005         a non-zero size.
37006         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37007
37008 2010-01-31  Bruno Haible  <bruno@clisp.org>
37009
37010         Work around getline() bug on FreeBSD 8.0.
37011         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37012         and a non-zero size.
37013         * tests/test-getline.c (main): Likewise.
37014         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37015         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37016
37017 2010-01-28  Eric Blake  <ebb9@byu.net>
37018
37019         regex: fix build failure
37020         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37021         platforms.
37022
37023 2010-01-28  Jim Meyering  <meyering@redhat.com>
37024
37025         regex: do not ignore memory allocation failure
37026         * lib/regex_internal.c (create_cd_newstate): Detect
37027         re_node_set_init_copy failure.   Extracted from glibc commit
37028         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37029
37030         regex: sync more white-space changes from libc
37031         * lib/regex_internal.c: White-space only changes.
37032         * lib/regexec.c: Likewise.
37033
37034         regex: add many uses of __attribute_warn_unused_result__
37035         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37036         * lib/regexec.c: Likewise.
37037         Extracted from a messy glibc commit.
37038
37039         regcomp.c: spelling and merge-artifact from glibc
37040         * lib/regcomp.c: Merge remainder of glibc's
37041         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37042
37043         regcomp.c: sync white-space changes from glibc
37044         * lib/regcomp.c: Merge to accommodate white space
37045         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37046
37047         regcomp.c: do not ignore internal return values
37048         * lib/regcomp.c: Do not ignore internal return values.
37049         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37050         but without its white-space changes and spelling fixes.
37051
37052         regex_internal.h: define __attribute_warn_unused_result__
37053         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37054
37055         maint: add a syntax-check rule to check for vulnerable Makefile.in
37056         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37057
37058 2010-01-27  Jim Meyering  <meyering@redhat.com>
37059
37060         ncftpput-ftp: clean up spaces
37061         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37062         Remove trailing blanks.
37063
37064 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37065
37066         * build-aux/git-version-gen: Fix copyright statement.
37067         * build-aux/gnupload: Likewise.
37068         * tests/test-arcfour.c: Likewise.
37069         * tests/test-arctwo.c: Likewise.
37070         * tests/test-count-one-bits.c: Likewise.
37071         * tests/test-crc.c: Likewise.
37072         * tests/test-des.c: Likewise.
37073         * tests/test-gc-arcfour.c: Likewise.
37074         * tests/test-gc-arctwo.c: Likewise.
37075         * tests/test-gc-des.c: Likewise.
37076         * tests/test-gc-hmac-md5.c: Likewise.
37077         * tests/test-gc-hmac-sha1.c: Likewise.
37078         * tests/test-gc-md2.c: Likewise.
37079         * tests/test-gc-md4.c: Likewise.
37080         * tests/test-gc-md5.c: Likewise.
37081         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37082         * tests/test-gc-rijndael.c: Likewise.
37083         * tests/test-gc-sha1.c: Likewise.
37084         * tests/test-gc.c: Likewise.
37085         * tests/test-gethostname.c: Likewise.
37086         * tests/test-gettimeofday.c: Likewise.
37087         * tests/test-hash.c: Likewise.
37088         * tests/test-hmac-md5.c: Likewise.
37089         * tests/test-hmac-sha1.c: Likewise.
37090         * tests/test-md2.c: Likewise.
37091         * tests/test-md4.c: Likewise.
37092         * tests/test-md5.c: Likewise.
37093         * tests/test-memchr.c: Likewise.
37094         * tests/test-memchr2.c: Likewise.
37095         * tests/test-memcmp.c: Likewise.
37096         * tests/test-memmem.c: Likewise.
37097         * tests/test-memrchr.c: Likewise.
37098         * tests/test-rawmemchr.c: Likewise.
37099         * tests/test-read-file.c: Likewise.
37100         * tests/test-rijndael.c: Likewise.
37101         * tests/test-sockets.c: Likewise.
37102         * tests/test-strchrnul.c: Likewise.
37103         * tests/test-strstr.c: Likewise.
37104         * tests/test-strtod.c: Likewise.
37105         * build-aux/ncftpput-ftp: Likewise.
37106
37107 2010-01-26  Eric Blake  <ebb9@byu.net>
37108
37109         ignore-value: update recommended header name
37110         * modules/ignore-value (Include): Only use <> for headers that
37111         exist in glibc.
37112
37113 2010-01-26  Jim Meyering  <meyering@redhat.com>
37114
37115         test-userspec.c: avoid compiler warnings
37116         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37117         and "initialization discards qualifiers..." warnings.
37118         Put the first "uid" in its own scope, and make char* members "const".
37119
37120 2010-01-25  Bruno Haible  <bruno@clisp.org>
37121
37122         gnulib-tool: Make warning diagnostics consistent.
37123         * gnulib-tool (func_warning): New function.
37124         Use it everywhere where gnulib-tool produces output to stderr and it is
37125         not a fatal error.
37126
37127 2010-01-25  Bruno Haible  <bruno@clisp.org>
37128
37129         Fix test dependencies.
37130         * modules/xstrtol-tests (Depends-on): Add inttypes.
37131         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37132
37133 2010-01-25 Pádraig Brady <P@draigBrady.com>
37134
37135         syntax-check: detect incorrect boolean macro values in config.h
37136         * modules/maintainer-makefile (configure.ac): Parameterize the location
37137         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37138         The logic is from Eric Blake and the location indicated by Jim Meyering.
37139         Note the more natural CONFIG_HEADER name is prohibited by automake
37140         for backwards compatibility reasons.
37141         * top/maint.mk (sc_Wundef_boolean): New rule.
37142
37143 2010-01-25  Jim Meyering  <meyering@redhat.com>
37144
37145         bootstrap: detect MacOS 10.6's shasum, too
37146         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37147         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37148
37149 2010-01-23  Jim Meyering  <meyering@redhat.com>
37150
37151         xstrtoll: new module
37152         * modules/xstrtoll: New file.
37153         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37154         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37155         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37156         ./configure fails if you use this module and lack "long long".
37157         * modules/xstrtoll-tests: New module.
37158         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37159         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37160         new init.sh-based test framework.
37161
37162 2010-01-24  Bruno Haible  <bruno@clisp.org>
37163
37164         Tests for module 'yn'.
37165         * modules/yn-tests: New file.
37166         * tests/test-yn.c: New file.
37167
37168         Tests for module 'y1'.
37169         * modules/y1-tests: New file.
37170         * tests/test-y1.c: New file.
37171
37172         Tests for module 'y0'.
37173         * modules/y0-tests: New file.
37174         * tests/test-y0.c: New file.
37175
37176         Tests for module 'tanh'.
37177         * modules/tanh-tests: New file.
37178         * tests/test-tanh.c: New file.
37179
37180         Tests for module 'tan'.
37181         * modules/tan-tests: New file.
37182         * tests/test-tan.c: New file.
37183
37184         Tests for module 'sqrt'.
37185         * modules/sqrt-tests: New file.
37186         * tests/test-sqrt.c: New file.
37187
37188         Tests for module 'sinh'.
37189         * modules/sinh-tests: New file.
37190         * tests/test-sinh.c: New file.
37191
37192         Tests for module 'sin'.
37193         * modules/sin-tests: New file.
37194         * tests/test-sin.c: New file.
37195
37196         Tests for module 'rint'.
37197         * modules/rint-tests: New file.
37198         * tests/test-rint.c: New file.
37199
37200         Tests for module 'remainder'.
37201         * modules/remainder-tests: New file.
37202         * tests/test-remainder.c: New file.
37203
37204         Tests for module 'pow'.
37205         * modules/pow-tests: New file.
37206         * tests/test-pow.c: New file.
37207
37208         Tests for module 'nextafter'.
37209         * modules/nextafter-tests: New file.
37210         * tests/test-nextafter.c: New file.
37211
37212         Tests for module 'modf'.
37213         * modules/modf-tests: New file.
37214         * tests/test-modf.c: New file.
37215
37216         Tests for module 'logb'.
37217         * modules/logb-tests: New file.
37218         * tests/test-logb.c: New file.
37219
37220         Tests for module 'log1p'.
37221         * modules/log1p-tests: New file.
37222         * tests/test-log1p.c: New file.
37223
37224         Tests for module 'log10'.
37225         * modules/log10-tests: New file.
37226         * tests/test-log10.c: New file.
37227
37228         Tests for module 'log'.
37229         * modules/log-tests: New file.
37230         * tests/test-log.c: New file.
37231
37232         Tests for module 'lgamma'.
37233         * modules/lgamma-tests: New file.
37234         * tests/test-lgamma.c: New file.
37235
37236         Tests for module 'ldexp'.
37237         * modules/ldexp-tests: New file.
37238         * tests/test-ldexp.c: New file.
37239
37240         Tests for module 'jn'.
37241         * modules/jn-tests: New file.
37242         * tests/test-jn.c: New file.
37243
37244         Tests for module 'j1'.
37245         * modules/j1-tests: New file.
37246         * tests/test-j1.c: New file.
37247
37248         Tests for module 'j0'.
37249         * modules/j0-tests: New file.
37250         * tests/test-j0.c: New file.
37251
37252         Tests for module 'hypot'.
37253         * modules/hypot-tests: New file.
37254         * tests/test-hypot.c: New file.
37255
37256         Tests for module 'fmod'.
37257         * modules/fmod-tests: New file.
37258         * tests/test-fmod.c: New file.
37259
37260         Tests for module 'fabs'.
37261         * modules/fabs-tests: New file.
37262         * tests/test-fabs.c: New file.
37263
37264         Tests for module 'exp'.
37265         * modules/exp-tests: New file.
37266         * tests/test-exp.c: New file.
37267
37268         Tests for module 'erfc'.
37269         * modules/erfc-tests: New file.
37270         * tests/test-erfc.c: New file.
37271
37272         Tests for module 'erf'.
37273         * modules/erf-tests: New file.
37274         * tests/test-erf.c: New file.
37275
37276         Tests for module 'cosh'.
37277         * modules/cosh-tests: New file.
37278         * tests/test-cosh.c: New file.
37279
37280         Tests for module 'cos'.
37281         * modules/cos-tests: New file.
37282         * tests/test-cos.c: New file.
37283
37284         Tests for module 'copysign'.
37285         * modules/copysign-tests: New file.
37286         * tests/test-copysign.c: New file.
37287
37288         Tests for module 'cbrt'.
37289         * modules/cbrt-tests: New file.
37290         * tests/test-cbrt.c: New file.
37291
37292         Tests for module 'atan2'.
37293         * modules/atan2-tests: New file.
37294         * tests/test-atan2.c: New file.
37295
37296         Tests for module 'atan'.
37297         * modules/atan-tests: New file.
37298         * tests/test-atan.c: New file.
37299
37300         Tests for module 'asin'.
37301         * modules/asin-tests: New file.
37302         * tests/test-asin.c: New file.
37303
37304         Tests for module 'acos'.
37305         * modules/acos-tests: New file.
37306         * tests/test-acos.c: New file.
37307
37308 2010-01-24  Bruno Haible  <bruno@clisp.org>
37309
37310         Fix tests for common <math.h> functions.
37311         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37312         code snippet that references the function pointer, rather than merely
37313         calling the function. Substitute the FUNC_LIBM variable.
37314         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37315         * modules/acos (configure.ac): Likewise.
37316         * modules/asin (configure.ac): Likewise.
37317         * modules/atan (configure.ac): Likewise.
37318         * modules/atan2 (configure.ac): Likewise.
37319         * modules/cbrt (configure.ac): Likewise.
37320         * modules/copysign (configure.ac): Likewise.
37321         * modules/cos (configure.ac): Likewise.
37322         * modules/cosh (configure.ac): Likewise.
37323         * modules/erf (configure.ac): Likewise.
37324         * modules/erfc (configure.ac): Likewise.
37325         * modules/exp (configure.ac): Likewise.
37326         * modules/fabs (configure.ac): Likewise.
37327         * modules/fmod (configure.ac): Likewise.
37328         * modules/hypot (configure.ac): Likewise.
37329         * modules/j0 (configure.ac): Likewise.
37330         * modules/j1 (configure.ac): Likewise.
37331         * modules/jn (configure.ac): Likewise.
37332         * modules/ldexp (configure.ac): Likewise.
37333         * modules/lgamma (configure.ac): Likewise.
37334         * modules/log (configure.ac): Likewise.
37335         * modules/log10 (configure.ac): Likewise.
37336         * modules/log1p (configure.ac): Likewise.
37337         * modules/logb (configure.ac): Likewise.
37338         * modules/modf (configure.ac): Likewise.
37339         * modules/nextafter (configure.ac): Likewise.
37340         * modules/pow (configure.ac): Likewise.
37341         * modules/remainder (configure.ac): Likewise.
37342         * modules/rint (configure.ac): Likewise.
37343         * modules/sin (configure.ac): Likewise.
37344         * modules/sinh (configure.ac): Likewise.
37345         * modules/tan (configure.ac): Likewise.
37346         * modules/tanh (configure.ac): Likewise.
37347         * modules/y0 (configure.ac): Likewise.
37348         * modules/y1 (configure.ac): Likewise.
37349         * modules/yn (configure.ac): Likewise.
37350
37351 2010-01-24  Bruno Haible  <bruno@clisp.org>
37352
37353         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37354         * tests/test-acosl.c (x): New variable.
37355         (main): Store argument in x and fetch it from x.
37356         * tests/test-asinl.c (x): New variable.
37357         (main): Store argument in x and fetch it from x.
37358         * tests/test-atanl.c (x): New variable.
37359         (main): Store argument in x and fetch it from x.
37360         * tests/test-cosl.c (x): New variable.
37361         (main): Store argument in x and fetch it from x.
37362         * tests/test-expl.c (x): New variable.
37363         (main): Store argument in x and fetch it from x.
37364         * tests/test-logl.c (x): New variable.
37365         (main): Store argument in x and fetch it from x.
37366         * tests/test-sinl.c (x): New variable.
37367         (main): Store argument in x and fetch it from x.
37368         * tests/test-sqrtl.c (x): New variable.
37369         (main): Store argument in x and fetch it from x.
37370         * tests/test-tanl.c (x): New variable.
37371         (main): Store argument in x and fetch it from x.
37372
37373 2010-01-24  Bruno Haible  <bruno@clisp.org>
37374
37375         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37376         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37377         assignments to the initial TESTS_ENVIRONMENT.
37378         * doc/gnulib.texi (Unit test modules): Document it.
37379         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37380         TESTS_ENVIRONMENT.
37381         * modules/btowc-tests (Makefile.am): Likewise.
37382         * modules/c-stack-tests (Makefile.am): Likewise.
37383         * modules/c-strcase-tests (Makefile.am): Likewise.
37384         * modules/copy-file-tests (Makefile.am): Likewise.
37385         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37386         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37387         * modules/mbrtowc-tests (Makefile.am): Likewise.
37388         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37389         * modules/mbscasestr-tests (Makefile.am): Likewise.
37390         * modules/mbschr-tests (Makefile.am): Likewise.
37391         * modules/mbscspn-tests (Makefile.am): Likewise.
37392         * modules/mbsinit-tests (Makefile.am): Likewise.
37393         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37394         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37395         * modules/mbspbrk-tests (Makefile.am): Likewise.
37396         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37397         * modules/mbsrchr-tests (Makefile.am): Likewise.
37398         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37399         * modules/mbsspn-tests (Makefile.am): Likewise.
37400         * modules/mbsstr-tests (Makefile.am): Likewise.
37401         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37402         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37403         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37404         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37405         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37406         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37407         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37408         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37409         * modules/wcrtomb-tests (Makefile.am): Likewise.
37410         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37411         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37412         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37413         assignments from TESTS_ENVIRONMENT.
37414         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37415         augmentation.
37416         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37417         * modules/atexit-tests (Makefile.am): Likewise.
37418         * modules/binary-io-tests (Makefile.am): Likewise.
37419         * modules/closein-tests (Makefile.am): Likewise.
37420         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37421         * modules/exclude-tests (Makefile.am): Likewise.
37422         * modules/fflush-tests (Makefile.am): Likewise.
37423         * modules/fpending-tests (Makefile.am): Likewise.
37424         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37425         * modules/freadahead-tests (Makefile.am): Likewise.
37426         * modules/freadptr-tests (Makefile.am): Likewise.
37427         * modules/freadseek-tests (Makefile.am): Likewise.
37428         * modules/fseek-tests (Makefile.am): Likewise.
37429         * modules/fseeko-tests (Makefile.am): Likewise.
37430         * modules/ftell-tests (Makefile.am): Likewise.
37431         * modules/ftello-tests (Makefile.am): Likewise.
37432         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37433         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37434         * modules/lseek-tests (Makefile.am): Likewise.
37435         * modules/parse-duration-tests (Makefile.am): Likewise.
37436         * modules/perror-tests (Makefile.am): Likewise.
37437         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37438         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37439         * modules/pipe-tests (Makefile.am): Likewise.
37440         * modules/pread-tests (Makefile.am): Likewise.
37441         * modules/printf-posix-tests (Makefile.am): Likewise.
37442         * modules/select-tests (Makefile.am): Likewise.
37443         * modules/sigpipe-tests (Makefile.am): Likewise.
37444         * modules/tsearch-tests (Makefile.am): Likewise.
37445         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37446         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37447         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37448         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37449         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37450         * modules/version-etc-tests (Makefile.am): Likewise.
37451         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37452         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37453         * modules/xalloc-die-tests (Makefile.am): Likewise.
37454         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37455         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37456         * modules/xstrtol-tests (Makefile.am): Likewise.
37457         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37458         * modules/yesno-tests (Makefile.am): Likewise.
37459         Suggested by Jim Meyering.
37460
37461 2010-01-24  Bruno Haible  <bruno@clisp.org>
37462
37463         More documentation.
37464         * doc/gnulib.texi (Writing modules): New chapter.
37465         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37466         the new chapter.
37467
37468 2010-01-24  Jim Meyering  <meyering@redhat.com>
37469
37470         maint.mk: do not prepend "./" after filtering
37471         * top/maint.mk (_prepend_srcdir_prefix): New variable
37472         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37473         "./" when $(srcdir) is ".".
37474
37475         define STREQ(a,b) consistently, removing useless parentheses
37476         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37477         since the only risk is that "a" or "b" contains an unparenthesized
37478         comma, but if either did that, STREQ would have 3 or more arguments.
37479         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37480         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37481         * lib/hash-triple.c (STREQ): Likewise.
37482         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37483         * lib/getugroups.c (STREQ): Likewise.
37484
37485 2010-01-23  Jim Meyering  <meyering@redhat.com>
37486
37487         maint.mk: fix syntax-check in a non-srcdir build directory
37488         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37489         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37490
37491 2010-01-22  Jim Meyering  <meyering@redhat.com>
37492
37493         userspec: add unit tests
37494         * tests/test-userspec.c: New file.
37495         * modules/userspec-tests: Likewise.
37496
37497 2010-01-21  Jim Meyering  <meyering@redhat.com>
37498
37499         maint.mk: handle source file names containing "." robustly
37500         * top/maint.mk (_dot_escaped_srcdir): Define.
37501         (VC_LIST): Use it in LHS of sed substitution.
37502
37503 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37504
37505         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37506         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37507         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37508         from a non-srcdir build.
37509
37510 2010-01-20  Eric Blake  <ebb9@byu.net>
37511
37512         warn-on-use: use instead of link-warning
37513         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37514         * modules/unistd (Depends-on, Makefile.am): Likewise.
37515         * modules/arpa_inet (Depends-on): Replace link-warning with
37516         warn-on-use.
37517         (Makefile.am): Update rules accordingly.
37518         * modules/ctype (Depends-on, Makefile.am): Likewise.
37519         * modules/dirent (Depends-on, Makefile.am): Likewise.
37520         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37521         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37522         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37523         * modules/locale (Depends-on, Makefile.am): Likewise.
37524         * modules/math (Depends-on, Makefile.am): Likewise.
37525         * modules/search (Depends-on, Makefile.am): Likewise.
37526         * modules/signal (Depends-on, Makefile.am): Likewise.
37527         * modules/spawn (Depends-on, Makefile.am): Likewise.
37528         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37529         * modules/string (Depends-on, Makefile.am): Likewise.
37530         * modules/strings (Depends-on, Makefile.am): Likewise.
37531         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37532         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37533         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37534         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37535         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37536         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37537         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37538         * modules/wchar (Depends-on, Makefile.am): Likewise.
37539         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37540         should be poisoned.
37541         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37542         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37543         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37544         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37545         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37546         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37547         * m4/math_h.m4 (gl_MATH_H): Likewise.
37548         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37549         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37550         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37551         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37552         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37553         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37554         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37555         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37558         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37560         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37561         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37562         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37563         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37564         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37565         GL_LINK_WARNING.
37566         * lib/ctype.in.h: Likewise.
37567         * lib/dirent.in.h: Likewise.
37568         * lib/fcntl.in.h: Likewise.
37569         * lib/inttypes.in.h: Likewise.
37570         * lib/langinfo.in.h: Likewise.
37571         * lib/locale.in.h: Likewise.
37572         * lib/math.in.h: Likewise.
37573         * lib/search.in.h: Likewise.
37574         * lib/signal.in.h: Likewise.
37575         * lib/spawn.in.h: Likewise.
37576         * lib/stdio.in.h: Likewise.
37577         * lib/stdlib.in.h: Likewise.
37578         * lib/string.in.h: Likewise.
37579         * lib/strings.in.h: Likewise.
37580         * lib/sys_file.in.h: Likewise.
37581         * lib/sys_ioctl.in.h: Likewise.
37582         * lib/sys_select.in.h: Likewise.
37583         * lib/sys_socket.in.h: Likewise.
37584         * lib/sys_stat.in.h: Likewise.
37585         * lib/sys_times.in.h: Likewise.
37586         * lib/sys_utsname.in.h: Likewise.
37587         * lib/unistd.in.h: Likewise.
37588         * lib/wchar.in.h: Likewise.
37589
37590 2010-01-20  Bruno Haible  <bruno@clisp.org>
37591
37592         Avoid duplicate -lm.
37593         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37594         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37595         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37596         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37597         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37598         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37599         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37600         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37601         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37602         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37603         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37604         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37605         Reported by Paolo Bonzini.
37606
37607 2010-01-19  Bruno Haible  <bruno@clisp.org>
37608
37609         langinfo, nl_langinfo: Relicense under LGPLv2+.
37610         * modules/langinfo (License): Change to LGPLv2+.
37611         * modules/nl_langinfo (License): Likewise.
37612         Patch by David Lutterkort <lutter@redhat.com>.
37613
37614 2010-01-19  Bruno Haible  <bruno@clisp.org>
37615
37616         Avoid compilation error with cc on OSF/1 5.1.
37617         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37618         statement, not before.
37619         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37620
37621 2010-01-18  Bruno Haible  <bruno@clisp.org>
37622
37623         Avoid a link error due to the __printf__ symbol.
37624         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37625         and 2.6.x.
37626         (__format__, __printf__): Remove definitions.
37627         * lib/argp-fmtstream.h: Likewise.
37628         * lib/argp.h: Likewise.
37629         * lib/error.h: Likewise.
37630         * lib/vasnprintf.h: Likewise.
37631         * lib/xprintf.h: Likewise.
37632         * lib/xvasprintf.h: Likewise.
37633         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37634
37635 2010-01-18  Bruno Haible  <bruno@clisp.org>
37636
37637         Tests for module 'tanl'.
37638         * modules/tanl-tests: New file.
37639         * tests/test-tanl.c: New file.
37640
37641         Tests for module 'sqrtl'.
37642         * modules/sqrtl-tests: New file.
37643         * tests/test-sqrtl.c: New file.
37644
37645         Tests for module 'sinl'.
37646         * modules/sinl-tests: New file.
37647         * tests/test-sinl.c: New file.
37648
37649         Tests for module 'logl'.
37650         * modules/logl-tests: New file.
37651         * tests/test-logl.c: New file.
37652
37653         Tests for module 'expl'.
37654         * modules/expl-tests: New file.
37655         * tests/test-expl.c: New file.
37656
37657         Tests for module 'cosl'.
37658         * modules/cosl-tests: New file.
37659         * tests/test-cosl.c: New file.
37660
37661         Tests for module 'atanl'.
37662         * modules/atanl-tests: New file.
37663         * tests/test-atanl.c: New file.
37664
37665         Tests for module 'asinl'.
37666         * modules/asinl-tests: New file.
37667         * tests/test-asinl.c: New file.
37668
37669         Tests for module 'acosl'.
37670         * modules/acosl-tests: New file.
37671         * tests/test-acosl.c: New file.
37672
37673         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37674         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37675         tanl): Use the standard gnulib idiom.
37676         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37677         * lib/sinl.c: Likewise.
37678         * lib/tanl.c: Don't include trigl.c.
37679         (kernel_tanl): Make static.
37680         * lib/sincosl.c: Include trigl.h first.
37681         * lib/trigl.c: Likewise.
37682         * m4/acosl.m4: New file.
37683         * m4/asinl.m4: New file.
37684         * m4/atanl.m4: New file.
37685         * m4/cosl.m4: New file.
37686         * m4/expl.m4: New file.
37687         * m4/logl.m4: New file.
37688         * m4/sinl.m4: New file.
37689         * m4/sqrtl.m4: New file.
37690         * m4/tanl.m4: New file.
37691         * m4/mathl.m4: Remove file.
37692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37693         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37694         Don't initialize GNULIB_MATHL.
37695         * modules/acosl: New file.
37696         * modules/asinl: New file.
37697         * modules/atanl: New file.
37698         * modules/cosl: New file.
37699         * modules/expl: New file.
37700         * modules/logl: New file.
37701         * modules/sinl: New file.
37702         * modules/sqrtl: New file.
37703         * modules/tanl: New file.
37704         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37705         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37706         substitute GNULIB_MATHL.
37707         * modules/mathl: Rewritten.
37708         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37709         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37710         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37711         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37712         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37713         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37714         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37715         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37716         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37717
37718 2010-01-18  Bruno Haible  <bruno@clisp.org>
37719
37720         sqrt: Make gl_FUNC_SQRT requirable.
37721         * m4/sqrt.m4: New file.
37722         * modules/sqrt (Files): Add it.
37723         (configure.ac): Invoke gl_FUNC_SQRT.
37724
37725 2010-01-18  Bruno Haible  <bruno@clisp.org>
37726
37727         New modules for common <math.h> functions.
37728         * m4/mathfunc.m4: New file.
37729         * modules/acos: New file.
37730         * modules/asin: New file.
37731         * modules/atan: New file.
37732         * modules/atan2: New file.
37733         * modules/cbrt: New file.
37734         * modules/copysign: New file.
37735         * modules/cos: New file.
37736         * modules/cosh: New file.
37737         * modules/erf: New file.
37738         * modules/erfc: New file.
37739         * modules/exp: New file.
37740         * modules/fabs: New file.
37741         * modules/fmod: New file.
37742         * modules/hypot: New file.
37743         * modules/j0: New file.
37744         * modules/j1: New file.
37745         * modules/jn: New file.
37746         * modules/ldexp: New file.
37747         * modules/lgamma: New file.
37748         * modules/log: New file.
37749         * modules/log10: New file.
37750         * modules/log1p: New file.
37751         * modules/logb: New file.
37752         * modules/modf: New file.
37753         * modules/nextafter: New file.
37754         * modules/pow: New file.
37755         * modules/remainder: New file.
37756         * modules/rint: New file.
37757         * modules/sin: New file.
37758         * modules/sinh: New file.
37759         * modules/sqrt: New file.
37760         * modules/tan: New file.
37761         * modules/tanh: New file.
37762         * modules/y0: New file.
37763         * modules/y1: New file.
37764         * modules/yn: New file.
37765         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37766         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37767         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37768         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37769         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37770         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37771         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37772         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37773         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37774         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37775         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37776         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37777         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37778         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37779         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37780         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37781         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37782         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37783         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37784         * doc/posix-functions/log.texi: Mention the 'log' module.
37785         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37786         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37787         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37788         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37789         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37790         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37791         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37792         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37793         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37794         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37795         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37796         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37797         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37798         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37799         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37800         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37801
37802 2010-01-18  Jim Meyering  <meyering@redhat.com>
37803
37804         ignore-value: relax license to LGPLv2+
37805         * modules/ignore-value (License): Relax to LGPLv2+.
37806
37807         getdate: don't leak when TZ contains two or more '"'s
37808         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37809         double quote in TZ after the first one.
37810
37811         readtokens: do not leak internal token_lengths buffer
37812         * lib/readtokens.c (readtokens): Free the local, lengths,
37813         when the supplied "token_lengths" parameter is NULL.
37814
37815 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37816
37817         Fix a couple of missing LIBTHREAD link failures on AIX.
37818         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37819         $(LIBTHREAD).
37820         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37821
37822         Link test-poll against INET_PTON_LIB.
37823         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37824         for inet_pton on Solaris 10.
37825
37826 2010-01-17  Bruno Haible  <bruno@clisp.org>
37827
37828         unistdio/*-sprintf: Fix typo in module description.
37829         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37830         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37831         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37832         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37833         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37834         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37835         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37837
37838 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37839
37840         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37841         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37842         variables in shell case patterns, for AIX and HP-UX ksh.
37843
37844         Split large sed scripts, for HP-UX sed.
37845         * modules/stdio: Split sed scripts around 50 sed commands,
37846         to avoid HP-UX limit of 99 commands, in the near future.
37847         * modules/string: Likewise.
37848         * modules/unistd: Likewise.
37849
37850         gnulib-tool: avoid writing in the current directory.
37851         * gnulib-tool (func_emit_lib_Makefile_am)
37852         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37853         not in the current directory, so concurrent gnulib-tool
37854         instances do not interfere.
37855
37856 2010-01-16  Jim Meyering  <meyering@redhat.com>
37857
37858         doc: update users.txt
37859         * users.txt: Add grep.
37860         (diffutils, gzip): Update URLs.
37861
37862 2010-01-12  Bruno Haible  <bruno@clisp.org>
37863
37864         posix_spawn: Avoid test failure on Cygwin.
37865         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37866         characters.
37867         Reported by Simon Josefsson.
37868
37869 2010-01-12  Bruno Haible  <bruno@clisp.org>
37870
37871         * tests/test-cond.c (main): When skipping the test, show the reason.
37872
37873 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37874
37875         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37876
37877 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37878
37879         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37880         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37881
37882 2010-01-12  Eric Blake  <ebb9@byu.net>
37883
37884         build: guarantee AS_VAR_IF
37885         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37886         (gl_AS_VAR_IF): Move...
37887         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37888         Reported by Simon Josefsson.
37889
37890 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37891
37892         * lib/stdio.in.h: Fix typo.
37893
37894 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37895
37896         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37897         libgpg-error.
37898
37899 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37900
37901         * tests/test-xalloc-die.sh: Use $EXEEXT.
37902
37903 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37904             Bruno Haible  <bruno@clisp.org>
37905
37906         getlogin, getlogin_r: Avoid test failure.
37907         * tests/test-getlogin.c: Include <stdio.h>.
37908         (main): Skip the test when the function fails because stdin is not a
37909         tty.
37910         * tests/test-getlogin_r.c: Include <stdio.h>.
37911         (main): Skip the test when the function fails because stdin is not a
37912         tty.
37913
37914 2010-01-11  Eric Blake  <ebb9@byu.net>
37915
37916         tests: avoid more large file warnings
37917         * tests/test-fflush.c: Avoid warning about ftell use.
37918         * tests/test-fseek.c: Avoid warning about fseek use.
37919
37920 2010-01-10  Bruno Haible  <bruno@clisp.org>
37921
37922         nproc: Work better on Linux when /proc and /sys are not mounted.
37923         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37924         as lower bound when, on glibc/Linux systems,
37925         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37926         Suggested by Pádraig Brady <P@draigbrady.com>.
37927         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37928
37929         nproc: Refactor.
37930         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37931         extracted from num_processors.
37932         (num_processors): Call it.
37933
37934 2010-01-11  Jim Meyering  <meyering@redhat.com>
37935
37936         utimecmp: avoid new warning from upcoming gcc-4.5.0
37937         * lib/utimecmp.c (BILLION): Define using #define rather than an
37938         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37939
37940 2010-01-11  Eric Blake  <ebb9@byu.net>
37941
37942         math: add portability warnings for classification macros
37943         * modules/math (Depends-on): Add warn-on-use.
37944         (Makefile.am): Provide new substitutions.
37945         * m4/math_h.m4 (gl_MATH_H): Require inline.
37946         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37947         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37948         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37949         implement warnings.
37950
37951         unistd: warn on use of environ without module
37952         * modules/unistd (Depends-on): Add warn-on-use.
37953         (Makefile.am): Provide new substitutions.
37954         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37955         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37956
37957         stdio: warn on suspicious uses
37958         * modules/stdio (Depends-on): Add warn-on-use.
37959         (Makefile.am): Provide new substitutions.
37960         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37961         fseeko.
37962         * lib/stdio.in.h (gets): Always warn on use.
37963         (fseek, ftell): Adjust when warnings are issued, and honor
37964         _GL_NO_LARGE_FILES as a way to silence the warning.
37965         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37966         any warning about large file offsets.
37967         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37968         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37969         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37970         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37971         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37972         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37973         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37974         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37975
37976         warn-on-use: new module
37977         * modules/warn-on-use: New file.
37978         * build-aux/warn-on-use.h: Likewise.
37979         * m4/warn-on-use.m4: Likewise.
37980         * MODULES.html.sh (Support for building): Mention it.
37981
37982 2010-01-10  Bruno Haible  <bruno@clisp.org>
37983
37984         Tests for module 'unistr/u32-strdup'.
37985         * modules/unistr/u32-strdup-tests: New file.
37986         * tests/unistr/test-u32-strdup.c: New file.
37987
37988         Tests for module 'unistr/u16-strdup'.
37989         * modules/unistr/u16-strdup-tests: New file.
37990         * tests/unistr/test-u16-strdup.c: New file.
37991
37992         Tests for module 'unistr/u8-strdup'.
37993         * modules/unistr/u8-strdup-tests: New file.
37994         * tests/unistr/test-u8-strdup.c: New file.
37995         * tests/unistr/test-strdup.h: New file.
37996
37997         Tests for module 'unistr/u32-strncmp'.
37998         * modules/unistr/u32-strncmp-tests: New file.
37999         * tests/unistr/test-u32-strncmp.c: New file.
38000
38001         Tests for module 'unistr/u16-strncmp'.
38002         * modules/unistr/u16-strncmp-tests: New file.
38003         * tests/unistr/test-u16-strncmp.c: New file.
38004
38005         Tests for module 'unistr/u8-strncmp'.
38006         * modules/unistr/u8-strncmp-tests: New file.
38007         * tests/unistr/test-u8-strncmp.c: New file.
38008         * tests/unistr/test-strncmp.h: New file.
38009
38010         Tests for module 'unistr/u32-strcoll'.
38011         * modules/unistr/u32-strcoll-tests: New file.
38012         * tests/unistr/test-u32-strcoll.c: New file.
38013
38014         Tests for module 'unistr/u16-strcoll'.
38015         * modules/unistr/u16-strcoll-tests: New file.
38016         * tests/unistr/test-u16-strcoll.c: New file.
38017
38018         Tests for module 'unistr/u8-strcoll'.
38019         * modules/unistr/u8-strcoll-tests: New file.
38020         * tests/unistr/test-u8-strcoll.c: New file.
38021
38022         Tests for module 'unistr/u32-strcmp'.
38023         * modules/unistr/u32-strcmp-tests: New file.
38024         * tests/unistr/test-u32-strcmp.c: New file.
38025         * tests/unistr/test-u32-strcmp.h: New file.
38026
38027         Tests for module 'unistr/u16-strcmp'.
38028         * modules/unistr/u16-strcmp-tests: New file.
38029         * tests/unistr/test-u16-strcmp.c: New file.
38030         * tests/unistr/test-u16-strcmp.h: New file.
38031
38032         Tests for module 'unistr/u8-strcmp'.
38033         * modules/unistr/u8-strcmp-tests: New file.
38034         * tests/unistr/test-u8-strcmp.c: New file.
38035         * tests/unistr/test-u8-strcmp.h: New file.
38036         * tests/unistr/test-strcmp.h: New file.
38037
38038         Tests for module 'unistr/u32-strncat'.
38039         * modules/unistr/u32-strncat-tests: New file.
38040         * tests/unistr/test-u32-strncat.c: New file.
38041
38042         Tests for module 'unistr/u16-strncat'.
38043         * modules/unistr/u16-strncat-tests: New file.
38044         * tests/unistr/test-u16-strncat.c: New file.
38045
38046         Tests for module 'unistr/u8-strncat'.
38047         * modules/unistr/u8-strncat-tests: New file.
38048         * tests/unistr/test-u8-strncat.c: New file.
38049         * tests/unistr/test-strncat.h: New file.
38050
38051         Tests for module 'unistr/u32-strcat'.
38052         * modules/unistr/u32-strcat-tests: New file.
38053         * tests/unistr/test-u32-strcat.c: New file.
38054
38055         Tests for module 'unistr/u16-strcat'.
38056         * modules/unistr/u16-strcat-tests: New file.
38057         * tests/unistr/test-u16-strcat.c: New file.
38058
38059         Tests for module 'unistr/u8-strcat'.
38060         * modules/unistr/u8-strcat-tests: New file.
38061         * tests/unistr/test-u8-strcat.c: New file.
38062         * tests/unistr/test-strcat.h: New file.
38063
38064         Tests for module 'unistr/u32-stpncpy'.
38065         * modules/unistr/u32-stpncpy-tests: New file.
38066         * tests/unistr/test-u32-stpncpy.c: New file.
38067
38068         Tests for module 'unistr/u16-stpncpy'.
38069         * modules/unistr/u16-stpncpy-tests: New file.
38070         * tests/unistr/test-u16-stpncpy.c: New file.
38071
38072         Tests for module 'unistr/u8-stpncpy'.
38073         * modules/unistr/u8-stpncpy-tests: New file.
38074         * tests/unistr/test-u8-stpncpy.c: New file.
38075         * tests/unistr/test-stpncpy.h: New file.
38076
38077         Tests for module 'unistr/u32-strncpy'.
38078         * modules/unistr/u32-strncpy-tests: New file.
38079         * tests/unistr/test-u32-strncpy.c: New file.
38080
38081         Tests for module 'unistr/u16-strncpy'.
38082         * modules/unistr/u16-strncpy-tests: New file.
38083         * tests/unistr/test-u16-strncpy.c: New file.
38084
38085         Tests for module 'unistr/u8-strncpy'.
38086         * modules/unistr/u8-strncpy-tests: New file.
38087         * tests/unistr/test-u8-strncpy.c: New file.
38088         * tests/unistr/test-strncpy.h: New file.
38089
38090         Tests for module 'unistr/u32-stpcpy'.
38091         * modules/unistr/u32-stpcpy-tests: New file.
38092         * tests/unistr/test-u32-stpcpy.c: New file.
38093
38094         Tests for module 'unistr/u16-stpcpy'.
38095         * modules/unistr/u16-stpcpy-tests: New file.
38096         * tests/unistr/test-u16-stpcpy.c: New file.
38097
38098         Tests for module 'unistr/u8-stpcpy'.
38099         * modules/unistr/u8-stpcpy-tests: New file.
38100         * tests/unistr/test-u8-stpcpy.c: New file.
38101         * tests/unistr/test-stpcpy.h: New file.
38102
38103         Tests for module 'unistr/u32-strcpy'.
38104         * modules/unistr/u32-strcpy-tests: New file.
38105         * tests/unistr/test-u32-strcpy.c: New file.
38106
38107         Tests for module 'unistr/u16-strcpy'.
38108         * modules/unistr/u16-strcpy-tests: New file.
38109         * tests/unistr/test-u16-strcpy.c: New file.
38110
38111         Tests for module 'unistr/u8-strcpy'.
38112         * modules/unistr/u8-strcpy-tests: New file.
38113         * tests/unistr/test-u8-strcpy.c: New file.
38114         * tests/unistr/test-strcpy.h: New file.
38115
38116         Tests for module 'unistr/u32-strnlen'.
38117         * modules/unistr/u32-strnlen-tests: New file.
38118         * tests/unistr/test-u32-strnlen.c: New file.
38119
38120         Tests for module 'unistr/u16-strnlen'.
38121         * modules/unistr/u16-strnlen-tests: New file.
38122         * tests/unistr/test-u16-strnlen.c: New file.
38123
38124         Tests for module 'unistr/u8-strnlen'.
38125         * modules/unistr/u8-strnlen-tests: New file.
38126         * tests/unistr/test-u8-strnlen.c: New file.
38127         * tests/unistr/test-strnlen.h: New file.
38128
38129         Tests for module 'unistr/u32-strlen'.
38130         * modules/unistr/u32-strlen-tests: New file.
38131         * tests/unistr/test-u32-strlen.c: New file.
38132
38133         Tests for module 'unistr/u16-strlen'.
38134         * modules/unistr/u16-strlen-tests: New file.
38135         * tests/unistr/test-u16-strlen.c: New file.
38136
38137         Tests for module 'unistr/u8-strlen'.
38138         * modules/unistr/u8-strlen-tests: New file.
38139         * tests/unistr/test-u8-strlen.c: New file.
38140
38141         Tests for module 'unistr/u32-prev'.
38142         * modules/unistr/u32-prev-tests: New file.
38143         * tests/unistr/test-u32-prev.c: New file.
38144
38145         Tests for module 'unistr/u16-prev'.
38146         * modules/unistr/u16-prev-tests: New file.
38147         * tests/unistr/test-u16-prev.c: New file.
38148
38149         Tests for module 'unistr/u8-prev'.
38150         * modules/unistr/u8-prev-tests: New file.
38151         * tests/unistr/test-u8-prev.c: New file.
38152
38153         Tests for module 'unistr/u32-next'.
38154         * modules/unistr/u32-next-tests: New file.
38155         * tests/unistr/test-u32-next.c: New file.
38156
38157         Tests for module 'unistr/u16-next'.
38158         * modules/unistr/u16-next-tests: New file.
38159         * tests/unistr/test-u16-next.c: New file.
38160
38161         Tests for module 'unistr/u8-next'.
38162         * modules/unistr/u8-next-tests: New file.
38163         * tests/unistr/test-u8-next.c: New file.
38164
38165         Tests for module 'unistr/u32-strmbtouc'.
38166         * modules/unistr/u32-strmbtouc-tests: New file.
38167         * tests/unistr/test-u32-strmbtouc.c: New file.
38168
38169         Tests for module 'unistr/u16-strmbtouc'.
38170         * modules/unistr/u16-strmbtouc-tests: New file.
38171         * tests/unistr/test-u16-strmbtouc.c: New file.
38172
38173         Tests for module 'unistr/u8-strmbtouc'.
38174         * modules/unistr/u8-strmbtouc-tests: New file.
38175         * tests/unistr/test-u8-strmbtouc.c: New file.
38176
38177         Tests for module 'unistr/u32-strmblen'.
38178         * modules/unistr/u32-strmblen-tests: New file.
38179         * tests/unistr/test-u32-strmblen.c: New file.
38180
38181         Tests for module 'unistr/u16-strmblen'.
38182         * modules/unistr/u16-strmblen-tests: New file.
38183         * tests/unistr/test-u16-strmblen.c: New file.
38184
38185         Tests for module 'unistr/u8-strmblen'.
38186         * modules/unistr/u8-strmblen-tests: New file.
38187         * tests/unistr/test-u8-strmblen.c: New file.
38188
38189         Tests for module 'unistr/u32-cpy-alloc'.
38190         * modules/unistr/u32-cpy-alloc-tests: New file.
38191         * tests/unistr/test-u32-cpy-alloc.c: New file.
38192
38193         Tests for module 'unistr/u16-cpy-alloc'.
38194         * modules/unistr/u16-cpy-alloc-tests: New file.
38195         * tests/unistr/test-u16-cpy-alloc.c: New file.
38196
38197         Tests for module 'unistr/u8-cpy-alloc'.
38198         * modules/unistr/u8-cpy-alloc-tests: New file.
38199         * tests/unistr/test-u8-cpy-alloc.c: New file.
38200         * tests/unistr/test-cpy-alloc.h: New file.
38201
38202         Tests for module 'unistr/u32-mbsnlen'.
38203         * modules/unistr/u32-mbsnlen-tests: New file.
38204         * tests/unistr/test-u32-mbsnlen.c: New file.
38205
38206         Tests for module 'unistr/u16-mbsnlen'.
38207         * modules/unistr/u16-mbsnlen-tests: New file.
38208         * tests/unistr/test-u16-mbsnlen.c: New file.
38209
38210         Tests for module 'unistr/u8-mbsnlen'.
38211         * modules/unistr/u8-mbsnlen-tests: New file.
38212         * tests/unistr/test-u8-mbsnlen.c: New file.
38213
38214         Tests for module 'unistr/u32-chr'.
38215         * modules/unistr/u32-chr-tests: New file.
38216         * tests/unistr/test-u32-chr.c: New file.
38217
38218         Tests for module 'unistr/u16-chr'.
38219         * modules/unistr/u16-chr-tests: New file.
38220         * tests/unistr/test-u16-chr.c: New file.
38221
38222         Tests for module 'unistr/u8-chr'.
38223         * modules/unistr/u8-chr-tests: New file.
38224         * tests/unistr/test-u8-chr.c: New file.
38225         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38226
38227         Tests for module 'unistr/u32-cmp2'.
38228         * modules/unistr/u32-cmp2-tests: New file.
38229         * tests/unistr/test-u32-cmp2.c: New file.
38230
38231         Tests for module 'unistr/u16-cmp2'.
38232         * modules/unistr/u16-cmp2-tests: New file.
38233         * tests/unistr/test-u16-cmp2.c: New file.
38234
38235         Tests for module 'unistr/u8-cmp2'.
38236         * modules/unistr/u8-cmp2-tests: New file.
38237         * tests/unistr/test-u8-cmp2.c: New file.
38238         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38239
38240         Tests for module 'unistr/u32-cmp'.
38241         * modules/unistr/u32-cmp-tests: New file.
38242         * tests/unistr/test-u32-cmp.c: New file.
38243
38244         Tests for module 'unistr/u16-cmp'.
38245         * modules/unistr/u16-cmp-tests: New file.
38246         * tests/unistr/test-u16-cmp.c: New file.
38247
38248         Tests for module 'unistr/u8-cmp'.
38249         * modules/unistr/u8-cmp-tests: New file.
38250         * tests/unistr/test-u8-cmp.c: New file.
38251         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38252
38253         Tests for module 'unistr/u32-set'.
38254         * modules/unistr/u32-set-tests: New file.
38255         * tests/unistr/test-u32-set.c: New file.
38256
38257         Tests for module 'unistr/u16-set'.
38258         * modules/unistr/u16-set-tests: New file.
38259         * tests/unistr/test-u16-set.c: New file.
38260
38261         Tests for module 'unistr/u8-set'.
38262         * modules/unistr/u8-set-tests: New file.
38263         * tests/unistr/test-u8-set.c: New file.
38264         * tests/unistr/test-set.h: New file.
38265
38266         Tests for module 'unistr/u32-move'.
38267         * modules/unistr/u32-move-tests: New file.
38268         * tests/unistr/test-u32-move.c: New file.
38269
38270         Tests for module 'unistr/u16-move'.
38271         * modules/unistr/u16-move-tests: New file.
38272         * tests/unistr/test-u16-move.c: New file.
38273
38274         Tests for module 'unistr/u8-move'.
38275         * modules/unistr/u8-move-tests: New file.
38276         * tests/unistr/test-u8-move.c: New file.
38277         * tests/unistr/test-move.h: New file.
38278
38279         Tests for module 'unistr/u32-cpy'.
38280         * modules/unistr/u32-cpy-tests: New file.
38281         * tests/unistr/test-u32-cpy.c: New file.
38282
38283         Tests for module 'unistr/u16-cpy'.
38284         * modules/unistr/u16-cpy-tests: New file.
38285         * tests/unistr/test-u16-cpy.c: New file.
38286
38287         Tests for module 'unistr/u8-cpy'.
38288         * modules/unistr/u8-cpy-tests: New file.
38289         * tests/unistr/test-u8-cpy.c: New file.
38290         * tests/unistr/test-cpy.h: New file.
38291
38292 2010-01-09  Bruno Haible  <bruno@clisp.org>
38293
38294         Tests for module 'unistr/u32-uctomb'.
38295         * modules/unistr/u32-uctomb-tests: New file.
38296         * tests/unistr/test-u32-uctomb.c: New file.
38297
38298         Tests for module 'unistr/u16-uctomb'.
38299         * modules/unistr/u16-uctomb-tests: New file.
38300         * tests/unistr/test-u16-uctomb.c: New file.
38301
38302         Tests for module 'unistr/u8-uctomb'.
38303         * modules/unistr/u8-uctomb-tests: New file.
38304         * tests/unistr/test-u8-uctomb.c: New file.
38305
38306         Tests for module 'unistr/u32-mbtoucr'.
38307         * modules/unistr/u32-mbtoucr-tests: New file.
38308         * tests/unistr/test-u32-mbtoucr.c: New file.
38309
38310         Tests for module 'unistr/u16-mbtoucr'.
38311         * modules/unistr/u16-mbtoucr-tests: New file.
38312         * tests/unistr/test-u16-mbtoucr.c: New file.
38313
38314         Tests for module 'unistr/u8-mbtoucr'.
38315         * modules/unistr/u8-mbtoucr-tests: New file.
38316         * tests/unistr/test-u8-mbtoucr.c: New file.
38317
38318         Tests for module 'unistr/u32-mbtouc'.
38319         * modules/unistr/u32-mbtouc-tests: New file.
38320         * tests/unistr/test-u32-mbtouc.c: New file.
38321
38322         Tests for module 'unistr/u16-mbtouc'.
38323         * modules/unistr/u16-mbtouc-tests: New file.
38324         * tests/unistr/test-u16-mbtouc.c: New file.
38325
38326         Tests for module 'unistr/u8-mbtouc'.
38327         * modules/unistr/u8-mbtouc-tests: New file.
38328         * tests/unistr/test-u8-mbtouc.c: New file.
38329
38330         Tests for module 'unistr/u32-mbtouc-unsafe'.
38331         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38332         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38333         * tests/unistr/test-u32-mbtouc.h: New file.
38334
38335         Tests for module 'unistr/u16-mbtouc-unsafe'.
38336         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38337         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38338         * tests/unistr/test-u16-mbtouc.h: New file.
38339
38340         Tests for module 'unistr/u8-mbtouc-unsafe'.
38341         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38342         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38343         * tests/unistr/test-u8-mbtouc.h: New file.
38344
38345         Tests for module 'unistr/u32-mblen'.
38346         * modules/unistr/u32-mblen-tests: New file.
38347         * tests/unistr/test-u32-mblen.c: New file.
38348
38349         Tests for module 'unistr/u16-mblen'.
38350         * modules/unistr/u16-mblen-tests: New file.
38351         * tests/unistr/test-u16-mblen.c: New file.
38352
38353         Tests for module 'unistr/u8-mblen'.
38354         * modules/unistr/u8-mblen-tests: New file.
38355         * tests/unistr/test-u8-mblen.c: New file.
38356
38357         Tests for module 'unistr/u32-to-u16'.
38358         * modules/unistr/u32-to-u16-tests: New file.
38359         * tests/unistr/test-u32-to-u16.c: New file.
38360
38361         Tests for module 'unistr/u32-to-u8'.
38362         * modules/unistr/u32-to-u8-tests: New file.
38363         * tests/unistr/test-u32-to-u8.c: New file.
38364
38365         Tests for module 'unistr/u16-to-u32'.
38366         * modules/unistr/u16-to-u32-tests: New file.
38367         * tests/unistr/test-u16-to-u32.c: New file.
38368
38369         Tests for module 'unistr/u16-to-u8'.
38370         * modules/unistr/u16-to-u8-tests: New file.
38371         * tests/unistr/test-u16-to-u8.c: New file.
38372
38373         Tests for module 'unistr/u8-to-u32'.
38374         * modules/unistr/u8-to-u32-tests: New file.
38375         * tests/unistr/test-u8-to-u32.c: New file.
38376
38377         Tests for module 'unistr/u8-to-u16'.
38378         * modules/unistr/u8-to-u16-tests: New file.
38379         * tests/unistr/test-u8-to-u16.c: New file.
38380
38381         Tests for module 'unistr/u32-check'.
38382         * modules/unistr/u32-check-tests: New file.
38383         * tests/unistr/test-u32-check.c: New file.
38384
38385         Tests for module 'unistr/u16-check'.
38386         * modules/unistr/u16-check-tests: New file.
38387         * tests/unistr/test-u16-check.c: New file.
38388
38389         Tests for module 'unistr/u8-check'.
38390         * modules/unistr/u8-check-tests: New file.
38391         * tests/unistr/test-u8-check.c: New file.
38392
38393         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38394         (category_equals): New function.
38395         (main): Add more tests.
38396         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38397
38398         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38399
38400 2010-01-10  Bruno Haible  <bruno@clisp.org>
38401
38402         unistr/u*-strcoll: Try harder to distinguish different strings.
38403         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38404         compare s1 and s2 to see if they are different.
38405
38406 2010-01-10  Bruno Haible  <bruno@clisp.org>
38407
38408         unistr/u*-stpncpy: Fix the return value.
38409         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38410         description of the return value consistent with stpncpy in glibc.
38411         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38412         written non-NUL unit.
38413
38414 2010-01-10  Bruno Haible  <bruno@clisp.org>
38415
38416         unistr/u*-next: Add missing dependencies.
38417         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38418         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38419         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38420
38421 2010-01-10  Bruno Haible  <bruno@clisp.org>
38422
38423         unistr/u8-mbsnlen: Fix return value for incomplete character.
38424         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38425         u8_mblen.
38426         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38427         Remove unistr/u8-mblen.
38428         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38429         u16_mblen.
38430         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38431         Remove unistr/u16-mblen.
38432
38433 2010-01-10  Bruno Haible  <bruno@clisp.org>
38434
38435         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38436         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38437         Reported by Brian Gough <bjg@gnu.org> and
38438         Chris Clayton <chris2553@googlemail.com> via
38439         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38440
38441 2010-01-09  Bruno Haible  <bruno@clisp.org>
38442
38443         unistr/u16-to-u32: Reject invalid input.
38444         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38445         u16_mbtouc.
38446         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38447         Remove unistr/u16-mbtouc.
38448
38449         unistr/u16-to-u8: Reject invalid input.
38450         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38451         u16_mbtouc.
38452         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38453         Remove unistr/u16-mbtouc.
38454
38455         unistr/u8-to-u32: Reject invalid input.
38456         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38457         u8_mbtouc.
38458         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38459         Remove unistr/u8-mbtouc.
38460
38461         unistr/u8-to-u16: Reject invalid input.
38462         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38463         u8_mbtouc.
38464         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38465         Remove unistr/u8-mbtouc.
38466
38467 2010-01-09  Bruno Haible  <bruno@clisp.org>
38468
38469         Tests for module 'getlogin'.
38470         * modules/getlogin-tests: New file.
38471         * tests/test-getlogin.c: New file.
38472
38473         New module 'getlogin'.
38474         * lib/unistd.in.h (getlogin): New declaration.
38475         * lib/getlogin.c: New file.
38476         * m4/getlogin.m4: New file.
38477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38478         HAVE_GETLOGIN.
38479         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38480         HAVE_GETLOGIN.
38481         * modules/getlogin: New file.
38482         * doc/posix-functions/getlogin.texi: Mention the new module.
38483         Reported by John W. Eaton <jwe@gnu.org>.
38484
38485 2010-01-09  Bruno Haible  <bruno@clisp.org>
38486
38487         getlogin_r: Support for native Windows.
38488         * lib/getlogin_r.c: Include <windows.h>
38489         (getlogin_r): Implement for native Windows.
38490         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38491         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38492         via John W. Eaton <jwe@gnu.org>.
38493
38494 2010-01-09  Bruno Haible  <bruno@clisp.org>
38495
38496         getlogin_r: Small fixes.
38497         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38498         succeeds.
38499         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38500         before testing whether getlogin_r is declared. No need to set
38501         HAVE_DECL_GETLOGIN_R to 1.
38502         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38503
38504 2010-01-09  Bruno Haible  <bruno@clisp.org>
38505
38506         * lib/unistd.in.h (getlogin_r): Add comment.
38507
38508 2010-01-09  Bruno Haible  <bruno@clisp.org>
38509
38510         Tests for module 'getlogin_r'.
38511         * modules/getlogin_r-tests: New file.
38512         * tests/test-getlogin_r.c: New file.
38513
38514 2010-01-09  Jim Meyering  <meyering@redhat.com>
38515
38516         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38517         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38518         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38519
38520 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38521
38522         * lib/dup2.c (rpl_dup2): Improve comment.
38523
38524 2010-01-08  Eric Blake  <ebb9@byu.net>
38525
38526         maint.mk: allow packages to add makefile @@ exceptions
38527         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38528         (sc_makefile_check): Rename...
38529         (sc_makefile_at_at_check): ...to this, and use hook.
38530
38531         dup2: work around mingw bug
38532         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38533         Reported by Simon Josefsson.
38534
38535 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38536
38537         glob: Fix C++ compilation.
38538         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38539         C++.
38540
38541 2010-01-07  Bruno Haible  <bruno@clisp.org>
38542
38543         Fix indentation of wctype.in.h, broken since 2007-01-06.
38544         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38545
38546 2010-01-07  Bruno Haible  <bruno@clisp.org>
38547
38548         mbslen: Avoid collision with system function.
38549         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38550         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38551         * m4/mbslen.m4: New file.
38552         * modules/mbslen (Files): Add it.
38553         (configure.ac): Invoke gl_MBSLEN.
38554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38555         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38556         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38557         via Ian Beckwith <ianb@erislabs.net>.
38558
38559 2010-01-07  Bruno Haible  <bruno@clisp.org>
38560
38561         dirent: Document the last fix.
38562         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38563
38564 2010-01-07  Bruno Haible  <bruno@clisp.org>
38565
38566         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38567         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38568         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38569         va_list are defined.
38570         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38571         Reported by Eric Blake.
38572
38573 2010-01-07  Bruno Haible  <bruno@clisp.org>
38574
38575         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38576         * modules/xlist (Depends-on): Add 'list',
38577         * modules/xoset (Depends-on): Add 'oset'.
38578         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38579
38580 2010-01-07  Bruno Haible  <bruno@clisp.org>
38581
38582         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38583         * doc/posix-functions/strncasecmp.texi: Likewise.
38584
38585 2010-01-07  Bruno Haible  <bruno@clisp.org>
38586
38587         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38588
38589 2010-01-07  John W. Eaton  <jwe@octave.org>
38590
38591         wctype: allow C++ use
38592         * lib/wctype.in.h: Add extern "C" block for C++.
38593
38594 2010-01-06  Eric Blake  <ebb9@byu.net>
38595
38596         maint.mk: detect incorrect GFDL usage
38597         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38598
38599 2010-01-06  Jim Meyering  <meyering@redhat.com>
38600         and Eric Blake  <ebb9@byu.net>
38601
38602         maint.mk: ignore multi-line copyright in NEWS
38603         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38604
38605 2010-01-06  Eric Blake  <ebb9@byu.net>
38606
38607         select: add missing dependency
38608         * modules/select-tests (Depends-on): Move sockets dependency...
38609         * modules/select (Depends-on): ...here.
38610         Reported by Ian Beckwith.
38611
38612         doc: regenerate INSTALL
38613         * doc/INSTALL: Reflect recent autoconf update.
38614         * doc/INSTALL.ISO: Likewise.
38615         * doc/INSTALL.UTF-8: Likewise.
38616
38617         pread: fix compilation on glibc
38618         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38619         Reported by Ralf Wildenhues.
38620
38621         dirent: fix test failure
38622         * lib/dirent.in.h (includes): Guarantee ino_t.
38623         Reported by Ralf Wildenhues.
38624
38625 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38626
38627         linkat, renameat: avoid bad free
38628         * lib/at-func2.c (at_func2): Fix typo.
38629         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38630
38631 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38632
38633         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38634         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38635         to avoid failure of symlink test later.
38636
38637 2010-01-06  Eric Blake  <ebb9@byu.net>
38638
38639         stdio, unistd: guarantee ssize_t
38640         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38641         2008 are exposed when needed.
38642         * lib/stdio.in.h (includes): Likewise.
38643         Reported by Ralf Wildenhues.
38644
38645 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38646
38647         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38648         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38649         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38650
38651 2010-01-06  Jim Meyering  <meyering@redhat.com>
38652
38653         readtokens: this module *does* require xalloc.h
38654         It uses only functions that were omitted by the old syntax-check rule.
38655         * lib/readtokens.c: Include "xalloc.h" once again.
38656         * modules/readtokens (Depends-on): Add xalloc.
38657         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38658
38659 2010-01-05  Eric Blake  <ebb9@byu.net>
38660
38661         maint: support 'make announcement' from a VPATH build
38662         * top/maint.mk (announcement): Look for correct NEWS file.
38663
38664 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38665
38666         utimens (fdutimens): ignore a negative FD, per contract
38667         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38668         when we have a valid file descriptor.  Otherwise, using a brand
38669         new glibc (with just-patched futimens that now fails with EBADF)
38670         would cause this function to fail with ENOSYS.
38671         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38672         See also http://bugzilla.redhat.com/552320.
38673
38674 2010-01-05  Eric Blake  <ebb9@byu.net>
38675
38676         strcase: document what it provides
38677         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38678         gnulib module.
38679         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38680         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38681
38682 2010-01-05  Jim Meyering  <meyering@redhat.com>
38683
38684         maint: remove useless inclusions of "xalloc.h"
38685         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38686         * lib/readtokens.c: Likewise.
38687         * lib/same.c: Likewise.
38688         * modules/getloadavg (Depends-on): Remove xalloc.
38689         * modules/readtokens: Likewise.
38690         * modules/same: Likewise.
38691
38692         maint.mk: include 4 more function names in alloca.h-checking regexp
38693         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38694         regexp.  Before, we would give a false-positive (saying alloca.h
38695         is included unnecessarily) when the only uses involved omitted symbols.
38696
38697         xalloc.h: use consistent formatting
38698         * lib/xalloc.h: Move declarations to start in the first column.
38699
38700 2010-01-05  Eric Blake  <ebb9@byu.net>
38701
38702         mkdir: avoid xalloc
38703         * lib/mkdir.c (includes): Drop unused header.
38704         Reported by John W. Eaton.
38705
38706 2010-01-04  Jim Meyering  <meyering@redhat.com>
38707
38708         nl_langinfo: avoid configure-time syntax error
38709         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38710         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38711         the empty string.  Don't let that provoke a shell syntax error.
38712
38713         regcomp, regexec, fnmatch: avoid array bounds read error
38714         * lib/regcomp.c (build_equiv_class): From glibc:
38715         Use only the low 24 bits of a findidx return value as an index
38716         into the weights array.  Patch by Ulrich Drepper:
38717         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38718         * lib/regexec.c (check_node_accept_bytes): Likewise.
38719         * lib/fnmatch_loop.c (FCT): Likewise.
38720
38721         regcomp: skip collseq lookup when there are no rules
38722         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38723         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38724
38725         regcomp: recognize ill-formed { } expressions
38726         * lib/regcomp.c (parse_dup_op): From glibc:
38727         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38728
38729         regcomp: fix typo in comment
38730         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38731         s/satisfy/satisfies/.
38732
38733         regcomp: sync from glibc: remove dead store
38734         * lib/regcomp.c (duplicate_node_closure): Remove useless
38735         search_duplicated_node call and dead store.
38736
38737         regcomp: sync from glibc; always use nl_langinfo
38738         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38739         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38740         * modules/regex (Depends-on): Add nl_langinfo.
38741
38742 2010-01-04  Eric Blake  <ebb9@byu.net>
38743
38744         fdopendir: fix configure test
38745         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38746
38747 2010-01-01  Bruno Haible  <bruno@clisp.org>
38748
38749         wchar: Remove unused configure check.
38750         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38751
38752 2010-01-01  Eric Blake  <ebb9@byu.net>
38753
38754         headers: make check of system header explicit
38755         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38756         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38757         ourselves.
38758         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38760         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38761         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38762         internals.
38763         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38764         missing.
38765         Suggested by Bruno Haible.
38766
38767 2010-01-01  Jim Meyering  <meyering@redhat.com>
38768
38769         ChangeLog: tweak to eliminate unnecessary copyright line
38770         * ChangeLog: Remove a copyright line that was mistakenly updated
38771         by today's update-copyright run.  Reported by Eric Blake.
38772
38773         test-update-copyright: don't let envvar setting cause test failure
38774         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38775
38776 2010-01-01  Bruno Haible  <bruno@clisp.org>
38777
38778         localename: Avoid gcc warning.
38779         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38780         function if it is not used.
38781
38782 2010-01-01  Jim Meyering  <meyering@redhat.com>
38783
38784         update nearly all FSF copyright year lists to include 2010
38785         Use the same procedure as for 2009, outlined in
38786         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38787
38788         version-etc: set COPYRIGHT_YEAR to 2010
38789         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38790
38791 2009-12-31  Eric Blake  <ebb9@byu.net>
38792
38793         doc: correct availability of cygwin 1.5.x getopt
38794         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38795         variables.
38796         * doc/posix-functions/opterr.texi (opterr): Likewise.
38797         * doc/posix-functions/optind.texi (optind): Likewise.
38798         * doc/posix-functions/optopt.texi (optopt): Likewise.
38799         * doc/posix-functions/tzname.texi (tzname): Likewise.
38800
38801         openat: update maintainer
38802         * modules/openat (Maintainer): Add myself.
38803
38804         utimens: avoid shadowing warning
38805         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38806         buffers into one, to avoid shadowing, as well as avoiding a
38807         redundant stat.
38808         Reported by Jim Meyering.
38809
38810         test-dup2: avoid compiler warning
38811         * tests/test-dup2.c (is_inheritable): Only define if used.
38812
38813 2010-01-01  Bruno Haible  <bruno@clisp.org>
38814
38815         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38816         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38817         defined, use wctomb instead of wcrtomb.
38818
38819 2010-01-01  Bruno Haible  <bruno@clisp.org>
38820
38821         iconv: Reject native Solaris iconv.
38822         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38823         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38824
38825 2009-12-31  Bruno Haible  <bruno@clisp.org>
38826
38827         * tests/test-signal.c (main): Remove test of 'SIG'.
38828
38829 2009-12-31  Bruno Haible  <bruno@clisp.org>
38830
38831         spawn: Fix incomplete fix.
38832         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38833         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38834         warnings for GNULIB_POSIXCHECK again.
38835         Reported by Eric Blake.
38836
38837 2009-12-31  Bruno Haible  <bruno@clisp.org>
38838
38839         Avoid namespace pollution on glibc systems.
38840         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38841         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38842         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38843         glibc systems.
38844
38845 2009-12-31  Bruno Haible  <bruno@clisp.org>
38846
38847         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38848         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38849         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38850         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38851         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38852         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38853         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38854
38855 2009-12-31  Bruno Haible  <bruno@clisp.org>
38856
38857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38858         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38859         afterwards.
38860
38861 2009-12-31  Bruno Haible  <bruno@clisp.org>
38862
38863         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38864         SYS_UTSNAME_H.
38865
38866 2009-12-31  Bruno Haible  <bruno@clisp.org>
38867
38868         spawn: Fix misapplied patch.
38869         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38870         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38871         warnings for GNULIB_POSIXCHECK.
38872
38873 2009-12-31  Bruno Haible  <bruno@clisp.org>
38874
38875         times: Update after sys_times changed.
38876         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38877         * modules/times (Files): Add it.
38878         (configure.ac): Invoke gl_FUNC_TIMES.
38879
38880 2009-12-31  Bruno Haible  <bruno@clisp.org>
38881
38882         Use AC_C_INLINE where necessary.
38883         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38884         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38885         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38886         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38887         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38888         * m4/mbiter.m4 (gl_MBITER): Likewise.
38889         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38890         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38891         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38892         * modules/u64 (configure.ac): Likewise.
38893
38894 2009-12-31  Bruno Haible  <bruno@clisp.org>
38895
38896         Use AC_C_INLINE instead of module 'inline' where possible.
38897         * modules/inline (Description): Clarify purpose.
38898         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38899         * modules/count-one-bits (Depends-on): Remove inline.
38900         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38901         * modules/openat (Depends-on): Remove inline.
38902         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38903         instead of depending on module 'inline'.
38904         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38905         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38906         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38907         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38908         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38909         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38910         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38911         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38912         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38913         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38914         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38915         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38916         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38917         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38918         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38919         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38920         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38921         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38922         Likewise.
38923         * modules/unictype/property-ascii-hex-digit (Depends-on,
38924         configure.ac): Likewise.
38925         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38926         configure.ac): Likewise.
38927         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38928         configure.ac): Likewise.
38929         * modules/unictype/property-bidi-block-separator (Depends-on,
38930         configure.ac): Likewise.
38931         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38932         configure.ac): Likewise.
38933         * modules/unictype/property-bidi-common-separator (Depends-on,
38934         configure.ac): Likewise.
38935         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38936         Likewise.
38937         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38938         configure.ac): Likewise.
38939         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38940         configure.ac): Likewise.
38941         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38942         configure.ac): Likewise.
38943         * modules/unictype/property-bidi-european-digit (Depends-on,
38944         configure.ac): Likewise.
38945         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38946         configure.ac): Likewise.
38947         * modules/unictype/property-bidi-left-to-right (Depends-on,
38948         configure.ac): Likewise.
38949         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38950         configure.ac): Likewise.
38951         * modules/unictype/property-bidi-other-neutral (Depends-on,
38952         configure.ac): Likewise.
38953         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38954         Likewise.
38955         * modules/unictype/property-bidi-segment-separator (Depends-on,
38956         configure.ac): Likewise.
38957         * modules/unictype/property-bidi-whitespace (Depends-on,
38958         configure.ac): Likewise.
38959         * modules/unictype/property-combining (Depends-on, configure.ac):
38960         Likewise.
38961         * modules/unictype/property-composite (Depends-on, configure.ac):
38962         Likewise.
38963         * modules/unictype/property-currency-symbol (Depends-on,
38964         configure.ac): Likewise.
38965         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38966         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38967         Likewise.
38968         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38969         configure.ac): Likewise.
38970         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38971         Likewise.
38972         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38973         Likewise.
38974         * modules/unictype/property-extender (Depends-on, configure.ac):
38975         Likewise.
38976         * modules/unictype/property-format-control (Depends-on, configure.ac):
38977         Likewise.
38978         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38979         Likewise.
38980         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38981         Likewise.
38982         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38983         Likewise.
38984         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38985         Likewise.
38986         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38987         Likewise.
38988         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38989         Likewise.
38990         * modules/unictype/property-id-start (Depends-on, configure.ac):
38991         Likewise.
38992         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38993         Likewise.
38994         * modules/unictype/property-ids-binary-operator (Depends-on,
38995         configure.ac): Likewise.
38996         * modules/unictype/property-ids-trinary-operator (Depends-on,
38997         configure.ac): Likewise.
38998         * modules/unictype/property-ignorable-control (Depends-on,
38999         configure.ac): Likewise.
39000         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39001         Likewise.
39002         * modules/unictype/property-join-control (Depends-on, configure.ac):
39003         Likewise.
39004         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39005         Likewise.
39006         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39007         Likewise.
39008         * modules/unictype/property-logical-order-exception (Depends-on,
39009         configure.ac): Likewise.
39010         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39011         Likewise.
39012         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39013         * modules/unictype/property-non-break (Depends-on, configure.ac):
39014         Likewise.
39015         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39016         Likewise.
39017         * modules/unictype/property-numeric (Depends-on, configure.ac):
39018         Likewise.
39019         * modules/unictype/property-other-alphabetic (Depends-on,
39020         configure.ac): Likewise.
39021         * modules/unictype/property-other-default-ignorable-code-point
39022         (Depends-on, configure.ac): Likewise.
39023         * modules/unictype/property-other-grapheme-extend (Depends-on,
39024         configure.ac): Likewise.
39025         * modules/unictype/property-other-id-continue (Depends-on,
39026         configure.ac): Likewise.
39027         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39028         Likewise.
39029         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39030         Likewise.
39031         * modules/unictype/property-other-math (Depends-on, configure.ac):
39032         Likewise.
39033         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39034         Likewise.
39035         * modules/unictype/property-paired-punctuation (Depends-on,
39036         configure.ac): Likewise.
39037         * modules/unictype/property-paragraph-separator (Depends-on,
39038         configure.ac): Likewise.
39039         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39040         Likewise.
39041         * modules/unictype/property-pattern-white-space (Depends-on,
39042         configure.ac): Likewise.
39043         * modules/unictype/property-private-use (Depends-on, configure.ac):
39044         Likewise.
39045         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39046         Likewise.
39047         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39048         Likewise.
39049         * modules/unictype/property-radical (Depends-on, configure.ac):
39050         Likewise.
39051         * modules/unictype/property-sentence-terminal (Depends-on,
39052         configure.ac): Likewise.
39053         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39054         Likewise.
39055         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39056         * modules/unictype/property-terminal-punctuation (Depends-on,
39057         configure.ac): Likewise.
39058         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39059         Likewise.
39060         * modules/unictype/property-unassigned-code-value (Depends-on,
39061         configure.ac): Likewise.
39062         * modules/unictype/property-unified-ideograph (Depends-on,
39063         configure.ac): Likewise.
39064         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39065         Likewise.
39066         * modules/unictype/property-variation-selector (Depends-on,
39067         configure.ac): Likewise.
39068         * modules/unictype/property-white-space (Depends-on, configure.ac):
39069         Likewise.
39070         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39071         Likewise.
39072         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39073         Likewise.
39074         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39075         Likewise.
39076         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39077         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39078         Likewise.
39079
39080 2009-12-31  Bruno Haible  <bruno@clisp.org>
39081
39082         Remove unnecessary AC_C_INLINE invocation.
39083         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39084         since 2009-08-21.
39085
39086 2009-12-31  Jim Meyering  <meyering@redhat.com>
39087
39088         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39089         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39090         With this change, we can all remove the gpg_key_ID = ... definition
39091         from our respective cfg.mk files.
39092
39093         maint.mk: create announcement template in ~/, not in /tmp
39094         * top/maint.mk (emit_upload_commands): Adjust.
39095         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39096         Remove temporary file, .ci-msg.
39097
39098 2009-12-31  Eric Blake  <ebb9@byu.net>
39099
39100         link-warning: always build headers with link warnings
39101         * modules/arpa_inet (Makefile.am): Always build replacement
39102         header.
39103         * modules/ctype (Makefile.am): Likewise.
39104         * modules/dirent (Makefile.am): Likewise.
39105         * modules/inttypes (Makefile.am): Likewise.
39106         * modules/langinfo (Makefile.am): Likewise.
39107         * modules/locale (Makefile.am): Likewise.
39108         * modules/spawn (Makefile.am): Likewise.
39109         * modules/sys_file (Makefile.am): Likewise.
39110         * modules/sys_ioctl (Makefile.am): Likewise.
39111         * modules/sys_select (Makefile.am): Likewise.
39112         * modules/sys_socket (Makefile.am): Likewise.
39113         * modules/sys_times (Makefile.am): Likewise.
39114         * modules/sys_utsname (Makefile.am): Likewise.
39115         * modules/sys_wait (Makefile.am): Likewise.
39116         * modules/wchar (Makefile.am): Likewise.
39117         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39118         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39119         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39120         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39121         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39122         Likewise.
39123         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39125         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39126         Likewise.
39127         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39128         Likewise.
39129         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39130         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39131         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39132         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39133         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39134         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39135         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39136         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39137         (gl_WCHAR_H_DEFAULTS): Likewise.
39138
39139 2009-12-31  Eric Blake  <ebb9@byu.net>
39140
39141         signal, spawn: use link warnings
39142         * lib/signal.in.h (sigset_t): Make unconditional.
39143         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39144         (sigpending, sigprocmask, sigaction): Add link warnings.
39145         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39146         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39147         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39148         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39149         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39150         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39151         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39152         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39153         (posix_spawn_file_actions_destroy)
39154         (posix_spawn_file_actions_addopen)
39155         (posix_spawn_file_actions_addclose)
39156         (posix_spawn_file_actions_adddup2): Likewise.
39157         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39158         * tests/test-signal.c (main): Enhance test.
39159
39160         spawn: improve wrapper support
39161         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39162         (gl_SPAWN_H_DEFAULTS): New defaults.
39163         * modules/spawn (Makefile.am): Substitute them.
39164         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39165         Only declare if missing or broken.
39166
39167         sys_times, sys_utsname: use include_next
39168         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39169         header.
39170         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39171         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39172         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39173         * modules/sys_times (Depends-on): Add include_next.
39174         (Makefile.am): Substitute additional values.
39175         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39176         * lib/sys_times.in.h (includes): Include native header, if
39177         available.
39178         * lib/sys_utsname.in.h (includes): Likewise.
39179         * tests/test-sys_times.c (main): Enhance test.
39180
39181         fdutimensat: revert prior patch
39182         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39183         utimens.h.
39184         Reported by Bruno Haible.
39185
39186 2009-12-30  Eric Blake  <ebb9@byu.net>
39187
39188         sys_wait: drop link-warning dependency
39189         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39190         link-warning efforts.
39191         * lib/sys_wait.in.h: Likewise.
39192
39193         fdutimensat: remove bogus dependency
39194         * modules/fdutimensat (Depends-on): Drop inline.
39195
39196         unistd: fix typo
39197         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39198
39199 2009-12-30  Bruno Haible  <bruno@clisp.org>
39200
39201         Fix compilation error with Solaris cc.
39202         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39203         * lib/unicase/u16-is-invariant.c: Likewise.
39204         * lib/unicase/u32-is-invariant.c: Likewise.
39205         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39206
39207 2009-12-30  Bruno Haible  <bruno@clisp.org>
39208
39209         Fix test crash.
39210         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39211         locales.
39212         Reported by Simon Josefsson <simon@josefsson.org>.
39213
39214 2009-12-30  Bruno Haible  <bruno@clisp.org>
39215
39216         Fix compilation error on most platforms.
39217         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39218         Reported by Simon Josefsson <simon@josefsson.org>
39219         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39220
39221 2009-12-30  Eric Blake  <ebb9@byu.net>
39222
39223         futimens, utimensat: work around ntfs-3g bug
39224         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39225         a ctime bug is present, and expand workaround to cover ntfs-3g.
39226         * lib/utimens.c (fdutimens, lutimens): Likewise.
39227         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39228         (validate_timespec): Adjust return value.
39229         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39230         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39231         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39232
39233 2009-12-29  Eric Blake  <ebb9@byu.net>
39234
39235         link-warning: make usage consistent
39236         * modules/ctype (Depends-on): Add link-warning.
39237         (Makefile.am): Update rules accordingly.
39238         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39239         * modules/locale (Depends-on, Makefile.am): Likewise.
39240         * modules/sys_file (Makefile.am): Likewise.
39241         * modules/getopt-posix (Makefile.am): Delete unused link warning
39242         efforts.
39243         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39244         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39245         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39246         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39247
39248         stdio: remove unused variables
39249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39251         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39252
39253         tests: test more substitute headers
39254         * modules/ctype-tests: New file.
39255         * modules/dirent-tests: Likewise.
39256         * modules/spawn-tests: Likewise.
39257         * modules/sys_file-tests: Likewise.
39258         * modules/sys_ioctl-tests: Likewise.
39259         * modules/sys_wait-tests: Likewise.
39260         * tests/test-ctype.c: Likewise.
39261         * tests/test-dirent.c: Likewise.
39262         * tests/test-spawn.c: Likewise.
39263         * tests/test-sys_file.c: Likewise.
39264         * tests/test-sys_ioctl.c: Likewise.
39265         * tests/test-sys_wait.c: Likewise.
39266         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39267         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39268         whether or not flock is in use.
39269
39270         tests: remove License section from module
39271         * modules/arpa_inet-tests: Remove unneeded section.
39272         * modules/byteswap-tests: Likewise.
39273         * modules/ceilf-tests: Likewise.
39274         * modules/ceill-tests: Likewise.
39275         * modules/crypto/des-tests: Likewise.
39276         * modules/crypto/gc-arcfour-tests: Likewise.
39277         * modules/crypto/gc-arctwo-tests: Likewise.
39278         * modules/crypto/gc-des-tests: Likewise.
39279         * modules/crypto/gc-hmac-md5-tests: Likewise.
39280         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39281         * modules/crypto/gc-md2-tests: Likewise.
39282         * modules/crypto/gc-md4-tests: Likewise.
39283         * modules/crypto/gc-md5-tests: Likewise.
39284         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39285         * modules/crypto/gc-rijndael-tests: Likewise.
39286         * modules/crypto/gc-sha1-tests: Likewise.
39287         * modules/crypto/gc-tests: Likewise.
39288         * modules/crypto/md2-tests: Likewise.
39289         * modules/crypto/md4-tests: Likewise.
39290         * modules/fcntl-h-tests: Likewise.
39291         * modules/floorf-tests: Likewise.
39292         * modules/floorl-tests: Likewise.
39293         * modules/frexp-nolibm-tests: Likewise.
39294         * modules/frexp-tests: Likewise.
39295         * modules/frexpl-nolibm-tests: Likewise.
39296         * modules/frexpl-tests: Likewise.
39297         * modules/getaddrinfo-tests: Likewise.
39298         * modules/inttypes-tests: Likewise.
39299         * modules/isfinite-tests: Likewise.
39300         * modules/isinf-tests: Likewise.
39301         * modules/ldexpl-tests: Likewise.
39302         * modules/locale-tests: Likewise.
39303         * modules/math-tests: Likewise.
39304         * modules/netdb-tests: Likewise.
39305         * modules/netinet_in-tests: Likewise.
39306         * modules/printf-frexp-tests: Likewise.
39307         * modules/printf-frexpl-tests: Likewise.
39308         * modules/priv-set-tests: Likewise.
39309         * modules/random_r-tests: Likewise.
39310         * modules/round-tests: Likewise.
39311         * modules/roundf-tests: Likewise.
39312         * modules/roundl-tests: Likewise.
39313         * modules/search-tests: Likewise.
39314         * modules/select-tests: Likewise.
39315         * modules/signal-tests: Likewise.
39316         * modules/stdbool-tests: Likewise.
39317         * modules/stddef-tests: Likewise.
39318         * modules/stdint-tests: Likewise.
39319         * modules/stdio-tests: Likewise.
39320         * modules/stdlib-tests: Likewise.
39321         * modules/string-tests: Likewise.
39322         * modules/strings-tests: Likewise.
39323         * modules/sys_select-tests: Likewise.
39324         * modules/sys_socket-tests: Likewise.
39325         * modules/sys_stat-tests: Likewise.
39326         * modules/sys_time-tests: Likewise.
39327         * modules/sys_utsname-tests: Likewise.
39328         * modules/sysexits-tests: Likewise.
39329         * modules/time-tests: Likewise.
39330         * modules/trunc-tests: Likewise.
39331         * modules/truncf-tests: Likewise.
39332         * modules/truncl-tests: Likewise.
39333         * modules/tsearch-tests: Likewise.
39334         * modules/unistd-tests: Likewise.
39335         * modules/wchar-tests: Likewise.
39336         * modules/wctype-tests: Likewise.
39337
39338         tests: fix license on several tests
39339         * tests/test-des.c: Update to GPLv3+.
39340         * tests/test-flock.c: Likewise.
39341         * tests/test-fsync.c: Likewise.
39342         * tests/test-futimens.h: Likewise.
39343         * tests/test-gc-arcfour.c: Likewise.
39344         * tests/test-gc-arctwo.c: Likewise.
39345         * tests/test-gc-des.c: Likewise.
39346         * tests/test-gc-hmac-md5.c: Likewise.
39347         * tests/test-gc-hmac-sha1.c: Likewise.
39348         * tests/test-gc-md2.c: Likewise.
39349         * tests/test-gc-md4.c: Likewise.
39350         * tests/test-gc-md5.c: Likewise.
39351         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39352         * tests/test-gc-rijndael.c: Likewise.
39353         * tests/test-gc-sha1.c: Likewise.
39354         * tests/test-gc.c: Likewise.
39355         * tests/test-getcwd.c: Likewise.
39356         * tests/test-link.c: Likewise.
39357         * tests/test-link.h: Likewise.
39358         * tests/test-lutimens.h: Likewise.
39359         * tests/test-md2.c: Likewise.
39360         * tests/test-md4.c: Likewise.
39361         * tests/test-mkdir.h: Likewise.
39362         * tests/test-rename.c: Likewise.
39363         * tests/test-rename.h: Likewise.
39364         * tests/test-safe-alloc.c: Likewise.
39365         * tests/test-utimens-common.h: Likewise.
39366         * tests/test-utimens.h: Likewise.
39367
39368         maint: sync license texts
39369         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39370         * doc/gpl-3.0.texi: Revert copyright year update.
39371         * doc/lgpl-3.0.texi: Likewise.
39372
39373 2009-12-29  Jim Meyering  <meyering@redhat.com>
39374
39375         update nearly all FSF copyright year lists to include 2009
39376         The files named by the following are exempted:
39377             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39378               test -f "$dst" && { echo "$dst"; continue; }
39379               test -d "$dst" || continue
39380               echo "$dst"/$(basename "$src")
39381             done > exempt
39382             git ls-files tests/unictype >> exempt
39383         In the remaining files, convert to all-interval notation if
39384         - there is already at least one year interval like 2000-2003
39385         - the file is maintained by me
39386         - the file is in lib/uni*/, where that style already prevails
39387         Otherwise, use update-copyright's default.
39388
39389 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39390         and Eric Blake  <ebb9@byu.net>
39391
39392         tests: don't require debug system() to pass
39393         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39394         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39395         * tests/test-unlink.h (test_unlink_func): Likewise.
39396         * tests/test-fstatat.c (main): ...into callers.
39397         * tests/test-lstat.c (main): Likewise.
39398         * tests/test-rmdir.c (main): Likewise.
39399         * tests/test-unlink.c (main): Likewise.
39400         * tests/test-unlinkat.c (main): Likewise.
39401         * tests/test-areadlink-with-size.c (main): Don't require a
39402         debug-only system call to pass, aiding cross-testing to mingw.
39403         * tests/test-areadlink.c (main): Likewise.
39404         * tests/test-areadlinkat-with-size.c (main): Likewise.
39405         * tests/test-areadlinkat.c (main): Likewise.
39406         * tests/test-canonicalize-lgpl.c (main): Likewise.
39407         * tests/test-canonicalize.c (main): Likewise.
39408         * tests/test-chown.c (main): Likewise.
39409         * tests/test-fchownat.c (main): Likewise.
39410         * tests/test-lchown.c (main): Likewise.
39411         * tests/test-fdutimensat.c (main): Likewise.
39412         * tests/test-futimens.c (main): Likewise.
39413         * tests/test-link.c (main): Likewise.
39414         * tests/test-linkat.c (main): Likewise.
39415         * tests/test-mkdir.c (main): Likewise.
39416         * tests/test-mkdirat.c (main): Likewise.
39417         * tests/test-mkfifo.c (main): Likewise.
39418         * tests/test-mkfifoat.c (main): Likewise.
39419         * tests/test-mknod.c (main): Likewise.
39420         * tests/test-readlink.c (main): Likewise.
39421         * tests/test-remove.c (main): Likewise.
39422         * tests/test-rename.c (main): Likewise.
39423         * tests/test-renameat.c (main): Likewise.
39424         * tests/test-symlink.c (main): Likewise.
39425         * tests/test-symlinkat.c (main): Likewise.
39426         * tests/test-utimens.c (main): Likewise.
39427         * tests/test-utimensat.c (main): Likewise.
39428
39429 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39430
39431         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39432         on $(UNUSED_PARAMETER_H) to avoid build failure.
39433
39434 2009-12-28  Jim Meyering  <meyering@redhat.com>
39435
39436         update-copyright: you may specify a max. line length other than 72
39437         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39438
39439         maint: use consistent FSF copyright line syntax
39440         * lib/posixtm.c: Add missing comma in FSF copyright line.
39441         * lib/posixtm.h: Likewise.
39442         * lib/getugroups.c: Add missing ", Inc.".
39443
39444         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39445         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39446         FSF copyright line.  Remove trailing blanks.
39447
39448 2009-12-28  Eric Blake  <ebb9@byu.net>
39449
39450         test-dup2: reduce dependencies
39451         * modules/cloexec (Configure.ac): Set witness.
39452         * modules/dup2-tests (Depends-on): Drop cloexec.
39453         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39454         not present.
39455         Suggested by Bruno Haible.
39456
39457 2009-12-26  Bruno Haible  <bruno@clisp.org>
39458
39459         Remove an unneeded dependency.
39460         * modules/fseterr (Depends-on): Remove dup2.
39461
39462 2009-12-26  Eric Blake  <ebb9@byu.net>
39463
39464         tests: use macros.h in more places
39465         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39466         (ASSERT_STREAM): Provide default of stderr.
39467         * tests/test-dirent-safer.c: Include macros.h, using alternate
39468         stream for assertions.
39469         * tests/test-dup-safer.c: Likewise.
39470         * tests/test-freopen-safer.c: Likewise.
39471         * tests/test-getopt.c: Likewise.
39472         * tests/test-openat-safer.c: Likewise.
39473         * tests/test-pipe.c: Likewise.
39474         * tests/test-popen-safer.c: Likewise.
39475         * modules/dirent-safer-tests (Files): Include macros.h.
39476         * modules/unistd-safer-tests (Files): Likewise.
39477         * modules/freopen-safer-tests (Files): Likewise.
39478         * modules/getopt-posix-tests (Files): Likewise.
39479         * modules/openat-safer-tests (Files): Likewise.
39480         * modules/pipe-tests (Files): Likewise.
39481
39482 2009-12-26  Bruno Haible  <bruno@clisp.org>
39483
39484         javacomp: Portability fix.
39485         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39486         that it also works on Solaris.
39487
39488 2009-12-26  Bruno Haible  <bruno@clisp.org>
39489
39490         localename: Fix storage allocation of gl_locale_name_thread's result.
39491         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39492         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39493         all platforms that have 'uselocale'.
39494         (gl_locale_name_thread_unsafe): New function, extracted from
39495         gl_locale_name_thread.
39496         (gl_locale_name_thread): Call struniq on all platforms that have
39497         'uselocale'.
39498         * tests/test-localename.c (test_locale_name_thread): Check that the
39499         resulting strings are permanently allocated.
39500         * modules/localename-tests (Depends-on): Add strdup.
39501
39502 2009-12-26  Bruno Haible  <bruno@clisp.org>
39503
39504         * tests/test-localename.c (categories): Fill in the strings.
39505
39506 2009-12-26  Jim Meyering  <meyering@redhat.com>
39507
39508         isdir: complete the removal of m4/isdir.m4
39509         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39510
39511         isdir: clean up, since at least grep still uses it
39512         * lib/isdir.c: Include "isdir.h".
39513         (S_ISDIR): Remove now-unneeded definition.
39514         * modules/isdir (Files): Add lib/isdir.h.
39515         * lib/isdir.h: New file, with declaration.
39516         * m4/isdir.m4: Remove file -- unneeded.
39517
39518 2009-12-25  Bruno Haible  <bruno@clisp.org>
39519
39520         selinux-h: Make generated .h files standalone.
39521         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39522         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39523         * lib/se-selinux.in.h: Likewise.
39524         * modules/selinux-h (Depends-on): Add unused-parameter.
39525         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39526         selinux/selinux.h and selinux/context.h.
39527         Suggested by Eric Blake.
39528
39529 2009-12-25  Bruno Haible  <bruno@clisp.org>
39530
39531         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39532         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39533         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39534         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39535         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39536
39537 2009-12-24  Bruno Haible  <bruno@clisp.org>
39538
39539         openat: Fix warning.
39540         * lib/openat-proc.c: Include <unistd.h>.
39541
39542 2009-12-24  Bruno Haible  <bruno@clisp.org>
39543
39544         New module 'unused-parameter'.
39545         * build-aux/unused-parameter.h: New file, extracted from earlier
39546         gnulib-common.m4.
39547         * modules/unused-parameter: New file.
39548         * lib/unistr.h: Include unused-parameter.h.
39549         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39550         _GL_UNUSED.
39551         * modules/unistr/base (Depends-on): Add unused-parameter.
39552
39553 2009-12-24  Bruno Haible  <bruno@clisp.org>
39554
39555         Add missing dependencies to 'extensions' module.
39556         * m4/extensions.m4: Add comment.
39557         * modules/accept4 (Depends-on): Add extensions.
39558         * modules/dup3 (Depends-on): Likewise.
39559         * modules/fcntl (Depends-on): Likewise.
39560         * modules/futimens (Depends-on): Likewise.
39561         * modules/mknod (Depends-on): Likewise.
39562         * modules/pipe2 (Depends-on): Likewise.
39563         * modules/stat-time (Depends-on): Likewise.
39564         * modules/strcasestr-simple (Depends-on): Likewise.
39565         * modules/strsignal (Depends-on): Likewise.
39566         * modules/utimensat (Depends-on): Likewise.
39567         * modules/localcharset (Depends-on): Likewise. Needed because of
39568         gl_FCNTL_O_FLAGS.
39569         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39570         AC_TYPE_MBSTATE_T.
39571         * modules/wcsnrtombs (Depends-on): Likewise.
39572         * modules/wcsrtombs (Depends-on): Likewise.
39573
39574 2009-12-24  Bruno Haible  <bruno@clisp.org>
39575
39576         binary-io: Avoid gcc warning due to SET_BINARY.
39577         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39578         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39579
39580 2009-12-24  Bruno Haible  <bruno@clisp.org>
39581
39582         Avoid future namespace pollution on glibc systems.
39583         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39584         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39585         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39586         glibc systems.
39587
39588 2009-12-24  Bruno Haible  <bruno@clisp.org>
39589
39590         Refactor common macros used in tests.
39591         * tests/macros.h: New file.
39592         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39593         and/or <stdlib.h>, if appropriate.
39594         (ASSERT, SIZEOF): Remove macros.
39595         * tests/test-areadlink-with-size.c: Likewise.
39596         * tests/test-areadlinkat.c: Likewise.
39597         * tests/test-areadlinkat-with-size.c: Likewise.
39598         * tests/test-argmatch.c: Likewise.
39599         * tests/test-argv-iter.c: Likewise.
39600         * tests/test-array-mergesort.c: Likewise.
39601         * tests/test-array_list.c: Likewise.
39602         * tests/test-array_oset.c: Likewise.
39603         * tests/test-avltree_list.c: Likewise.
39604         * tests/test-avltree_oset.c: Likewise.
39605         * tests/test-avltreehash_list.c: Likewise.
39606         * tests/test-base64.c: Likewise.
39607         * tests/test-binary-io.c: Likewise.
39608         * tests/test-bitrotate.c: Likewise.
39609         * tests/test-btowc.c: Likewise.
39610         * tests/test-byteswap.c: Likewise.
39611         * tests/test-c-ctype.c: Likewise.
39612         * tests/test-c-stack.c: Likewise.
39613         * tests/test-c-strcasecmp.c: Likewise.
39614         * tests/test-c-strcasestr.c: Likewise.
39615         * tests/test-c-strncasecmp.c: Likewise.
39616         * tests/test-c-strstr.c: Likewise.
39617         * tests/test-canonicalize-lgpl.c: Likewise.
39618         * tests/test-canonicalize.c: Likewise.
39619         * tests/test-carray_list.c: Likewise.
39620         * tests/test-ceilf1.c: Likewise.
39621         * tests/test-ceilf2.c: Likewise.
39622         * tests/test-ceill.c: Likewise.
39623         * tests/test-chown.c: Likewise.
39624         * tests/test-cloexec.c: Likewise.
39625         * tests/test-copy-acl.c: Likewise.
39626         * tests/test-copy-file.c: Likewise.
39627         * tests/test-count-one-bits.c: Likewise.
39628         * tests/test-dprintf-posix.c: Likewise.
39629         * tests/test-dup2.c: Likewise.
39630         * tests/test-dup3.c: Likewise.
39631         * tests/test-duplocale.c: Likewise.
39632         * tests/test-fbufmode.c: Likewise.
39633         * tests/test-fchdir.c: Likewise.
39634         * tests/test-fchownat.c: Likewise.
39635         * tests/test-fcntl-safer.c: Likewise.
39636         * tests/test-fcntl.c: Likewise.
39637         * tests/test-fdopendir.c: Likewise.
39638         * tests/test-fdutimensat.c: Likewise.
39639         * tests/test-fflush2.c: Likewise.
39640         * tests/test-file-has-acl.c: Likewise.
39641         * tests/test-filevercmp.c: Likewise.
39642         * tests/test-flock.c: Likewise.
39643         * tests/test-floorf1.c: Likewise.
39644         * tests/test-floorf2.c: Likewise.
39645         * tests/test-floorl.c: Likewise.
39646         * tests/test-fnmatch.c: Likewise.
39647         * tests/test-fopen.h: Likewise.
39648         * tests/test-fpending.c: Likewise.
39649         * tests/test-fprintf-posix.c: Likewise.
39650         * tests/test-fpurge.c: Likewise.
39651         * tests/test-freadable.c: Likewise.
39652         * tests/test-freadahead.c: Likewise.
39653         * tests/test-freading.c: Likewise.
39654         * tests/test-freadptr.c: Likewise.
39655         * tests/test-freadptr2.c: Likewise.
39656         * tests/test-freadseek.c: Likewise.
39657         * tests/test-freopen.c: Likewise.
39658         * tests/test-frexp.c: Likewise.
39659         * tests/test-frexpl.c: Likewise.
39660         * tests/test-fseek.c: Likewise.
39661         * tests/test-fseeko.c: Likewise.
39662         * tests/test-fstatat.c: Likewise.
39663         * tests/test-fstrcmp.c: Likewise.
39664         * tests/test-fsync.c: Likewise.
39665         * tests/test-ftell.c: Likewise.
39666         * tests/test-ftello.c: Likewise.
39667         * tests/test-func.c: Likewise.
39668         * tests/test-futimens.c: Likewise.
39669         * tests/test-fwritable.c: Likewise.
39670         * tests/test-fwriting.c: Likewise.
39671         * tests/test-getcwd.c: Likewise.
39672         * tests/test-getdate.c: Likewise.
39673         * tests/test-getdelim.c: Likewise.
39674         * tests/test-getdtablesize.c: Likewise.
39675         * tests/test-getgroups.c: Likewise.
39676         * tests/test-getline.c: Likewise.
39677         * tests/test-getndelim2.c: Likewise.
39678         * tests/test-glob.c: Likewise.
39679         * tests/test-hash.c: Likewise.
39680         * tests/test-i-ring.c: Likewise.
39681         * tests/test-iconv-utf.c: Likewise.
39682         * tests/test-iconv.c: Likewise.
39683         * tests/test-idpriv-drop.c: Likewise.
39684         * tests/test-idpriv-droptemp.c: Likewise.
39685         * tests/test-inet_ntop.c: Likewise.
39686         * tests/test-inet_pton.c: Likewise.
39687         * tests/test-isblank.c: Likewise.
39688         * tests/test-isfinite.c: Likewise.
39689         * tests/test-isinf.c: Likewise.
39690         * tests/test-isnan.c: Likewise.
39691         * tests/test-isnand.h: Likewise.
39692         * tests/test-isnanf.h: Likewise.
39693         * tests/test-isnanl.h: Likewise.
39694         * tests/test-lchown.c: Likewise.
39695         * tests/test-ldexpl.c: Likewise.
39696         * tests/test-link.c: Likewise.
39697         * tests/test-linkat.c: Likewise.
39698         * tests/test-linked_list.c: Likewise.
39699         * tests/test-linkedhash_list.c: Likewise.
39700         * tests/test-localename.c: Likewise.
39701         * tests/test-lseek.c: Likewise.
39702         * tests/test-lstat.c: Likewise.
39703         * tests/test-mbmemcasecmp.c: Likewise.
39704         * tests/test-mbmemcasecoll.c: Likewise.
39705         * tests/test-mbrtowc.c: Likewise.
39706         * tests/test-mbscasecmp.c: Likewise.
39707         * tests/test-mbscasestr1.c: Likewise.
39708         * tests/test-mbscasestr2.c: Likewise.
39709         * tests/test-mbscasestr3.c: Likewise.
39710         * tests/test-mbscasestr4.c: Likewise.
39711         * tests/test-mbschr.c: Likewise.
39712         * tests/test-mbscspn.c: Likewise.
39713         * tests/test-mbsinit.c: Likewise.
39714         * tests/test-mbsncasecmp.c: Likewise.
39715         * tests/test-mbsnrtowcs.c: Likewise.
39716         * tests/test-mbspbrk.c: Likewise.
39717         * tests/test-mbspcasecmp.c: Likewise.
39718         * tests/test-mbsrchr.c: Likewise.
39719         * tests/test-mbsrtowcs.c: Likewise.
39720         * tests/test-mbsspn.c: Likewise.
39721         * tests/test-mbsstr1.c: Likewise.
39722         * tests/test-mbsstr2.c: Likewise.
39723         * tests/test-mbsstr3.c: Likewise.
39724         * tests/test-memchr.c: Likewise.
39725         * tests/test-memchr2.c: Likewise.
39726         * tests/test-memcmp.c: Likewise.
39727         * tests/test-memmem.c: Likewise.
39728         * tests/test-memrchr.c: Likewise.
39729         * tests/test-mkdir.c: Likewise.
39730         * tests/test-mkdirat.c: Likewise.
39731         * tests/test-mkfifo.c: Likewise.
39732         * tests/test-mkfifoat.c: Likewise.
39733         * tests/test-mknod.c: Likewise.
39734         * tests/test-nanosleep.c: Likewise.
39735         * tests/test-nl_langinfo.c: Likewise.
39736         * tests/test-obstack-printf.c: Likewise.
39737         * tests/test-open.c: Likewise.
39738         * tests/test-openat.c: Likewise.
39739         * tests/test-pipe-filter-gi1.c: Likewise.
39740         * tests/test-pipe-filter-gi2-main.c: Likewise.
39741         * tests/test-pipe-filter-ii1.c: Likewise.
39742         * tests/test-pipe-filter-ii2-main.c: Likewise.
39743         * tests/test-pipe2.c: Likewise.
39744         * tests/test-popen.h: Likewise.
39745         * tests/test-posixtm.c: Likewise.
39746         * tests/test-pread.c: Likewise.
39747         * tests/test-printf-frexp.c: Likewise.
39748         * tests/test-printf-frexpl.c: Likewise.
39749         * tests/test-printf-posix.c: Likewise.
39750         * tests/test-priv-set.c: Likewise.
39751         * tests/test-quotearg.c: Likewise.
39752         * tests/test-random_r.c: Likewise.
39753         * tests/test-rawmemchr.c: Likewise.
39754         * tests/test-rbtree_list.c: Likewise.
39755         * tests/test-rbtree_oset.c: Likewise.
39756         * tests/test-rbtreehash_list.c: Likewise.
39757         * tests/test-readlink.c: Likewise.
39758         * tests/test-remove.c: Likewise.
39759         * tests/test-rename.c: Likewise.
39760         * tests/test-renameat.c: Likewise.
39761         * tests/test-rmdir.c: Likewise.
39762         * tests/test-round1.c: Likewise.
39763         * tests/test-roundf1.c: Likewise.
39764         * tests/test-roundl.c: Likewise.
39765         * tests/test-safe-alloc.c: Likewise.
39766         * tests/test-sameacls.c: Likewise.
39767         * tests/test-set-mode-acl.c: Likewise.
39768         * tests/test-setenv.c: Likewise.
39769         * tests/test-sigaction.c: Likewise.
39770         * tests/test-signbit.c: Likewise.
39771         * tests/test-sleep.c: Likewise.
39772         * tests/test-snprintf-posix.c: Likewise.
39773         * tests/test-snprintf.c: Likewise.
39774         * tests/test-sprintf-posix.c: Likewise.
39775         * tests/test-stat-time.c: Likewise.
39776         * tests/test-stat.c: Likewise.
39777         * tests/test-strcasestr.c: Likewise.
39778         * tests/test-strchrnul.c: Likewise.
39779         * tests/test-strerror.c: Likewise.
39780         * tests/test-striconv.c: Likewise.
39781         * tests/test-striconveh.c: Likewise.
39782         * tests/test-striconveha.c: Likewise.
39783         * tests/test-strsignal.c: Likewise.
39784         * tests/test-strstr.c: Likewise.
39785         * tests/test-strtod.c: Likewise.
39786         * tests/test-strverscmp.c: Likewise.
39787         * tests/test-symlink.c: Likewise.
39788         * tests/test-symlinkat.c: Likewise.
39789         * tests/test-trunc1.c: Likewise.
39790         * tests/test-trunc2.c: Likewise.
39791         * tests/test-truncf1.c: Likewise.
39792         * tests/test-truncf2.c: Likewise.
39793         * tests/test-truncl.c: Likewise.
39794         * tests/test-uname.c: Likewise.
39795         * tests/test-unlink.c: Likewise.
39796         * tests/test-unlinkat.c: Likewise.
39797         * tests/test-unsetenv.c: Likewise.
39798         * tests/test-usleep.c: Likewise.
39799         * tests/test-utimens.c: Likewise.
39800         * tests/test-utimensat.c: Likewise.
39801         * tests/test-vasnprintf-posix.c: Likewise.
39802         * tests/test-vasnprintf-posix2.c: Likewise.
39803         * tests/test-vasnprintf.c: Likewise.
39804         * tests/test-vasprintf-posix.c: Likewise.
39805         * tests/test-vasprintf.c: Likewise.
39806         * tests/test-vdprintf-posix.c: Likewise.
39807         * tests/test-vfprintf-posix.c: Likewise.
39808         * tests/test-vprintf-posix.c: Likewise.
39809         * tests/test-vsnprintf-posix.c: Likewise.
39810         * tests/test-vsnprintf.c: Likewise.
39811         * tests/test-vsprintf-posix.c: Likewise.
39812         * tests/test-wcrtomb.c: Likewise.
39813         * tests/test-wcsnrtombs.c: Likewise.
39814         * tests/test-wcsrtombs.c: Likewise.
39815         * tests/test-wctype.c: Likewise.
39816         * tests/test-wcwidth.c: Likewise.
39817         * tests/test-xfprintf-posix.c: Likewise.
39818         * tests/test-xmemdup0.c: Likewise.
39819         * tests/test-xprintf-posix.c: Likewise.
39820         * tests/test-xvasprintf.c: Likewise.
39821         * tests/unicase/test-locale-language.c: Likewise.
39822         * tests/unicase/test-mapping-part1.h: Likewise.
39823         * tests/unicase/test-predicate-part1.h: Likewise.
39824         * tests/unicase/test-u8-casecmp.c: Likewise.
39825         * tests/unicase/test-u8-casecoll.c: Likewise.
39826         * tests/unicase/test-u8-casefold.c: Likewise.
39827         * tests/unicase/test-u8-is-cased.c: Likewise.
39828         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39829         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39830         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39831         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39832         * tests/unicase/test-u8-tolower.c: Likewise.
39833         * tests/unicase/test-u8-totitle.c: Likewise.
39834         * tests/unicase/test-u8-toupper.c: Likewise.
39835         * tests/unicase/test-u16-casecmp.c: Likewise.
39836         * tests/unicase/test-u16-casecoll.c: Likewise.
39837         * tests/unicase/test-u16-casefold.c: Likewise.
39838         * tests/unicase/test-u16-is-cased.c: Likewise.
39839         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39840         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39841         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39842         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39843         * tests/unicase/test-u16-tolower.c: Likewise.
39844         * tests/unicase/test-u16-totitle.c: Likewise.
39845         * tests/unicase/test-u16-toupper.c: Likewise.
39846         * tests/unicase/test-u32-casecmp.c: Likewise.
39847         * tests/unicase/test-u32-casecoll.c: Likewise.
39848         * tests/unicase/test-u32-casefold.c: Likewise.
39849         * tests/unicase/test-u32-is-cased.c: Likewise.
39850         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39851         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39852         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39853         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39854         * tests/unicase/test-u32-tolower.c: Likewise.
39855         * tests/unicase/test-u32-totitle.c: Likewise.
39856         * tests/unicase/test-u32-toupper.c: Likewise.
39857         * tests/unicase/test-ulc-casecmp.c: Likewise.
39858         * tests/unicase/test-ulc-casecoll.c: Likewise.
39859         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39860         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39861         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39862         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39863         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39864         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39865         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39866         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39867         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39868         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39869         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39870         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39871         * tests/unictype/test-bidi_byname.c: Likewise.
39872         * tests/unictype/test-bidi_name.c: Likewise.
39873         * tests/unictype/test-bidi_of.c: Likewise.
39874         * tests/unictype/test-bidi_test.c: Likewise.
39875         * tests/unictype/test-block_list.c: Likewise.
39876         * tests/unictype/test-block_of.c: Likewise.
39877         * tests/unictype/test-block_test.c: Likewise.
39878         * tests/unictype/test-categ_and.c: Likewise.
39879         * tests/unictype/test-categ_and_not.c: Likewise.
39880         * tests/unictype/test-categ_byname.c: Likewise.
39881         * tests/unictype/test-categ_name.c: Likewise.
39882         * tests/unictype/test-categ_none.c: Likewise.
39883         * tests/unictype/test-categ_of.c: Likewise.
39884         * tests/unictype/test-categ_or.c: Likewise.
39885         * tests/unictype/test-categ_test_withtable.c: Likewise.
39886         * tests/unictype/test-combining.c: Likewise.
39887         * tests/unictype/test-decdigit.c: Likewise.
39888         * tests/unictype/test-digit.c: Likewise.
39889         * tests/unictype/test-mirror.c: Likewise.
39890         * tests/unictype/test-numeric.c: Likewise.
39891         * tests/unictype/test-pr_byname.c: Likewise.
39892         * tests/unictype/test-pr_test.c: Likewise.
39893         * tests/unictype/test-predicate-part1.h: Likewise.
39894         * tests/unictype/test-scripts.c: Likewise.
39895         * tests/unictype/test-sy_c_ident.c: Likewise.
39896         * tests/unictype/test-sy_java_ident.c: Likewise.
39897         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39898         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39899         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39900         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39901         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39902         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39903         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39904         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39905         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39906         * tests/uninorm/test-compat-decomposition.c: Likewise.
39907         * tests/uninorm/test-composition.c: Likewise.
39908         * tests/uninorm/test-decomposing-form.c: Likewise.
39909         * tests/uninorm/test-decomposition.c: Likewise.
39910         * tests/uninorm/test-u8-nfc.c: Likewise.
39911         * tests/uninorm/test-u8-nfd.c: Likewise.
39912         * tests/uninorm/test-u8-nfkc.c: Likewise.
39913         * tests/uninorm/test-u8-nfkd.c: Likewise.
39914         * tests/uninorm/test-u8-normcmp.c: Likewise.
39915         * tests/uninorm/test-u8-normcoll.c: Likewise.
39916         * tests/uninorm/test-u16-nfc.c: Likewise.
39917         * tests/uninorm/test-u16-nfd.c: Likewise.
39918         * tests/uninorm/test-u16-nfkc.c: Likewise.
39919         * tests/uninorm/test-u16-nfkd.c: Likewise.
39920         * tests/uninorm/test-u16-normcmp.c: Likewise.
39921         * tests/uninorm/test-u16-normcoll.c: Likewise.
39922         * tests/uninorm/test-u32-nfc.c: Likewise.
39923         * tests/uninorm/test-u32-nfd.c: Likewise.
39924         * tests/uninorm/test-u32-nfkc.c: Likewise.
39925         * tests/uninorm/test-u32-nfkd.c: Likewise.
39926         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39927         * tests/uninorm/test-u32-normcmp.c: Likewise.
39928         * tests/uninorm/test-u32-normcoll.c: Likewise.
39929         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39930         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39931         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39932         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39933         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39934         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39935         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39936         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39937         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39938         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39939         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39940         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39941         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39942         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39943         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39944         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39945         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39946         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39947         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39948         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39949         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39950         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39951         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39952         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39953         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39954         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39955         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39956         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39957         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39958         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39959         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39960         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39961         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39962         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39963         * tests/uniwidth/test-u8-width.c: Likewise.
39964         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39965         * tests/uniwidth/test-u16-width.c: Likewise.
39966         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39967         * tests/uniwidth/test-u32-width.c: Likewise.
39968         * tests/uniwidth/test-uc_width.c: Likewise.
39969         * tests/uniwidth/test-uc_width2.c: Likewise.
39970         * modules/acl-tests (Files): Add tests/macros.h.
39971         * modules/areadlink-tests (Files): Likewise.
39972         * modules/areadlink-with-size-tests (Files): Likewise.
39973         * modules/areadlinkat-tests (Files): Likewise.
39974         * modules/areadlinkat-with-size-tests (Files): Likewise.
39975         * modules/argmatch-tests (Files): Likewise.
39976         * modules/argv-iter-tests (Files): Likewise.
39977         * modules/array-list-tests (Files): Likewise.
39978         * modules/array-mergesort-tests (Files): Likewise.
39979         * modules/array-oset-tests (Files): Likewise.
39980         * modules/avltree-list-tests (Files): Likewise.
39981         * modules/avltree-oset-tests (Files): Likewise.
39982         * modules/avltreehash-list-tests (Files): Likewise.
39983         * modules/base64-tests (Files): Likewise.
39984         * modules/binary-io-tests (Files): Likewise.
39985         * modules/bitrotate-tests (Files): Likewise.
39986         * modules/btowc-tests (Files): Likewise.
39987         * modules/byteswap-tests (Files): Likewise.
39988         * modules/c-ctype-tests (Files): Likewise.
39989         * modules/c-stack-tests (Files): Likewise.
39990         * modules/c-strcase-tests (Files): Likewise.
39991         * modules/c-strcasestr-tests (Files): Likewise.
39992         * modules/c-strstr-tests (Files): Likewise.
39993         * modules/canonicalize-lgpl-tests (Files): Likewise.
39994         * modules/canonicalize-tests (Files): Likewise.
39995         * modules/carray-list-tests (Files): Likewise.
39996         * modules/ceilf-tests (Files): Likewise.
39997         * modules/ceill-tests (Files): Likewise.
39998         * modules/chown-tests (Files): Likewise.
39999         * modules/cloexec-tests (Files): Likewise.
40000         * modules/copy-file-tests (Files): Likewise.
40001         * modules/count-one-bits-tests (Files): Likewise.
40002         * modules/dprintf-posix-tests (Files): Likewise.
40003         * modules/dup2-tests (Files): Likewise.
40004         * modules/dup3-tests (Files): Likewise.
40005         * modules/duplocale-tests (Files): Likewise.
40006         * modules/fbufmode-tests (Files): Likewise.
40007         * modules/fchdir-tests (Files): Likewise.
40008         * modules/fcntl-safer-tests (Files): Likewise.
40009         * modules/fcntl-tests (Files): Likewise.
40010         * modules/fdopendir-tests (Files): Likewise.
40011         * modules/fdutimensat-tests (Files): Likewise.
40012         * modules/fflush-tests (Files): Likewise.
40013         * modules/filevercmp-tests (Files): Likewise.
40014         * modules/flock-tests (Files): Likewise.
40015         * modules/floorf-tests (Files): Likewise.
40016         * modules/floorl-tests (Files): Likewise.
40017         * modules/fnmatch-tests (Files): Likewise.
40018         * modules/fopen-safer-tests (Files): Likewise.
40019         * modules/fopen-tests (Files): Likewise.
40020         * modules/fpending-tests (Files): Likewise.
40021         * modules/fprintf-posix-tests (Files): Likewise.
40022         * modules/fpurge-tests (Files): Likewise.
40023         * modules/freadable-tests (Files): Likewise.
40024         * modules/freadahead-tests (Files): Likewise.
40025         * modules/freading-tests (Files): Likewise.
40026         * modules/freadptr-tests (Files): Likewise.
40027         * modules/freadseek-tests (Files): Likewise.
40028         * modules/freopen-tests (Files): Likewise.
40029         * modules/frexp-nolibm-tests (Files): Likewise.
40030         * modules/frexp-tests (Files): Likewise.
40031         * modules/frexpl-nolibm-tests (Files): Likewise.
40032         * modules/frexpl-tests (Files): Likewise.
40033         * modules/fseek-tests (Files): Likewise.
40034         * modules/fseeko-tests (Files): Likewise.
40035         * modules/fstrcmp-tests (Files): Likewise.
40036         * modules/fsync-tests (Files): Likewise.
40037         * modules/ftell-tests (Files): Likewise.
40038         * modules/ftello-tests (Files): Likewise.
40039         * modules/func-tests (Files): Likewise.
40040         * modules/futimens-tests (Files): Likewise.
40041         * modules/fwritable-tests (Files): Likewise.
40042         * modules/fwriting-tests (Files): Likewise.
40043         * modules/getcwd-tests (Files): Likewise.
40044         * modules/getdate-tests (Files): Likewise.
40045         * modules/getdelim-tests (Files): Likewise.
40046         * modules/getdtablesize-tests (Files): Likewise.
40047         * modules/getgroups-tests (Files): Likewise.
40048         * modules/getline-tests (Files): Likewise.
40049         * modules/getndelim2-tests (Files): Likewise.
40050         * modules/glob-tests (Files): Likewise.
40051         * modules/hash-tests (Files): Likewise.
40052         * modules/i-ring-tests (Files): Likewise.
40053         * modules/iconv-tests (Files): Likewise.
40054         * modules/iconv_open-utf-tests (Files): Likewise.
40055         * modules/idpriv-drop-tests (Files): Likewise.
40056         * modules/idpriv-droptemp-tests (Files): Likewise.
40057         * modules/inet_ntop-tests (Files): Likewise.
40058         * modules/inet_pton-tests (Files): Likewise.
40059         * modules/isblank-tests (Files): Likewise.
40060         * modules/isfinite-tests (Files): Likewise.
40061         * modules/isinf-tests (Files): Likewise.
40062         * modules/isnan-tests (Files): Likewise.
40063         * modules/isnand-nolibm-tests (Files): Likewise.
40064         * modules/isnand-tests (Files): Likewise.
40065         * modules/isnanf-nolibm-tests (Files): Likewise.
40066         * modules/isnanf-tests (Files): Likewise.
40067         * modules/isnanl-nolibm-tests (Files): Likewise.
40068         * modules/isnanl-tests (Files): Likewise.
40069         * modules/lchown-tests (Files): Likewise.
40070         * modules/ldexpl-tests (Files): Likewise.
40071         * modules/link-tests (Files): Likewise.
40072         * modules/linkat-tests (Files): Likewise.
40073         * modules/linked-list-tests (Files): Likewise.
40074         * modules/linkedhash-list-tests (Files): Likewise.
40075         * modules/localename-tests (Files): Likewise.
40076         * modules/lseek-tests (Files): Likewise.
40077         * modules/lstat-tests (Files): Likewise.
40078         * modules/mbmemcasecmp-tests (Files): Likewise.
40079         * modules/mbmemcasecoll-tests (Files): Likewise.
40080         * modules/mbrtowc-tests (Files): Likewise.
40081         * modules/mbscasecmp-tests (Files): Likewise.
40082         * modules/mbscasestr-tests (Files): Likewise.
40083         * modules/mbschr-tests (Files): Likewise.
40084         * modules/mbscspn-tests (Files): Likewise.
40085         * modules/mbsinit-tests (Files): Likewise.
40086         * modules/mbsncasecmp-tests (Files): Likewise.
40087         * modules/mbsnrtowcs-tests (Files): Likewise.
40088         * modules/mbspbrk-tests (Files): Likewise.
40089         * modules/mbspcasecmp-tests (Files): Likewise.
40090         * modules/mbsrchr-tests (Files): Likewise.
40091         * modules/mbsrtowcs-tests (Files): Likewise.
40092         * modules/mbsspn-tests (Files): Likewise.
40093         * modules/mbsstr-tests (Files): Likewise.
40094         * modules/memchr-tests (Files): Likewise.
40095         * modules/memchr2-tests (Files): Likewise.
40096         * modules/memcmp-tests (Files): Likewise.
40097         * modules/memmem-tests (Files): Likewise.
40098         * modules/memrchr-tests (Files): Likewise.
40099         * modules/mkdir-tests (Files): Likewise.
40100         * modules/mkfifo-tests (Files): Likewise.
40101         * modules/mkfifoat-tests (Files): Likewise.
40102         * modules/mknod-tests (Files): Likewise.
40103         * modules/nanosleep-tests (Files): Likewise.
40104         * modules/nl_langinfo-tests (Files): Likewise.
40105         * modules/obstack-printf-tests (Files): Likewise.
40106         * modules/open-tests (Files): Likewise.
40107         * modules/openat-tests (Files): Likewise.
40108         * modules/pipe-filter-gi-tests (Files): Likewise.
40109         * modules/pipe-filter-ii-tests (Files): Likewise.
40110         * modules/pipe2-tests (Files): Likewise.
40111         * modules/popen-safer-tests (Files): Likewise.
40112         * modules/popen-tests (Files): Likewise.
40113         * modules/posixtm-tests (Files): Likewise.
40114         * modules/pread-tests (Files): Likewise.
40115         * modules/printf-frexp-tests (Files): Likewise.
40116         * modules/printf-frexpl-tests (Files): Likewise.
40117         * modules/printf-posix-tests (Files): Likewise.
40118         * modules/priv-set-tests (Files): Likewise.
40119         * modules/quotearg-tests (Files): Likewise.
40120         * modules/random_r-tests (Files): Likewise.
40121         * modules/rawmemchr-tests (Files): Likewise.
40122         * modules/rbtree-list-tests (Files): Likewise.
40123         * modules/rbtree-oset-tests (Files): Likewise.
40124         * modules/rbtreehash-list-tests (Files): Likewise.
40125         * modules/readlink-tests (Files): Likewise.
40126         * modules/remove-tests (Files): Likewise.
40127         * modules/rename-tests (Files): Likewise.
40128         * modules/renameat-tests (Files): Likewise.
40129         * modules/rmdir-tests (Files): Likewise.
40130         * modules/round-tests (Files): Likewise.
40131         * modules/roundf-tests (Files): Likewise.
40132         * modules/roundl-tests (Files): Likewise.
40133         * modules/safe-alloc-tests (Files): Likewise.
40134         * modules/setenv-tests (Files): Likewise.
40135         * modules/sigaction-tests (Files): Likewise.
40136         * modules/signbit-tests (Files): Likewise.
40137         * modules/sleep-tests (Files): Likewise.
40138         * modules/snprintf-posix-tests (Files): Likewise.
40139         * modules/snprintf-tests (Files): Likewise.
40140         * modules/sprintf-posix-tests (Files): Likewise.
40141         * modules/stat-tests (Files): Likewise.
40142         * modules/stat-time-tests (Files): Likewise.
40143         * modules/strcasestr-tests (Files): Likewise.
40144         * modules/strchrnul-tests (Files): Likewise.
40145         * modules/strerror-tests (Files): Likewise.
40146         * modules/striconv-tests (Files): Likewise.
40147         * modules/striconveh-tests (Files): Likewise.
40148         * modules/striconveha-tests (Files): Likewise.
40149         * modules/strsignal-tests (Files): Likewise.
40150         * modules/strstr-tests (Files): Likewise.
40151         * modules/strtod-tests (Files): Likewise.
40152         * modules/strverscmp-tests (Files): Likewise.
40153         * modules/symlink-tests (Files): Likewise.
40154         * modules/symlinkat-tests (Files): Likewise.
40155         * modules/trunc-tests (Files): Likewise.
40156         * modules/truncf-tests (Files): Likewise.
40157         * modules/truncl-tests (Files): Likewise.
40158         * modules/uname-tests (Files): Likewise.
40159         * modules/unicase/cased-tests (Files): Likewise.
40160         * modules/unicase/ignorable-tests (Files): Likewise.
40161         * modules/unicase/locale-language-tests (Files): Likewise.
40162         * modules/unicase/tolower-tests (Files): Likewise.
40163         * modules/unicase/totitle-tests (Files): Likewise.
40164         * modules/unicase/toupper-tests (Files): Likewise.
40165         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40166         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40167         * modules/unicase/u8-casefold-tests (Files): Likewise.
40168         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40169         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40170         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40171         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40172         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40173         * modules/unicase/u8-tolower-tests (Files): Likewise.
40174         * modules/unicase/u8-totitle-tests (Files): Likewise.
40175         * modules/unicase/u8-toupper-tests (Files): Likewise.
40176         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40177         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40178         * modules/unicase/u16-casefold-tests (Files): Likewise.
40179         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40180         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40181         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40182         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40183         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40184         * modules/unicase/u16-tolower-tests (Files): Likewise.
40185         * modules/unicase/u16-totitle-tests (Files): Likewise.
40186         * modules/unicase/u16-toupper-tests (Files): Likewise.
40187         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40188         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40189         * modules/unicase/u32-casefold-tests (Files): Likewise.
40190         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40191         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40192         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40193         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40194         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40195         * modules/unicase/u32-tolower-tests (Files): Likewise.
40196         * modules/unicase/u32-totitle-tests (Files): Likewise.
40197         * modules/unicase/u32-toupper-tests (Files): Likewise.
40198         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40199         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40200         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40201         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40202         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40203         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40204         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40205         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40206         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40207         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40208         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40209         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40210         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40211         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40212         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40213         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40214         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40215         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40216         * modules/unictype/block-list-tests (Files): Likewise.
40217         * modules/unictype/block-of-tests (Files): Likewise.
40218         * modules/unictype/block-test-tests (Files): Likewise.
40219         * modules/unictype/category-C-tests (Files): Likewise.
40220         * modules/unictype/category-Cc-tests (Files): Likewise.
40221         * modules/unictype/category-Cf-tests (Files): Likewise.
40222         * modules/unictype/category-Cn-tests (Files): Likewise.
40223         * modules/unictype/category-Co-tests (Files): Likewise.
40224         * modules/unictype/category-Cs-tests (Files): Likewise.
40225         * modules/unictype/category-L-tests (Files): Likewise.
40226         * modules/unictype/category-Ll-tests (Files): Likewise.
40227         * modules/unictype/category-Lm-tests (Files): Likewise.
40228         * modules/unictype/category-Lo-tests (Files): Likewise.
40229         * modules/unictype/category-Lt-tests (Files): Likewise.
40230         * modules/unictype/category-Lu-tests (Files): Likewise.
40231         * modules/unictype/category-M-tests (Files): Likewise.
40232         * modules/unictype/category-Mc-tests (Files): Likewise.
40233         * modules/unictype/category-Me-tests (Files): Likewise.
40234         * modules/unictype/category-Mn-tests (Files): Likewise.
40235         * modules/unictype/category-N-tests (Files): Likewise.
40236         * modules/unictype/category-Nd-tests (Files): Likewise.
40237         * modules/unictype/category-Nl-tests (Files): Likewise.
40238         * modules/unictype/category-No-tests (Files): Likewise.
40239         * modules/unictype/category-P-tests (Files): Likewise.
40240         * modules/unictype/category-Pc-tests (Files): Likewise.
40241         * modules/unictype/category-Pd-tests (Files): Likewise.
40242         * modules/unictype/category-Pe-tests (Files): Likewise.
40243         * modules/unictype/category-Pf-tests (Files): Likewise.
40244         * modules/unictype/category-Pi-tests (Files): Likewise.
40245         * modules/unictype/category-Po-tests (Files): Likewise.
40246         * modules/unictype/category-Ps-tests (Files): Likewise.
40247         * modules/unictype/category-S-tests (Files): Likewise.
40248         * modules/unictype/category-Sc-tests (Files): Likewise.
40249         * modules/unictype/category-Sk-tests (Files): Likewise.
40250         * modules/unictype/category-Sm-tests (Files): Likewise.
40251         * modules/unictype/category-So-tests (Files): Likewise.
40252         * modules/unictype/category-Z-tests (Files): Likewise.
40253         * modules/unictype/category-Zl-tests (Files): Likewise.
40254         * modules/unictype/category-Zp-tests (Files): Likewise.
40255         * modules/unictype/category-Zs-tests (Files): Likewise.
40256         * modules/unictype/category-and-not-tests (Files): Likewise.
40257         * modules/unictype/category-and-tests (Files): Likewise.
40258         * modules/unictype/category-byname-tests (Files): Likewise.
40259         * modules/unictype/category-name-tests (Files): Likewise.
40260         * modules/unictype/category-none-tests (Files): Likewise.
40261         * modules/unictype/category-of-tests (Files): Likewise.
40262         * modules/unictype/category-or-tests (Files): Likewise.
40263         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40264         * modules/unictype/combining-class-tests (Files): Likewise.
40265         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40266         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40267         * modules/unictype/ctype-blank-tests (Files): Likewise.
40268         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40269         * modules/unictype/ctype-digit-tests (Files): Likewise.
40270         * modules/unictype/ctype-graph-tests (Files): Likewise.
40271         * modules/unictype/ctype-lower-tests (Files): Likewise.
40272         * modules/unictype/ctype-print-tests (Files): Likewise.
40273         * modules/unictype/ctype-punct-tests (Files): Likewise.
40274         * modules/unictype/ctype-space-tests (Files): Likewise.
40275         * modules/unictype/ctype-upper-tests (Files): Likewise.
40276         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40277         * modules/unictype/decimal-digit-tests (Files): Likewise.
40278         * modules/unictype/digit-tests (Files): Likewise.
40279         * modules/unictype/mirror-tests (Files): Likewise.
40280         * modules/unictype/numeric-tests (Files): Likewise.
40281         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40282         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40283         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40284         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40285         Likewise.
40286         * modules/unictype/property-bidi-block-separator-tests (Files):
40287         Likewise.
40288         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40289         Likewise.
40290         * modules/unictype/property-bidi-common-separator-tests (Files):
40291         Likewise.
40292         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40293         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40294         Likewise.
40295         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40296         Likewise.
40297         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40298         Likewise.
40299         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40300         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40301         Likewise.
40302         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40303         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40304         Likewise.
40305         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40306         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40307         * modules/unictype/property-bidi-segment-separator-tests (Files):
40308         Likewise.
40309         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40310         * modules/unictype/property-byname-tests (Files): Likewise.
40311         * modules/unictype/property-combining-tests (Files): Likewise.
40312         * modules/unictype/property-composite-tests (Files): Likewise.
40313         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40314         * modules/unictype/property-dash-tests (Files): Likewise.
40315         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40316         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40317         Likewise.
40318         * modules/unictype/property-deprecated-tests (Files): Likewise.
40319         * modules/unictype/property-diacritic-tests (Files): Likewise.
40320         * modules/unictype/property-extender-tests (Files): Likewise.
40321         * modules/unictype/property-format-control-tests (Files): Likewise.
40322         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40323         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40324         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40325         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40326         * modules/unictype/property-hyphen-tests (Files): Likewise.
40327         * modules/unictype/property-id-continue-tests (Files): Likewise.
40328         * modules/unictype/property-id-start-tests (Files): Likewise.
40329         * modules/unictype/property-ideographic-tests (Files): Likewise.
40330         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40331         * modules/unictype/property-ids-trinary-operator-tests (Files):
40332         Likewise.
40333         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40334         * modules/unictype/property-iso-control-tests (Files): Likewise.
40335         * modules/unictype/property-join-control-tests (Files): Likewise.
40336         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40337         * modules/unictype/property-line-separator-tests (Files): Likewise.
40338         * modules/unictype/property-logical-order-exception-tests (Files):
40339         Likewise.
40340         * modules/unictype/property-lowercase-tests (Files): Likewise.
40341         * modules/unictype/property-math-tests (Files): Likewise.
40342         * modules/unictype/property-non-break-tests (Files): Likewise.
40343         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40344         * modules/unictype/property-numeric-tests (Files): Likewise.
40345         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40346         * modules/unictype/property-other-default-ignorable-code-point-tests
40347         (Files): Likewise.
40348         * modules/unictype/property-other-grapheme-extend-tests (Files):
40349         Likewise.
40350         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40351         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40352         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40353         * modules/unictype/property-other-math-tests (Files): Likewise.
40354         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40355         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40356         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40357         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40358         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40359         * modules/unictype/property-private-use-tests (Files): Likewise.
40360         * modules/unictype/property-punctuation-tests (Files): Likewise.
40361         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40362         * modules/unictype/property-radical-tests (Files): Likewise.
40363         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40364         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40365         * modules/unictype/property-space-tests (Files): Likewise.
40366         * modules/unictype/property-terminal-punctuation-tests (Files):
40367         Likewise.
40368         * modules/unictype/property-test-tests (Files): Likewise.
40369         * modules/unictype/property-titlecase-tests (Files): Likewise.
40370         * modules/unictype/property-unassigned-code-value-tests (Files):
40371         Likewise.
40372         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40373         * modules/unictype/property-uppercase-tests (Files): Likewise.
40374         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40375         * modules/unictype/property-white-space-tests (Files): Likewise.
40376         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40377         * modules/unictype/property-xid-start-tests (Files): Likewise.
40378         * modules/unictype/property-zero-width-tests (Files): Likewise.
40379         * modules/unictype/scripts-tests (Files): Likewise.
40380         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40381         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40382         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40383         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40384         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40385         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40386         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40387         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40388         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40389         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40390         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40391         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40392         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40393         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40394         * modules/uninorm/composition-tests (Files): Likewise.
40395         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40396         * modules/uninorm/decomposition-tests (Files): Likewise.
40397         * modules/uninorm/filter-tests (Files): Likewise.
40398         * modules/uninorm/nfc-tests (Files): Likewise.
40399         * modules/uninorm/nfd-tests (Files): Likewise.
40400         * modules/uninorm/nfkc-tests (Files): Likewise.
40401         * modules/uninorm/nfkd-tests (Files): Likewise.
40402         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40403         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40404         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40405         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40406         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40407         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40408         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40409         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40410         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40411         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40412         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40413         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40414         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40415         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40416         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40417         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40418         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40419         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40420         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40421         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40422         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40423         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40424         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40425         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40426         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40427         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40428         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40429         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40430         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40431         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40432         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40433         * modules/uniwidth/u8-width-tests (Files): Likewise.
40434         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40435         * modules/uniwidth/u16-width-tests (Files): Likewise.
40436         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40437         * modules/uniwidth/u32-width-tests (Files): Likewise.
40438         * modules/uniwidth/width-tests (Files): Likewise.
40439         * modules/unlink-tests (Files): Likewise.
40440         * modules/unsetenv-tests (Files): Likewise.
40441         * modules/usleep-tests (Files): Likewise.
40442         * modules/utimens-tests (Files): Likewise.
40443         * modules/utimensat-tests (Files): Likewise.
40444         * modules/vasnprintf-posix-tests (Files): Likewise.
40445         * modules/vasnprintf-tests (Files): Likewise.
40446         * modules/vasprintf-posix-tests (Files): Likewise.
40447         * modules/vasprintf-tests (Files): Likewise.
40448         * modules/vdprintf-posix-tests (Files): Likewise.
40449         * modules/vfprintf-posix-tests (Files): Likewise.
40450         * modules/vprintf-posix-tests (Files): Likewise.
40451         * modules/vsnprintf-posix-tests (Files): Likewise.
40452         * modules/vsnprintf-tests (Files): Likewise.
40453         * modules/vsprintf-posix-tests (Files): Likewise.
40454         * modules/wcrtomb-tests (Files): Likewise.
40455         * modules/wcsnrtombs-tests (Files): Likewise.
40456         * modules/wcsrtombs-tests (Files): Likewise.
40457         * modules/wctype-tests (Files): Likewise.
40458         * modules/wcwidth-tests (Files): Likewise.
40459         * modules/xmemdup0-tests (Files): Likewise.
40460         * modules/xprintf-posix-tests (Files): Likewise.
40461         * modules/xvasprintf-tests (Files): Likewise.
40462
40463 2009-12-24  Eric Blake  <ebb9@byu.net>
40464
40465         test-nanosleep: fix typo
40466         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40467         patch.
40468         Reported by Bruno Haible.
40469
40470 2009-12-24  Bruno Haible  <bruno@clisp.org>
40471
40472         Reduce namespace pollution on glibc systems.
40473         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40474         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40475         systems.
40476         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40477         <getopt.h> on glibc systems.
40478         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40479         systems.
40480         * lib/fcntl.c: Include <unistd.h> here instead.
40481
40482 2009-12-24  Bruno Haible  <bruno@clisp.org>
40483
40484         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40485
40486 2009-12-24  Eric Blake  <ebb9@byu.net>
40487
40488         tests: add signature checks
40489         * tests/signature.h (SIGNATURE_CHECK): New file.
40490         * modules/atexit-tests (Files): Use it.
40491         * modules/btowc-tests (Files): Likewise.
40492         * modules/canonicalize-lgpl-tests (Files): Likewise.
40493         * modules/ceilf-tests (Files): Likewise.
40494         * modules/ceill-tests (Files): Likewise.
40495         * modules/chown-tests (Files): Likewise.
40496         * modules/dprintf-posix-tests (Files): Likewise.
40497         * modules/dup2-tests (Files): Likewise.
40498         * modules/dup3-tests (Files): Likewise.
40499         * modules/duplocale-tests (Files): Likewise.
40500         * modules/fchdir-tests (Files): Likewise.
40501         * modules/fcntl-tests (Files): Likewise.
40502         * modules/fdopendir-tests (Files): Likewise.
40503         * modules/fflush-tests (Files): Likewise.
40504         * modules/flock-tests (Files): Likewise.
40505         * modules/floorf-tests (Files): Likewise.
40506         * modules/floorl-tests (Files): Likewise.
40507         * modules/fnmatch-tests (Files): Likewise.
40508         * modules/fopen-tests (Files): Likewise.
40509         * modules/fprintf-posix-tests (Files): Likewise.
40510         * modules/freopen-tests (Files): Likewise.
40511         * modules/frexp-nolibm-tests (Files): Likewise.
40512         * modules/frexp-tests (Files): Likewise.
40513         * modules/frexpl-nolibm-tests (Files): Likewise.
40514         * modules/frexpl-tests (Files): Likewise.
40515         * modules/fseek-tests (Files): Likewise.
40516         * modules/fseeko-tests (Files): Likewise.
40517         * modules/fsync-tests (Files): Likewise.
40518         * modules/ftell-tests (Files): Likewise.
40519         * modules/ftello-tests (Files): Likewise.
40520         * modules/futimens-tests (Files): Likewise.
40521         * modules/getaddrinfo-tests (Files): Likewise.
40522         * modules/getcwd-tests (Files): Likewise.
40523         * modules/getdelim-tests (Files): Likewise.
40524         * modules/getdtablesize-tests (Files): Likewise.
40525         * modules/getgroups-tests (Files): Likewise.
40526         * modules/gethostname-tests (Files): Likewise.
40527         * modules/getline-tests (Files): Likewise.
40528         * modules/getopt-posix-tests (Files): Likewise.
40529         * modules/gettimeofday-tests (Files): Likewise.
40530         * modules/glob-tests (Files): Likewise.
40531         * modules/iconv-tests (Files): Likewise.
40532         * modules/inet_ntop-tests (Files): Likewise.
40533         * modules/inet_pton-tests (Files): Likewise.
40534         * modules/isblank-tests (Files): Likewise.
40535         * modules/lchown-tests (Files): Likewise.
40536         * modules/ldexpl-tests (Files): Likewise.
40537         * modules/link-tests (Files): Likewise.
40538         * modules/linkat-tests (Files): Likewise.
40539         * modules/lseek-tests (Files): Likewise.
40540         * modules/lstat-tests (Files): Likewise.
40541         * modules/mbrtowc-tests (Files): Likewise.
40542         * modules/mbsinit-tests (Files): Likewise.
40543         * modules/mbsnrtowcs-tests (Files): Likewise.
40544         * modules/mbsrtowcs-tests (Files): Likewise.
40545         * modules/memchr-tests (Files): Likewise.
40546         * modules/memcmp-tests (Files): Likewise.
40547         * modules/memmem-tests (Files): Likewise.
40548         * modules/memrchr-tests (Files): Likewise.
40549         * modules/mkdir-tests (Files): Likewise.
40550         * modules/mkfifo-tests (Files): Likewise.
40551         * modules/mkfifoat-tests (Files): Likewise.
40552         * modules/mknod-tests (Files): Likewise.
40553         * modules/nanosleep-tests (Files): Likewise.
40554         * modules/nl_langinfo-tests (Files): Likewise.
40555         * modules/obstack-printf-tests (Files): Likewise.
40556         * modules/open-tests (Files): Likewise.
40557         * modules/openat-tests (Files): Likewise.
40558         * modules/perror-tests (Files): Likewise.
40559         * modules/pipe2-tests (Files): Likewise.
40560         * modules/poll-tests (Files): Likewise.
40561         * modules/popen-tests (Files): Likewise.
40562         * modules/posix_spawn-tests (Files): Likewise.
40563         * modules/posix_spawnp-tests (Files): Likewise.
40564         * modules/pread-tests (Files): Likewise.
40565         * modules/printf-posix-tests (Files): Likewise.
40566         * modules/pty-tests (Files): Likewise.
40567         * modules/random_r-tests (Files): Likewise.
40568         * modules/rawmemchr-tests (Files): Likewise.
40569         * modules/readlink-tests (Files): Likewise.
40570         * modules/remove-tests (Files): Likewise.
40571         * modules/rename-tests (Files): Likewise.
40572         * modules/renameat-tests (Files): Likewise.
40573         * modules/rmdir-tests (Files): Likewise.
40574         * modules/round-tests (Files): Likewise.
40575         * modules/roundf-tests (Files): Likewise.
40576         * modules/roundl-tests (Files): Likewise.
40577         * modules/select-tests (Files): Likewise.
40578         * modules/setenv-tests (Files): Likewise.
40579         * modules/sigaction-tests (Files): Likewise.
40580         * modules/sleep-tests (Files): Likewise.
40581         * modules/snprintf-posix-tests (Files): Likewise.
40582         * modules/snprintf-tests (Files): Likewise.
40583         * modules/sprintf-posix-tests (Files): Likewise.
40584         * modules/stat-tests (Files): Likewise.
40585         * modules/strcasestr-tests (Files): Likewise.
40586         * modules/strchrnul-tests (Files): Likewise.
40587         * modules/strerror-tests (Files): Likewise.
40588         * modules/strsignal-tests (Files): Likewise.
40589         * modules/strstr-tests (Files): Likewise.
40590         * modules/strtod-tests (Files): Likewise.
40591         * modules/strverscmp-tests (Files): Likewise.
40592         * modules/symlink-tests (Files): Likewise.
40593         * modules/symlinkat-tests (Files): Likewise.
40594         * modules/times-tests (Files): Likewise.
40595         * modules/trunc-tests (Files): Likewise.
40596         * modules/truncf-tests (Files): Likewise.
40597         * modules/truncl-tests (Files): Likewise.
40598         * modules/tsearch-tests (Files): Likewise.
40599         * modules/uname-tests (Files): Likewise.
40600         * modules/unlink-tests (Files): Likewise.
40601         * modules/unsetenv-tests (Files): Likewise.
40602         * modules/usleep-tests (Files): Likewise.
40603         * modules/utimensat-tests (Files): Likewise.
40604         * modules/vasprintf-tests (Files): Likewise.
40605         * modules/vdprintf-posix-tests (Files): Likewise.
40606         * modules/vfprintf-posix-tests (Files): Likewise.
40607         * modules/vprintf-posix-tests (Files): Likewise.
40608         * modules/vsnprintf-posix-tests (Files): Likewise.
40609         * modules/vsnprintf-tests (Files): Likewise.
40610         * modules/vsprintf-posix-tests (Files): Likewise.
40611         * modules/wcrtomb-tests (Files): Likewise.
40612         * modules/wcsnrtombs-tests (Files): Likewise.
40613         * modules/wcsrtombs-tests (Files): Likewise.
40614         * modules/wcwidth-tests (Files): Likewise.
40615         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40616         * tests/test-isinf.c (isinf): Likewise.
40617         * tests/test-isnan.c (isnan): Likewise.
40618         * tests/test-signbit.c (signbit): Likewise.
40619         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40620         declaration, either as macro or with correct signature.
40621         (select): Ensure function under test is declared with correct
40622         signature in correct header.
40623         * tests/test-atexit.c (atexit): Likewise.
40624         * tests/test-btowc.c (btowc): Likewise.
40625         * tests/test-canonicalize-lgpl.c (realpath)
40626         (canonicalize_file_name): Likewise.
40627         * tests/test-ceilf1.c (ceilf): Likewise.
40628         * tests/test-ceill.c (ceill): Likewise.
40629         * tests/test-chown.c (chown): Likewise.
40630         * tests/test-dprintf-posix.c (dprintf): Likewise.
40631         * tests/test-dup2.c (dup2): Likewise.
40632         * tests/test-dup3.c (dup3): Likewise.
40633         * tests/test-duplocale.c (duplocale): Likewise.
40634         * tests/test-fchdir.c (fchdir): Likewise.
40635         * tests/test-fchownat.c (fchownat): Likewise.
40636         * tests/test-fcntl.c (fcntl): Likewise.
40637         * tests/test-fdopendir.c (fdopendir): Likewise.
40638         * tests/test-fflush.c (fflush): Likewise.
40639         * tests/test-flock.c (flock): Likewise.
40640         * tests/test-floorf1.c (floorf): Likewise.
40641         * tests/test-floorl.c (floorl): Likewise.
40642         * tests/test-fnmatch.c (fnmatch): Likewise.
40643         * tests/test-fopen.c (fopen): Likewise.
40644         * tests/test-fprintf-posix.c (fprintf): Likewise.
40645         * tests/test-freopen.c (freopen): Likewise.
40646         * tests/test-frexp.c (frexp): Likewise.
40647         * tests/test-frexpl.c (frexpl): Likewise.
40648         * tests/test-fseek.c (fseek): Likewise.
40649         * tests/test-fseeko.c (fseeko): Likewise.
40650         * tests/test-fstatat.c (fstatat): Likewise.
40651         * tests/test-fsync.c (fsync): Likewise.
40652         * tests/test-ftell.c (ftell): Likewise.
40653         * tests/test-ftello.c (ftello): Likewise.
40654         * tests/test-futimens.c (futimens): Likewise.
40655         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40656         (gai_strerror): Likewise.
40657         * tests/test-getcwd.c (getcwd): Likewise.
40658         * tests/test-getdelim.c (getdelim): Likewise.
40659         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40660         * tests/test-getgroups.c (getgroups): Likewise.
40661         * tests/test-gethostname.c (gethostname): Likewise.
40662         * tests/test-getline.c (getline): Likewise.
40663         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40664         Likewise.
40665         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40666         * tests/test-glob.c (glob, globfree): Likewise.
40667         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40668         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40669         * tests/test-inet_pton.c (inet_pton): Likewise.
40670         * tests/test-isblank.c (isblank): Likewise.
40671         * tests/test-lchown.c (lchown): Likewise.
40672         * tests/test-ldexpl.c (ldexpl): Likewise.
40673         * tests/test-link.c (link): Likewise.
40674         * tests/test-linkat.c (linkat): Likewise.
40675         * tests/test-lseek.c (lseek): Likewise.
40676         * tests/test-lstat.c (lstat): Likewise.
40677         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40678         * tests/test-mbsinit.c (mbsinit): Likewise.
40679         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40680         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40681         * tests/test-memchr.c (memchr): Likewise.
40682         * tests/test-memcmp.c (memcmp): Likewise.
40683         * tests/test-memmem.c (memmem): Likewise.
40684         * tests/test-memrchr.c (memrchr): Likewise.
40685         * tests/test-mkdir.c (mkdir): Likewise.
40686         * tests/test-mkdirat.c (mkdirat): Likewise.
40687         * tests/test-mkfifo.c (mkfifo): Likewise.
40688         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40689         * tests/test-mknod.c (mknod): Likewise.
40690         * tests/test-nanosleep.c (nanosleep): Likewise.
40691         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40692         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40693         Likewise.
40694         * tests/test-open.c (open): Likewise.
40695         * tests/test-openat.c (openat): Likewise.
40696         * tests/test-perror.c (perror): Likewise.
40697         * tests/test-pipe2.c (pipe2): Likewise.
40698         * tests/test-poll.c (poll): Likewise.
40699         * tests/test-popen.c (popen, pclose): Likewise.
40700         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40701         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40702         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40703         (posix_spawn_file_actions_destroy)
40704         (posix_spawn_file_actions_addclose)
40705         (posix_spawn_file_actions_addopen)
40706         (posix_spawn_file_actions_adddup2): Likewise.
40707         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40708         * tests/test-pread.c (pread): Likewise.
40709         * tests/test-printf-posix.c (printf): Likewise.
40710         * tests/test-pty.c (openpty, forkpty): Likewise.
40711         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40712         (random_r): Likewise.
40713         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40714         * tests/test-readlink.c (readlink): Likewise.
40715         * tests/test-remove.c (remove): Likewise.
40716         * tests/test-rename.c (rename): Likewise.
40717         * tests/test-renameat.c (renameat): Likewise.
40718         * tests/test-rmdir.c (rmdir): Likewise.
40719         * tests/test-round1.c (round): Likewise.
40720         * tests/test-roundf1.c (roundf): Likewise.
40721         * tests/test-roundl.c (roundl): Likewise.
40722         * tests/test-setenv.c (setenv): Likewise.
40723         * tests/test-sigaction.c (sigaction): Likewise.
40724         * tests/test-sleep.c (sleep): Likewise.
40725         * tests/test-snprintf.c (snprintf): Likewise.
40726         * tests/test-sprintf-posix.c (sprintf): Likewise.
40727         * tests/test-stat.c (stat): Likewise.
40728         * tests/test-stpncpy.c (stpncpy): Likewise.
40729         * tests/test-strcasestr.c (strcasestr): Likewise.
40730         * tests/test-strchrnul.c (strchrnul): Likewise.
40731         * tests/test-strerror.c (strerror): Likewise.
40732         * tests/test-strsignal.c (strsignal): Likewise.
40733         * tests/test-strstr.c (strstr): Likewise.
40734         * tests/test-strtod.c (strtod): Likewise.
40735         * tests/test-strverscmp.c (strverscmp): Likewise.
40736         * tests/test-symlink.c (symlink): Likewise.
40737         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40738         * tests/test-times.c (times): Likewise.
40739         * tests/test-trunc1.c (trunc): Likewise.
40740         * tests/test-truncf1.c (truncf): Likewise.
40741         * tests/test-truncl.c (truncl): Likewise.
40742         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40743         Likewise.
40744         * tests/test-uname.c (uname): Likewise.
40745         * tests/test-unlink.c (unlink): Likewise.
40746         * tests/test-unlinkat.c (unlinkat): Likewise.
40747         * tests/test-unsetenv.c (unsetenv): Likewise.
40748         * tests/test-usleep.c (usleep): Likewise.
40749         * tests/test-utimensat.c (utimensat): Likewise.
40750         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40751         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40752         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40753         * tests/test-vprintf-posix.c (vprintf): Likewise.
40754         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40755         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40756         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40757         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40758         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40759         * tests/test-wcwidth.c (wcwidth): Likewise.
40760
40761         build: pull in conditional headers during GNULIB_POSIXCHECK
40762         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40763         definitions from any conditionally-included headers.
40764         * lib/stdlib.in.h (includes): Likewise.
40765         * lib/unistd.in.h (includes): Likewise.
40766
40767 2009-12-24  Bruno Haible  <bruno@clisp.org>
40768
40769         * tests/test-argv-iter.c: Include header file being tested immediately
40770         after config.h.
40771         * tests/test-base64.c: Likewise.
40772         * tests/test-flock.c: Likewise.
40773         * tests/test-fsync.c: Likewise.
40774         * tests/test-getdate.c: Likewise.
40775         * tests/test-getndelim2.c: Likewise.
40776         * tests/test-isfinite.c: Likewise.
40777         * tests/test-isinf.c: Likewise.
40778         * tests/test-strerror.c: Likewise.
40779         * tests/test-strsignal.c: Likewise.
40780
40781 2009-12-23  Eric Blake  <ebb9@byu.net>
40782
40783         unistd: work around cygwin bug
40784         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40785         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40786         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40787
40788 2009-12-23  Bruno Haible  <bruno@clisp.org>
40789
40790         localename: More tests.
40791         * tests/test-localename.c (SIZEOF): New macro.
40792         (categories): New variable.
40793         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40794         test_locale_name_default): Add test w.r.t. thread locale.
40795         (test_locale_name_thread): New function.
40796         (main): Invoke it.
40797
40798         localename: Make aware of thread locale.
40799         * lib/localename.h (gl_locale_name_thread): New declaration.
40800         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40801         behaviour with respect to thread locale.
40802         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40803         <langinfo.h>, glthread/lock.h.
40804         (SIZE_BITS): New macro.
40805         (string_hash): New function.
40806         (struct hash_node): New type.
40807         (HASH_TABLE_SIZE): New macro.
40808         (struniq_hash_table, struniq_lock): New variables.
40809         (struniq): New function.
40810         (gl_locale_name_thread): New function.
40811         (gl_locale_name): Invoke it.
40812         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40813         * modules/localename (Depends-on): Add lock.
40814         Reported by Mike Gran <spk121@yahoo.com>.
40815
40816 2009-12-23  Eric Blake  <ebb9@byu.net>
40817
40818         va-args: new module
40819         * modules/va-args: New file.
40820         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40821         * MODULES.html.sh (Core language properties): Mention it.
40822
40823         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40824         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40825         named alias for __attribute__((__unused__)).
40826         * lib/chown.c: Update client.
40827         * lib/fchmodat.c: Likewise.
40828         * lib/fts.c: Likewise.
40829         * lib/getdate.y: Likewise.
40830         * lib/getgroups.c: Likewise.
40831         * lib/getopt.c: Likewise.
40832         * lib/getugroups.c: Likewise.
40833         * lib/mkdir.c: Likewise.
40834         * lib/mkfifo.c: Likewise.
40835         * lib/mkfifoat.c: Likewise.
40836         * lib/mknod.c: Likewise.
40837         * lib/mknodat.c: Likewise.
40838         * lib/readlink.c: Likewise.
40839         * lib/se-context.in.h: Likewise.
40840         * lib/se-selinux.in.h: Likewise.
40841         * lib/sockets.c: Likewise.
40842         * lib/symlink.c: Likewise.
40843         * lib/symlinkat.c: Likewise.
40844         * lib/unicodeio.c: Likewise.
40845         * lib/unistr.h: Likewise.
40846         * tests/test-areadlink.c: Likewise.
40847         * tests/test-areadlinkat.c: Likewise.
40848         * tests/test-filenamecat.c: Likewise.
40849         * tests/test-fseeko.c: Likewise.
40850         * tests/test-ftello.c: Likewise.
40851         * tests/test-getdate.c: Likewise.
40852         * tests/test-getgroups.c: Likewise.
40853         * tests/test-gethostname.c: Likewise.
40854         * tests/test-quotearg.c: Likewise.
40855         * tests/test-version-etc.c: Likewise.
40856         * tests/test-xalloc-die.c: Likewise.
40857         * tests/test-xfprintf-posix.c: Likewise.
40858         * tests/test-xprintf-posix.c: Likewise.
40859         * tests/test-xvasprintf.c: Likewise.
40860
40861         tests: avoid compiler warnings
40862         * tests/test-fcntl.c (main): Delete unused parameters.
40863         * tests/test-freopen-safer.c (main): Likewise.
40864         * tests/test-xalloc-die.c (main): Mark unused parameters.
40865         * tests/test-fseeko.c (main): Likewise.
40866         * tests/test-ftello.c (main): Likewise.
40867         * tests/test-nanosleep.c (main): Avoid declaration warning.
40868         * tests/test-sleep.c (main): Likewise.
40869         * tests/test-unsetenv.c (main): Silence warning about string
40870         literal.
40871         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40872
40873 2009-12-23  Bruno Haible  <bruno@clisp.org>
40874
40875         * tests/test-localename.c (test_locale_name): New function, extracted
40876         from main. Also test mixed situations.
40877         (test_locale_name_posix, test_locale_name_environ,
40878         test_locale_name_default): New functions.
40879         (main): Invoke them all.
40880         * modules/localename-tests (configure.ac): Test for newlocale.
40881
40882 2009-12-23  Bruno Haible  <bruno@clisp.org>
40883
40884         unistd: Ensure getcwd gets declared before being overridden.
40885         * lib/unistd.in.h: Conditionally include <io.h>.
40886
40887 2009-12-22  Bruno Haible  <bruno@clisp.org>
40888
40889         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40890         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40891         (gl_WCHAR_H): Invoke it.
40892         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40893         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40894         Reported by Karl Berry <karl@freefriends.org>.
40895
40896 2009-12-22  Eric Blake  <ebb9@byu.net>
40897
40898         math, unistd: avoid redundant includes
40899         * lib/math.in.h (isnan): No need to re-include <math.h>.
40900         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40901
40902         getsubopt: work around cygwin bug
40903         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40904         avoid conflicting with system getsubopt.
40905         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40906         bug.
40907
40908         getopt: synchronize from glibc
40909         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40910         parameter order.  Adjust all callers.
40911         (_getopt_internal_r, main): Adjust quoting in error messages.
40912         Drop considerations for outdated POSIX 1003.2 error message.
40913         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40914         callers.
40915         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40916
40917         test-getopt: test stderr behavior
40918         * modules/getopt-posix-tests (Depends-on): Add dup2.
40919         * tests/test-getopt.c (ASSERT): Avoid stderr.
40920         (main): Move stderr to a temporary file.
40921         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40922         Instead, add parameter to inform caller if output occurred.
40923         (test_getopt): Adjust all existing tests to expect silence, and
40924         add new tests of leading ":".
40925         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40926         glibc shortcomings with leading "-:" or "+:" in optstring.
40927         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40928         Likewise.
40929         * doc/posix-functions/getopt.texi (getopt): Likewise.
40930
40931         test-getopt: enhance test
40932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40933         supports optind=0.
40934         * tests/test-getopt.c (OPTIND_MIN): Move...
40935         * tests/test-getopt.h (OPTIND_MIN): ...here.
40936         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40937         Require that optind=0 works, since modern BSD supports it in
40938         addition to optreset, and since coreutils expects it.
40939         (test_getopt_long_only): New test.
40940         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40941         glibc shortcomings with 'W;', and enforcement of optind=0.
40942         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40943         Likewise.
40944
40945 2009-12-21  Bruno Haible  <bruno@clisp.org>
40946
40947         localename: Improvements for MacOS X and Cygwin.
40948         * lib/localename.h (gl_locale_name_environ): New declaration.
40949         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40950         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40951         (gl_locale_name_posix): Invoke it.
40952         (gl_locale_name_default): Add comments. Use Windows native API also on
40953         Cygwin.
40954
40955 2009-12-21  Bruno Haible  <bruno@clisp.org>
40956
40957         Update list of Win32 locale ids.
40958         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40959         (LANG_SAMI): Renamed from LANG_SAAMI.
40960         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40961         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40962         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40963         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40964         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40965         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40966         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40967         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40968         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40969         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40970         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40971         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40972         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40973         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40974         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40975         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40976         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40977         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40978         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40979         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40980         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40981         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40982         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40983         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40984         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40985         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40986         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40987         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40988         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40989         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40990         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40991         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40992         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40993         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40994         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40995         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40996         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40997         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40998         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40999         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41000         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41001         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41002         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41003         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41004         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41005         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41006         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41007         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41008         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41009         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41010         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41011         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41012         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41013         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41014         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41015         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41016         Add more languages and countries for Sami, Sorbian. Add more countries
41017         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41018         for Pashto. Change country for Syriac, Tswana.
41019
41020 2009-12-21  Eric Blake  <ebb9@byu.net>
41021
41022         test-utimens: avoid spurious failure
41023         * tests/test-chown.h (nap): Factor...
41024         * tests/nap.h: ...into new file.
41025         * tests/test-lchown.h (nap): Avoid duplication.
41026         * tests/test-utimens-common.h (nap): Use shared implementation,
41027         necessary on file systems with 1-second resolution.
41028         * modules/chown-tests (Files): Include new file.
41029         * modules/fdutimensat-tests (Files): Likewise.
41030         * modules/futimens-tests (Files): Likewise.
41031         * modules/lchown-tests (Files): Likewise.
41032         * modules/openat-tests (Files): Likewise.
41033         * modules/utimens-tests (Files): Likewise.
41034         * modules/utimensat-tests (Files): Likewise.
41035
41036 2009-12-19  Eric Blake  <ebb9@byu.net>
41037
41038         futimens, utimensat: work around Linux bug
41039         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41040         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41041         * lib/utimensat.c (rpl_utimensat): Work around it.
41042         * lib/futimens.c (rpl_futimens): Adjust comment.
41043
41044         utimens: work around Linux ctime bug
41045         * lib/utimens.c (detect_ctime_bug): New helper function.
41046         (update_timespec): Differentiate between workaround needed for
41047         this bug vs. what is needed for systems that lack utimensat.
41048         (fdutimens, lutimens): Work around bug.
41049
41050         utimens: check for ctime update
41051         * tests/test-utimens-common.h (check_ctime): Define.
41052         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41053         * tests/test-futimens.h (test_futimens): Likewise.
41054         * tests/test-lutimens.h (test_lutimens): Likewise.
41055         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41056         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41057
41058 2009-12-19  Bruno Haible  <bruno@clisp.org>
41059
41060         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41061         * tests/test-dprintf-posix2.sh: New file.
41062         * tests/test-dprintf-posix2.c: New file.
41063         * modules/dprintf-posix-tests (Files): Add them.
41064         (configure.ac): Check for getrlimit and setrlimit.
41065         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41066
41067 2009-12-19  Bruno Haible  <bruno@clisp.org>
41068
41069         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41070         * tests/test-fprintf-posix3.sh: New file.
41071         * tests/test-fprintf-posix3.c: New file.
41072         * modules/fprintf-posix-tests (Files): Add them.
41073         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41074
41075 2009-12-19  Eric Blake  <ebb9@byu.net>
41076
41077         dirfd: fix prototype
41078         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41079         * lib/dirfd.c (dirfd): Likewise.
41080
41081         canonicalize: reduce memory usage
41082         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41083         allocation to size.
41084         Reported by Solar Designer <solar@openwall.com>.
41085
41086 2009-12-19  Bruno Haible  <bruno@clisp.org>
41087
41088         New module attribute 'Applicability'.
41089         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41090         * gnulib-tool: New option --extract-applicability.
41091         (func_usage): Document it.
41092         (sed_extract_prog): Recognize it.
41093         (func_get_applicability): New function.
41094         (func_import): Generalize handling of 'link-warning' module.
41095         * modules/link-warning (Applicability): New section.
41096         * modules/arg-nonnull (Applicability): New section.
41097         Repoted by Simon Josefsson <simon@josefsson.org>.
41098
41099 2009-12-19  Bruno Haible  <bruno@clisp.org>
41100
41101         fflush: tweak
41102         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41103         * lib/fseeko.c (rpl_fseeko): Likewise.
41104
41105 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41106
41107         * lib/gl_list.h: Fix typo in comment.
41108
41109 2009-12-16  Eric Blake  <ebb9@byu.net>
41110
41111         fcntl: use to simplify other modules
41112         * modules/cloexec (Depends-on): Add fcntl.
41113         * modules/fchdir (Depends-on): Likewise.
41114         * modules/fd-safer-flag (Depends-on): Likewise.
41115         * modules/unistd-safer (Depends-on): Likewise.
41116         * modules/dup3 (configure.ac): Set module indicator.
41117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41118         missing.
41119         * lib/fchdir.c (_gl_register_dup): Fix comment.
41120         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41121         * lib/dup-safer.c (dup_safer): Likewise.
41122         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41123         * lib/dup3.c (dup3): Likewise.
41124         * tests/test-fchdir.c (main): Enhance test.
41125         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
41126
41127         fcntl: port portions of fcntl to mingw
41128         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41129         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41130         replacement for mingw.
41131         * modules/fcntl (Description): Update.
41132         (Depends-on): Add dup2.
41133         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41134         * modules/fcntl-h (Makefile.am): Substitute it.
41135         * lib/fcntl.in.h (fcntl): Update declaration.
41136         (F_DUPFD, F_GETFD): New macros, when needed.
41137         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41138         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41139         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41140         we now guarantee.
41141
41142         fcntl: work around cygwin bug in F_DUPFD
41143         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41144         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41145         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41146         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41147         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41148
41149         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41150         * modules/fcntl (Files): List new files.
41151         (configure.ac): Run a test.
41152         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41153         * lib/fcntl.c (rpl_fcntl): Likewise.
41154         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41155         (gl_FCNTL_H): Always replace fcntl.h.
41156         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41157         * lib/fcntl.in.h (fcntl): Declare replacement.
41158         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41159         needed, plus a witness.
41160         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41161         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41162         * tests/test-fcntl.c: New file.
41163         * modules/fcntl-tests: Likewise.
41164
41165         binary-io: avoid potential compilation warning
41166         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41167         directives.
41168
41169         fflush: avoid compilation error on NetBSD
41170         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41171         between off_t and fpos_t, since the latter is sometimes a struct.
41172         * lib/fseeko.c (rpl_fseeko): Likewise.
41173         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41174
41175 2009-12-15  Eric Blake  <ebb9@byu.net>
41176
41177         fcntl-h, stdio, sys_ioctl: fix declarations
41178         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41179         function must not take arguments.
41180         * lib/sys_ioctl.in.h (ioctl): Likewise.
41181         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41182         (open): Add a link warning.
41183
41184 2009-12-15  Jim Meyering  <meyering@redhat.com>
41185
41186         areadlink, areadlink-with-size: relax license to LGPLv2+
41187         * modules/areadlink (License): Relax to LGPLv2+.
41188         * modules/areadlink-with-size (License): Likewise.
41189
41190 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41191             Bruno Haible  <bruno@clisp.org>
41192
41193         *printf: Fix memory leak.
41194         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41195         * lib/vfprintf.c (vfprintf): Likewise.
41196         * lib/dprintf.c (dprintf): Likewise.
41197         * lib/vdprintf.c (vdprintf): Likewise.
41198
41199 2009-12-14  Eric Blake  <ebb9@byu.net>
41200
41201         accept4: adjust module dependencies
41202         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41203
41204         utimens: one more try at avoiding compiler warning
41205         * lib/utimens.c (lutimens): Lower scope of result.
41206
41207 2009-12-13  Bruno Haible  <bruno@clisp.org>
41208
41209         Move the malloc checking from module 'list' to new module 'xlist'.
41210         * modules/xlist: New file.
41211         * lib/gl_xlist.h: New file.
41212         * lib/gl_xlist.c: New file.
41213         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41214         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41215         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41216         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41217         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41218         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41219         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41220         gl_sortedlist_nx_add): New declarations.
41221         (struct gl_list_implementation): Rename and change methods accordingly.
41222         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41223         (gl_list_nx_create): Renamed from gl_list_create.
41224         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41225         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41226         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41227         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41228         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41229         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41230         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41231         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41232         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41233         gl_list_create_empty.
41234         (gl_list_nx_create): Renamed from gl_list_create.
41235         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41236         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41237         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41238         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41239         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41240         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41241         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41242         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41243         * lib/gl_array_list.c: Don't include xalloc.h.
41244         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41245         NULL upon out-of-memory.
41246         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41247         out-of-memory.
41248         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41249         Change return type to 'int'.
41250         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41251         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41252         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41253         upon out-of-memory.
41254         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41255         upon out-of-memory.
41256         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41257         upon out-of-memory.
41258         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41259         upon out-of-memory.
41260         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41261         out-of-memory.
41262         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41263         Update.
41264         (gl_array_list_implementation): Update.
41265         * lib/gl_carray_list.c: Don't include xalloc.h.
41266         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41267         Return NULL upon out-of-memory.
41268         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41269         out-of-memory.
41270         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41271         Change return type to 'int'.
41272         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41273         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41274         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41275         upon out-of-memory.
41276         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41277         upon out-of-memory.
41278         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41279         out-of-memory.
41280         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41281         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41282         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41283         Update.
41284         (gl_carray_list_implementation): Update.
41285         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41286         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41287         gl_linked_create_empty. Return NULL upon out-of-memory.
41288         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41289         out-of-memory.
41290         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41291         Change return type to 'int'. Return -1 upon out-of-memory.
41292         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41293         out-of-memory.
41294         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41295         upon out-of-memory.
41296         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41297         upon out-of-memory.
41298         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41299         NULL upon out-of-memory.
41300         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41301         upon out-of-memory.
41302         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41303         out-of-memory.
41304         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41305         Update.
41306         * lib/gl_linked_list.c: Don't include xalloc.h.
41307         (gl_linked_list_implementation): Update.
41308         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41309         (add_to_bucket): Change return type to 'int'.
41310         (gl_linkedhash_list_implementation): Update.
41311         * lib/gl_anytree_list1.h (free_subtree): New function.
41312         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41313         gl_tree_create_empty. Return NULL upon out-of-memory.
41314         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41315         Change return type to 'int'. Return -1 upon out-of-memory.
41316         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41317         out-of-memory.
41318         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41319         (gl_tree_remove_node): New function, moved here from
41320         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41321         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41322         Update.
41323         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41324         malloc, not xmalloc. Return NULL upon out-of-memory.
41325         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41326         out-of-memory.
41327         (gl_tree_remove_node_from_tree): New function, extracted from
41328         gl_tree_remove_node.
41329         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41330         upon out-of-memory.
41331         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41332         out-of-memory.
41333         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41334         upon out-of-memory.
41335         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41336         upon out-of-memory.
41337         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41338         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41339         not xmalloc. Return NULL upon out-of-memory.
41340         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41341         out-of-memory.
41342         (gl_tree_remove_node_from_tree): New function, extracted from
41343         gl_tree_remove_node.
41344         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41345         upon out-of-memory.
41346         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41347         out-of-memory.
41348         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41349         upon out-of-memory.
41350         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41351         upon out-of-memory.
41352         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41353         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41354         gl_anytree_list1.h before gl_anyavltree_list2.h.
41355         (gl_avltree_list_implementation): Update.
41356         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41357         gl_anytree_list1.h before gl_anyavltree_list2.h.
41358         (gl_rbtree_list_implementation): Update.
41359         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41360         Change return type to 'int'. Return -1 upon out-of-memory. Use
41361         __builtin_expect.
41362         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41363         (gl_avltreehash_list_implementation): Update.
41364         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41365         (gl_rbtreehash_list_implementation): Update.
41366         * modules/array-list (Depends-on): Remove xalloc.
41367         * modules/carray-list (Depends-on): Likewise.
41368         * modules/linked-list (Depends-on): Likewise.
41369         * modules/linkedhash-list (Depends-on): Likewise.
41370         * modules/avltree-list (Depends-on): Likewise.
41371         * modules/rbtree-list (Depends-on): Likewise.
41372         * modules/avltreehash-list (Depends-on): Likewise.
41373         * modules/rbtreehash-list (Depends-on): Likewise.
41374
41375         * modules/xsublist: New file.
41376         * lib/gl_xsublist.h: New file.
41377         * lib/gl_xsublist.c: New file.
41378         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41379         (gl_sublist_nx_create): New declaration.
41380         * lib/gl_sublist.c: Don't include xalloc.h.
41381         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41382         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41383         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41384         Change return type to 'int'. Return -1 upon out-of-memory.
41385         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41386         upon out-of-memory.
41387         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41388         NULL upon out-of-memory.
41389         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41390         upon out-of-memory.
41391         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41392         NULL upon out-of-memory.
41393         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41394         NULL upon out-of-memory.
41395         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41396         upon out-of-memory.
41397         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41398         (gl_sublist_list_implementation): Update.
41399         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41400         upon out-of-memory.
41401         * modules/sublist (Depends-on): Remove xalloc.
41402
41403         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41404         * tests/test-carray_list.c: Likewise.
41405         * tests/test-linked_list.c: Likewise.
41406         * tests/test-linkedhash_list.c: Likewise.
41407         * tests/test-avltree_list.c: Likewise.
41408         * tests/test-rbtree_list.c: Likewise.
41409         * tests/test-avltreehash_list.c: Likewise.
41410         * tests/test-rbtreehash_list.c: Likewise.
41411         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41412         * modules/carray-list-tests (Makefile.am): Likewise.
41413         * modules/linked-list-tests (Makefile.am): Likewise.
41414         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41415         * modules/avltree-list-tests (Makefile.am): Likewise.
41416         * modules/rbtree-list-tests (Makefile.am): Likewise.
41417         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41418         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41419
41420         * NEWS: Mention the changes.
41421
41422         * lib/clean-temp.c: Include gl_xlist.h.
41423         * modules/clean-temp (Depends-on): Add xlist.
41424
41425         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41426         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41427
41428         * tests/test-array_oset.c: Include gl_xlist.h.
41429         * modules/array-oset-tests (Depends-on): Add xlist.
41430
41431         Reported by José E. Marchesi <jemarch@gnu.org>.
41432
41433 2009-12-13  Bruno Haible  <bruno@clisp.org>
41434
41435         Move the malloc checking from module 'oset' to new module 'xoset'.
41436         * modules/xoset: New file.
41437         * lib/gl_xoset.h: New file.
41438         * lib/gl_xoset.c: New file.
41439         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41440         declarations.
41441         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41442         (struct gl_oset_implementation): Rename and change methods accordingly.
41443         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41444         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41445         'int'. Mark as __warn_unused_result__.
41446         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41447         gl_oset_create_empty.
41448         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41449         'int'.
41450         * lib/gl_array_oset.c: Don't include xalloc.h.
41451         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41452         malloc, not xmalloc.
41453         (grow): Change return type to 'int'. Don't call xalloc_die.
41454         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41455         to 'int'.
41456         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41457         'int'.
41458         (gl_array_oset_implementation): Update.
41459         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41460         gl_tree_create_empty.
41461         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41462         'int'.
41463         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41464         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41465         xmalloc.
41466         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41467         not xmalloc.
41468         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41469         xmalloc.
41470         (gl_avltree_oset_implementation): Update.
41471         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41472         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41473         xmalloc.
41474         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41475         not xmalloc.
41476         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41477         xmalloc.
41478         (gl_rbtree_oset_implementation): Update.
41479         * modules/array-oset (Depends-on): Remove xalloc.
41480         * modules/avltree-oset (Depends-on): Likewise.
41481         * modules/rbtree-oset (Depends-on): Likewise.
41482         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41483         * tests/test-avltree_oset.c: Likewise.
41484         * tests/test-rbtree_oset.c: Likewise.
41485         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41486         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41487         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41488         * NEWS: Mention the change.
41489
41490 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41491
41492         maint.mk: allow a project to override release-prep commands
41493         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41494         commands into a new rule.
41495         (release-prep): New rule.
41496         (release-prep-hook): New overridable variable.
41497
41498 2009-12-13  Bruno Haible  <bruno@clisp.org>
41499
41500         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41501
41502 2009-12-13  Jim Meyering  <meyering@redhat.com>
41503
41504         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41505         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41506
41507 2009-12-12  Bruno Haible  <bruno@clisp.org>
41508
41509         duplocale: Tweak.
41510         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41511
41512 2009-12-12  Karl Berry  <karl@gnu.org>
41513
41514         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41515
41516 2009-12-12  Bruno Haible  <bruno@clisp.org>
41517
41518         * m4/po.m4: Undo incorrect untabification.
41519
41520 2009-12-12  Bruno Haible  <bruno@clisp.org>
41521
41522         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41523         * modules/c-strtod (Depends-on): Add locale.
41524         * modules/c-strtold (Depends-on): Likewise.
41525
41526 2009-12-12  Bruno Haible  <bruno@clisp.org>
41527
41528         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41529
41530 2009-12-11  Eric Blake  <ebb9@byu.net>
41531
41532         setenv: relax requirement in light of POSIX ruling
41533         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41534         not NULL.
41535         * tests/test-setenv.c (main): Relax test.
41536         * tests/test-unsetenv.c (main): Likewise.
41537         * doc/posix-functions/setenv.texi (setenv): Document this.
41538         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41539
41540 2009-12-11  Bruno Haible  <bruno@clisp.org>
41541
41542         New module 'fd-safer-flag'.
41543         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41544         * lib/dup-safer.c (dup_safer_flag): Remove function.
41545         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41546         * lib/fd-safer.c (fd_safer_flag): Remove function.
41547         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41548         * modules/cloexec (configure.ac): Drop indicator macro.
41549         * modules/fd-safer-flag: New file.
41550         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41551         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41552         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41553
41554 2009-12-11  Bruno Haible  <bruno@clisp.org>
41555
41556         Tests for module 'nl_langinfo'.
41557         * modules/nl_langinfo-tests: New file.
41558         * tests/test-nl_langinfo.sh: New file.
41559         * tests/test-nl_langinfo.c: New file.
41560
41561         New module 'nl_langinfo'.
41562         * lib/nl_langinfo.c: New file.
41563         * m4/nl_langinfo.m4: New file.
41564         * modules/nl_langinfo: New file.
41565         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41566
41567 2009-12-11  Bruno Haible  <bruno@clisp.org>
41568
41569         Tests for module 'langinfo'.
41570         * modules/langinfo-tests: New file.
41571         * tests/test-langinfo.c: New file.
41572
41573         New module 'langinfo'.
41574         * lib/langinfo.in.h: New file.
41575         * m4/langinfo_h.m4: New file.
41576         * modules/langinfo: New file.
41577         * doc/posix-headers/langinfo.texi: Mention the new module.
41578
41579 2009-12-11  Bruno Haible  <bruno@clisp.org>
41580
41581         * lib/config.charset: Untabify.
41582
41583 2009-12-11  Bruno Haible  <bruno@clisp.org>
41584
41585         * modules/unistd-safer (configure.ac): Drop indicator macro.
41586
41587 2009-12-11  Bruno Haible  <bruno@clisp.org>
41588
41589         Move pipe2-safer code to its own file.
41590         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41591         * lib/pipe-safer.c (pipe2_safer): Remove function.
41592         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41593         (Makefile.am): Add it to lib_SOURCES.
41594
41595 2009-12-10  Bruno Haible  <bruno@clisp.org>
41596
41597         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41598
41599 2009-12-10  Bruno Haible  <bruno@clisp.org>
41600
41601         Declare which arguments expect non-NULL values, for GCC and clang.
41602         * build-aux/arg-nonnull.h: New file.
41603         * modules/arg-nonnull: New file.
41604         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41605         (inet_ntop, inet_pton): Use it.
41606         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41607         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41608         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41609         (open, openat): Use it.
41610         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41611         (fnmatch): Use it.
41612         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41613         (getopt, getopt_long, getopt_long_only): Use it.
41614         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41615         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41616         Use it.
41617         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41618         (iconv_open): Use it.
41619         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41620         (strtoimax, strtoumax): Use it.
41621         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41622         (duplocale): Use it.
41623         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41624         (frexp, frexpl): Use it.
41625         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41626         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41627         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41628         (tsearch, tfind, tdelete, twalk): Use it.
41629         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41630         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41631         sigpending): Use it.
41632         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41633         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41634         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41635         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41636         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41637         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41638         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41639         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41640         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41641         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41642         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41643         Use it.
41644         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41645         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41646         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41647         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41648         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41649         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41650         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41651         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41652         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41653         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41654         strtoull, unsetenv): Use it.
41655         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41656         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41657         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41658         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41659         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41660         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41661         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41662         (strcasecmp, strncasecmp): Use it.
41663         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41664         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41665         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41666         rpl_setsockopt): Use it.
41667         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41668         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41669         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41670         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41671         (gettimeofday): Use it.
41672         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41673         (times): Use it.
41674         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41675         (uname): Use it.
41676         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41677         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41678         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41679         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41680         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41681         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41682         unlinkat, write): Use it.
41683         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41684         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41685         * lib/argv-iter.h: Include arg-nonnull.h.
41686         (_ATTRIBUTE_NONNULL_): Remove macro.
41687         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41688         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41689         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41690         optimization.
41691         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41692         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41693         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41694         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41695         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41696         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41697         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41698         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41699         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41700         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41701         * modules/dirent (Depends-on): Add arg-nonnull.
41702         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41703         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41704         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41705         * modules/fnmatch (Depends-on): Add arg-nonnull.
41706         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41707         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41708         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41709         * modules/glob (Depends-on): Add arg-nonnull.
41710         (Makefile.am): Insert arg-nonnull.h into glob.h.
41711         * modules/iconv_open (Depends-on): Add arg-nonnull.
41712         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41713         * modules/inttypes (Depends-on): Add arg-nonnull.
41714         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41715         * modules/locale (Depends-on): Add arg-nonnull.
41716         (Makefile.am): Insert arg-nonnull.h into locale.h.
41717         * modules/math (Depends-on): Add arg-nonnull.
41718         (Makefile.am): Insert arg-nonnull.h into math.h.
41719         * modules/netdb (Depends-on): Add arg-nonnull.
41720         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41721         * modules/search (Depends-on): Add arg-nonnull.
41722         (Makefile.am): Insert arg-nonnull.h into search.h.
41723         * modules/signal (Depends-on): Add arg-nonnull.
41724         (Makefile.am): Insert arg-nonnull.h into signal.h.
41725         * modules/spawn (Depends-on): Add arg-nonnull.
41726         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41727         * modules/stdio (Depends-on): Add arg-nonnull.
41728         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41729         * modules/stdlib (Depends-on): Add arg-nonnull.
41730         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41731         * modules/string (Depends-on): Add arg-nonnull.
41732         (Makefile.am): Insert arg-nonnull.h into string.h.
41733         * modules/strings (Depends-on): Add arg-nonnull.
41734         (Makefile.am): Insert arg-nonnull.h into strings.h.
41735         * modules/sys_socket (Depends-on): Add arg-nonnull.
41736         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41737         * modules/sys_stat (Depends-on): Add arg-nonnull.
41738         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41739         * modules/sys_time (Depends-on): Add arg-nonnull.
41740         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41741         * modules/sys_times (Depends-on): Add arg-nonnull.
41742         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41743         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41744         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41745         * modules/time (Depends-on): Add arg-nonnull.
41746         (Makefile.am): Insert arg-nonnull.h into time.h.
41747         * modules/unistd (Depends-on): Add arg-nonnull.
41748         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41749         * modules/wchar (Depends-on): Add arg-nonnull.
41750         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41751         * modules/argv-iter (Depends-on): Add arg-nonnull.
41752         * tests/test-canonicalize.c (null_ptr): New function.
41753         (main): Use it.
41754         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41755         (main): Use it.
41756         * tests/test-memmem.c (null_ptr): New function.
41757         (main): Use it.
41758         Reported by Jim Meyering.
41759
41760 2009-12-10  Bruno Haible  <bruno@clisp.org>
41761
41762         Use spaces for indentation, not tabs.
41763         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41764         * m4/*.m4: Untabify.
41765         * build-aux/*.h: Untabify.
41766         * tests/**/*.[hc]: Untabify.
41767         * README: New section "Indent with spaces, not TABs", based on
41768         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41769         * NEWS: Mention the change.
41770
41771 2009-12-10  Bruno Haible  <bruno@clisp.org>
41772
41773         pty test: Fix link error.
41774         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41775         test_pty_LDADD.
41776
41777 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41778
41779         * modules/pty: New file.
41780         * modules/pty-tests: New file.
41781         * m4/pty.m4: New file.
41782         * tests/test-pty.c: New file.
41783         * doc/glibc-headers/pty.texi: Modified.
41784         * doc/glibc-functions/forkpty.texi: Modified.
41785         * doc/glibc-functions/openpty.texi: Modified.
41786
41787 2009-12-10  Bruno Haible  <bruno@clisp.org>
41788
41789         Avoid syntax error in C++ mode.
41790         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41791
41792 2009-12-10  Bruno Haible  <bruno@clisp.org>
41793
41794         Use sed with option -e.
41795         * gnulib-tool (func_version, func_emit_copyright_notice,
41796         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41797         option -e to sed.
41798         * modules/link-warning (Makefile.am): Likewise.
41799
41800 2009-12-10  Jim Meyering  <meyering@redhat.com>
41801
41802         mgetgroups: do not write bytes beyond end of malloc'd buffer
41803         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41804         username, we call getgroups with a one-element-shorter buffer,
41805         but still told it the length was original, max_n_groups.
41806
41807 2009-12-09  Eric Blake  <ebb9@byu.net>
41808
41809         cloexec: relax license
41810         * modules/cloexec (Maintainer): Add myself.
41811         (License): Use LGPL, not GPL.
41812
41813         link-warning: optimize generation
41814         * modules/link-warning (Makefile.am): Reduce process usage.
41815
41816 2009-12-09  Bruno Haible  <bruno@clisp.org>
41817
41818         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41819         workaround was added on 2009-11-17.
41820
41821 2009-12-09  Jim Meyering  <meyering@redhat.com>
41822             Bruno Haible  <bruno@clisp.org>
41823
41824         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41825         * modules/link-warning (Makefile.am): Make the comment-removing sed
41826         command more robust in the face of bootstrap-prepended comment lines.
41827
41828 2009-12-09  Bruno Haible  <bruno@clisp.org>
41829
41830         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41831         most one group.
41832
41833 2009-12-09  Simon Josefsson <simon@josefsson.org>
41834             Bruno Haible  <bruno@clisp.org>
41835
41836         * build-aux/link-warning.h: Add copyright notice.
41837         * modules/link-warning (Makefile.am): Generate link-warning.h from
41838         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41839         * NEWS: Mention change in link-warning module.
41840         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41841         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41842         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41843         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41844         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41845         * modules/math (Makefile.am): Add dependency to math.h.
41846         * modules/search (Makefile.am): Add dependency to search.h.
41847         * modules/signal (Makefile.am): Add dependency to signal.h.
41848         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41849         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41850         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41851         * modules/string (Makefile.am): Add dependency to string.h.
41852         * modules/strings (Makefile.am): Add dependency to strings.h.
41853         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41854         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41855         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41856         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41857         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41858         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41859         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41860         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41861         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41862
41863 2009-12-09  Bruno Haible  <bruno@clisp.org>
41864
41865         fchdir: Optimize away rpl_fstat when possible.
41866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41867         REPLACE_OPEN_DIRECTORY.
41868         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41869
41870 2009-12-09  Bruno Haible  <bruno@clisp.org>
41871
41872         * lib/fchdir.c: Update comment.
41873
41874 2009-12-09  Bruno Haible  <bruno@clisp.org>
41875
41876         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41877
41878 2009-12-08  Eric Blake  <ebb9@byu.net>
41879
41880         fchdir: avoid memory leak on re-registration.
41881         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41882
41883 2009-12-08  Jim Meyering  <meyering@redhat.com>
41884
41885         init.sh: avoid Solaris 10 /bin/sh portability problem
41886         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41887         sourced script:
41888           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41889           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41890           bar
41891         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41892         and two tests used that idiom.
41893         * tests/init.sh: Update suggested usage comments.
41894         (path_prepend_): New function, to be used in place
41895         of the --src-path=DIR option.
41896         (setup_): Move PATH-prepending code into path_prepend_.
41897         * tests/test-pread.sh: Adapt to new usage.
41898         * tests/test-xalloc-die.sh: Likewise.
41899
41900 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41901
41902         * doc/gnulib.texi (Glibc pty.h): Add.
41903         * doc/glibc-functions/forkpty.texi: Add.
41904         * doc/glibc-functions/openpty.texi: Add.
41905         Suggested by Bruno Haible.
41906
41907 2009-12-08  Eric Blake  <ebb9@byu.net>
41908
41909         fchdir: fix logic bugs
41910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41911         * tests/test-fchdir.c (main): Enhance test.
41912         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41913         is in use.
41914
41915         dup2: fix logic bugs
41916         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41917         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41918         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41919         exists.
41920         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41921
41922 2009-12-07  Eric Blake  <ebb9@byu.net>
41923
41924         unlink: fix m4 detection
41925         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41926
41927         unistd-safer: add unit test
41928         * modules/unistd-safer-tests: New file.
41929         * tests/test-dup-safer.c: Likewise.
41930         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41931         * tests/test-dup2.c (setmode): Likewise.
41932         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41933
41934         cloexec: preserve text vs. binary across dup_cloexec
41935         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41936         mode.
41937         * modules/dup2-tests (Depends-on): Add binary-io.
41938         * modules/cloexec-tests (Depends-on): Likewise.
41939         * tests/test-dup2.c (setmode, is_mode): New helpers.
41940         (main): Add tests that translation mode is preserved.
41941         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41942         Reported by Bruno Haible.
41943
41944         mgetgroups: reduce duplicate listings
41945         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41946         resulting array.
41947         * tests/test-chown.h (test_chown): Simplify client.
41948         * tests/test-lchown.h (test_lchown): Likewise.
41949
41950 2009-12-06  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41953         value.
41954
41955 2009-12-06  Bruno Haible  <bruno@clisp.org>
41956
41957         * lib/progname.c: Include stdio.h, stdlib.h.
41958         (set_program_name): Reject a NULL argument.
41959
41960 2009-12-05  Eric Blake  <ebb9@byu.net>
41961
41962         pipe2-safer: new module
41963         * modules/pipe2-safer: New file.
41964         * lib/unistd-safer.h (pipe2_safer): New prototype.
41965         * lib/unistd--.h (pipe2): New wrapper.
41966         * lib/pipe-safer.c (pipe2_safer): New function.
41967         * modules/pipe (Depends-on): Add pipe2-safer.
41968         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41969
41970         stdlib-safer: preserve cloexec flag for mkostemp[s]
41971         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41972         fd_safer_flag.
41973
41974         unistd-safer: allow preservation of cloexec status via flag
41975         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41976         prototypes.
41977         * lib/dup-safer.c (dup_safer_flag): New function.
41978         * lib/fd-safer.c (fd_safer_flag): Likewise.
41979         * modules/cloexec (configure.ac): Set witness.
41980
41981         test-dup2: enhance test
41982         * modules/dup2-tests (Depends-on): Add cloexec.
41983         * tests/test-dup2.c (main): Enhance test.
41984
41985         cloexec: add dup_cloexec
41986         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41987         header and comments.
41988         * lib/cloexec.c (set_cloexec_flag): Add comments.
41989         (dup_cloexec): New function, with mingw implementation borrowed
41990         from...
41991         * lib/w32spawn.h (dup_noinherit): ...here.
41992         * modules/execute (Depends-on): Add cloexec.
41993         * modules/pipe (Depends-on): Likewise.
41994         * modules/cloexec (Depends-on): Add dup2.
41995         * modules/cloexec-tests (Files): New file.
41996         * tests/test-cloexec.c: Likewise.
41997
41998         test-xalloc-die: fix test for mingw
41999         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42000         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42001         directory and .exe suffix off argv[0] output.
42002
42003         test-fseeko: fix test for mingw
42004         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42005         than undefining fseek, so test will pass on mingw.
42006
42007 2009-12-05  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/progname.h (set_program_name): Clarify specification.
42010         * lib/progname.c (set_program_name): Likewise.
42011         Reported by Jim Meyering.
42012
42013 2009-12-05  Jim Meyering  <meyering@redhat.com>
42014
42015         maint.mk: backslash-escape parens in default regexp
42016         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42017         backslash-escape the literal parentheses.
42018
42019         maint.mk: news-date-check: use grep -E
42020         * top/maint.mk (today): Define a Make variable, not a...
42021         (news-date-check): ...shell variable.
42022         (news-date-regexp): Use the Make variable.
42023         Use grep's -E option.  Change the failing diagnostic to mention
42024         the variable, $(news-date-regexp).
42025
42026 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42027
42028         maintainer-makefile: allow customization of NEWS entry format
42029         * top/maint.mk (news-date-regexp): New overridable variable.
42030         (news-date-check): Use it.
42031
42032 2009-12-04  Eric Blake  <ebb9@byu.net>
42033
42034         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42035         * lib/mgetgroups.h (xgetgroups): New prototype.
42036         * lib/mgetgroups.c (xgetgroups): New wrapper.
42037         (mgetgroups): Handle ENOSYS.
42038         * modules/mgetgroups (Depends-on): Add realloc.
42039         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42040
42041         mgetgroups: avoid argument promotion issues with -1
42042         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42043         for invalid gid_t.
42044         * tests/test-chown.h (getegid, test_chown): Likewise.
42045         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42046
42047 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42048
42049         exclude: Fix header file problems.
42050         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42051
42052 2009-12-01  Jim Meyering  <meyering@redhat.com>
42053
42054         fts: fts_open: do not let an empty string cause immediate failure
42055         This is required in support of GNU rm, for which the command
42056         "rm A '' B" must process and remove both A and B, in spite of
42057         the empty string argument.
42058         * lib/fts.c (fts_open): Do not let the presence of an empty string
42059         cause fts_open to fail immediately.  Most fts-using tools must be
42060         able to process all arguments, in order, and can be expected to
42061         diagnose such arguments themselves.
42062
42063 2009-11-30  Eric Blake  <ebb9@byu.net>
42064
42065         utimens: fix compilation error
42066         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42067         Declare variable at right scope.
42068
42069 2009-11-29  Jim Meyering  <meyering@redhat.com>
42070
42071         bootstrap: handle perl-5.11's changed --version output
42072         * build-aux/bootstrap (get_version): Handle perl separately,
42073         since perl-5.11's --version output is different.
42074
42075 2009-11-28  Jim Meyering  <meyering@redhat.com>
42076
42077         userspec: depend on the inttostr module, too
42078         * modules/userspec (Depends-on): Add inttostr.
42079
42080         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42081         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42082         number of MAXUID when it evaluates to (uid_t) -1.
42083         Likewise for group ID.  Reported by Matt McCutchen in
42084         <http://savannah.gnu.org/bugs/?28113>
42085
42086         userspec: reformat to use spaces, not TABs
42087         * lib/userspec.c: Expand TABs to spaces.
42088         Add Emacs' "indent-tabs-mode: nil" hint.
42089
42090 2009-11-27  Eric Blake  <ebb9@byu.net>
42091
42092         getopt-gnu: flush out another BSD bug
42093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42094         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42095         flush out BSD bug.
42096         * tests/test-getopt.h (test_getopt): End lists with NULL.
42097         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42098         (test_getopt_long_posix): Enhance test.
42099         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42100         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42101         getopt-gnu.
42102         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42103         Likewise.
42104
42105 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42106
42107         * modules/idpriv-droptemp-tests (Notice): Fix text.
42108
42109 2009-11-27  Jim Meyering  <meyering@redhat.com>
42110
42111         test-xalloc-die: avoid spurious failure due to libtool argv difference
42112         In a libtool-enabled project, this test would fail due to a difference
42113         in the emitted program name, e.g.,
42114         -test-xalloc-die: memory exhausted
42115         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42116         Use program to avoid that.
42117         * modules/xalloc-die-tests (Depends-on): Add progname.
42118         * tests/test-xalloc-die.c: Include progname.h".
42119         (program_name): Remove decl.
42120         (main): Call set_program_name.
42121         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42122
42123 2009-11-26  Richard Jones  <rjones@redhat.com>
42124
42125         w32sock: leave win32 error in place.
42126         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42127
42128 2009-11-26  Eric Blake  <ebb9@byu.net>
42129
42130         init.sh: suggest to use skip_ and fail_ functions in comments
42131         * tests/init.sh: Add a sentence.
42132
42133 2009-11-25  Bruno Haible  <bruno@clisp.org>
42134
42135         init.sh: add documentation in comments
42136         * tests/init.sh: Add some developer and user documentation.
42137
42138 2009-11-26  Jim Meyering  <meyering@redhat.com>
42139
42140         init.sh: accommodate even those who specify bogus srcdir manually
42141         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42142         configure-time tests to be sanitized, so that there is no need to
42143         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42144         (with no double quotes) suffices.  However, since tests may be
42145         invoked manually, and since you may explicitly set srcdir to the
42146         name of a directory containing spaces, do quote its uses here.
42147         * tests/test-pread.sh: Likewise.
42148         Suggested by Bruno Haible.
42149
42150         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42151         * tests/test-pread.sh: Write no data into the pipe, because
42152         test-pread actually reads none.  This avoids a diagnostic,
42153         "bash: echo: write error: Broken pipe", that arises in the unusual
42154         event something is ignoring SIGPIPE, and might be interpreted
42155         as some sort of failure.  Reported by Bruno Haible.
42156
42157 2009-11-25  Jim Meyering  <meyering@redhat.com>
42158
42159         test-pread: cover failure with ESPIPE and EINVAL
42160         * tests/test-pread.c (main): Test for failure, too.
42161         * tests/test-pread.sh: Invoke with stdin on a pipe.
42162         Suggested by Eric Blake.
42163
42164         pread: improvement and fix
42165         * modules/pread (Depends-on): Depend on lseek, for portability to
42166         e.g., mingw.  Suggested by Eric Blake.
42167         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42168
42169         unistd.in.h: correct declaration of pread
42170         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42171         Reported by Richard W.M. Jones.
42172
42173         test-pread.sh: distribute the test script
42174         * modules/pread-tests (Files): Include test-pread.sh.
42175
42176         test-pread.sh: clean up
42177         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42178         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42179         That is unnecessary, since it's always ".".
42180         Suggestion from Eric Blake.
42181
42182         test-pread.sh: make executable
42183         * tests/test-pread.sh: Set executable bit.
42184         Reported by Eric Blake.
42185
42186         correct typo in test-pread.sh
42187         * tests/test-pread.sh: Add #! line.
42188
42189         test pread
42190         * tests/test-pread.c: New file.
42191         * tests/test-pread.sh: Likewise.
42192         * modules/pread-tests: Likewise.
42193
42194         pread: new module
42195         * modules/pread: New file.
42196         * lib/unistd.in.h (pread): Define/declare.
42197         * lib/pread.c (pread): New file.
42198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42199         * modules/unistd (Makefile.am): Substitute witnesses.
42200         * doc/posix-functions/pread.texi (pread): Update.
42201         * MODULES.html.sh: Add pread.
42202
42203 2009-11-25  Jim Meyering  <meyering@redhat.com>
42204
42205         tests/init.sh: new file to be used via most *.sh tests
42206         * tests/init.sh: New file.
42207
42208 2009-11-25  Eric Blake  <ebb9@byu.net>
42209
42210         utimens: work around older Linux failure with symlinks
42211         * lib/utimens.c (lutimensat_works_really): New variable.
42212         (fdutimens, lutimens): Use it to manage kernels that support
42213         nanosecond times on files, but not on symlinks.
42214         Reported by OndÅ™ej Vašík.
42215
42216         utimes: fix configure grammar
42217         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42218
42219 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42220
42221         regex: Fix fastmap for multibyte character ranges.
42222         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42223         characters when a multibyte character range is included.
42224
42225 2009-11-22  Andy Wingo  <wingo@pobox.com>
42226
42227         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42228         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42229
42230 2009-11-24  Bruno Haible  <bruno@clisp.org>
42231
42232         doc: Most *_l functions exist in MacOS X 10.5.
42233         * doc/posix-functions/duplocale.texi: Update platforms list.
42234         * doc/posix-functions/freelocale.texi: Likewise.
42235         * doc/posix-functions/newlocale.texi: Likewise.
42236         * doc/posix-functions/uselocale.texi: Likewise.
42237         * doc/posix-functions/isalnum_l.texi: Likewise.
42238         * doc/posix-functions/isalpha_l.texi: Likewise.
42239         * doc/posix-functions/isblank_l.texi: Likewise.
42240         * doc/posix-functions/iscntrl_l.texi: Likewise.
42241         * doc/posix-functions/isdigit_l.texi: Likewise.
42242         * doc/posix-functions/isgraph_l.texi: Likewise.
42243         * doc/posix-functions/islower_l.texi: Likewise.
42244         * doc/posix-functions/isprint_l.texi: Likewise.
42245         * doc/posix-functions/ispunct_l.texi: Likewise.
42246         * doc/posix-functions/isspace_l.texi: Likewise.
42247         * doc/posix-functions/isupper_l.texi: Likewise.
42248         * doc/posix-functions/iswalnum_l.texi: Likewise.
42249         * doc/posix-functions/iswalpha_l.texi: Likewise.
42250         * doc/posix-functions/iswblank_l.texi: Likewise.
42251         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42252         * doc/posix-functions/iswctype_l.texi: Likewise.
42253         * doc/posix-functions/iswdigit_l.texi: Likewise.
42254         * doc/posix-functions/iswgraph_l.texi: Likewise.
42255         * doc/posix-functions/iswlower_l.texi: Likewise.
42256         * doc/posix-functions/iswprint_l.texi: Likewise.
42257         * doc/posix-functions/iswpunct_l.texi: Likewise.
42258         * doc/posix-functions/iswspace_l.texi: Likewise.
42259         * doc/posix-functions/iswupper_l.texi: Likewise.
42260         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42261         * doc/posix-functions/isxdigit_l.texi: Likewise.
42262         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42263         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42264         * doc/posix-functions/strcoll_l.texi: Likewise.
42265         * doc/posix-functions/strfmon_l.texi: Likewise.
42266         * doc/posix-functions/strftime_l.texi: Likewise.
42267         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42268         * doc/posix-functions/strxfrm_l.texi: Likewise.
42269         * doc/posix-functions/tolower_l.texi: Likewise.
42270         * doc/posix-functions/toupper_l.texi: Likewise.
42271         * doc/posix-functions/towctrans_l.texi: Likewise.
42272         * doc/posix-functions/towlower_l.texi: Likewise.
42273         * doc/posix-functions/towupper_l.texi: Likewise.
42274         * doc/posix-functions/wcscoll_l.texi: Likewise.
42275         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42276         * doc/posix-functions/wctrans_l.texi: Likewise.
42277         * doc/posix-functions/wctype_l.texi: Likewise.
42278         * doc/glibc-functions/strptime_l.texi: Likewise.
42279         * doc/glibc-functions/strtod_l.texi: Likewise.
42280         * doc/glibc-functions/strtof_l.texi: Likewise.
42281         * doc/glibc-functions/strtol_l.texi: Likewise.
42282         * doc/glibc-functions/strtold_l.texi: Likewise.
42283         * doc/glibc-functions/strtoll_l.texi: Likewise.
42284         * doc/glibc-functions/strtoul_l.texi: Likewise.
42285         * doc/glibc-functions/strtoull_l.texi: Likewise.
42286         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42287         * doc/glibc-functions/wcstod_l.texi: Likewise.
42288         * doc/glibc-functions/wcstof_l.texi: Likewise.
42289         * doc/glibc-functions/wcstol_l.texi: Likewise.
42290         * doc/glibc-functions/wcstold_l.texi: Likewise.
42291         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42292         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42293         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42294
42295 2009-11-24  Bruno Haible  <bruno@clisp.org>
42296
42297         duplocale: Fix logic bug.
42298         * lib/duplocale.c: Don't include <langinfo.h>.
42299         (_NL_LOCALE_NAME): Remove macro.
42300         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42301         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42302
42303 2009-11-23  Jim Meyering  <meyering@redhat.com>
42304
42305         test-update-copyright: don't hard-code /usr/bin/perl
42306         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42307         perl to print the current year.  Gilles Espinasse reported that
42308         the replaced use of perl was hard-coded as /usr/bin/perl.
42309
42310 2009-11-23  Bruno Haible  <bruno@clisp.org>
42311
42312         duplocale: Add support for glibc 2.3.x.
42313         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42314
42315 2009-11-22  Bruno Haible  <bruno@clisp.org>
42316
42317         vasnprintf: Tiny optimization.
42318         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42319         MacOS X.
42320
42321 2009-11-22  Bruno Haible  <bruno@clisp.org>
42322
42323         Tests for module 'duplocale'.
42324         * modules/duplocale-tests: New file.
42325         * tests/test-duplocale.c: New file.
42326
42327         New module 'duplocale'.
42328         * m4/duplocale.m4: New file.
42329         * lib/locale.in.h (duplocale): New declaration.
42330         * lib/duplocale.c: New file.
42331         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42332         gl_LOCALE_H_DEFAULTS): New macros.
42333         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42334         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42335         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42336         REPLACE_DUPLOCALE.
42337         * modules/duplocale: New file.
42338         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42339
42340 2009-11-22  Bruno Haible  <bruno@clisp.org>
42341
42342         * modules/locale-tests (configure.ac): Test for newlocale function.
42343         * tests/test-locale.c: When the system has extended locale functions,
42344         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42345
42346         locale: Make locale_t available when possible.
42347         * lib/locale.in.h: Include <xlocale.h> when it exists.
42348         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42349         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42350         * modules/locale (Depends-on): Add extensions.
42351         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42352         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42353
42354 2009-11-22  Bruno Haible  <bruno@clisp.org>
42355
42356         Add comments.
42357         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42358         invocation.
42359         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42360         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42361         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42362
42363 2009-11-22  Bruno Haible  <bruno@clisp.org>
42364
42365         error: account for the possibility of freopen (stdout).
42366         * lib/error.c: Include <unistd.h>.
42367         (flush_stdout): New function, extracted from error and error_at_line.
42368         Determine stdout's fd dynamically.
42369         (error, error_at_line): Invoke flush_stdout.
42370         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42371         * modules/error (Depends-on): Add unistd.
42372
42373 2009-11-22  Bruno Haible  <bruno@clisp.org>
42374
42375         diffseq: Add comment.
42376         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42377
42378 2009-11-22  Jim Meyering  <meyering@redhat.com>
42379
42380         c-stack: avoid defining an unused static function
42381         * lib/c-stack.c (find_stack_direction): Do not define this function
42382         when it will not be used.
42383
42384         diffseq: avoid spurious gcc warnings
42385         * lib/diffseq.h (IF_LINT2): Define.
42386         (compareseq): Use it to initialize two members of "part".
42387         This avoids two used-uninitialized warnings.
42388
42389 2009-11-21  Jim Meyering  <meyering@redhat.com>
42390
42391         c-stack: avoid "ignoring return value of `write'" warning
42392         * lib/c-stack.c: Include "ignore-value.h".
42393         (die): Explicitly ignore each write return value.
42394         * modules/c-stack (Depends-on): Add ignore-value.
42395
42396 2009-11-21  Bruno Haible  <bruno@clisp.org>
42397
42398         diffseq: reduce scope of variable 'best'.
42399         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42400         variable, earlier used for two different purposes.
42401
42402 2009-11-21  Jim Meyering  <meyering@redhat.com>
42403
42404         diffseq: remove useless assignment to "best"
42405         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42406         assignment.  At that point "best" is already guaranteed to be zero.
42407
42408 2009-11-20  Eric Blake  <ebb9@byu.net>
42409
42410         build: mention ftp redirector in release announcements
42411         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42412         values that used to come from cfg.mk; mention FTP redirect URL.
42413         * build-aux/announce-gen: Mention the mirror list.
42414         Suggested by Karl Berry.
42415
42416         nanosleep: improve port to mingw
42417         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42419         LIB_NANOSLEEP, but only when needed.
42420         * modules/select (Link): Document LIBSOCKET.
42421         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42422         enough.
42423
42424         nanosleep: work around cygwin bug
42425         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42426         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42427         bug.
42428         (getnow): Delete, not needed.
42429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42430         LIB_CLOCK_GETTIME.
42431         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42432         clock-time, gettime.
42433         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42434         bug.
42435         * modules/nanosleep-tests: New test.
42436         * tests/test-nanosleep.c: New file.
42437
42438         sleep: work around cygwin bug
42439         * lib/sleep.c (rpl_sleep): Work around the bug.
42440         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42441         (gl_PREREQ_SLEEP): Delete unused macro.
42442         * modules/sleep (Depends-on): Add verify.
42443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42444         * modules/unistd (Makefile.am): Substitute witness.
42445         * lib/unistd.in.h (sleep): Update prototype.
42446         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42447         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42448         * modules/sleep-tests (Depends-on): Check for alarm.
42449
42450 2009-11-20  Jim Meyering  <meyering@redhat.com>
42451
42452         maint.mk: improve sc_prohibit_magic_number_exit
42453         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42454         so it does not match uses like System.exit(1).
42455         Add comments showing how to correct all offenders.
42456
42457 2009-11-19  Eric Blake  <ebb9@byu.net>
42458
42459         xalloc-die-tests: add missing library
42460         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42461
42462         test-xvasprintf: silence compiler warnings
42463         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42464         empty string from gcc.
42465
42466 2009-11-19  Jim Meyering  <meyering@redhat.com>
42467
42468         xfreopen: new module, from coreutils
42469         * modules/xfreopen: New module.
42470         * lib/xfreopen.c: New file.
42471         * lib/xfreopen.h: New file.
42472         * MODULES.html.sh (File stream based Input/Output"): Add it.
42473
42474 2009-11-19  Eric Blake  <ebb9@byu.net>
42475
42476         manywarnings: depend on warnings
42477         * modules/manywarnings (Depends-on): Add warnings.
42478
42479         build: avoid compiler warnings
42480         * lib/select.c (rpl_select): Delete unused variable.
42481         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42482
42483 2009-11-18  Eric Blake  <ebb9@byu.net>
42484
42485         tests: avoid false negative with --with-packager
42486         * tests/test-version-etc.sh: Discard packager information.
42487         * tests/test-argp-version-etc-1.sh: Likewise.
42488         Reported by Mike Frysinger.
42489
42490         utimens: fix regression on Solaris
42491         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42492         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42493         can only change fd timestamps via futimesat.  Instead, use an
42494         additional witness macro to avoid BSD bug.
42495         Reported by Jim Meyering.
42496
42497 2009-11-17  Eric Blake  <ebb9@byu.net>
42498
42499         usleep: use it to simplify tests
42500         * modules/stat-time-tests (Depends-on): Add usleep.
42501         (configure.ac): Drop usleep check.
42502         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42503         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42504         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42505         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42506         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42507         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42508         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42509         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42510         Likewise.
42511         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42512         * tests/test-lchown.h (nap): Likewise.
42513         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42514         * tests/test-stat-time.c (nap): Likewise.
42515         * tests/test-utimens-common.h (nap): Update comments.
42516
42517         usleep: new module
42518         * modules/usleep: New file.
42519         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42520         * lib/usleep.c (usleep): Likewise.
42521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42522         * modules/unistd (Makefile.am): Substitute witnesses.
42523         * lib/unistd.in.h (usleep): Add declaration.
42524         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42525         * MODULES.html.sh (Date and time): Likewise.
42526         * modules/usleep-tests (Depends-on): New test.
42527         * tests/test-usleep.c: New file.
42528
42529         chown: work around OpenBSD bug
42530         * lib/chown.c (rpl_chown): Work around the bug.
42531         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42532         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42533         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42534         * modules/chown (Depends-on): Add stdbool.
42535         * modules/lchown (Depends-on): Likewise.
42536         * doc/posix-functions/chown.texi (chown): Document the bug.
42537         * doc/posix-functions/lchown.texi (lchown): Likewise.
42538         * tests/test-lchown.h (test_chown): Relax test.
42539
42540         mkstemp: avoid conflict with C++ keyword template
42541         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42542         * lib/mkostemp.c (mkostemp): Likewise.
42543         * lib/mkostemps.c (mkostemps): Likewise.
42544         * lib/mkstemp.c (mkstemp): Likewise.
42545         * lib/mkstemps.c (mkstemps): Likewise.
42546
42547         xalloc-die-tests: optimize
42548         * tests/test-xalloc-die.sh: Reduce number of processes.
42549
42550 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42551
42552         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42553         patch from ludo@gnu.org (Ludovic Courtès).
42554
42555 2009-11-17  Jim Meyering  <meyering@redhat.com>
42556
42557         version-etc: use proper license string
42558         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42559         * modules/version-etc-fsf: Likewise.
42560
42561 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42562
42563         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42564         printed to stdout.  Deal with EOL differences.
42565
42566 2009-11-17  Eric Blake  <ebb9@byu.net>
42567
42568         unsetenv: work around Solaris bug
42569         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42570         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42571         Reported by Jim Meyering.
42572
42573         vasnprintf: avoid compiler warnings
42574         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42575         variables.
42576         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42577
42578 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42579
42580         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42581         settings since xalloc-die is no longer the self test,
42582         xalloc-die.sh is.
42583
42584 2009-11-17  Jim Meyering  <meyering@redhat.com>
42585
42586         test-xalloc-die.sh: make the code agree with the commit log
42587         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42588         at the end, just in case you happen to have a test-xalloc-die
42589         program in some other PATH directory.
42590
42591         test-xalloc-die.sh: fix a portability bug
42592         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42593         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42594         Otherwise, argv[0] (as often seen in diagnostics) would be too
42595         system-dependent, sometimes with, and sometimes without the leading "./".
42596
42597         version-etc-fsf: relax license to LGPLv3+
42598         * modules/version-etc-fsf (License): Relax license.
42599
42600 2009-11-16  Eric Blake  <ebb9@byu.net>
42601
42602         xalloc-die-tests: avoid printing null pointer
42603         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42604         shell script.
42605         * tests/test-xalloc-die.c (program_name): Declare.
42606         * tests/test-xalloc-die.sh (tmpfiles): New file.
42607
42608         setenv, unsetenv: work around various bugs
42609         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42610         (setenv) [HAVE_SETENV]: Work around bugs.
42611         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42612         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42613         for bugs.
42614         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42615         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42617         * modules/stdlib (Makefile.am): Update substitutions.
42618         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42619         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42620         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42621         * modules/setenv-tests: New test.
42622         * modules/unsetenv-tests: Likewise.
42623         * tests/test-setenv.c: New file.
42624         * tests/test-unsetenv.c: Likewise.
42625
42626 2009-11-16  Jim Meyering  <meyering@redhat.com>
42627
42628         version-etc: relax license to LGPLv3+
42629         * modules/version-etc (License): Relax license.
42630
42631         better AC_REQUIRE expanded-before-required-warning avoidance
42632         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42633         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42634         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42635         which is no longer needed.
42636
42637 2009-11-16  Eric Blake  <ebb9@byu.net>
42638
42639         test-freading: clean up temporary file
42640         * tests/test-freading.c (main): Remove file on success, and use
42641         ASSERT more liberally.
42642         Reported by Jim Meyering.
42643
42644 2009-11-16  Jim Meyering  <meyering@redhat.com>
42645
42646         avoid new AC_REQUIRE expanded-before-required warnings
42647         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42648         merely using it.
42649         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42650         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42651
42652 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42653
42654         * tests/test-xalloc-die.c: New file.
42655         * modules/xalloc-die-tests: New file.
42656         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42657         XFAIL_TESTS so it can be appended by modules.
42658
42659 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42660
42661         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42662         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42663
42664 2009-11-14  Eric Blake  <ebb9@byu.net>
42665
42666         fnmatch: avoid compiler warning
42667         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42668         to silence compiler warning about mismatch signedness in ?:.
42669         Reported by Robert Millan.
42670
42671         intprops: add double-inclusion guard
42672         * lib/intprops.h: Allow idempotent includes.
42673         Suggested by Bruce Korb.
42674
42675         openat: detect Solaris fchownat bug
42676         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42677         penalizing glibc chownat when only lchownat is broken.
42678         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42679         trailing slash bugs.
42680         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42681         * modules/openat-tests (Files): Include more files.
42682         (Depends-on): Add mgetgroups, sleep, stat-time.
42683         (configure.ac): Add additional checks.
42684         (Makefile.am): Build new test.
42685         * tests/test-fchownat.c: New file.
42686
42687         lchown: detect Solaris and FreeBSD bug
42688         * lib/lchown.c (rpl_lchown): Work around bug.
42689         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42691         * modules/unistd (Makefile.am): Populate it.
42692         * lib/unistd.in.h (lchown): Update declaration.
42693         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42694         * modules/lchown-tests: New file.
42695         * tests/test-lchown.h (test_lchown): Likewise.
42696         * tests/test-lchown.c (main): Likewise.
42697
42698         chown: detect Solaris and FreeBSD bug
42699         * lib/chown.c (rpl_chown): Work around bug.
42700         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42701         (gl_PREREQ_CHOWN): Delete.
42702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42703         * modules/unistd (Makefile.am): Populate it.
42704         * lib/unistd.in.h (chown): Update declaration.
42705         * lib/lchown.c (chown): Update client.
42706         * modules/lchown (Depends-on): Add lstat.
42707         * doc/posix-functions/chown.texi (chown): Document the bug.
42708         * doc/posix-functions/getgroups.texi (getgroups): Document
42709         getgroups pitfall.
42710         * modules/chown-tests: New file.
42711         * tests/test-chown.h (test_chown): Likewise.
42712         * tests/test-chown.c (main): Likewise.
42713
42714 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42715
42716         gnulib-tool: correctly detect absence of m4 directories
42717         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42718
42719 2009-11-14  Jim Meyering  <meyering@redhat.com>
42720
42721         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42722         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42723
42724 2009-11-14  John W. Eaton  <jwe@gnu.org>
42725
42726         strftime.h: wrap function declaration in extern "C" block
42727         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42728
42729 2009-11-13  Eric Blake  <ebb9@byu.net>
42730
42731         getgroups: avoid compiler warning
42732         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42733
42734         getgroups: work around FreeBSD bug
42735         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42736         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42737         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42738         * tests/test-getgroups.c (main): Fix buffer overrun.
42739
42740         getgroups: avoid compilation failure
42741         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42742         * modules/getgroups (Depends-on): Add stdint.
42743
42744 2009-11-13  Jim Meyering  <meyering@redhat.com>
42745
42746         test-getgroups: avoid compilation failure
42747         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42748
42749 2009-11-13  Eric Blake  <ebb9@byu.net>
42750
42751         mgetgroups: new module, taken from coreutils
42752         * modules/mgetgroups: New file.
42753         * lib/mgetgroups.h: Likewise.
42754         * lib/mgetgroups.c (mgetgroups): Likewise.
42755         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42756         * MODULES.html.sh (Users and groups): Mention it.
42757
42758         getgroups: don't expose GETGROUPS_T to user
42759         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42760         an element at a time if GETGROUPS_T is wrong size.
42761         * lib/getugroups.h (getugroups): Change signature.
42762         * lib/unistd.in.h (getgroups): Likewise.
42763         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42764         signature needs fixing.
42765         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42766         AC_TYPE_GETGROUPS.
42767         * modules/group-member (Depends-on): Add getgroups.
42768         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42769         (group_member): Rely on getgroups replacement.
42770         * lib/getugroups.c (getugroups): Use gid_t.
42771         * tests/test-getgroups.c (main): Likewise.
42772         * NEWS: Mention the signature change.
42773         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42774         problem with signature.
42775         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42776         GETGROUPS_T is still useful for setgroups.
42777
42778         getgroups, getugroups: provide stubs for mingw
42779         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42780         * lib/getugroups.c (getugroups): Likewise.
42781         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42782         function.  Modernize replacement scheme.
42783         (gl_PREREQ_GETGROUPS): Delete.
42784         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42785         * modules/getgroups (configure.ac): Declare witness.
42786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42787         * modules/unistd (Depends-on): Substitute witness.
42788         * lib/unistd.in.h (getgroups): Declare replacement.
42789
42790         getgroups: avoid calling exit
42791         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42792         drop xalloc.
42793         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42794         dependencies.
42795         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42796         exiting, in the rare case of malloc failure.
42797
42798         getgroups: fix logic error
42799         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42800         has more than 20 groups.
42801         * modules/getgroups-tests: New test.
42802         * tests/test-getgroups.c: New file.
42803
42804 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42805
42806         * tests/test-base64.c: Improve.
42807
42808 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42809
42810         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42811         Blake <ebb9@byu.net>.
42812
42813 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42814
42815         * tests/test-xvasprintf.c: Add %s%s related checks.
42816
42817 2009-11-12  Eric Blake  <ebb9@byu.net>
42818
42819         version-etc: match standards.texi style
42820         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42821         and use <> only for URLs.
42822
42823 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42824
42825         fts: do not fail on a submount during traversal
42826         * lib/fts.c (fts_build): Read the stat info again after opening
42827         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42828         Original report at http://bugzilla.redhat.com/501848.
42829
42830 2009-11-12  Jim Meyering  <meyering@redhat.com>
42831
42832         bootstrap: sync from coreutils
42833         * build-aux/bootstrap (bootstrap_epilogue): New function.
42834         Use git_modules_config in one more place.  This make bootstrap's
42835         --gnulib-srcdir option more useful for testing.
42836
42837         bootstrap: generalize autoheader check
42838         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42839         AC_CONFIG_HEADERS.
42840
42841 2009-11-11  Eric Blake  <ebb9@byu.net>
42842
42843         mkfifoat: use new modules for Solaris and BSD bugs
42844         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42845         * lib/mkfifoat.c (mknodat): Split...
42846         * lib/mknodat.c (mknodat): ...into new file.
42847         * modules/mkfifoat (Files): Ship new file.
42848         (Depends-on): Add mkfifo, mknod.
42849         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42850         (Depends-on): Add symlink.
42851         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42852         redundant with test_mkfifo.h.
42853         (do_mkfifoat, do_mknodat): New helpers.
42854
42855         mknod: new module
42856         * modules/mknod: New file.
42857         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42858         * lib/mknod.c (mknod): Likewise.
42859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42860         defaults.
42861         * modules/sys_stat (Makefile.am): Substitute them.
42862         * lib/sys_stat.in.h (mknod): Declare replacement.
42863         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42864         Document it.
42865         * doc/posix-functions/mknod.texi (mknod): Likewise.
42866         * modules/mknod-tests: New test.
42867         * tests/test-mknod.c: Likewise.
42868
42869         mkfifo: new module
42870         * modules/mkfifo: New file.
42871         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42872         * lib/mkfifo.c (mkfifo): Likewise.
42873         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42874         defaults.
42875         * modules/sys_stat (Makefile.am): Substitute them.
42876         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42877         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42878         Document it.
42879         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42880         * modules/mkfifo-tests: New test.
42881         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42882         from test-mkfifoat.c.
42883         * tests/test-mkfifo.c: New file.
42884
42885         readlink: detect FreeBSD bug
42886         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42887         slash on symlink.
42888         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42889         * tests/test-readlink.h (test_readlink): Enhance test.
42890
42891         symlink: detect FreeBSD bug
42892         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42893         slash on symlink.
42894         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42895         * tests/test-symlink.h (test_symlink): Enhance test.
42896
42897 2009-11-10  Eric Blake  <ebb9@byu.net>
42898
42899         link: detect FreeBSD bug
42900         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42901         symlink.
42902         * doc/posix-functions/link.texi (link): Document the bug.
42903         * tests/test-link.h (test_link): Enhance test.
42904         * tests/test-linkat.c (main): Update caller.
42905
42906         unlink, remove: detect FreeBSD bug
42907         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42908         slash on symlink.
42909         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42910         * doc/posix-functions/remove.texi (remove): Likewise.
42911         * tests/test-unlink.h (test_unlink): Enhance test.
42912         * tests/test-remove.c (main): Likewise.
42913
42914 2009-11-09  Eric Blake  <ebb9@byu.net>
42915
42916         rename: detect FreeBSD bug
42917         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42918         slash on symlink.
42919         * modules/renameat-tests (Depends-on): Add filenamecat.
42920         * tests/test-rename.h (test_rename): Allow one more errno.
42921         * tests/test-renameat.c (main): Likewise.
42922         * doc/posix-functions/rename.texi (rename): Document the bug.
42923
42924         open: detect FreeBSD bug
42925         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42926         symlink.
42927         * doc/posix-functions/open.texi (open): Document the bug.
42928         * doc/posix-functions/utimes.texi (utimes): Likewise.
42929         * tests/test-open.h (test_open): Add parameters, and test symlink
42930         handling.
42931         * tests/test-open.c (main): Adjust caller.
42932         * tests/test-fcntl-safer.c (main): Likewise.
42933         * modules/open-tests (Depends-on): Add stdbool, symlink.
42934         * modules/fcntl-safer-tests (Depends-on): Likewise.
42935         * tests/test-openat.c (main): Add test-open tests.
42936
42937         stat: detect FreeBSD bug
42938         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42939         symlink.
42940         * doc/posix-functions/stat.texi (stat): Document the bug.
42941         * tests/test-stat.h (test_stat_func): Add argument.
42942         * tests/test-stat.c (main): Adjust caller.
42943         * tests/test-fstatat.c (main): Likewise.
42944         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42945         Reported by Jim Meyering.
42946
42947 2009-11-09  James Youngman  <jay@gnu.org>
42948
42949         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42950         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42951
42952 2009-11-08  Jim Meyering  <meyering@redhat.com>
42953
42954         utimens: remove invalid futimesat call
42955         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42956         It used the file descriptor of the target file as the DIR_FD
42957         parameter and NULL as the file name.  That caused failure with
42958         errno == EFAULT on FreeBSD-8.0-rc2
42959
42960 2009-11-07  Eric Blake  <ebb9@byu.net>
42961
42962         fflush, freadseek: use fseeko, not fseek
42963         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42964         (clear_ungetc_buffer): Avoid potential problems on large files.
42965         * lib/freadseek.c (freadseek): Likewise.
42966         * modules/freadseek (Depends-on): Add fseeko.
42967         * modules/fseek (configure.ac): Set a witness.
42968         * tests/test-fflush.c (main): Use fseeko.
42969         * tests/test-fpurge.c (fseek): Disable link warning.
42970         * tests/test-freadable.c (fseek): Likewise.
42971         * tests/test-freading.c (fseek): Likewise.
42972         * tests/test-fseeko.c (fseek): Likewise.
42973         * tests/test-ftell.c (fseek): Likewise.
42974         * tests/test-ftello.c (fseek): Likewise.
42975         * tests/test-fwritable.c (fseek): Likewise.
42976         * tests/test-fwriting.c (fseek): Likewise.
42977
42978 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42979
42980         * modules/memchr (Depends-on): Drop getpagesize dependency.
42981
42982 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42983
42984         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42985         Reported by Ludovic Courtès.
42986         * build-aux/pmccabe2html: Improve example usage.
42987         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42988
42989 2009-11-06  Jim Meyering  <meyering@redhat.com>
42990
42991         do-release-commit-and-tag: New module.
42992         Automate the release-commit and tag process.
42993         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42994         * modules/do-release-commit-and-tag: New file.
42995         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42996
42997 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42998
42999         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43000         because test-select.c uses inet_pton.
43001
43002 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43003
43004         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43005         GETADDRINFO_LIB.  Bump serial number.
43006         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43007         Suggested by Eric Blake <ebb9@byu.net>.
43008
43009 2009-11-05  Eric Blake  <ebb9@byu.net>
43010
43011         strtod: detect darwin bug
43012         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43013         Reported by Leo Davis.
43014
43015         freopen-safer: new module
43016         * modules/freopen-safer: New module.
43017         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43018         * lib/freopen-safer.c (freopen_safer): New file.
43019         * lib/stdio-safer.h (freopen_safer): New declaration.
43020         * lib/stdio--.h (freopen): New override.
43021         * MODULES.html.sh (File stream based Input/Output): Mention it.
43022         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43023         freopen-safer module.
43024         * doc/posix-functions/stderr.texi (stderr): Likewise.
43025         * doc/posix-functions/stdin.texi (stdin): Likewise.
43026         * doc/posix-functions/stdout.texi (stdout): Likewise.
43027         * modules/freopen-safer-tests: New test.
43028         * tests/test-reopen-safer.c: New file.
43029
43030 2009-11-05  Jim Meyering  <meyering@redhat.com>
43031
43032         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43033         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43034
43035 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43036
43037         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43038
43039 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43040
43041         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43042
43043 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43044
43045         Fix link error.
43046         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43047         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43048
43049 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43050
43051         * tests/test-func.c: Also test value of __func__.
43052
43053 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43054
43055         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43056         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43057
43058 2009-11-05  Bruno Haible  <bruno@clisp.org>
43059
43060         Fix link error.
43061         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43062         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43063         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43064
43065 2009-11-05  Bruno Haible  <bruno@clisp.org>
43066
43067         Tests for module 'inet_pton'.
43068         * modules/inet_pton-tests: New file.
43069         * tests/test-inet_pton.c: New file.
43070
43071 2009-11-05  Bruno Haible  <bruno@clisp.org>
43072
43073         Tests for module 'inet_ntop'.
43074         * modules/inet_ntop-tests: New file.
43075         * tests/test-inet_ntop.c: New file.
43076
43077 2009-11-04  Eric Blake  <ebb9@byu.net>
43078
43079         stdlib-safer: wrap all mkstemp variants
43080         * modules/mkostemp (configure.ac): Set witness.
43081         * modules/mkostemps (configure.ac): Likewise.
43082         * modules/mkstemps (configure.ac): Likewise.
43083         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43084         (mkstemps_safer): Wrap more functions.
43085         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43086         wrapping.
43087         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43088         (mkstemps_safer): Implement the wrappers.
43089
43090         mkstemps, mkostemps: new modules
43091         * modules/mkostemps: New module.
43092         * modules/mkstemps: Likewise.
43093         * lib/mkostemps.c (mkostemps): New file.
43094         * lib/mkstemps.c (mkstemps): Likewise.
43095         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43096         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43098         * modules/stdlib (Makefile.am): Substitute them.
43099         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43100         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43101         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43102         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43103         * MODULES.html.sh (File system functions): Mention them.
43104
43105         tempname: resync from glibc
43106         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43107         same values for __GT_FILE as glibc.  Abort even when assertions
43108         are disabled.
43109         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43110         match its value otherwise.  Allow idempotent inclusion.
43111         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43112         * lib/mkostemp.c (mkostemp): Likewise.
43113         * lib/mkstemp.c (mkstemp): Likewise.
43114         * lib/tmpfile.c (tmpfile): Likewise.
43115         * NEWS: Document this.
43116
43117         utimens: fix use of futimens on older Linux
43118         * lib/utimens.c (fdutimens): Use updated, rather than original,
43119         timespec to avoid bug in older Linux kernel.
43120         Reported by Simon Josefsson.
43121
43122 2009-11-04  Bruno Haible  <bruno@clisp.org>
43123
43124         Make num_processors more flexible and consistent.
43125         * lib/nproc.h (enum nproc_query): New type.
43126         (num_processors): Add a 'query' argument.
43127         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43128         (num_processors): Add a 'query' argument. Test the value of the
43129         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43130         mingw, count the number of CPUs available for the current process.
43131         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43132         Check for sched_getaffinity and sched_getaffinity_np.
43133         * modules/nproc (Depends-on): Add c-ctype, extensions.
43134         * NEWS: Mention the change.
43135
43136 2009-11-03  Bruno Haible  <bruno@clisp.org>
43137
43138         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43139
43140 2009-11-03  Jim Meyering  <meyering@redhat.com>
43141
43142         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43143         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43144         if it is defined.
43145
43146 2009-11-02  Eric Blake  <ebb9@byu.net>
43147
43148         mktime, timegm: share common declaration
43149         * lib/mktime-internal.h: New file.
43150         * lib/mktime.c: Use it rather than open-coding a declaration.
43151         * lib/timegm.c: Likewise.
43152         * modules/mktime (Files): Ship it.
43153         * modules/timegm (Files): Likewise.
43154         Suggested by Bruno Haible.
43155
43156         test-update-copyright: update test to match script changes
43157         * tests/test-update-copyright.sh: Avoid hard-coding perl
43158         location.  Don't update *.bak created by earlier runs.
43159
43160 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43161             Simon Josefsson  <simon@josefsson.org>
43162             Bruno Haible  <bruno@clisp.org>
43163
43164         Fix link error on Solaris 8.
43165         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43166         also in libnsl. Define also INET_PTON_LIB.
43167         * modules/inet_pton (Link): New section.
43168
43169 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43170             Bruno Haible  <bruno@clisp.org>
43171
43172         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43173         * modules/inet_ntop (Link): New section.
43174         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43175
43176 2009-11-02  Eric Blake  <ebb9@byu.net>
43177
43178         maint: avoid compiler warnings in m4 macros
43179         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43180         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43181
43182 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43183
43184         * m4/pmccabe2html.m4: Remove file.
43185         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43186         function.  Change maintainer.
43187         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43188         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43189         Courtès).
43190
43191 2009-10-31  Eric Blake  <ebb9@byu.net>
43192
43193         fseeko: fix m4 regression
43194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43195         regression from 2009-10-27.
43196         Reported by Ralf Wildenhues.
43197
43198 2009-10-31  Jim Meyering  <meyering@redhat.com>
43199
43200         inttostr: aesthetics and improved (compile-time) safety
43201         Define inttype_is_signed rather than inttype_is_unsigned,
43202         since the sole use is via "#if inttype_is_signed".
43203         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43204         inttype_is_unsigned.
43205         * lib/offtostr.c (inttype_is_signed): Likewise.
43206         * lib/uinttostr.c (inttype_is_signed): Likewise.
43207         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43208         * lib/inttostr.c (inttostr): Use verify to cross-check the
43209         inttype_is_signed value and the signedness of the actual type.
43210         * modules/inttostr (Depends-on): Add verify.
43211
43212 2009-10-30  Eric Blake  <ebb9@byu.net>
43213
43214         build: avoid compiler warnings
43215         * lib/fchmodat.c (lchmod): Mark unused variables.
43216         * lib/getopt.c (_getopt_initialize): Likewise.
43217         * lib/mktime.c (__mktime_internal): Provide prototype.
43218         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43219         older gcc that do not understand #pragma GCC diagnostic.
43220         * lib/uinttostr.c (inttype_is_unsigned): Define.
43221         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43222
43223 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43224
43225         stat: fix compilation on AIX
43226         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43227         only see struct stat64.
43228
43229 2009-10-30  Eric Blake  <ebb9@byu.net>
43230
43231         exclude: make more robust
43232         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43233         rather than masking a coding bug.
43234         Suggested by Bruno Haible.
43235
43236 2009-10-30  Jim Meyering  <meyering@redhat.com>
43237
43238         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43239         Rather than putting #!/usr/bin/perl on the first line,
43240         start with a variant of what's recommended by "man perlrun" that
43241         invokes the first "perl" program from your shell's search path.
43242         * build-aux/gitlog-to-changelog: Replace #!... as above.
43243         Add a "Local Variables" perl mode setting.
43244         Prompted by a patch from Ludovic Courtès.
43245         Improved by Eric Blake.
43246         * build-aux/useless-if-before-free: Likewise.
43247         * build-aux/announce-gen: Likewise.
43248         * build-aux/update-copyright: Likewise.
43249
43250 2009-10-29  Eric Blake  <ebb9@byu.net>
43251
43252         filenamecat-lgpl: adjust clients
43253         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43254         filenamecat.
43255         * modules/renameat (Depends-on): Likewise.
43256
43257         filenamecat: split into filenamecat-lgpl
43258         * modules/filenamecat-lgpl: New module.
43259         * modules/filenamecat (Files): Move library-safe files into
43260         filenamecat-lgpl.
43261         (Depends-on): Add filenamecat-lgpl.
43262         (configure.ac): Declare witness.
43263         * lib/filenamecat.h (file_name_concat): Only declare when using
43264         GPL module.
43265         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43266         Move...
43267         * lib/filenamecat-lgpl.c: ...into new file.
43268         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43269         (gl_FILE_NAME_CONCAT): Use it.
43270         * MODULES.html.sh (File system functions): Mention new module.
43271
43272         argp: avoid memory leak
43273         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43274         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43275         base_name, since the latter malloc()s and can call exit().
43276         Leak introduced 2006-07-03.
43277
43278         dirname-lgpl: adjust clients that don't need full dirname
43279         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43280         * modules/filenamecat (Depends-on): Likewise.
43281         * modules/linkat (Depends-on): Likewise.
43282         * modules/mkancesdirs (Depends-on): Likewise.
43283         * modules/mkdir (Depends-on): Likewise.
43284         * modules/openat (Depends-on): Likewise.
43285         * modules/savewd (Depends-on): Likewise.
43286         * modules/rename (Depends-on): Likewise.
43287         (License): Relax license.
43288         * modules/mkdir-tests (Depends-on): Drop progname.
43289         (Makefile.am): Delete unneeded LDADD.
43290         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43291
43292         dirname: split into dirname-lgpl
43293         * modules/dirname-lgpl: New module.
43294         * modules/dirname (Files): Move library-safe files into
43295         dirname-lgpl.
43296         (Depends-on): Add dirname-lgpl.
43297         (configure.ac): Declare witness.
43298         * modules/double-slash-root (License): Relax license.
43299         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43300         module.
43301         * lib/dirname.c (dir_len, mdir_name): Move...
43302         * lib/dirname-lgpl.c: ...into new file.
43303         * lib/basename.c (last_component, base_len): Move...
43304         * lib/basename-lgpl.c: ...into new file.
43305         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43306         (gl_DIRNAME): Use it.
43307         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43308         Mention new module.
43309         * modules/dirname-tests (Depends-on): Add progname.
43310         * tests/test-dirname.c (program_name): Delete.
43311
43312         mkdir: make safe for libraries
43313         * modules/mkdir (Depends-on): Drop xalloc.
43314         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43315         exit.
43316
43317         tests: avoid some compiler warnings
43318         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43319         literals.
43320         * tests/test-memchr.c (main): Avoid type mismatch.
43321         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43322         * tests/test-base64.c (main): Likewise.
43323         * tests/test-getdelim.c (main): Likewise.
43324         * tests/test-gethostname.c (main): Likewise.
43325         * tests/test-getline.c (main): Likewise.
43326         * tests/test-netinet_in.c (main): Likewise.
43327         * tests/test-select.c (open_server_socket, main): Likewise.
43328         * tests/test-select-stdin.c (main): Likewise.
43329         * tests/test-sockets.c (main): Likewise.
43330         * tests/test-strsignal.c (main): Likewise.
43331         * tests/test-sys_select.c (main): Likewise.
43332         * tests/test-sys_socket.c (main): Likewise.
43333         * tests/test-u64.c (main): Likewise.
43334         * tests/test-xfprintf-posix.c (main): Likewise.
43335         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43336
43337         sockets: avoid compiler warning
43338         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43339
43340         maint: detect usage(1) and other suspicious exits
43341         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43342
43343 2009-10-29  Jim Meyering  <meyering@redhat.com>
43344
43345         timespec: long-to-int truncation could make timespec_cmp malfunction
43346         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43347         a multiple of 2^32 nanoseconds as no difference.
43348
43349 2009-10-28  Jim Meyering  <meyering@redhat.com>
43350
43351         fprintftime: wrap macro code argument in "do {...} while(0)"
43352         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43353         cpy macro must be a statement that can be followed by a semicolon.
43354         Now that the else clause contains a comment and is hence longer
43355         than one line, I require curly braces.  That in turn requires
43356         that we wrap this code block in the standard do...while(0).
43357
43358         fprintftime: remove stray semicolon from previous change
43359         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43360
43361         fprintftime: avoid a warning about ignored fwrite return value
43362         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43363         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43364         that is unsafe.
43365         * modules/fprintftime (Depends-on): Add ignore-value.
43366
43367         exclude: avoid an unwarranted warning
43368         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43369
43370 2009-10-27  Eric Blake  <ebb9@byu.net>
43371
43372         fseek: avoid compilation failure when fflush is replaced
43373         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43374         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43375         module is in use.
43376         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43377         module is not in use; since REPLACE_FSEEK worked otherwise.
43378         (GNULIB_FTELLO): Likewise for ftell.
43379         Reported by Ian Beckwith and others.
43380
43381 2009-10-27  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43384         Reported by Jim Meyering.
43385
43386 2009-10-27  Jim Meyering  <jim@meyering.net>
43387             Bruno Haible  <bruno@clisp.org>
43388
43389         Avoid warning despite dropping the return value of fwrite.
43390         * lib/unicodeio.c: Include ignore-value.h.
43391         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43392         * modules/unicodeio (Depends-on): Add ignore-value.
43393
43394 2009-10-26  Eric Blake  <ebb9@byu.net>
43395
43396         areadlinkat: fix fallback path
43397         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43398         pointer and zero.
43399
43400 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43401
43402         Use a better IO block size for modern systems
43403         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43404         * lib/md2.c: Likewise.
43405         * lib/md4.c: Likewise.
43406         * lib/md5.c: Likewise.
43407         * lib/sha1.c: Likewise.
43408         * lib/sha256.c: Likewise.
43409         * lib/sha512.c: Likewise.
43410
43411 2009-10-22  Eric Blake  <ebb9@byu.net>
43412
43413         tests: avoid several compiler warnings
43414         * tests/test-getcwd.c (main): Avoid buffer underflow.
43415         * tests/test-getdate.c (main): String literals are not safe with
43416         putenv, so use setenv.  Declare unused argument.
43417         * modules/getdate-tests (Depends-on): Add setenv.
43418         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43419         problems with string literals in char *.
43420         * tests/test-hash.c (main): Avoid shadowing declaration.
43421         (insert_new): Treat string literals as char const *.
43422         * tests/test-getopt.h (test_getopt): Likewise.
43423         (getopt_loop): Alter types to minimize casting elsewhere.
43424         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43425         (test_getopt_long_posix): Likewise.
43426         (do_getopt_long): Add wrapper to minimize casting.
43427         * tests/test-atexit.c (clear_temp_file): Use void.
43428         * tests/test-areadlink-with-size.c (main): Declare unused
43429         arguments.
43430         * tests/test-areadlink.c (main): Likewise.
43431         * tests/test-areadlinkat-with-size.c (main): Likewise.
43432         * tests/test-areadlinkat.c (main): Likewise.
43433         * tests/test-canonicalize-lgpl.c (main): Likewise.
43434         * tests/test-canonicalize.c (main): Likewise.
43435         * tests/test-dirent-safer.c (main): Likewise.
43436         * tests/test-dirname.c (main): Likewise.
43437         * tests/test-dup2.c (main): Likewise.
43438         * tests/test-fchdir.c (main): Likewise.
43439         * tests/test-fcntl-h.c (main): Likewise.
43440         * tests/test-fcntl-safer.c (main): Likewise.
43441         * tests/test-fdopendir.c (main): Likewise.
43442         * tests/test-fdutimensat.c (main): Likewise.
43443         * tests/test-fflush.c (main): Likewise.
43444         * tests/test-filenamecat.c (main): Likewise.
43445         * tests/test-filevercmp.c (main): Likewise.
43446         * tests/test-fopen-safer.c (main): Likewise.
43447         * tests/test-fopen.c (main): Likewise.
43448         * tests/test-fpending.c (main): Likewise.
43449         * tests/test-fpurge.c (main): Likewise.
43450         * tests/test-freading.c (main): Likewise.
43451         * tests/test-fstatat.c (main): Likewise.
43452         * tests/test-fsync.c (main): Likewise.
43453         * tests/test-futimens.c (main): Likewise.
43454         * tests/test-getndelim2.c (main): Likewise.
43455         * tests/test-gettimeofday.c (main): Likewise.
43456         * tests/test-getopt.c (main): Likewise.
43457         * tests/test-i-ring.c (main): Likewise.
43458         * tests/test-inttypes.c (main): Likewise.
43459         * tests/test-link.c (main): Likewise.
43460         * tests/test-lstat.c (main): Likewise.
43461         * tests/test-math.c (main): Likewise.
43462         * tests/test-md5.c (main): Likewise.
43463         * tests/test-memchr2.c (main): Likewise.
43464         * tests/test-memrchr.c (main): Likewise.
43465         * tests/test-mkdir.c (main): Likewise.
43466         * tests/test-mkdirat.c (main): Likewise.
43467         * tests/test-mkfifoat.c (main): Likewise.
43468         * tests/test-open.c (main): Likewise.
43469         * tests/test-openat-safer.c (main): Likewise.
43470         * tests/test-openat.c (main): Likewise.
43471         * tests/test-quotearg.c (main): Likewise.
43472         * tests/test-rawmemchr.c (main): Likewise.
43473         * tests/test-readlink.c (main): Likewise.
43474         * tests/test-remove.c (main): Likewise.
43475         * tests/test-rename.c (main): Likewise.
43476         * tests/test-renameat.c (main): Likewise.
43477         * tests/test-rmdir.c (main): Likewise.
43478         * tests/test-sha1.c (main): Likewise.
43479         * tests/test-signal.c (main): Likewise.
43480         * tests/test-sigaction.c (main): Likewise.
43481         * tests/test-stat.c (main): Likewise.
43482         * tests/test-stat-time.c (main): Likewise.
43483         * tests/test-stddef.c (main): Likewise.
43484         * tests/test-stdint.c (main): Likewise.
43485         * tests/test-stdio.c (main): Likewise.
43486         * tests/test-stdlib.c (main): Likewise.
43487         * tests/test-strchrnul.c (main): Likewise.
43488         * tests/test-strerror.c (main): Likewise.
43489         * tests/test-string.c (main): Likewise.
43490         * tests/test-strtod.c (main): Likewise.
43491         * tests/test-strverscmp.c (main): Likewise.
43492         * tests/test-symlink.c (main): Likewise.
43493         * tests/test-symlinkat.c (main): Likewise.
43494         * tests/test-sys_stat.c (main): Likewise.
43495         * tests/test-sys_time.c (main): Likewise.
43496         * tests/test-time.c (main): Likewise.
43497         * tests/test-unistd.c (main): Likewise.
43498         * tests/test-unlink.c (main): Likewise.
43499         * tests/test-unlinkat.c (main): Likewise.
43500         * tests/test-utimens.c (main): Likewise.
43501         * tests/test-utimensat.c (main): Likewise.
43502         * tests/test-version-etc.c (main): Likewise.
43503         * tests/test-wchar.c (main): Likewise.
43504         * tests/test-wctype.c (main): Likewise.
43505         * tests/test-xprintf-posix.c (main): Likewise.
43506         * tests/test-posixtm.c (main): Likewise.
43507         (STREQ): Delete unused macro.
43508         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43509         shadowed variables.
43510         * tests/test-memchr.c (main): Likewise.
43511
43512 2009-10-21  Eric Blake  <ebb9@byu.net>
43513
43514         areadlinkat: avoid failure on older glibc
43515         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43516         rather than mis-comparing 0 against FUNC_RESULT of char*.
43517
43518 2009-10-21  Bruno Haible  <bruno@clisp.org>
43519
43520         * modules/stpncpy (License): Relicense under LGPLv2+.
43521         Reported by David Lutterkort <lutter@redhat.com>.
43522
43523 2009-10-20  Eric Blake  <ebb9@byu.net>
43524
43525         utimensat: work around Solaris 9 bug
43526         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43527         has trailing slash bugs.
43528         * tests/test-lutimens.h (test_lutimens): Enhance test.
43529         * tests/test-utimens.h (test_utimens): Likewise.
43530         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43531         * doc/posix-functions/utimes.texi (utimes): Likewise.
43532         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43533         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43534         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43535         * doc/posix-functions/futimens.texi (futimens): Likewise.
43536
43537         fdutimensat: new module
43538         * modules/fdutimensat: New file.
43539         * lib/fdutimensat.c (fdutimensat): Likewise.
43540         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43541         * MODULES.html.sh (File system functions): Mention module.
43542         * modules/fdutimensat-tests: New test.
43543         * tests/test-fdutimensat.c: Likewise.
43544
43545         doc: regenerate INSTALL
43546         * doc/INSTALL: Reflect recent autoconf update.
43547         * doc/INSTALL.ISO: Likewise.
43548         * doc/INSTALL.UTF-8: Likewise.
43549
43550 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43551
43552         acl: warn if ACL support is not detected
43553         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43554
43555 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43556
43557         * lib/nproc.h: Add extern "C" block for C++.
43558
43559 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43560             Bruno Haible  <bruno@clisp.org>
43561
43562         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43563         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43564         * doc/posix-functions/isalpha.texi: Likewise.
43565         * doc/posix-functions/isblank.texi: Likewise.
43566         * doc/posix-functions/iscntrl.texi: Likewise.
43567         * doc/posix-functions/isdigit.texi: Likewise.
43568         * doc/posix-functions/isgraph.texi: Likewise.
43569         * doc/posix-functions/islower.texi: Likewise.
43570         * doc/posix-functions/isprint.texi: Likewise.
43571         * doc/posix-functions/ispunct.texi: Likewise.
43572         * doc/posix-functions/isspace.texi: Likewise.
43573         * doc/posix-functions/isupper.texi: Likewise.
43574         * doc/posix-functions/isxdigit.texi: Likewise.
43575
43576 2009-10-18  Bruno Haible  <bruno@clisp.org>
43577
43578         Tests for module 'isblank'.
43579         * modules/isblank-tests: New file.
43580         * tests/test-isblank.c: New file.
43581
43582         New module 'isblank'.
43583         * lib/isblank.c: New file.
43584         * m4/isblank.m4: New file.
43585         * modules/isblank: New file.
43586         * doc/posix-functions/isblank.texi: Mention the new module.
43587
43588 2009-10-18  Bruno Haible  <bruno@clisp.org>
43589
43590         New module 'ctype'.
43591         * lib/ctype.in.h: New file.
43592         * m4/ctype.m4: New file.
43593         * modules/ctype: New file.
43594         * doc/posix-headers/ctype.texi: Mention the new module.
43595
43596 2009-10-18  Jim Meyering  <meyering@redhat.com>
43597
43598         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43599         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43600         right after its initialization, rather than farther down.
43601         Keeping these in close proximity makes it easier to ensure
43602         that each such variable is initialized.  E.g.,
43603
43604             LIB_CLOCK_GETTIME=
43605             AC_SUBST([LIB_CLOCK_GETTIME])
43606
43607         This change also increments these serial numbers.
43608         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43609         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43610         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43611
43612 2009-10-18  Bruno Haible  <bruno@clisp.org>
43613
43614         Don't let environment variables perturb build.
43615         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43616         (gl_PREREQ_GETHRXTIME): ... not here.
43617
43618 2009-10-18  Bruno Haible  <bruno@clisp.org>
43619
43620         Avoid symlink attack in localcharset module.
43621         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43622         (O_NOFOLLOW): Define fallback.
43623         (get_charset_aliases): Don't open the file if it is a symbolic link.
43624         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43625         gl_FCNTL_H.
43626         (gl_FCNTL_H): Require it.
43627         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43628         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43629         Reported by Fergal Glynn <fglynn@veracode.com>.
43630
43631 2009-10-18  Bruno Haible  <bruno@clisp.org>
43632
43633         Implement nproc for mingw.
43634         * lib/nproc.c: Include <windows.h>
43635         (num_processors): On native Windows platforms, try GetSystemInfo.
43636
43637 2009-10-18  Bruno Haible  <bruno@clisp.org>
43638
43639         Implement nproc for IRIX.
43640         * lib/nproc.c: Include <sys/sysmp.h>.
43641         (num_processors): On IRIX systems, try sysmp.
43642         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43643
43644 2009-10-18  Bruno Haible  <bruno@clisp.org>
43645
43646         Implement nproc for HP-UX.
43647         * lib/nproc.c: Include <sys/pstat.h>
43648         (num_processors): On HP-UX systems, try pstat_getdynamic.
43649         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43650         pstat_getdynamic.
43651
43652 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43653             Bruno Haible  <bruno@clisp.org>
43654
43655         Implement nproc for NetBSD, OpenBSD.
43656         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43657         (ARRAY_SIZE): New macro.
43658         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43659         * m4/nproc.m4: New file.
43660         * modules/nproc (Files): Add m4/nproc.m4.
43661         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43662         (Makefile.am): Instead, augment lib_SOURCES.
43663
43664 2009-10-18  Bruno Haible  <bruno@clisp.org>
43665
43666         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43667         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43668         sys/param.h.
43669
43670 2009-10-16  Eric Blake  <ebb9@byu.net>
43671
43672         utimensat: new module
43673         * modules/utimensat: New file.
43674         * lib/utimensat.c (utimensat): Likewise.
43675         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43676         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43677         so we can work around Linux bugs.
43678         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43679         * modules/sys_stat (Makefile.am): Substitute them.
43680         * lib/sys_stat.in.h (utimensat): Declare it.
43681         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43682         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43683         * modules/utimensat-tests: New test.
43684         * tests/test-utimensat.c: Likewise.
43685
43686         utimens: let lutimens work on non-symlinks
43687         * lib/utimens.c (lutimens): Fall back to utimens rather than
43688         failing with ENOSYS, when file is not a symlink.
43689         (utimens): Reduce redirection.
43690         * tests/test-lutimens.h (test_lutimens): Update test to cover
43691         non-symlinks.
43692         * tests/test-utimens.h (test_utimens): Update test to cover
43693         symlinks.
43694         * tests/test-utimens.c (main): Update caller.
43695
43696         utimens: cache whether utimensat syscall works
43697         * lib/utimens.c (utimensat_works_really): New cache variable.
43698         (fdutimens, lutimens): Use it to avoid failing syscall.
43699
43700         test-stat-time, test-utimens: improve portability
43701         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43702         ext4 on alpha, and for cygwin.
43703         * tests/test-utimens-common.h: New file.
43704         (nap): Factor delays into single function.
43705         * tests/test-lutimens.h (test_lutimens): Use new header.
43706         * tests/test-futimens.h (test_futimens): Likewise.
43707         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43708         timestamps to occur from same machine, as was done previously for
43709         test_utimens.
43710         * modules/utimens-tests (Files): Ship new file.
43711         * modules/futimens-tests (Files): Likewise.
43712         Reported in part by Jim Meyering.
43713
43714         sys_stat: sort replacement declarations
43715         * lib/sys_stat.in.h: Sort declarations.
43716         * lib/futimens.c (futimens): Fix typo.
43717
43718 2009-10-15  Jim Meyering  <meyering@redhat.com>
43719
43720         don't let environment settings perturb build
43721         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43722         could cause a configure-time and/or build-time malfunction.
43723         Typically, a configure-time function-in-library test is performed
43724         via code like this:
43725
43726           LIB_VAR=
43727           AC_SUBST([LIB_VAR])
43728           prefix_saved_LIBS=$LIBS
43729             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43730                        [test "$ac_cv_search_FUNC" = "none required" ||
43731                         LIB_VAR=$ac_cv_search_FUNC])
43732           LIBS=$prefix_saved_LIBS
43733
43734         However, in each of the files affected by this change, the LIB_VAR=
43735         initialization was omitted.  Thus, when set in the environment, its
43736         value would propagate into generated Makefiles when FUNC is not found
43737         in LIB_NAME.
43738         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43739         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43741
43742 2009-10-14  Eric Blake  <ebb9@byu.net>
43743
43744         fchdir: avoid infinite recursion in mingw
43745         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43746         recursing.
43747
43748         test-stat-time: port to mingw
43749         * tests/test-stat-time.c (force_unlink): Return a value.
43750         (test_ctime) [W32]: Fix compilation error.
43751         (nap): Don't call usleep with too large an argument.  Use
43752         force_unlink.
43753         * doc/pastposix-functions/usleep.texi (usleep): Document the
43754         portability issue.
43755
43756 2009-10-13  Jim Meyering  <meyering@redhat.com>
43757
43758         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43759         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43760         * modules/pipe-filter-ii: Likewise.
43761         * modules/sys_socket-tests: Likewise.
43762         * modules/tsearch-tests: Likewise.
43763         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43764         (check): Depend on it.
43765
43766 2009-10-12  Eric Blake  <ebb9@byu.net>
43767
43768         utimens-tests: port to NFS file systems
43769         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43770         comparisons to avoid spurious failures from timestamp drift
43771         between NFS machines.
43772
43773 2009-10-12  Eric Blake  <ebb9@byu.net>
43774
43775         stat-time-tests: minor cleanups
43776         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43777         * tests/test-stat-time.c (nap): Separate assignment from call.
43778         Suggested by Paolo Bonzini and Bruno Haible.
43779
43780         sys_stat: guarantee struct timespec
43781         * lib/sys_stat.in.h (includes): Always include <time.h>
43782         * modules/sys_stat (Depends-on): Add time.
43783         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43784         mode_t permission values.
43785         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43786         get at subsecond timestamps.
43787
43788 2009-10-10  Eric Blake  <ebb9@byu.net>
43789
43790         futimens: new module
43791         * modules/futimens: New file.
43792         * lib/futimens.c (futimens): Likewise.
43793         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43794         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43795         we can work around Linux bugs.
43796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43797         * modules/sys_stat (Makefile.am): Substitute them.
43798         * lib/sys_stat.in.h (futimens): Declare it.
43799         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43800         * doc/posix-functions/futimens.texi (futimens): Likewise.
43801         * modules/futimens-tests: New test.
43802         * tests/test-futimens.c: Likewise.
43803
43804         utimens: introduce fdutimens
43805         * lib/utimens.h (fdutimens): New prototype.
43806         * lib/utimens.c (gl_futimens): Move guts...
43807         (fdutimens): ...to new interface.
43808         * tests/test-utimens.c (do_fdutimens): Use it.
43809
43810         utimens: add UTIME_NOW and UTIME_OMIT support
43811         * lib/utimens.c (validate_timespec, update_timespec): New helper
43812         functions.
43813         (gl_futimens, lutimens): Use them.
43814         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43815         stdbool, sys_stat.
43816         (Link): Mention resulting library dependency.
43817         * modules/utimecmp (Link): Likewise.
43818         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43819         (Makefile.am): Pick up library dependency.
43820         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43821         definition.
43822         * tests/test-sys_stat.c: Test the definitions.
43823         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43824         * NEWS: Document library dependency.
43825
43826         utimecmp: support symlink timestamps
43827         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43828         hashing when possible.  Use pathconf when available.
43829         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43830         * modules/utimecmp (Depends-on): Add lstat.
43831
43832         utimens: add lutimens interface
43833         * lib/utimens.c (lutimens): New function.
43834         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43835         * lib/utimens.h (lutimens): Declare new interface.
43836         * tests/test-utimens.c (main): Enhance test.
43837         * tests/test-lutimens.h (test_lutimens): New file.
43838         * modules/utimens-tests (Files): Distribute it.
43839         (Depends-on): Add symlink.
43840         (configure.ac): Check for usleep.
43841
43842         utimens: validate futimens usage
43843         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43844         fewer syscalls on failure later on.  Avoid compiler warning on
43845         mingw.
43846         * modules/utimens (Depends-on): Add dup2.
43847
43848         utimens: add test
43849         * modules/utimens-tests: New test.
43850         * tests/test-utimens.h: New file.
43851         * tests/test-futimens.h: Likewise.
43852         * tests/test-utimens.c: Likewise.
43853
43854         doc: mention timestamp portability issues
43855         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43856         instead.
43857         * doc/posix-functions/utime.texi (utime): Likewise.
43858         * doc/posix-functions/utimes.texi (utimes): Likewise.
43859         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43860         instead.
43861         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43862         module.
43863         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43864         Mention weakness with symlink timestamps.
43865         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43866         to utimensat/futimens instead.
43867         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43868
43869         test-dup2: enhance test
43870         * tests/test-dup2.c (main): Also check AT_FDCWD.
43871
43872         test-stat-time: avoid more spurious failures
43873         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43874         xfs; and avoid race if the two timestamps cross quantization edge.
43875
43876         relocatable: prefer 'file system' over 'filesystem'
43877         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43878         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43879         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43880         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43881         * lib/relocatable.c (compute_curr_prefix): Likewise.
43882
43883 2009-10-10  Jim Meyering  <meyering@redhat.com>
43884
43885         stat-time-tests: check for the usleep function
43886         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43887
43888 2009-10-10  Bruno Haible  <bruno@clisp.org>
43889
43890         * modules/xnanosleep: Put the Link section after the Include section.
43891
43892 2009-10-09  Eric Blake  <ebb9@byu.net>
43893
43894         dup2: work around FreeBSD 6.1 bug
43895         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43896         * doc/posix-functions/dup2.texi (dup2): Document it.
43897         Reported by Nelson H. F. Beebe and Jim Meyering.
43898
43899         test-stat-time: port to buggy NFS clients
43900         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43901         (test_ctime): Also skip test if mtime and ctime are skewed.
43902
43903         maint: prefer 'file system' over 'filesystem'
43904         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43905         * doc/posix-functions/lstat.texi (lstat): Likewise.
43906         * lib/file-has-acl.c (file_has_acl): Likewise.
43907         * lib/fwriteerror.c [TEST]: Likewise.
43908         * tests/test-areadlink.h (test_areadlink): Likewise.
43909         * tests/test-areadlinkat-with-size.c (main): Likewise.
43910         * tests/test-areadlinkat.c (main): Likewise.
43911         * tests/test-canonicalize-lgpl.c (main): Likewise.
43912         * tests/test-canonicalize.c (main): Likewise.
43913         * tests/test-fstatat.c (main): Likewise.
43914         * tests/test-linkat.c (main): Likewise.
43915         * tests/test-lstat.h (test_lstat_func): Likewise.
43916         * tests/test-mkdir.h (test_mkdir): Likewise.
43917         * tests/test-readlink.h (test_readlink): Likewise.
43918         * tests/test-remove.c (main): Likewise.
43919         * tests/test-rename.h (test_rename): Likewise.
43920         * tests/test-renameat.c (main): Likewise.
43921         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43922         * tests/test-symlink.h (test_symlink): Likewise.
43923         * tests/test-symlinkat.c (main): Likewise.
43924         * tests/test-unlink.h (test_unlink_func): Likewise.
43925         * tests/test-unlinkat.c (main): Likewise.
43926
43927         maint: make realtime library usage explicit
43928         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43929         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43930         * modules/settime (Link): Likewise.
43931         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43932
43933         test-stat-time: speed up execution
43934         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43935         warning on mingw.
43936         (nap): New helper function.
43937         (prepare_test): Use it to reduce sleep time.
43938         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43939         execution.
43940         * modules/stat-time-tests (configure.ac): Check for usleep.
43941
43942 2009-10-09  Jim Meyering  <meyering@redhat.com>
43943
43944         selinux-h: always use getfilecon wrappers
43945         * lib/getfilecon.c: New file.
43946         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43947         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43948         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43949         (fgetfilecon): Provide a stub.
43950         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43951         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43952         file unconditionally.
43953         When <selinux/selinux.h> is found, arrange to use wrappers.
43954         * modules/selinux-h (Files): Add getfilecon.c.
43955         (Makefile.am): Substitute include-next-related bits
43956         into the now-always-generated selinux/selinux.h file.
43957         * doc/glibc-functions/lgetfilecon.texi: New file.
43958         * doc/glibc-functions/fgetfilecon.texi: New file.
43959         * doc/glibc-functions/getfilecon.texi: New file.
43960         * doc/glibc-functions/getfilecon-desc.texi: New file.
43961         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43962         which to pull in the new files.
43963         * MODULES.html.sh (Misc): Add selinux-h.
43964
43965 2009-10-08  Jim Meyering  <meyering@redhat.com>
43966
43967         unistd: fix comment typo
43968         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43969
43970 2009-10-08  Eric Blake  <ebb9@byu.net>
43971
43972         areadlink: use SIZE_MAX consistently
43973         * modules/areadlink (Depends-on): Add stdint.
43974         * modules/areadlink-with-size (Depends-on): Likewise.
43975         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43976         gives NULL; drop sys/types, since unistd gives size_t; and add
43977         stdint for SIZE_MAX.
43978         (SIZE_MAX): Rely on headers.
43979         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43980         and add stdint.
43981         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43982         (SIZE_MAX): Likewise.
43983         (INITIAL_BUF_SIZE): Turn into enum.
43984         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43985
43986 2009-10-08  Jim Meyering  <meyering@redhat.com>
43987
43988         areadlinkat: avoid compilation failure
43989         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43990         Fix typo in comment.
43991
43992 2009-10-07  Eric Blake  <ebb9@byu.net>
43993
43994         areadlinkat-with-size: new module
43995         * modules/areadlinkat-with-size: New module.
43996         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43997         * lib/areadlink.h (areadlinkat): Declare it.
43998         * MODULES.html.sh (File system functions): Mention it.
43999         * modules/areadlinkat-with-size-tests: New test.
44000         * tests/test-areadlinkat-with-size.c: New file.
44001
44002         xreadlinkat: new module
44003         * modules/xreadlinkat: New module.
44004         * lib/xreadlinkat.c (xreadlinkat): New file.
44005         * lib/xreadlink.h (xreadlinkat): Declare it.
44006         * MODULES.html.sh (File system functions): Mention it.
44007
44008         areadlinkat: new module
44009         * lib/at-func.c (FUNC_FAIL): New define.
44010         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44011         * modules/areadlinkat: New module.
44012         * lib/linkat.c (areadlinkat): Move...
44013         * lib/areadlinkat.c (areadlinkat): ...to new file.
44014         * lib/areadlink.h (areadlinkat): Declare it.
44015         * modules/linkat (Depends-on): Add areadlinkat.
44016         * MODULES.html.sh (File system functions): Mention it.
44017         * modules/areadlinkat-tests: New test.
44018         * tests/test-areadlinkat.c: New file.
44019
44020         areadlink, areadlink-with-size: add tests
44021         * modules/areadlink-tests: New test.
44022         * modules/areadlink-with-size-tests: Likewise.
44023         * tests/test-areadlink.h: New file.
44024         * tests/test-areadlink.c: Likewise.
44025         * tests/test-areadlink-with-size.c: Likewise.
44026
44027         maint: minor cleanups
44028         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44029         _UNUSED_PARAMETER_ instead.
44030         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44031         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44032         * modules/linkat-tests (Files): Distribute test-link.h.
44033
44034         openat, utimens: whitespace cleanup
44035         * lib/openat.c: Prefer space throughout, rather than mix of 8
44036         spaces vs. tabs.
44037         * lib/at-func.c: Likewise.
44038         * lib/utimens.c: Likewise.
44039
44040         openat: avoid using wrong fd
44041         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44042         working directory chooses same fd.
44043         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44044
44045         mkdir, mkdirat: fix cygwin 1.5.x bug
44046         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44047         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44048         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44049         bug.
44050         (gl_PREREQ_MKDIR): Delete unused macro.
44051         * modules/mkdir (Files): Track file rename.
44052         (configure.ac): Update macro name.
44053         * modules/openat (Depends-on): Add mkdir.
44054         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44055
44056         mkdir, mkdirat: add tests
44057         * modules/mkdir-tests: New test.
44058         * tests/test-mkdir.h: New file.
44059         * tests/test-mkdir.c: Likewise.
44060         * tests/test-mkdirat.c: Likewise.
44061         * modules/openat-tests (Files): Add new files.
44062         (Makefile.am): Run new test.
44063
44064 2009-10-06  Eric Blake  <ebb9@byu.net>
44065
44066         doc: tweak *at function documentation
44067         * doc/posix-functions/faccessat.texi (faccessat): Mention
44068         known issue with replacement.
44069         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44070         * doc/posix-functions/linkat.texi (linkat): Likewise.
44071         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44072         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44073         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44074         * doc/posix-functions/renameat.texi (renameat): Likewise.
44075         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44076
44077         openat: fix GNU/Hurd bug in unlinkat
44078         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44079         broken.
44080         * doc/posix-functions/unlink.texi (unlink): Document this.
44081         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44082
44083         fdopendir: fix GNU/Hurd bug
44084         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44085         allowing non-directory fds.
44086         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44087         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44088         * modules/dirent (Makefile.am): Substitute it.
44089         * lib/dirent.in.h (fdopendir): Declare replacement.
44090         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44091         * tests/test-fdopendir.c (main): Test something other than
44092         /dev/null, since on Hurd that behaves like a directory.
44093
44094         test-symlink: port to GNU/Hurd
44095         * tests/test-symlink.h (test_symlink): Relax expected errno.
44096
44097         doc: tweak more cygwin information
44098         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44099         now compatible with glibc.
44100         * doc/posix-functions/getopt.texi (getopt): Likewise.
44101
44102         getopt-gnu: add another test
44103         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44104         guarantee behavior relied on by m4.
44105         * tests/test-getopt.c (main): Use it.
44106         * modules/getopt-posix-tests (Depends-on): Add setenv.
44107         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44108
44109         getopt: fix compilation on darwin
44110         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44111         include.
44112         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44113         Reported by Ludovic Courtès.
44114
44115 2009-10-06  Bruno Haible  <bruno@clisp.org>
44116
44117         * modules/size_max (Description): Discourage its use.
44118         Reported by Simon Josefsson.
44119
44120 2009-10-06  Jim Meyering  <meyering@redhat.com>
44121
44122         linkat: avoid compilation failure
44123         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44124
44125 2009-10-05  Eric Blake  <ebb9@byu.net>
44126
44127         linkat: support Linux 2.6.17
44128         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44129         linkat on Linux, but allow cache variable override.
44130         * lib/linkat.c (rpl_linkat): Define override.
44131         * modules/linkat (Depends-on): Add symlinkat.
44132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44133         * modules/unistd (Makefile.am): Substitute it.
44134         * lib/unistd.in.h (linkat): Declare replacement.
44135         Reported by Pádraig Brady.
44136
44137         quotearg: port test to systems with C.UTF-8 locale
44138         * tests/test-quotearg.c (struct result_strings): Add another
44139         member, differentiating between C.ASCII and C.UTF-8 handling.
44140         (compare_strings): Add parameter.
44141         (main): Adjust all callers.
44142
44143         getopt: avoid clash with FreeBSD _getopt_internal
44144         * lib/getopt.in.h (_getopt_internal): Override the name.
44145         * lib/getopt_int.h (includes): Pick up any overrides.
44146         Reported by Reuben Thomas.
44147
44148         hash: allow C89 compilation
44149         * lib/hash.c (check_tuning): Move declaration before statement.
44150         Reported by Reuben Thomas.
44151
44152 2009-10-05  Karl Berry  <karl@gnu.org>
44153
44154         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44155
44156 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44157             Bruno Haible  <bruno@clisp.org>
44158
44159         * lib/uname.c (uname): Use a table-driven algorithm to compute
44160         Windows NT versions.
44161
44162 2009-10-04  Bruno Haible  <bruno@clisp.org>
44163
44164         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44165         program_invocation_short_name.
44166         * modules/progname (configure.ac): Test for presence of
44167         program_invocation_short_name.
44168         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44169
44170 2009-10-04  Bruno Haible  <bruno@clisp.org>
44171
44172         * lib/progname.c (set_program_name): Fix comment.
44173         Reported by Jim Meyering.
44174
44175 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44176             Bruno Haible  <bruno@clisp.org>
44177
44178         * lib/uname.c: Include <string.h>.
44179         (uname): Do only one call to GetVersionEx in the common case.
44180
44181 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44182             Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44185         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44186         (uname): Add support for Windows CE and various non-x86 CPU types.
44187
44188 2009-10-03  Bruno Haible  <bruno@clisp.org>
44189
44190         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44191         invocation to tests/configure.ac.
44192         Reported by Ian Beckwith <ianb@erislabs.net>.
44193
44194 2009-10-02  Eric Blake  <ebb9@byu.net>
44195
44196         fchdir: avoid compiler warning
44197         * lib/fchdir.c (canonicalize_file_name)
44198         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44199
44200         test-open: support mingw errno values
44201         * tests/test-open.h (test_open): Relax test.
44202         * tests/test-fopen.h (test_fopen): Likewise.
44203         * tests/test-openat-safer.c (main): Likewise.
44204
44205         open: fix opening directory on mingw
44206         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44207
44208         test-open: on GNU/Hurd, /dev/null is a directory
44209         * tests/test-fopen.h (main): Rename...
44210         (test_fopen): ...to this.  Use a guaranteed non-directory when
44211         confirming open behavior on trailing slash.
44212         * tests/test-openat-safer.c (main): Likewise.
44213         * tests/test-open.h (main): Likewise....
44214         (test_open): ...to this.
44215         * tests/test-fopen.c (main): Adjust caller.
44216         * tests/test-fopen-safer.c (main): Likewise.
44217         * tests/test-open.c (main): Likewise.
44218         * tests/test-fcntl-safer.c (main): Likewise.
44219         Reported by Samuel Thibault.
44220
44221         rename, fchdir: don't ignore chdir failure
44222         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44223         * lib/rename.c (rpl_rename) [W32]: Likewise.
44224         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44225         an empty destination directory if source cannot be renamed,
44226         although there is still possibility for failure.
44227         * doc/posix-functions/rename.texi (rename): Document the race.
44228         Reported by Jim Meyering.
44229
44230         maint: cleanup whitespace in recent commits
44231         * lib/rename.c (rpl_rename): Remove tabs.
44232         * tests/test-link.h (test_link): Likewise.
44233         * lib/fchdir.c (get_name): Likewise.
44234         Reported by Jim Meyering.
44235
44236 2009-10-02  Ben Pfaff  <blp@gnu.org>
44237
44238         relocatable-prog-wrapper: Add missing dependency on
44239         double-slash-root.
44240         * modules/relocatable-prog-wrapper: Add dependency.
44241         Reported by Ian Beckwith <ianb@erislabs.net>.
44242
44243 2009-10-02  Eric Blake  <ebb9@byu.net>
44244
44245         renameat: fix Solaris bugs
44246         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44247         needed fixing.
44248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44249         * modules/stdio (Makefile.am): Substitute it.
44250         * lib/stdio.in.h (renameat): Declare replacement.
44251         * lib/renameat.c (rpl_renameat): Implement fix.
44252
44253         renameat: new module
44254         * modules/renameat: New file.
44255         * lib/renameat.c (renameat): Likewise.
44256         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44258         * modules/stdio (Makefile.am): Substitute them.
44259         * lib/stdio.in.h (renameat): Declare it.
44260         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44261         * doc/posix-functions/renameat.texi (renameat): Likewise.
44262         * modules/renameat-tests: New test.
44263         * tests/test-renameat.c: Likewise.
44264
44265         rename: fix mingw bugs
44266         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44267         directory overwrite bugs.
44268
44269         rename: fix another cygwin 1.5 bug
44270         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44271         checks.
44272         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44273         unnecessary cygwin workarounds.  Also work around bug with moving
44274         full directory onto an empty one.
44275         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44276
44277         rename-dest-slash: merge into rename module
44278         * modules/rename-dest-slash (Status): Mark obsolete.
44279         (Depends-on): Add rename.
44280         (Files): Let rename do it all.
44281         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44282         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44283         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44284         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44285         * lib/rename.c (rpl_rename): Update comments.
44286
44287         rename: fix cygwin 1.5.x bugs
44288         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44289         * lib/rename.c (rpl_rename): Work around them.
44290         * modules/rename (Depends-on): Add same-inode.
44291
44292         rename: fix Solaris 10 bug
44293         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44294         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44295         was the only bug.
44296
44297         rename: fix Solaris 9 bug
44298         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44299         on non-directory.  Avoid calling exit.
44300         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44301         strdup.
44302         * modules/rename-tests (Depends-on): Drop lstat.
44303         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44304         (gl_PREREQ_RENAME): Delete unused macro.
44305
44306         rename-dest-slash: fix NetBSD bug
44307         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44308         links.
44309         * modules/rename-dest-slash (Depends-on): Add same-inode.
44310
44311         rename-tests: new test, exposes several platform bugs
44312         * modules/rename-tests: New file.
44313         * tests/test-rename.h: Likewise.
44314         * tests/test-rename.c: Likewise.
44315         * doc/posix-functions/rename.texi (rename): Improve documentation,
44316         including bugs that will eventually be fixed in gnulib.
44317
44318 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44319
44320         * lib/uname.c: Include <stdlib.h>
44321         (uname): Assume version info is available.
44322
44323 2009-10-02  Jim Meyering  <meyering@redhat.com>
44324
44325         gnu-web-doc-update: correct --help output
44326         * build-aux/gnu-web-doc-update: Make --help output relevant.
44327
44328         gnu-web-doc-update: add standard options
44329         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44330
44331         gnu-web-doc-update: New module.
44332         Use this script to automatically update the on-line web documentation
44333         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44334         * modules/gnu-web-doc-update: New file, from coreutils.
44335         * build-aux/gnu-web-doc-update: New script.
44336
44337 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44338
44339         link: LoadLibrary is not needed.
44340         * lib/link.c: Use GetModuleHandle.
44341
44342 2009-10-01  Eric Blake  <ebb9@byu.net>
44343
44344         getopt: bump serial number
44345         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44346         change.
44347
44348         tests: tighten link, rmdir, and remove tests
44349         * tests/test-link.h (includes): No need to use <config.h> here.
44350         Clean up if directory hard link was created, otherwise test for
44351         trailing '.'.
44352         * tests/test-linkat.c (main): Simplify.
44353         * tests/test-remove.c (main): Enhance test for trailing '.'.
44354         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44355
44356 2009-10-01  Jim Meyering  <meyering@redhat.com>
44357
44358         maint.mk: requiring "make major" was annoying, for a "minor" release.
44359         What is intended is "stable", to contrast with alpha and beta,
44360         so require "make stable", not "make major".
44361         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44362         (get_tool_versions): Likewise.
44363         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44364
44365 2009-09-30  Ben Pfaff  <blp@gnu.org>
44366
44367         Fix broken build of replacement for Windows tmpfile().
44368         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44369         flags argument added along with the 'mkostemp' module.
44370
44371 2009-09-28  Bruno Haible  <bruno@clisp.org>
44372
44373         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44374         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44375         to 'remove_elt'.
44376         (gl_list_remove): Update.
44377         * lib/gl_list.c (gl_list_remove): Update.
44378         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44379         to 'remove_elt'.
44380         (gl_oset_remove): Update.
44381         * lib/gl_list.c (gl_oset_remove): Update.
44382         Reported by Eric Blake.
44383
44384 2009-09-28  Eric Blake  <ebb9@byu.net>
44385
44386         doc: mention yet more cygwin 1.7 status
44387         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44388         cygwin.
44389         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44390         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44391
44392         argp: fix test failure
44393         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44394         that are not upper-case.  Pass correct range to tolower.
44395
44396 2009-09-27  Jim Meyering  <meyering@redhat.com>
44397
44398         test-yesno: work around sparc-dash here-document infelicity
44399         Without this change, the literal \177 byte in a here document
44400         would make dash 0.5.5.1-3 access uninitialized memory.
44401         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44402         Instead, use a marker, "@", and filter through tr to create the desired
44403         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44404
44405 2009-09-27  Bruno Haible  <bruno@clisp.org>
44406
44407         Disable untested support for new flavours of ACLs on AIX.
44408         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44409         progress.
44410         * lib/set-mode-acl.c (qset_acl): Likewise.
44411
44412 2008-12-07  Bruno Haible  <bruno@clisp.org>
44413
44414         Add support for new flavours of ACLs on AIX. (Untested.)
44415         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44416         (file_has_acl): Add support for newer AIX.
44417         * lib/set-mode-acl.c (qset_acl): Likewise.
44418         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44419         Rainer Tammer <tammer@tammer.net>.
44420
44421 2009-09-26  Eric Blake  <ebb9@byu.net>
44422
44423         argp: fix compilation of getopt
44424         * lib/getopt.in.h (includes): Use different guard than glibc.
44425         Reported by Sergey Poznyakoff.
44426
44427         doc: mention more cygwin 1.7 status
44428         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44429         bug.
44430         * doc/posix-functions/execl.texi (execl): Likewise.
44431         * doc/posix-functions/execle.texi (execle): Likewise.
44432         * doc/posix-functions/execlp.texi (execlp): Likewise.
44433         * doc/posix-functions/execv.texi (execv): Likewise.
44434         * doc/posix-functions/execve.texi (execve): Likewise.
44435         * doc/posix-functions/execvp.texi (execvp): Likewise.
44436         * doc/glibc-functions/canonicalize_file_name.texi
44437         (canonicalize_file_name): Cygwin 1.7 now provides this.
44438         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44439         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44440         on AT_SYMLINK_NOFOLLOW.
44441
44442 2009-09-24  Eric Blake  <ebb9@byu.net>
44443
44444         test-linkat: make test more robust
44445         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44446
44447         getopt: fix inclusion guards for cygwin
44448         * modules/getopt-posix (Depends-on): Add include-next.
44449         (Makefile.am): Substitute more items in replacement header.
44450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44451         <getopt.h>.
44452         * lib/getopt.in.h (includes): Use split inclusion guard, and
44453         prefer <getopt.h> over include <unistd.h> when one is present.
44454         (option): Also override name of 'struct option'.
44455
44456         same-inode: revert prior change; it is not yet ready
44457         * NEWS: Undo mention of this change.
44458         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44459         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44460         * lib/cycle-check.c (cycle_check): Likewise.
44461         * lib/same.c (same_name): Likewise.
44462         * lib/at-func2.c (at_func2): Likewise.
44463
44464 2009-09-23  Eric Blake  <ebb9@byu.net>
44465
44466         linkat: new module
44467         * modules/linkat: New file.
44468         * lib/at-func2.c (at_func2): Likewise.
44469         * lib/linkat.c (linkat): Likewise.
44470         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44471         * lib/openat-priv.h (at_func2): Add declaration.
44472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44473         * modules/unistd (Makefile.am): Substitute them.
44474         * lib/unistd.in.h (linkat): Declare it.
44475         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44476         * doc/posix-functions/linkat.texi (linkat): Likewise.
44477         * doc/posix-functions/link.texi (link): Tweak wording.
44478         * tests/test-link.c (main): Move guts...
44479         * tests/test-link.h (test_link): ...into new file.
44480         * modules/linkat-tests: New test.
44481         * tests/test-linkat.c: Likewise.
44482         * modules/link-tests (Files): Ship new file.
44483         (Depends-on): Add stdbool.
44484
44485         dirname: add library-safe mdir_name
44486         * lib/dirname.h (mdir_name): New prototype.
44487         * lib/dirname.c (dir_name): Move guts...
44488         (mdir_name): ...to new function that avoids xalloc_die.
44489
44490         fchdir: another mingw fix
44491         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44492         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44493         on mingw (where it has not yet been ported), and make it optional
44494         elsewhere.
44495         (_gl_register_fd): Use it.
44496
44497         same-inode: make SAME_INODE tri-state, to port to mingw
44498         * NEWS: Mention this change.
44499         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44500         st_ino always being 0.
44501         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44502         * lib/cycle-check.c (cycle_check): Likewise.
44503         * lib/same.c (same_name): Likewise.
44504
44505         lstat: avoid mingw compilation error
44506         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44507         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44508         lstat ourselves.
44509         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44510         was adequate.
44511         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44512         the checks for lstat.
44513         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44514
44515         link: fix test failure on Solaris 9
44516         * lib/link.c (rpl_link): Don't assume link will catch bogus
44517         trailing slash on source.
44518
44519         test-symlinkat: enhance test
44520         * tests/test-readlink.c (main): Move guts...
44521         * tests/test-readlink.h (test_readlink): ...into new file.
44522         * tests/test-symlink.c (main): Move guts...
44523         * tests/test-symlink.h (test_symlink): ...into new file.
44524         * tests/test-symlinkat.c (main): Use new files for further
44525         coverage.
44526         (do_symlink, do_readlink): New helper functions.
44527         * modules/symlink-tests (Files): Ship new file.
44528         (Depends-on): Add stdbool.
44529         * modules/readlink-tests (Files): Ship new file.
44530         (Depends-on): Add stdbool.
44531         * modules/symlinkat-tests (Files): Use new files.
44532
44533 2009-09-23  Eric Blake  <ebb9@byu.net>
44534
44535         readlink: document portability issue with symlink length
44536         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44537         systems have bogus st_size on symlinks, and mention the
44538         areadlink-with-size module.
44539         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44540         * doc/posix-functions/readlink.texi (readlink): Mention the
44541         areadlink module, and ERANGE failure.
44542         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44543         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44544
44545         readlink: fix Solaris 9 bug with trailing slash
44546         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44547         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44548         * doc/posix-functions/readlink.texi (readlink): Document this.
44549         * modules/readlink-tests: New test.
44550         * tests/test-readlink.c: Likewise.
44551
44552         readlink: fix cygwin 1.5.x bug with return type
44553         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44554         * lib/unistd.in.h (readlink): Use ssize_t.
44555         * lib/readlink.c (readlink): Likewise.
44556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44557         * modules/unistd (Makefile.am): Substitute it.
44558         * lib/unistd.in.h (readlink): Declare replacement.
44559         * doc/posix-functions/readlink.texi (readlink): Document this.
44560
44561         symlink: use throughout gnulib
44562         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44563         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44564         symlink is not used.
44565         * modules/symlinkat (Depends-on): Add symlink.
44566         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44567         * modules/canonicalize-tests (Depends-on): Likewise.
44568         * modules/lstat-tests (Depends-on): Likewise.
44569         * modules/openat-tests (Depends-on): Likewise.
44570         * modules/remove-tests (Depends-on): Likewise.
44571         * modules/rmdir-tests (Depends-on): Likewise.
44572         * modules/unlink-tests (Depends-on): Likewise.
44573         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44574         * tests/test-canonicalize.c (symlink): Likewise.
44575         * tests/test-fstatat.c (symlink): Likewise.
44576         * tests/test-lstat.c (symlink): Likewise.
44577         * tests/test-remove.c (symlink): Likewise.
44578         * tests/test-rmdir.c (symlink): Likewise.
44579         * tests/test-unlink.c (symlink): Likewise.
44580         * tests/test-unlinkat.c (symlink): Likewise.
44581
44582         symlink: new module, for Solaris 9 bug
44583         * modules/symlink: New file.
44584         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44585         * lib/symlink.c: Likewise.
44586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44587         * modules/unistd (Makefile.am): Substitute them.
44588         * lib/unistd.in.h (symlink): Declare replacement.
44589         * MODULES.html.sh (File system functions): Mention it.
44590         * doc/posix-functions/symlink.texi (symlink): Likewise.
44591         * modules/symlink-tests: New test.
44592         * tests/test-symlink.c: Likewise.
44593
44594 2009-09-23  Bruno Haible  <bruno@clisp.org>
44595
44596         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44597         when needed.
44598         Test case: gnulib-tool --import --with-tests atexit inttypes.
44599         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44600
44601 2009-09-23  Bruno Haible  <bruno@clisp.org>
44602
44603         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44604         subcommand, not in a subshell.
44605
44606 2009-09-22  Eric Blake  <ebb9@byu.net>
44607
44608         unistd: sort replacement declarations
44609         * lib/unistd.in.h: Sort declarations.
44610
44611         open, openat: minor optimization
44612         * lib/open.c (open): If open succeeded, len is non-zero.
44613         * lib/openat.c (rpl_openat): Likewise.
44614
44615         link-follow: ensure correct result
44616         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44617         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44618         distinguish between possible failures.
44619
44620 2009-09-21  Eric Blake  <ebb9@byu.net>
44621
44622         fts: avoid compiler warning
44623         * lib/fts.c (dirent_inode_sort_may_be_useful)
44624         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44625
44626 2009-09-19  Bruno Haible  <bruno@clisp.org>
44627
44628         * lib/progreloc.c (canonicalize_file_name): New declaration.
44629
44630 2009-09-19  Eric Blake  <ebb9@byu.net>
44631
44632         link: fix quoting
44633         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44634
44635         openat: fix openat bugs on Solaris 9
44636         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44637         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44638         * modules/openat (Depends-on): Add open.
44639         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44640         * modules/fcntl-h (Makefile.am): Substitute it.
44641         * lib/fcntl.in.h (openat): Declare replacement.
44642         * doc/posix-functions/openat.texi (openat): Document this.
44643
44644         openat: move fstatat and unlinkat into correct files
44645         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44646         compiled.
44647         * lib/openat.c (fstatat, unlinkat): Move...
44648         * lib/fstatat.c (fstatat): ...into correct files.
44649         * lib/unlinkat.c (unlinkat): Likewise.
44650
44651         openat: fix unlinkat bugs on Solaris 9
44652         * lib/unlinkat.c (unlinkat): New file.
44653         * modules/openat (Depends-on): Add unlink.
44654         (Files): Distribute it.
44655         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44656         trailing slash behavior is broken.
44657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44658         * modules/unistd (Makefile.am): Substitute it.
44659         * lib/unistd.in.h (unlinkat): Declare replacement.
44660         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44661
44662         openat: fix fstatat bugs on Solaris 9
44663         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44664         stat.
44665         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44666
44667         test-unlinkat: enhance test, to expose Solaris 9 bug
44668         * tests/test-unlink.c (main): Factor guts...
44669         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44670         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44671         * tests/test-rmdir.c (main): Adjust caller.
44672         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44673         (unlinker): New helper function.
44674         (rmdirat): Enhance check.
44675         * modules/rmdir-tests (Depends-on): Add stdbool.
44676         * modules/unlink-tests (Depends-on): Likewise.
44677         (Files): Add test-unlink.h.
44678         * modules/openat-tests (Files): Likewise.
44679         (Depends-on): Add unlinkdir.
44680
44681         test-fstatat: new test, to expose Solaris 9 bugs
44682         * tests/test-stat.c (main): Factor guts...
44683         * tests/test-stat.h (test_stat_func): ...into new file.
44684         * tests/test-lstat.c (main): Factor guts...
44685         * tests/test-lstat.h (test_lstat_func): ...into new file.
44686         * tests/test-fstatat.c: New file.
44687         * modules/stat-tests (Files): Add test-stat.h.
44688         * modules/lstat-tests (Files): Add test-lstat.h.
44689         (Depends-on): Add stdbool.
44690         * modules/openat-tests (Depends-on): Add pathmax.
44691         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44692         (Makefile.am): Run new test.
44693
44694         remove: new module, for mingw and Solaris 9 bugs
44695         * modules/remove: New file.
44696         * lib/remove.c: Likewise.
44697         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44699         * modules/stdio (Makefile.am): Use them.
44700         * lib/stdio.in.h (remove): Declare replacement.
44701         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44702         * doc/posix-functions/remove.texi (remove): Likewise.
44703         * modules/remove-tests: New test.
44704         * tests/test-remove.c: Likewise.
44705
44706         unlink: new module, for Solaris 9 bug
44707         * modules/unlink: New file.
44708         * lib/unlink.c: Likewise.
44709         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44711         * modules/unistd (Makefile.am): Use them.
44712         * lib/unistd.in.h (stat): Declare replacement.
44713         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44714         * doc/posix-functions/unlink.texi (unlink): Likewise.
44715         * modules/unlink-tests: New test.
44716         * tests/test-unlink.c: Likewise.
44717
44718         lstat: fix Solaris 9 bug
44719         * lib/lstat.c (lstat): Also check for trailing slash on
44720         non-symlink, non-directories.  Use stat module to simplify logic.
44721         * doc/posix-functions/lstat.texi (lstat): Document it.
44722         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44723         (configure.ac): Check for symlink.
44724         * tests/test-lstat.c (main): Add more tests.
44725
44726         stat: add as dependency to other modules
44727         * modules/chown (Depends-on): Add stat.
44728         * modules/euidaccess (Depends-on): Likewise.
44729         * modules/fchdir (Depends-on): Likewise.
44730         * modules/isdir (Depends-on): Likewise.
44731         * modules/link (Depends-on): Likewise.
44732         * modules/lstat (Depends-on): Likewise.
44733         * modules/mkdir-p (Depends-on): Likewise.
44734         * modules/modechange (Depends-on): Likewise.
44735         * modules/open (Depends-on): Likewise.
44736         * modules/readlink (Depends-on): Likewise.
44737         * modules/same (Depends-on): Likewise.
44738
44739         stat: fix Solaris 9 bug
44740         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44741         slash.
44742         * lib/stat.c (rpl_stat): Work around it.
44743         * doc/posix-functions/stat.texi (stat): Update documentation.
44744
44745         stat: new module, for mingw bug
44746         * modules/stat: New file.
44747         * lib/stat.c: Likewise.
44748         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44749         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44750         * modules/sys_stat (Makefile.am): Use them.
44751         * lib/sys_stat.in.h (stat): Declare replacement.
44752         * lib/openat.c (fstatat): Deal with lstat and stat being function
44753         macros.
44754         * modules/openat (Depends-on): Add inline.
44755         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44756         * doc/posix-functions/stat.texi (stat): Likewise.
44757         * modules/stat-tests: New test.
44758         * tests/test-stat.c: Likewise.
44759
44760 2009-09-19  Jim Meyering  <meyering@redhat.com>
44761
44762         syntax-check: detect unnecessary inclusion of canonicalize.h
44763         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44764
44765 2009-09-19  Eric Blake  <ebb9@byu.net>
44766
44767         canonicalize-lgpl: adjust clients to use correct header
44768         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44769         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44770         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44771         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44772         * lib/progreloc.c (includes): Likewise.
44773
44774 2009-09-19  Jim Meyering  <meyering@redhat.com>
44775
44776         test-posixtm.c: correct a comment
44777         * tests/test-posixtm.c: Correct first-line comment.
44778         Spotted by Eric Blake.
44779
44780 2009-09-16  Jim Meyering  <meyering@redhat.com>
44781
44782         posixtm-tests: make T const-correct; add a test case
44783         * tests/test-posixtm.c (T): Declare const.
44784         Add a test for -(2^31+1).
44785         Remove useless can-succeed-only-in-2002 test.
44786
44787         posixtm-tests: adjust the sole failing test
44788         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44789         expected output matches what mktime now produces.  Cross-checked via
44790         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44791
44792         posixtm: move #ifdef'd tests into a new module
44793         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44794         * tests/test-posixtm.c: ... this new file.
44795         * modules/posixtm-tests: New module.
44796
44797 2009-09-19  Eric Blake  <ebb9@byu.net>
44798
44799         openat: simplify use of at-func.c
44800         * lib/at-func.c (includes): Include prerequisites here, to
44801         simplify requirements on client files.
44802         * lib/openat-priv.h: Add double-inclusion guard.
44803         * lib/faccessat.c (includes): Simplify.
44804         * lib/fchmodat.c (includes): Likewise.
44805         * lib/fchownat.c (includes): Likewise.
44806         * lib/mkdirat.c (includes): Likewise.
44807         * lib/mkfifoat.c (includes): Likewise.
44808         * lib/symlinkat.c (includes): Likewise.
44809
44810         openat: allow return of fd 0
44811         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44812         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44813         unistd-safer.
44814         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44815         <fcntl.h>; this module does not leak fds.
44816         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44817         must be allowed to return 0, leaving openat_safer to add the
44818         safety.
44819         (openat_permissive): Avoid writing to just-opened fd 2 if
44820         restoring the current directory fails.
44821         * lib/openat-die.c (openat_restore_fail): Add comment.
44822         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44823         (save_cwd): Guarantee safe fd, but without use of open_safer.
44824         * tests/test-openat.c: New test.
44825         * modules/openat-tests (Files, Makefile.am): Distribute and build
44826         new file.
44827
44828         relocatable-prog-wrapper: fix build
44829         * modules/relocatable-prog-wrapper (Files): Update name of
44830         canonicalize m4 file, broken on 2009-09-17.
44831         Reported by emad hajjar <aleppos@hotmail.com>.
44832
44833 2009-09-19  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44836         * lib/safe-alloc.c: Likewise.
44837         Reported by Ian Beckwith <ianb@erislabs.net>.
44838
44839 2009-09-18  Bruno Haible  <bruno@clisp.org>
44840
44841         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44842         Reported by <erobles@sensacd.com.mx>.
44843
44844 2009-09-17  Eric Blake  <ebb9@byu.net>
44845
44846         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44847         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44848         slashes when checking if last component is missing.
44849         * tests/test-canonicalize.c (main): Test this.
44850
44851         canonicalize, canonicalize-lgpl: honor // if distinct from /
44852         * modules/canonicalize (Files): Add double-slash-root.m4.
44853         * modules/canonicalize-lgpl (Files): Likewise.
44854         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44855         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44856         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44857         fallback definition.
44858         (canonicalize_filename_mode): Use it to protect //.
44859         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44860         (__realpath): Likewise.
44861         * tests/test-canonicalize.c (main): Test this.
44862         * tests/test-canonicalize-lgpl.c (main): Likewise.
44863         * modules/canonicalize-tests (Depends-on): Add same-inode.
44864         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44865
44866         canonicalize-lgpl: fix glibc bug with trailing slash
44867         * m4/canonicalize-lgpl.m4: Move contents...
44868         * m4/canonicalize.m4: ...here.
44869         (gl_CANONICALIZE_LGPL): Factor realpath check...
44870         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44871         glibc 2.3.5 bug, fixed 2005-04-27.
44872         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44873         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44874         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44875         * modules/canonicalize-lgpl (Files): Manage file rename.
44876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44877         * modules/stdlib (Makefile.am): Substitute witness.
44878         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44879         is needed.
44880         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44881         replacement is required.
44882         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44883         * doc/glibc-functions/canonicalize_file_name.texi
44884         (canonicalize_file_name): Document this.
44885         * doc/posix-functions/realpath.texi (realpath): Likewise.
44886
44887         canonicalize-lgpl: reject non-directory with trailing slash
44888         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44889         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44890         catches failures in glibc 2.3.5.
44891         * tests/test-canonicalize.c (main): Likewise.
44892
44893         canonicalize-lgpl: use native realpath if it works
44894         * lib/canonicalize-lgpl.c (realpath): Guard with
44895         FUNC_REALPATH_WORKS.
44896         * lib/stdlib.in.h (realpath): Make declaration optional based on
44897         HAVE_REALPATH.
44898         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44899         native realpath works.
44900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44901         * modules/stdlib (Makefile.am): Substitute witness.
44902
44903         canonicalize, canonicalize-lgpl: use <stdlib.h>
44904         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44905         (Include): Mention <stdlib.h>.
44906         (configure.ac): Mention functions we provide.
44907         * modules/canonicalize (configure.ac): Likewise.
44908         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44909         realpath if canonicalize_file_name is missing.
44910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44911         * modules/stdlib (Makefile.am): Substitute witnesses.
44912         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44913         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44914         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44915         * NEWS: Document this.
44916         * doc/glibc-functions/canonicalize_file_name.texi
44917         (canonicalize_file_name): Likewise.
44918         * doc/posix-functions/realpath.texi (realpath): Likewise.
44919         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44920
44921         test-canonicalize: consolidate into single C program
44922         * tests/test-canonicalize.sh: Delete; move setup into...
44923         * tests/test-canonicalize.c (main): ...the program, making it
44924         easier to run in debugger.  Add some tests.
44925         * modules/canonicalize-tests (Files): Remove unused file.
44926         (Depends-on): Add progname.
44927         (configure.ac, Makefile.am): Simplify.
44928
44929         test-canonicalize-lgpl: consolidate into single C program
44930         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44931         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44932         easier to run in debugger.  Add some tests.
44933         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44934         (configure.ac, Makefile.am): Simplify.
44935
44936         canonicalize: avoid resolvepath
44937         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44938         unnecessary checks.
44939         * lib/canonicalize.c (includes): Simplify.
44940         (canonicalize_file_name): Drop resolvepath implementation.
44941         * modules/canonicalize (Depends-on): Drop filenamecat.
44942
44943         canonicalize: don't lose errno
44944         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44945         over calls to free.
44946
44947         canonicalize: simplify errno handling
44948         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44949         assignment.
44950
44951         canonicalize, canonicalize-lgpl: update module dependencies
44952         * modules/canonicalize (Depends-on): Add extensions, lstat,
44953         pathmax, stdlib.
44954         (Files): Drop pathmax.h.
44955         (configure.ac): Adjust macro name.
44956         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44957         lstat, stdlib, sys_stat.
44958         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44959         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44960         extensions.
44961         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44962         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44963         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44964         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44965         declaration, if available.
44966         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44967         we can rely on the readlink module.
44968         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44969         (includes): Use <unistd.h> unconditionally.
44970
44971 2009-09-17  Eric Blake  <ebb9@byu.net>
44972
44973         maint: make Include sections of modules consistent
44974         * modules/alloca: Use only header name; no need to list #include.
44975         * modules/alloca-opt: Likewise.
44976         * modules/arpa_inet: Likewise.
44977         * modules/canon-host: Likewise.
44978         * modules/configmake: Likewise.
44979         * modules/dirent: Likewise.
44980         * modules/eealloc: Likewise.
44981         * modules/environ: Likewise.
44982         * modules/fchdir: Likewise.
44983         * modules/fcntl: Likewise.
44984         * modules/fcntl-h: Likewise.
44985         * modules/gethrxtime: Likewise.
44986         * modules/gettime: Likewise.
44987         * modules/ignore-value: Likewise.
44988         * modules/inet_ntop: Likewise.
44989         * modules/inet_pton: Likewise.
44990         * modules/inttypes: Likewise.
44991         * modules/isnand-nolibm: Likewise.
44992         * modules/isnanf-nolibm: Likewise.
44993         * modules/mbchar: Likewise.
44994         * modules/mbfile: Likewise.
44995         * modules/mbiter: Likewise.
44996         * modules/mbuiter: Likewise.
44997         * modules/netdb: Likewise.
44998         * modules/netinet_in: Likewise.
44999         * modules/nproc: Likewise.
45000         * modules/pagealign_alloc: Likewise.
45001         * modules/poll: Likewise.
45002         * modules/printf-frexp: Likewise.
45003         * modules/pthread: Likewise.
45004         * modules/putenv: Likewise.
45005         * modules/random_r: Likewise.
45006         * modules/relocatable-prog: Likewise.
45007         * modules/search: Likewise.
45008         * modules/select: Likewise.
45009         * modules/selinux-h: Likewise.
45010         * modules/settime: Likewise.
45011         * modules/signal: Likewise.
45012         * modules/size_max: Likewise.
45013         * modules/socklen: Likewise.
45014         * modules/ssize_t: Likewise.
45015         * modules/stdarg: Likewise.
45016         * modules/stdbool: Likewise.
45017         * modules/stddef: Likewise.
45018         * modules/stdint: Likewise.
45019         * modules/stdio: Likewise.
45020         * modules/stdlib: Likewise.
45021         * modules/string: Likewise.
45022         * modules/strings: Likewise.
45023         * modules/sys_file: Likewise.
45024         * modules/sys_ioctl: Likewise.
45025         * modules/sys_select: Likewise.
45026         * modules/sys_socket: Likewise.
45027         * modules/sys_stat: Likewise.
45028         * modules/sys_time: Likewise.
45029         * modules/sys_times: Likewise.
45030         * modules/sys_utsname: Likewise.
45031         * modules/sys_wait: Likewise.
45032         * modules/sysexits: Likewise.
45033         * modules/time: Likewise.
45034         * modules/times: Likewise.
45035         * modules/tmpfile: Likewise.
45036         * modules/trim: Likewise.
45037         * modules/unistd: Likewise.
45038         * modules/wchar: Likewise.
45039         * modules/wctype: Likewise.
45040
45041 2009-09-17  Bruno Haible  <bruno@clisp.org>
45042
45043         Make getdate.y compile on QNX and NetBSD 5 / i386.
45044         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45045         TIME_T_FITS_IN_LONG_INT.
45046         * lib/getdate.y (long_time_t): New type.
45047         (relative_time): Change type of 'seconds' field to long_time_t.
45048         (get_date): Update types of local variables. Check against overflow
45049         during conversion from long_time_t to time_t.
45050         Reported by Matt Kraai <kraai@ftbfs.org>
45051         and Hasso Tepper <hasso@netbsd.org>.
45052
45053 2009-09-17  Bruno Haible  <bruno@clisp.org>
45054
45055         * modules/COPYING: Update copyright years.
45056         * modules/README: Likeiwse.
45057         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45058         Reported by Ian Beckwith <ianb@erislabs.net>.
45059
45060 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45061
45062         * users.txt: Update references for gnuit package.
45063
45064 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45065
45066         * m4/getdelim.m4: Fix typo in copyright line.
45067
45068 2009-09-17  Bruno Haible  <bruno@clisp.org>
45069
45070         * lib/atoll.c: Use the standard header with GPL copyright.
45071         * lib/argz.in.h: Likewise.
45072         * lib/glob.c: Likewise.
45073         * lib/glob-libc.h: Likewise.
45074         * lib/random_r.c: Likewise.
45075         * lib/siglist.h: Likewise.
45076         * lib/strsignal.c: Likewise.
45077         Reported by Ian Beckwith <ianb@erislabs.net>.
45078
45079 2009-09-17  Eric Blake  <ebb9@byu.net>
45080
45081         rmdir: ensure correct dependency order
45082         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45083
45084 2009-09-17  Bruno Haible  <bruno@clisp.org>
45085
45086         Disable assertion that fails on NetBSD 5 / i386.
45087         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45088         Reported by Sam Steingold <sds@gnu.org>
45089         and Hasso Tepper <hasso@netbsd.org>.
45090
45091 2009-09-16  Eric Blake  <ebb9@byu.net>
45092
45093         unlinkdir: port to mingw
45094         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45095         on which no one can unlink a directory.
45096
45097         stdlib: sort witness names
45098         * modules/stdlib (Makefile.am): Sort replacements.
45099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45100         * lib/stdlib.in.h: Likewise.
45101
45102         parse-duration-tests: avoid link failure
45103         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45104         LIBINTL.
45105         Reported by Tom G. Christensen.
45106
45107         openat-tests: ensure unlinkat behaves like rmdir
45108         * tests/test-rmdir.c (main): Factor guts...
45109         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45110         * modules/rmdir-tests (Files): Ship new file.
45111         * modules/openat-tests: New test.
45112         * tests/test-unlinkat.c: Likewise.
45113
45114         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45115         * modules/rmdir-errno (Status, Notice): Now obsolete.
45116
45117         rmdir: work around cygwin 1.5.x and mingw bugs
45118         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45119         * lib/rmdir.c (rmdir): Work around it.
45120         * modules/rmdir (Status, Notice): No longer obsolete.
45121         (Files): Add dos.m4.
45122         (Depends-on): Add unistd.
45123         (configure.ac): Set witnesses.
45124         (License): Relax to LGPLv2+.
45125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45126         * modules/unistd (Makefile.am): Substitute witnesses.
45127         * lib/unistd.in.h (rmdir): Declare replacement.
45128         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45129         * modules/rmdir-tests: New tests.
45130         * tests/test-rmdir.c: Likewise.
45131
45132 2009-09-15  Eric Blake  <ebb9@byu.net>
45133
45134         fchdir: improve use of replacement functions
45135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45136         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45137         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45138         REPLACE_CLOSEDIR.
45139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45140         * modules/sys_stat (Makefile.am): Substitute correct witness.
45141         * modules/dirent (Makefile.am): Likewise.
45142         * modules/unistd (Makefile.am): Likewise.
45143         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45144         * lib/unistd.in.h (dup): Likewise.
45145         * lib/sys_stat.in.h (fstat): Likewise.
45146
45147         maint: ignore gnulib-tool temp files
45148         * .gitignore: Ignore files created during gnulib-tool --test.
45149
45150 2009-09-13  Jim Meyering  <meyering@redhat.com>
45151
45152         posixtm: don't reject a time that specify "60" as the number of seconds
45153         * lib/posixtm.c (posixtime): The code to reject invalid dates
45154         would also reject a time specified with the .60 suffix.
45155         But POSIX allows that, in order to accommodate leap seconds.
45156         So don't reject it.
45157         (main): Adjust tests accordingly.
45158         * modules/posixtm (Depends-on): Add stpcpy.
45159
45160 2009-09-11  Jim Meyering  <meyering@redhat.com>
45161
45162         announce-gen: include [$release_type] in emitted Subject:
45163         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45164         e.g., [stable] in the emitted Subject: line.
45165
45166 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45167
45168         Remove obsolete macros from several modules.
45169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45170         obsolete Autoconf macros with their modern counterparts.
45171         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45172         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45173         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45174         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45175         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45176         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45178         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45179         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45180         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45181         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45182         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45183         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45184         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45185         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45187         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45188         * m4/time_r.m4 (gl_TIME_R): Likewise.
45189         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45190         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45191         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45192
45193         Fix copyright header in build-aux scripts.
45194         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45195         recommendation.
45196         * build-aux/ncftpput-ftp: Likewise.
45197         * build-aux/update-copyright: Likewise.
45198
45199 2009-09-09  Eric Blake  <ebb9@byu.net>
45200
45201         test-link: allow Linux choice of errno
45202         * tests/test-link.c (main): Relax test for alternate error.
45203
45204         strndup: fix improper m4 caching
45205         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45206         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45207         (gl_PREREQ_STRNDUP): Delete.
45208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45209         * modules/string (Makefile.am): Substitute it.
45210         * lib/string.in.h (strndup): Modernize prototype.
45211
45212         getcwd: port to mingw
45213         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45214         different from the POSIX assumptions made throughout the getcwd
45215         module; fortunately, the mingw getcwd does not need replacement.
45216         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45217         * modules/getcwd-tests: New test.
45218         * tests/test-getcwd.c: Likewise.
45219
45220         link: fix platform bugs
45221         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45222         * lib/link.c (link): Work around them.  Fix related mingw bug.
45223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45224         * modules/unistd (Makefile.am): Substitute it.
45225         * lib/unistd.in.h (link): Declare replacement.
45226         * doc/posix-functions/link.texi (link): Document this.
45227         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45228
45229         test-link: consolidate into single C program, test more cases
45230         * tests/test-link.sh: Delete.
45231         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45232         at least Cygwin and Solaris.
45233         * modules/link-tests (Files): Remove unused file.
45234         (Depends-on): Add errno, sys_stat.
45235         (Makefile.am): Simplify.
45236
45237 2009-09-08  Bruno Haible  <bruno@clisp.org>
45238
45239         Work around towlower, towupper bug on mingw.
45240         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45241         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45242         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45243         * doc/posix-functions/towupper.texi: Likewise.
45244         Reported by Eric Blake.
45245
45246 2009-09-08  Jim Meyering  <meyering@redhat.com>
45247
45248         build: don't try to run autoheader if we don't use it
45249         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45250         is not used in configure.ac.
45251
45252 2009-09-08  Eric Blake  <ebb9@byu.net>
45253
45254         euidaccess: fix compilation error
45255         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45256
45257         rawmemchr: relax license
45258         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45259         okay.
45260         Reported by Jim Meyering.
45261
45262         mkfifoat: new module
45263         * modules/mkfifoat: New file.
45264         * lib/mkfifoat.c: Likewise.
45265         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45266         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45267         * modules/sys_stat (Makefile.am): Use them.
45268         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45269         * MODULES.html.sh (File system functions): Mention module.
45270         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45271         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45272         * modules/mkfifoat-tests: New test.
45273         * tests/test-mkfifoat.c: Likewise.
45274
45275         strchrnul: relax license
45276         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45277         okay.
45278         Reported by Jim Meyering.
45279
45280 2009-09-08  Eric Blake  <ebb9@byu.net>
45281
45282         fstatat: fix compilation on Solaris
45283         * lib/fstatat.c (includes): Add fcntl.h.
45284         Reported by Pádraig Brady.
45285
45286 2009-09-07  Eric Blake  <ebb9@byu.net>
45287
45288         rename: modernize replacement
45289         * modules/rename (Depends-on): Add stdio.
45290         (configure.ac): Declare witness.
45291         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45292         stdio take care of replacement.
45293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45294         * modules/stdio (Makefile.am): Substitute them.
45295         * lib/stdio.in.h (rename): Declare replacement.
45296         * lib/rename.c (includes): Allow cross-compilation to non-windows
45297         machines.
45298         * doc/posix-functions/rename.texi (rename): Improve
45299         documentation.
45300
45301         stdio: sort witness names
45302         * modules/stdio (Makefile.am): Sort replacements.
45303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45304         * lib/stdio.in.h: Likewise.
45305
45306         getcwd: minor cleanups
45307         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45308         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45309
45310         openat: provide more convenience names
45311         * modules/faccessat (configure.ac): Add C witness.
45312         * lib/unistd.in.h (readlinkat): Fix typo.
45313         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45314         convenience wrappers.
45315         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45316         wrappers in syntax checks.
45317
45318 2009-09-06  Eric Blake  <ebb9@byu.net>
45319
45320         doc: fix comments in recent patches
45321         * lib/faccessat.c: Mention correct function.
45322         * lib/fchmodat.c: Likewise.
45323         * lib/fchownat.c: Likewise.
45324         * lib/symlinkat.c: Likewise.
45325         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45326         constants.
45327
45328         faccessat, symlinkat: continue cleanup of previous patch
45329         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45330         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45331         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45333         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45334         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45335         set.
45336
45337 2009-09-06  Bruno Haible  <bruno@clisp.org>
45338
45339         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45340         (fstatat): Declare if GNULIB_FSTATAT is set.
45341         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45342         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45343         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45344         * modules/fcntl-h (Files): Remove m4/openat.m4.
45345         * modules/sys_stat (Files): Remove m4/openat.m4.
45346         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45347         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45348         * modules/unistd (Files): Remove m4/openat.m4.
45349         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45350         GNULIB_OPENAT.
45351         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45352         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45354         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45355         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45356         gl_OPENAT_DEFAULTS.
45357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45358         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45359         Don't require gl_OPENAT_DEFAULTS.
45360         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45361         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45362         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45363         (gl_OPENAT_DEFAULTS): Remove macro.
45364
45365 2009-09-06  Bruno Haible  <bruno@clisp.org>
45366
45367         * modules/openat (configure.ac): Remove unneeded witness.
45368
45369 2009-09-06  Bruno Haible  <bruno@clisp.org>
45370
45371         Set errno to ENOSYS when a function is entirely unsupported.
45372         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45373         EOPNOTSUPP.
45374         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45375         * modules/chown (Depends-on): Remove errno.
45376
45377 2009-09-06  Bruno Haible  <bruno@clisp.org>
45378
45379         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45380
45381 2009-09-06  Bruno Haible  <bruno@clisp.org>
45382
45383         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45384
45385 2009-09-06  Ben Pfaff  <blp@gnu.org>
45386             Bruno Haible  <bruno@clisp.org>
45387
45388         Work around a glibc bug in strtok_r.
45389         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45390         Undefine if UNDEFINE_STRTOK_R is set.
45391         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45393         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45394         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45395         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45396         UNDEFINE_STRTOK_R.
45397         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45398
45399 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45400
45401         exclude: minor fix
45402         * lib/exclude.c: Include wctype.h
45403
45404 2009-09-06  Akim Demaille  <demaille@gostai.com>
45405
45406         bootstrap: improve error message
45407         * build-aux/bootstrap (find_tool): Upon failure, report the list
45408         of candidates.
45409         Honor the initial value of the envvar.
45410
45411 2009-09-05  Eric Blake  <ebb9@byu.net>
45412
45413         symlinkat: new module
45414         * modules/symlinkat: New file.
45415         * lib/symlinkat.c: Likewise.
45416         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45418         * modules/unistd (Makefile.am): Use them.
45419         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45420         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45421         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45422         * MODULES.html.sh (File system functions): Mention module.
45423         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45424         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45425         * modules/symlinkat-tests: New test.
45426         * tests/test-symlinkat.c: Likewise.
45427
45428         test-openat-safer: add more checks
45429         * tests/test-openat-safer.c (main): Check more code paths.
45430
45431 2009-09-05  Jim Meyering  <meyering@redhat.com>
45432
45433         syntax-check: detect unnecessary inclusion of openat.h
45434         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45435
45436 2009-09-05  Bruno Haible  <bruno@clisp.org>
45437
45438         Support towlower, towupper.
45439         * doc/posix-functions/towlower.texi: Mention module wctype.
45440         * doc/posix-functions/towupper.texi: Likewise.
45441         * lib/wctype.in.h (towlower, towupper): New functions.
45442         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45443         (ASSERT): New macro.
45444         (e): New variable.
45445         (main): Test also towlower, towupper. Test WEOF argument.
45446         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45447
45448 2009-09-05  Bruno Haible  <bruno@clisp.org>
45449
45450         Fix conversion behaviour when the input is invalid.
45451         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45452         mark occurring in first pass of indirect conversion.
45453         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45454         input.
45455         Found by clang's static analyzer.
45456
45457 2009-09-05  Bruno Haible  <bruno@clisp.org>
45458
45459         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45460         where direct conversion is possible.
45461
45462 2009-09-04  Eric Blake  <ebb9@byu.net>
45463
45464         openat: fail with ENOENT on empty name
45465         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45466         buffer.
45467
45468         link-follow: fix logic bug in prior patch
45469         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45470         reversed sense of yes and no in prior patch.  Avoid confusing
45471         compilation failure with desired semantics.
45472
45473         link-follow: accommodate mingw and cross-compilation
45474         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45475         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45476         cross-compilation results to -1, to make linkat easier to
45477         implement when cross-compiling.  Trivially support mingw.
45478         * modules/link-follow (configure.ac): Call new name.
45479         * NEWS: Mention this.
45480
45481 2009-09-03  Eric Blake  <ebb9@byu.net>
45482
45483         faccessat: compile replacement
45484         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45485         needed.
45486
45487         fts: fix compilation error
45488         * lib/fts.c (includes): Re-add "openat.h", for
45489         openat_needs_fchdir.
45490
45491         faccessat: new module
45492         * modules/faccessat: New file.
45493         * lib/faccessat.c: Likewise.
45494         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45496         * modules/unistd (Makefile.am): Use it.
45497         * lib/unistd.in.h (faccessat): Declare it.
45498         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45499         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45500         * MODULES.html.sh (File system functions): Mention it.
45501         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45502         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45503
45504         euidaccess: prefer POSIX over non-standard implementation
45505         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45506         * lib/euidaccess.c (euidaccess): Use it if available.
45507
45508         openat: make template easier to use
45509         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45510         AT_FUNC_F2 to be undefined.
45511         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45512         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45513         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45514         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45515         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45516         Likewise.
45517         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45518         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45519         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45520         Likewise.
45521
45522         openat: declare in POSIX headers
45523         * NEWS: Mention this.
45524         * modules/openat (configure.ac): Declare witnesses.
45525         (Depends-on): Add fcntl-h, sys_stat, unistd.
45526         (Include): Mention correct headers.
45527         * modules/fcntl-h (Depends-on): Add link-warning.
45528         (Files): Add openat.m4.
45529         (Makefile.am): Substitute witnesses.
45530         * modules/sys_stat (Files, Makefile.am): Likewise.
45531         * modules/unistd (Files, Makefile.am): Likewise.
45532         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45533         (gl_OPENAT_DEFAULTS): New macro.
45534         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45536         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45537         (SYS_STAT_H): Remove unused variable.
45538         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45539         * lib/fcntl--.h (includes): Remove unneeded header.
45540         * lib/openat-safer.c (includes): Likewise.
45541         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45542         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45543         appropriate headers.
45544         (__OPENAT_PREFIX): Delete.
45545         * lib/fcntl.in.h (openat): Provide declaration.
45546         (AT_FDCWD): Fix Solaris bug.
45547         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45548         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45549         * lib/fchmodat.c (includes):  Adjust to find declaration.
45550         * lib/fchownat.c (includes): Likewise.
45551         * lib/mkdirat.c (includes): Likewise.
45552         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45553         still visible.
45554
45555 2009-09-02  Eric Blake  <ebb9@byu.net>
45556
45557         errno: use consistently
45558         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45559         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45560         * lib/canonicalize.c (ELOOP): Likewise.
45561         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45562         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45563         * lib/lchown.c (EOPNOTSUPP): Likewise.
45564         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45565         * lib/savewd.c (ESTALE): Likewise.
45566         * lib/settime.c (ENOSYS): Likewise.
45567         * lib/utimens.c (ENOSYS): Likewise.
45568         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45569         * lib/chdir-safer.c (ELOOP): Likewise.
45570         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45571         * modules/c-stack (Depends-on): Add errno.
45572         * modules/canonicalize (Depends-on): Likewise.
45573         * modules/chdir-safer (Depends-on): Likewise.
45574         * modules/fdopendir (Depends-on): Likewise.
45575         * modules/inet_ntop (Depends-on): Likewise.
45576         * modules/inet_pton (Depends-on): Likewise.
45577         * modules/lchown (Depends-on): Likewise.
45578         * modules/openat (Depends-on): Likewise.
45579         * modules/savewd (Depends-on): Likewise.
45580         * modules/settime (Depends-on): Likewise.
45581         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45582
45583         fts: avoid leaking fds
45584         * modules/fts (Depends-on): Add cloexec.
45585         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45586         flag.
45587
45588         fts: make directory fds more robust
45589         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45590         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45591
45592         backupfile, chdir-long, fts, savedir: make safer
45593         * lib/backupfile.c (includes): Use "dirent--.h", since
45594         numbered_backup can write to stderr during readdir.
45595         * lib/savedir.c (includes): Likewise.
45596         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45597         emulation can write to stderr on failure.
45598         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45599         * lib/getcwd.c: Document why opendir_safer is unused.
45600         * lib/glob.c: Likewise.
45601         * lib/scandir.c: Likewise.
45602         * lib/openat-proc.c: Likewise, for open_safer.
45603         * modules/backupfile (Depends-on): Add dirent-safer.
45604         * modules/savedir (Depends-on): Likewise.
45605         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45606         * modules/chdir-long (Depends-on): Add openat-safer.
45607
45608         openat-safer: new module
45609         * modules/openat-safer: New file.
45610         * lib/openat-safer.c: Likewise.
45611         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45612         * lib/fcntl-safer.h (openat_safer): Declare.
45613         * lib/fcntl--.h (openat): Override.
45614         * MODULES.html.sh (File descriptor based I/O): Mention it.
45615         * lib/openat.h: Add double-inclusion guards.
45616         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45617         "fcntl--.h", so we can implement openat.
45618         * modules/openat-safer-tests: New test.
45619         * tests/test-openat-safer.c: New file.
45620
45621         dirent-safer: new module
45622         * modules/dirent-safer: New file.
45623         * lib/dirent--.h: Likewise.
45624         * lib/dirent-safer.h: Likewise.
45625         * lib/opendir-safer.c: Likewise.
45626         * m4/dirent-safer.m4: Likewise.
45627         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45628         * modules/dirent-safer-tests: New test.
45629         * tests/test-dirent-safer.c: New file.
45630         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45631
45632         fdopendir: optimize on mingw
45633         * lib/unistd.in.h (_gl_directory_name): New prototype.
45634         * lib/fchdir.c (_gl_directory_name): Implement it.
45635         (fchdir): Use it to simplify implementation.
45636         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45637         fchdir, when available, to avoid calling [f]chdir().
45638
45639         fdopendir: split into its own module
45640         * lib/openat.c (fdopendir): Move...
45641         * lib/fdopendir.c: ...into new file.
45642         * modules/fdopendir: New module.
45643         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45644         * modules/openat (Depends-on): Add fdopendir.
45645         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45646         fdopendir here.
45647         * modules/savedir (Depends-on): Only need fdopendir, not full
45648         openat.
45649         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45650         * lib/openat.h (fdopendir): Drop prototype.
45651         * lib/dirent.in.h (fdopendir): Provide prototype.
45652         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45653         * modules/dirent (Makefile.am): Substitute them.
45654         * MODULES.html.sh (File system functions): Mention it.
45655         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45656         * modules/fdopendir-tests: New file.
45657         * tests/test-fdopendir.c: Likewise.
45658
45659         fchdir: use more consistent macro convention
45660         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45661         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45662         REPLACE_FCHDIR, rather than relying on config.h macros.
45663         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45664         inside a single make-time REPLACE_FCHDIR block, rather than using
45665         the config.h FCHDIR_REPLACEMENT.
45666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45667         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45668         Manage fstat replacement.
45669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45670         REPLACE_FCHDIR.
45671         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45672         (Makefile.am): Substitute REPLACE_FCHDIR.
45673         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45674         FCHDIR_REPLACEMENT.
45675         * lib/dup-safer.c (dup_safer): Likewise.
45676         * lib/dup2.c (rpl_dup2): Likewise.
45677         * lib/dup3.c (rpl_dup3): Likewise.
45678         * lib/open.c (rpl_open): Likewise.
45679
45680         fchdir: simplify error handling, and support dup3
45681         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45682         stdbool, malloc-posix, realloc-posix.
45683         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45684         (ensure_dirs_slot): Return false on allocation failure.
45685         (rpl_dup2): Delete.
45686         (_gl_register_dup): New function.
45687         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45688         (_gl_register_fd): Close fd on allocation failure.
45689         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45690         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45691         prototype.
45692         (rpl_dup2_fchdir): Delete prototype.
45693         * lib/open.c (open): Update caller.
45694         * lib/dup2.c (dup2): Track fchdir metadata.
45695         * lib/dup3.c (dup3): Likewise.
45696         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45698
45699 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45700
45701         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45702         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45703         don't pass arguments to AC_OUTPUT.
45704
45705 2009-09-02  Bruno Haible  <bruno@clisp.org>
45706
45707         * modules/mkdtemp (License): Relicense under LGPLv2+.
45708         Reported by Paolo Bonzini.
45709
45710 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45711
45712         Replace uses of obsolete autoconf macros in Jim's modules.
45713         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45714         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45715         can evoke a warning from autoconf when run with -Wobsolete
45716         enabled.  They were declared obsolete for good reasons (see
45717         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45718         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45719         should not continue using the deprecated macros.
45720         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45721         obsolete Autoconf macros with modern counterparts.
45722         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45723         * m4/dos.m4 (gl_AC_DOS): Likewise.
45724         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45726         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45727         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45728         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45729         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45730         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45731         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45732         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45733         Likewise.
45734         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45735         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45736         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45737         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45738         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45739         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45740
45741 2009-09-01  Eric Blake  <ebb9@byu.net>
45742
45743         fchdir: fix off-by-one bug in previous patch
45744         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45745         (_gl_unregister_fd): Delete useless if.
45746
45747 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45748
45749         maint.mk: sort the list of syntax-check rules
45750         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45751         easier to get a sense of progress when the rules are run sequentially
45752         and take a long time.
45753
45754 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45755
45756         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45757         * modules/netinet_in: Likewise.
45758         * modules/sys_file: Likewise.
45759         * modules/sys_ioctl: Likewise.
45760         * modules/sys_select: Likewise.
45761         * modules/sys_socket: Likewise.
45762         * modules/sys_stat: Likewise.
45763         * modules/sys_time: Likewise.
45764         * modules/sys_times: Likewise.
45765         * modules/sys_utsname: Likewise.
45766         * modules/sys_wait: Likewise.
45767
45768 2009-09-01  Jim Meyering  <meyering@redhat.com>
45769
45770         fts: help ensure that return values are not ignored
45771         * lib/fts_.h (__GNUC_PREREQ): Define.
45772         (__attribute_warn_unused_result__): Define.
45773         (fts_children, fts_close, fts_open, fts_read): Declare with
45774         __attribute_warn_unused_result__.
45775
45776         fts: fts_close now fails also when closing a dir file descriptor fails
45777         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45778         and propagate to caller, along with errno.
45779
45780         announce-gen: correct formatting in --help output
45781         * build-aux/announce-gen (usage): Move the one-line description in
45782         --help output "up", to where it belongs, just after Usage:.
45783
45784 2009-08-31  Eric Blake  <ebb9@byu.net>
45785
45786         fchdir: port to mingw
45787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45788         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45789         opened, then use a substitute.
45790         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45791         replacement.
45792         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45793         (_gl_register_fd): No need to check stat if open already filters
45794         all directories.
45795         (fchdir): Fix error condition to match POSIX.
45796         * modules/fchdir (Depends-on): Add sys_stat.
45797         * doc/posix-functions/open.texi (open): Document the limitation.
45798         * modules/fchdir-tests: New file.
45799         * tests/test-fchdir.c: Likewise.
45800
45801         canonicalize: allow cross-testing from cygwin to mingw
45802         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45803         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45804         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45805         Likewise.
45806         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45807         target does not support symlinks.
45808         * tests/test-canonicalize-lgpl.sh: Likewise.
45809
45810         chown: avoid compilation warning on mingw
45811         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45812         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45813         mingw.
45814         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45815         * modules/chown (Depends-on): Add errno.
45816
45817 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45818
45819         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45820         command.
45821
45822 2009-08-31  Jim Meyering  <meyering@redhat.com>
45823
45824         canonicalize: remove useless initialization
45825         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45826         initialization of local, "end".
45827
45828 2009-08-30  Bruno Haible  <bruno@clisp.org>
45829
45830         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45831         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45832         ENOSYS.
45833
45834 2009-08-30  Bruno Haible  <bruno@clisp.org>
45835
45836         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45837         /usr/xpg4/bin/tr when it exists.
45838         * tests/test-pipe-filter-gi1.sh: Likewise.
45839
45840 2009-08-30  Bruno Haible  <bruno@clisp.org>
45841
45842         Work around deficient /usr/bin/id program on Solaris.
45843         * tests/test-file-has-acl.sh (ID): New variable.
45844         * tests/test-set-mode-acl.sh (ID): Likewise.
45845         * tests/test-copy-acl.sh (ID): Likewise.
45846         * tests/test-copy-file.sh (ID): Likewise.
45847
45848 2009-08-30  Bruno Haible  <bruno@clisp.org>
45849
45850         New module 'xstriconveh'.
45851         * lib/xstriconveh.h: New file.
45852         * lib/xstriconveh.c: New file.
45853         * modules/xstriconveh: New file.
45854
45855 2009-08-30  Bruno Haible  <bruno@clisp.org>
45856
45857         Make it easier to use mem_cd_iconveh.
45858         * lib/striconveh.h (iconveh_t): New type.
45859         (iconveh_open, iconveh_close): New declarations.
45860         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45861         with a single 'const iconveh_t *' argument.
45862         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45863         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45864         with a single 'const iconveh_t *' argument.
45865         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45866         * tests/test-striconveh.c (main): Update.
45867         * NEWS: Mention the change.
45868
45869 2009-08-30  Bruno Haible  <bruno@clisp.org>
45870
45871         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45872         problem.
45873
45874 2009-08-30  Bruno Haible  <bruno@clisp.org>
45875
45876         Work around iconv_open problem on Solaris.
45877         * lib/iconv_open-solaris.gperf: New file.
45878         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45879         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45880         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45881         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45882         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45883         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45884
45885 2009-08-29  Jim Meyering  <meyering@redhat.com>
45886
45887         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45888         * top/maint.mk (cvs-check): Remove target; it was just an alias
45889         to the better-named vc-diff-check.
45890         (maintainer-distcheck): Remove rule.  It was used only from
45891         the (alpha/beta/major) target, and all of its commands but one
45892         were coreutils-specific.
45893         (vc-dist): Remove rule.
45894         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45895         Run vc-diff-check, not vc-dist.
45896         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45897
45898 2009-08-27  Bruno Haible  <bruno@clisp.org>
45899
45900         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45901         of 0.
45902
45903 2009-08-27  Bruno Haible  <bruno@clisp.org>
45904
45905         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45906         compilers.
45907         * doc/func.texi: Document the SunPRO C bug.
45908
45909 2009-08-27  Bruno Haible  <bruno@clisp.org>
45910
45911         Fix link error on Solaris.
45912         * tests/test-parse-duration.c (xstrdup): Remove function.
45913
45914 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45915
45916         ignore-value: handle pointer types, too
45917         * lib/ignore-value.h (__attribute__): Remove definition.
45918         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45919         of a more concise and more-often effective "(void) i" statement.
45920         (ignore_ptr): New function to suppress warnings from functions that
45921         return pointers, and to make it explicit that one function doesn't
45922         handle all cases.
45923
45924 2009-08-25  Bruno Haible  <bruno@clisp.org>
45925
45926         dup2: work around a Linux bug.
45927         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45928         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45929         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45930         Reported by Simon Josefsson.
45931
45932 2009-08-25  Jim Meyering  <meyering@redhat.com>
45933
45934         libguestfs uses gnulib
45935         * users.txt: Add libguestfs.
45936
45937 2009-08-24  Eric Blake  <ebb9@byu.net>
45938
45939         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45940         * lib/pipe2.c (includes): Add binary-io.h.
45941         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45942
45943 2009-08-24  Bruno Haible  <bruno@clisp.org>
45944
45945         Tolerate declared but missing accept4 syscall.
45946         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45947         available.
45948         * lib/sys_socket.in.h (accept4): If the function is already present,
45949         override it.
45950         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45951         * modules/accept4 (Makefile.am): Compile accept4.c always.
45952         Reported by Paolo Bonzini and Eric Blake.
45953
45954 2009-08-23  Bruno Haible  <bruno@clisp.org>
45955
45956         New module 'accept4'.
45957         * lib/sys_socket.in.h (accept4): New declaration.
45958         * lib/accept4.c: New file.
45959         * m4/accept4.m4: New file.
45960         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45961         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45962         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45963         HAVE_ACCEPT4.
45964         * modules/accept4: New file.
45965         * doc/glibc-functions/accept4.texi: Mention the new module.
45966
45967 2009-08-24  Jim Meyering  <meyering@redhat.com>
45968
45969         progname: also set global program_invocation_name, when possible
45970         Before this change, a libtool-enabled program that calls glibc's
45971         error function would report the program name as
45972         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45973         * modules/progname (configure.ac): Check for a declaration of
45974         program_invocation_name.
45975         * lib/progname.c:  Include <errno.h>.
45976         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45977         Set program_invocation_name.
45978
45979 2009-08-23  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/dup3.c: Include <string.h>.
45982
45983 2009-08-23  Bruno Haible  <bruno@clisp.org>
45984
45985         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45986         * lib/pipe2.c (pipe2): Likewise.
45987         Suggested by Eric Blake.
45988
45989 2009-08-23  Bruno Haible  <bruno@clisp.org>
45990
45991         Tolerate declared but missing dup3 syscall.
45992         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45993         * lib/unistd.in.h (dup3): If the function is already present,
45994         override it.
45995         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45996         * modules/dup3 (Makefile.am): Compile dup3.c always.
45997         Reported by Paolo Bonzini.
45998
45999 2009-08-23  Bruno Haible  <bruno@clisp.org>
46000
46001         Tolerate declared but missing pipe2 syscall.
46002         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46003         available.
46004         * lib/unistd.in.h (pipe2): If the function is already present,
46005         override it.
46006         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46007         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46008         Reported by Paolo Bonzini.
46009
46010 2009-08-23  Bruno Haible  <bruno@clisp.org>
46011
46012         * lib/pipe2.c (pipe2): Move #ifs inside function.
46013
46014 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46015
46016         quotearg: document limitations of quote_these_too
46017         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46018         those limitations are created.
46019         * lib/quotearg.h (set_char_quoting): Document that digits and
46020         letters that are special after backslash are not permitted.
46021         (quotearg_char): Cross-reference set_char_quoting documentation.
46022
46023 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46024
46025         quotearg: implement custom_quoting_style
46026         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46027         right_quote fields.
46028         (set_custom_quoting): New public function.
46029         (quotearg_buffer_restyled): Add left_quote and right_quote
46030         arguments, handle them very much like locale quoting, and update
46031         all uses.
46032         (quotearg_n_custom): New public function.
46033         (quotearg_n_custom_mem): New public function.
46034         (quotearg_custom): New public function.
46035         (quotearg_custom_mem): New public function.
46036         * lib/quotearg.h: Prototype and document new public functions.
46037         (enum quoting_style): For escape_quoting_style and
46038         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46039         ignored even though they're otherwise like c_quoting_style.
46040         Add custom_quoting_style member and document with comparison to
46041         clocale_quoting_style.
46042         * tests/test-quotearg.c (custom_quotes): New array.
46043         (custom_results): New array.
46044         (main): Extend to test custom quoting.
46045
46046 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46047
46048         quotearg: fix right quote escaping when it's in quote_these_too
46049         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46050         quote, be sure to prepend only one backslash.
46051         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46052         (main): Test it.
46053
46054 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46055
46056         quotearg-tests: test escaping of embedded locale quotes
46057         * tests/test-quotearg.c (struct result_strings): Add member for
46058         new input.
46059         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46060         (inputs): Add new input.
46061         (results_g): Add expected results.
46062         (flag_results): Likewise.
46063         (locale_results): Likewise.
46064         (compare_strings): Check those.
46065
46066 2009-08-23  Bruno Haible  <bruno@clisp.org>
46067
46068         Tests for module 'dup3'.
46069         * modules/dup3-tests: New file.
46070         * tests/test-dup3.c: New file.
46071
46072         New module 'dup3'.
46073         * lib/unistd.in.h (dup3): New declaration.
46074         * lib/dup3.c: New file.
46075         * m4/dup3.m4: New file.
46076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46077         HAVE_DUP3.
46078         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46079         * modules/dup3: New file.
46080         * doc/glibc-functions/dup3.texi: Mention the new module.
46081
46082 2009-08-23  Bruno Haible  <bruno@clisp.org>
46083
46084         Tweak the dup2 test.
46085         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46086         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46087         the test file is still empty. Fix argument order of lseek.
46088
46089 2009-08-23  Bruno Haible  <bruno@clisp.org>
46090
46091         Avoid test link errors when the modules getopt-gnu, gettext are used.
46092         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46094
46095 2009-08-23  Bruno Haible  <bruno@clisp.org>
46096
46097         Fix getdtablesize() on mingw.
46098         * lib/getdtablesize.c (getdtablesize): Implement differently.
46099         * lib/unistd.in.h (getdtablesize): Improve comment.
46100
46101 2009-08-23  Bruno Haible  <bruno@clisp.org>
46102
46103         New module 'mkostemp'.
46104         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46105         * lib/stdlib.in.h (mksotemp): New declaration.
46106         * lib/mkostemp.c: New file, from glibc with modifications.
46107         * lib/tempname.h (GT_FILE): Remove outdated comment.
46108         (gen_tempname): Add flags argument.
46109         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46110         (__GT_FILE): Map to 1.
46111         (small_open, large_open): Remove macros.
46112         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46113         * lib/mkstemp.c (mkstemp): Update.
46114         * lib/mkdtemp.c (mkdtemp): Likewise.
46115         * m4/mkostemp.m4: New file.
46116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46117         HAVE_MKOSTEMP.
46118         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46119         HAVE_MKOSTEMP.
46120         * modules/mkostemp: New file, based on modules/mkstemp.
46121         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46122         * NEWS: Mention the change.
46123
46124 2009-08-23  Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46127         Reported by Eric Blake.
46128
46129 2009-08-23  Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46132         Reported by Eric Blake.
46133
46134 2009-08-23  Bruno Haible  <bruno@clisp.org>
46135
46136         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46137         * modules/pipe2 (Depends-on): Likewise.
46138
46139 2009-08-23  Eric Blake  <ebb9@byu.net>
46140
46141         fcntl-h: add O_TTY_INIT support
46142         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46143         * tests/test-fcntl-h.c (o): Test it.
46144         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46145
46146         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46147         * modules/fcntl: Move <fcntl.h> header replacement...
46148         * modules/fcntl-h: ...to new name, so as not to collide with
46149         like-named function.
46150         * tests/test-fcntl.c: Rename...
46151         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46152         * modules/fcntl-tests: Rename...
46153         * modules/fcntl-h-tests: ...to this.  Update test file name.
46154         * modules/chdir-long (Depends-on): Update clients.
46155         * modules/chdir-safer (Depends-on): Likewise.
46156         * modules/fcntl-safer (Depends-on): Likewise.
46157         * modules/fts (Depends-on): Likewise.
46158         * modules/mkancesdirs (Depends-on): Likewise.
46159         * modules/mkdir-p (Depends-on): Likewise.
46160         * modules/open (Depends-on): Likewise.
46161         * modules/savewd (Depends-on): Likewise.
46162         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46163         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46164
46165 2009-08-22  Bruno Haible  <bruno@clisp.org>
46166
46167         * modules/binary-io (License): Relicense under LGPL.
46168         * modules/pipe2 (License): Likewise.
46169
46170 2009-08-22  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46173         return value.
46174         * lib/pipe-filter-gi.c (filter_init): Likewise.
46175         Reported by Eric Blake.
46176
46177 2009-08-22  Bruno Haible  <bruno@clisp.org>
46178
46179         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46180         * modules/pipe (Depends-on): Add pipe2.
46181
46182 2009-08-22  Bruno Haible  <bruno@clisp.org>
46183
46184         Tests for module 'pipe2'.
46185         * modules/pipe2-tests: New file.
46186         * tests/test-pipe2.c: New file.
46187
46188         New module 'pipe2'.
46189         * lib/unistd.in.h (pipe2): New declaration.
46190         * lib/pipe2.c: New file.
46191         * m4/pipe2.m4: New file.
46192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46193         HAVE_PIPE2.
46194         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46195         * modules/pipe2: New file.
46196         * doc/glibc-functions/pipe2.texi: Mention the new module.
46197
46198 2009-08-22  Bruno Haible  <bruno@clisp.org>
46199
46200         Reference some new glibc functions.
46201         * doc/glibc-functions/accept4.texi: New file.
46202         * doc/glibc-functions/dup3.texi: New file.
46203         * doc/glibc-functions/mkostemp.texi: New file.
46204         * doc/glibc-functions/pipe2.texi: New file.
46205         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46206         (Glibc sys/socket.h): Refer to accept4.
46207         (Glibc unistd.h): Refer to dup3, pipe2.
46208         Reported by Eric Blake.
46209
46210 2009-08-22  Jim Meyering  <meyering@redhat.com>
46211             Bruno Haible  <bruno@clisp.org>
46212
46213         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46214         This makes it so packages using automake-1.11's silent-rules option
46215         can print e.g., a single "GEN    configmake.h" line, rather than
46216         the 30+ statements that perform the job.  If you want to see the
46217         actual commands, you can still run "make V=1".
46218         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46219         so that make output is abbreviated when those variables are defined
46220         appropriately.
46221         * modules/argz: Likewise.
46222         * modules/arpa_inet: Likewise.
46223         * modules/byteswap: Likewise.
46224         * modules/configmake: Likewise.
46225         * modules/dirent: Likewise.
46226         * modules/errno: Likewise.
46227         * modules/fcntl: Likewise.
46228         * modules/float: Likewise.
46229         * modules/fnmatch: Likewise.
46230         * modules/getopt-posix: Likewise.
46231         * modules/glob: Likewise.
46232         * modules/iconv_open: Likewise.
46233         * modules/inttypes: Likewise.
46234         * modules/localcharset: Likewise.
46235         * modules/locale: Likewise.
46236         * modules/math: Likewise.
46237         * modules/netdb: Likewise.
46238         * modules/netinet_in: Likewise.
46239         * modules/poll: Likewise.
46240         * modules/posix_spawnp-tests: Likewise.
46241         * modules/sched: Likewise.
46242         * modules/search: Likewise.
46243         * modules/selinux-h: Likewise.
46244         * modules/signal: Likewise.
46245         * modules/spawn: Likewise.
46246         * modules/stdarg: Likewise.
46247         * modules/stdbool: Likewise.
46248         * modules/stddef: Likewise.
46249         * modules/stdint: Likewise.
46250         * modules/stdio: Likewise.
46251         * modules/stdlib: Likewise.
46252         * modules/string: Likewise.
46253         * modules/strings: Likewise.
46254         * modules/sys_file: Likewise.
46255         * modules/sys_ioctl: Likewise.
46256         * modules/sys_select: Likewise.
46257         * modules/sys_socket: Likewise.
46258         * modules/sys_stat: Likewise.
46259         * modules/sys_time: Likewise.
46260         * modules/sys_times: Likewise.
46261         * modules/sys_utsname: Likewise.
46262         * modules/sys_wait: Likewise.
46263         * modules/sysexits: Likewise.
46264         * modules/time: Likewise.
46265         * modules/unistd: Likewise.
46266         * modules/wchar: Likewise.
46267         * modules/wctype: Likewise.
46268
46269 2009-08-22  Jim Meyering  <meyering@redhat.com>
46270
46271         announce-gen: detect write failure
46272         * build-aux/announce-gen: Add Coda at end.
46273         Remove equivalent-but-more-verbose block at top.
46274
46275 2009-08-19  Akim Demaille  <demaille@gostai.com>
46276
46277         bootstrap: --help to stdout.
46278         * bootstrap (usage): Don't send --help to stderr.
46279         Use a here doc instead of a long string.
46280
46281 2009-08-21  Eric Blake  <ebb9@byu.net>
46282
46283         test-popen-safer: split from test-popen
46284         * tests/test-popen.c (main): Move...
46285         * tests/test-popen.h: ...into new file.
46286         * tests/test-popen-safer2.c: New file.
46287         * modules/popen-tests (Files): Add test-popen.h.
46288         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46289         Suggested by Bruno Haible.
46290
46291         test-fcntl-safer: split from test-open
46292         * tests/test-open.c (main): Move...
46293         * tests/test-open.h: ...into new file.
46294         * tests/test-fcntl-safer.c: New file.
46295         * modules/open-tests (Files): Add test-open.h.
46296         * modules/fcntl-safer-tests: New file.
46297         Suggested by Bruno Haible.
46298
46299         test-fopen-safer: split from test-fopen
46300         * tests/test-fopen.c (main): Move...
46301         * tests/test-fopen.h: ...into new file.
46302         * tests/test-fopen-safer.c: New file.
46303         * modules/fopen-tests (Files): Add test-fopen.h.
46304         * modules/fopen-safer-tests: New file.
46305         Suggested by Bruno Haible.
46306
46307 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46308
46309         popen-safer: test O_CLOEXEC at run-time.
46310         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46311
46312 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46313
46314         fcntl: move more flags to the header
46315         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46316         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46317         * lib/fcntl.in.h: Do both things here.
46318
46319 2009-08-21  Jim Meyering  <meyering@redhat.com>
46320
46321         consistently remove $@-t before redirecting to it
46322         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46323         * modules/alloca-opt: Likewise.
46324         * modules/byteswap: Likewise.
46325         * modules/fnmatch: Likewise.
46326         * modules/getopt-posix: Likewise.
46327         * modules/glob: Likewise.
46328         * modules/poll: Likewise.
46329         * modules/posix_spawnp-tests: Likewise.
46330         * modules/sys_socket: Likewise.
46331         * modules/sysexits: Likewise.
46332
46333 2009-08-21  Eric Blake  <ebb9@byu.net>
46334
46335         popen: simplify access to original popen
46336         * lib/popen.c (rpl_popen): No need to worry about popen being a
46337         macro.
46338         Reported by Bruno Haible.
46339
46340 2009-08-20  Eric Blake  <ebb9@byu.net>
46341
46342         build: avoid some compiler warnings
46343         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46344         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46345         type.
46346         (new_exclude_segment, excluded_file_pattern_p)
46347         (excluded_file_name_p): Reduce scope.
46348         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46349         old-style declaration.
46350
46351 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46352
46353         * tests/test-exclude1.sh: Handle Windows EOL.
46354         * tests/test-exclude2.sh: Likewise.
46355         * tests/test-exclude3.sh: Likewise.
46356         * tests/test-exclude4.sh: Likewise.
46357         * tests/test-exclude5.sh: Likewise.
46358         * tests/test-exclude6.sh: Likewise.
46359         * tests/test-exclude7.sh: Likewise.
46360
46361 2009-08-19  Akim Demaille  <demaille@gostai.com>
46362
46363         bootstrap: find sha1sum when named gsha1sum.
46364         * bootstrap (find_tool): New.
46365         ($SHA1SUM): New.
46366         Use it.
46367
46368 2009-08-20  Jim Meyering  <meyering@redhat.com>
46369
46370         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46371         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46372         expression that converts "." in a file name to "\." in the resulting
46373         regexp.  Start with a dummy statement, so that prior shell variable
46374         definitions are expanded portably.  Reported by Simon Josefsson.
46375
46376 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46377
46378         Fix polling for writeability of a screen buffer.
46379         * lib/poll.c: Distinguish input and screen buffers for the
46380         Win32 implementation.
46381         * lib/select.c: Likewise.
46382
46383 2009-08-19  Eric Blake  <ebb9@byu.net>
46384
46385         popen-safer: prevent popen from clobbering std descriptors
46386         * modules/popen-safer: New file.
46387         * lib/popen-safer.c: Likewise.
46388         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46389         * lib/stdio--.h (popen): Provide override.
46390         * lib/stdio-safer.h (popen_safer): Provide declaration.
46391         * tests/test-popen.c (includes): Partially test this.
46392         * modules/popen-safer-tests: New file, for more tests.
46393         * tests/test-popen-safer.c: Likewise.
46394         * MODULES.html.sh (file stream based Input/Output): Mention it.
46395
46396         tests: test some of the *-safer modules
46397         * modules/fopen-safer (Depends-on): Add fopen.
46398         * modules/fcntl-safer (Depends-on): Add fcntl.
46399         * modules/stdlib-safer (Depends-on): Add stdlib.
46400         (configure.ac): Set indicator.
46401         * modules/unistd-safer (configure.ac): Likewise.
46402         * modules/tmpfile-safer (configure.ac): Likewise.
46403         (Depends-on): Add tmpfile.
46404         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46405         active.
46406         * tests/test-fopen.c (includes): Test safer versions when they are
46407         in use.
46408         * tests/test-open.c (includes): Likewise.
46409
46410         popen: fix cygwin 1.5 bug when stdin closed
46411         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46412         * modules/popen: New file.
46413         * modules/popen-tests: Likewise.
46414         * tests/test-popen.c: Likewise.
46415         * m4/popen.m4: Likewise.
46416         * lib/popen.c: Likewise.
46417         * lib/stdio.in.h (popen): New declaration.
46418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46419         * modules/stdio (Makefile.am): Likewise.
46420         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46421
46422 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46423
46424         maint.mk: give full control over update-copyright exclusions
46425         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46426         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46427         (update-copyright): Don't force inclusion of top-level
46428         ChangeLog.  Don't force exclusion of all COPYING files, but make
46429         them the default exclusion instead.
46430
46431 2009-08-16  Bruno Haible  <bruno@clisp.org>
46432
46433         Fix test failures on Solaris 10.
46434         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46435         tests when Solaris iconv() is used.
46436         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46437         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46438         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46439         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46440         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46441
46442 2009-08-16  Bruno Haible  <bruno@clisp.org>
46443
46444         Fix test failures on Solaris 10.
46445         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46446         'tr' program and pass it as first argument.
46447         * tests/test-pipe-filter-gi1.sh: Likewise.
46448         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46449         program as first argument.
46450         * tests/test-pipe-filter-gi1.c (main): Likewise.
46451
46452 2009-08-16  Eric Blake  <ebb9@byu.net>
46453
46454         fpurge: fix previous commits
46455         * modules/fpurge (Makefile.am): Make replacement conditional,
46456         partially reverting 2007-04-29 change; missed in previous
46457         attempt.
46458         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46459         is missing.
46460
46461 2009-08-16  Bruno Haible  <bruno@clisp.org>
46462
46463         Clarify fpurge's effect on the file position.
46464         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46465         * tests/test-fpurge.c (main): Make a second pass for checking the file
46466         position.
46467
46468 2009-08-16  Bruno Haible  <bruno@clisp.org>
46469
46470         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46471         declaration of fpurge is missing.
46472         * tests/test-fpurge.c (main): Check that the file has not more contents
46473         than expected. Close the file before removing it.
46474
46475 2009-08-15  Eric Blake  <ebb9@byu.net>
46476
46477         fpurge: don't wrap working cygwin implementation
46478         * lib/fpurge.c (fpurge): Fix comment typo.
46479         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46480         1.7 to avoid replacement.
46481         * tests/test-fpurge.c (main): Enhance test.
46482
46483 2009-08-15  Eric Blake  <ebb9@byu.net>
46484         and Jim Meyering  <meyering@redhat.com>
46485
46486         test-update-copyright: skip if perl is insufficient
46487         * tests/test-update-copyright.sh: Failure to run maintainer tool
46488         should not cause testsuite failure on cygwin 1.5.
46489
46490 2009-08-14  Eric Blake  <ebb9@byu.net>
46491
46492         doc: mention more functions added in cygwin 1.7.0
46493         * doc/posix-headers/limits.texi (limits.h): Update for recent
46494         cygwin additions.
46495         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46496         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46497         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46498         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46499         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46500
46501 2009-08-14  Eric Blake  <ebb9@byu.net>
46502
46503         maint.mk: simplify update-copyright rule
46504         * top/maint.mk (update-copyright-local): Delete, and document how
46505         to do it in cfg.mk instead.
46506         (update-copyright-exclude-regexp): Delete, and document how to do
46507         it in .x-update-copyright instead.
46508         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46509         exclude ChangeLog.
46510
46511 2009-08-14  Bruno Haible  <bruno@clisp.org>
46512
46513         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46514
46515 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46516
46517         maint.mk: support update-copyright-env
46518         * top/maint.mk (update-copyright-env): Define place-holder.
46519         (update-copyright): Expand $(update-copyright-env) before
46520         invoking update-copyright.
46521
46522 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46523
46524         update-copyright: implement forced reformatting
46525         * build-aux/update-copyright: Implement and document
46526         UPDATE_COPYRIGHT_FORCE.
46527         * tests/test-update-copyright.sh: Test it.
46528
46529 2009-08-14  Eric Blake  <ebb9@byu.net>
46530         and Bruno Haible  <bruno@clisp.org>
46531
46532         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46533         * tests/test-locale.c: Revert previous patch related to NULL.
46534         * tests/test-stdio.c: Likewise.
46535         * tests/test-stdlib.c: Likewise.
46536         * tests/test-string.c: Likewise.
46537         * tests/test-unistd.c: Likewise.
46538         * modules/time-tests (Depends-on): Add verify.
46539         * modules/wchar-tests (Depends-on): Likewise.
46540         * tests/test-time.c: Test for NULL compliance.
46541         * tests/test-wchar.c: Likewise.
46542         * modules/locale (Depends-on): Add stddef.
46543         * modules/stdio (Depends-on): Likewise.
46544         * modules/stdlib (Depends-on): Likewise.
46545         * modules/string (Depends-on): Likewise.
46546         * modules/time (Depends-on): Likewise.
46547         * modules/unistd (Depends-on): Likewise.
46548         * modules/wchar (Depends-on): Likewise.
46549         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46550         * lib/stdlib.in.h (includes): Likewise.
46551         * lib/string.in.h (includes): Likewise.
46552         * lib/time.in.h (includes): Likewise.
46553         * lib/unistd.in.h (includes): Likewise.
46554         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46555         replaced.
46556         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46557         * m4/stddef_h.m4: New file.
46558         * modules/stddef: Likewise.
46559         * lib/stddef.in.h: Likewise.
46560         * modules/stddef-tests: Likewise.
46561         * tests/test-stddef.c: Likewise.
46562         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46563         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46564         * doc/posix-headers/locale.texi (locale.h): Likewise.
46565         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46566         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46567         * doc/posix-headers/string.texi (string.h): Likewise.
46568         * doc/posix-headers/time.texi (time.h): Likewise.
46569         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46570         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46571
46572 2009-08-14  Eric Blake  <ebb9@byu.net>
46573
46574         doc: improve git diff of texinfo files
46575         * .gitattributes: Add rule for *.texi files, with hint on how to
46576         use it.
46577         Copied from m4, and based on a report by Bruno Haible.
46578
46579 2009-08-14  Bruno Haible  <bruno@clisp.org>
46580
46581         Disable multithread support by default on Cygwin 1.5.x for real.
46582         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46583
46584 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46585
46586         update-copyright: much ado about intervals
46587         * build-aux/update-copyright: Implement and document
46588         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46589         of copyright year intervals.
46590         Also, document UPDATE_COPYRIGHT_YEAR.
46591         * tests/test-update-copyright.sh: Test it.
46592
46593         update-copyright: convert 2-digit to 4-digit years
46594         * build-aux/update-copyright: Implement and document.
46595         * tests/test-update-copyright.sh: Update.
46596
46597 2009-08-14  Jim Meyering  <meyering@redhat.com>
46598
46599         test-exclude: avoid coreutils "make check" failure
46600         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46601         just as in test-argmatch.c.
46602
46603 2009-08-13  Eric Blake  <ebb9@byu.net>
46604
46605         test-dup2: fix bad assumption
46606         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46607         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46608
46609         test-version-etc: fix CRLF portability issue
46610         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46611         recognize \r.
46612         * tests/test-argp-version-etc-1.sh: Likewise.
46613
46614         getopt: update client modules
46615         * modules/argp (Depends-on): Use getopt-gnu.
46616         * modules/git-merge-changelog (Depends-on): Likewise.
46617         * modules/long-options (Depends-on): Likewise.
46618         * modules/xstrtol (Depends-on): Likewise.
46619
46620 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46621
46622         * tests/test-version-etc.sh: Don't fail on different
46623         project/version.  Don't fail on CRLF differences.  Rewrite to use
46624         multiple -e instead of multiple sed forks, suggested by Eric Blake
46625         <ebb9@byu.net>.
46626         * tests/test-argp-version-etc-1.sh: Likewise.
46627
46628 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46629
46630         * tests/test-version-etc.sh: Don't fail on different
46631         project/version.
46632
46633 2009-08-12  Bruno Haible  <bruno@clisp.org>
46634
46635         Tests for modules 'getopt-posix', 'getopt-gnu'.
46636         * modules/getopt-posix-tests: New file.
46637         * tests/test-getopt.c: New file.
46638         * tests/test-getopt.h: New file.
46639         * tests/test-getopt_long.h: New file.
46640
46641         New modules 'getopt-posix', 'getopt-gnu'.
46642         * modules/getopt-gnu: New file, renamed from modules/getopt.
46643         * modules/getopt-posix: New file.
46644         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46645         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46646         (gl_GETOPT): Remove macro.
46647         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46648         Disable the test against BSD systems that declare optreset. Test
46649         against mingw bug. Test against lack of support of optional arguments
46650         on many platforms.
46651         * doc/glibc-headers/getopt.texi: Update module name and list of
46652         relevant platforms.
46653         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46654         'getopt-gnu' and more portability problems.
46655         * NEWS: Mention the changes.
46656
46657 2009-08-12  Bruno Haible  <bruno@clisp.org>
46658
46659         Ensure that optarg etc. get declared by <unistd.h>.
46660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46661         AC_USE_SYSTEM_EXTENSIONS.
46662         * modules/getopt (Depends-on): Add 'extensions'.
46663
46664 2009-08-12  Bruno Haible  <bruno@clisp.org>
46665
46666         Avoid test link errors.
46667         * modules/pipe-filter-ii-tests (Makefile.am): Define
46668         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46669         * modules/pipe-filter-gi-tests (Makefile.am): Define
46670         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46672
46673 2009-08-12  Bruno Haible  <bruno@clisp.org>
46674
46675         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46676         gl_GETOPT_SUBSTITUTE before.
46677         (gl_GETOPT): Use it.
46678         * m4/argp.m4 (gl_ARGP): Update.
46679         Reported by Sergey Poznyakoff.
46680
46681         * m4/getopt.m4: Reorder macros.
46682         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46683         (gl_GETOPT_SUBSTITUTE): Remove macro.
46684
46685 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46686
46687         Minor improvement in gitlog-to-changelog
46688
46689         * build-aux/gitlog-to-changelog: New option `--format' makes
46690         output format string configurable.
46691
46692 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46693
46694         Optimize exclude: use hash tables for non-wildcard patterns.
46695
46696         * lib/exclude.c: Include hash.h and mbuiter.h
46697         (struct exclude_pattern, exclude_segment): New data types.
46698         (struct exclude): Rewrite.
46699         (fnmatch_pattern_has_wildcards): New function.
46700         (new_exclude_segment, free_exclude_segment): New functions.
46701         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46702         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46703         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46704         * modules/exclude: Depend on hash and mbuiter.
46705
46706         * modules/exclude-tests: New file.
46707         * tests/test-exclude.c: New file.
46708         * tests/test-exclude1.sh: New file.
46709         * tests/test-exclude2.sh: New file.
46710         * tests/test-exclude3.sh: New file.
46711         * tests/test-exclude4.sh: New file.
46712         * tests/test-exclude5.sh: New file.
46713         * tests/test-exclude6.sh: New file.
46714         * tests/test-exclude7.sh: New file.
46715
46716 2009-08-12  Bruno Haible  <bruno@clisp.org>
46717
46718         Ensure that getopt() gets declared by <unistd.h>.
46719         * lib/unistd.in.h: Conditionally include getopt.h.
46720         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46721         Set GNULIB_UNISTD_H_GETOPT.
46722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46723         GNULIB_UNISTD_H_GETOPT.
46724         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46725
46726 2009-08-12  Bruno Haible  <bruno@clisp.org>
46727
46728         Clarify logic.
46729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46730         gl_replace_getopt instead of GETOPT_H.
46731
46732 2009-08-12  Bruno Haible  <bruno@clisp.org>
46733
46734         * m4/getopt.m4: Add comments.
46735
46736 2009-08-12  Bruno Haible  <bruno@clisp.org>
46737
46738         Disable multithread support by default on Cygwin 1.5.x.
46739         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46740         set gl_use_threads=no if not specified otherwise.
46741
46742 2009-08-11  Bruno Haible  <bruno@clisp.org>
46743
46744         Avoid compilation error on NetBSD 5.0.
46745         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46746         * tests/test-stdio.c: Likewise.
46747         * tests/test-stdlib.c: Likewise.
46748         * tests/test-string.c: Likewise.
46749         * tests/test-unistd.c: Likewise.
46750         Reported by Greg Troxel <gdt@ir.bbn.com>
46751         at <https://savannah.gnu.org/support/?106973>.
46752
46753 2009-08-11  Bruno Haible  <bruno@clisp.org>
46754
46755         * modules/dup2-tests (Depends-on): Remove close.
46756
46757         Undo 2009-07-19 commit.
46758         * modules/acl-tests (Depends-on): Remove close.
46759         * modules/binary-io-tests (Depends-on): Likewise.
46760         * modules/closein-tests (Depends-on): Likewise.
46761         * modules/flock-tests (Depends-on): Likewise.
46762         * modules/fsync-tests (Depends-on): Likewise.
46763         * modules/lseek-tests (Depends-on): Likewise.
46764         * modules/pipe-tests (Depends-on): Likewise.
46765         * modules/posix_spawn-tests (Depends-on): Likewise.
46766         * modules/posix_spawnp-tests (Depends-on): Likewise.
46767         * modules/stat-time-tests (Depends-on): Likewise.
46768         * modules/yesno-tests (Depends-on): Likewise.
46769
46770 2009-08-10  Bruno Haible  <bruno@clisp.org>
46771
46772         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46773
46774 2009-08-10  Bruno Haible  <bruno@clisp.org>
46775
46776         Fix a gcc warning.
46777         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46778
46779 2009-08-10  Bruno Haible  <bruno@clisp.org>
46780
46781         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46782         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46783         not only the first time.
46784         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46785         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46786         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46787         is 1, not only the the first time.
46788
46789 2009-08-10  Bruno Haible  <bruno@clisp.org>
46790
46791         Make it possible to use module 'gethostname' without module 'close'.
46792         * lib/unistd.in.h (close): Evoke a link error only if
46793         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46795         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46796         * modules/unistd (Makefile.am): Substitute
46797         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46798         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46799         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46800         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46801         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46802         * modules/sys_ioctl (Makefile.am): Substitute
46803         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46804         * modules/socket (configure.ac): On native Windows, set
46805         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46806         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46807         Reported by Sam Steingold <sds@gnu.org>.
46808
46809 2009-08-10  Bruno Haible  <bruno@clisp.org>
46810
46811         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46812         * modules/ioctl (configure.ac): Likewise.
46813
46814 2009-08-10  Bruno Haible  <bruno@clisp.org>
46815
46816         Avoid collision between gnulib wrapper and libintl wrapper.
46817         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46818         already defined in intl/printf.c.
46819         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46820         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46821
46822 2009-08-09  Bruno Haible  <bruno@clisp.org>
46823
46824         Make <sys/select.h> really self-contained, also on Solaris 10.
46825         * lib/sys_select.in.h: Include <string.h>.
46826         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46827         Solaris 10 problem.
46828         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46829         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46830         Reported by Jim Meyering.
46831
46832 2009-08-09  Bruno Haible  <bruno@clisp.org>
46833
46834         Avoid warnings from 'aclocal' that are due to a use of macro name
46835         AM_XGETTEXT_OPTION that is not defined in automake.
46836         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46837         automake.
46838         * modules/error (configure.ac): Likewise.
46839         * modules/propername (configure.ac): Likewise.
46840         * modules/vasprintf (configure.ac): Likewise.
46841         * modules/verror (configure.ac): Likewise.
46842         * modules/xprintf (configure.ac): Likewise.
46843         * modules/xvasprintf (configure.ac): Likewise.
46844
46845 2009-08-08  Bruno Haible  <bruno@clisp.org>
46846
46847         Avoid compilation error in C++ mode.
46848         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46849         Reported by Sam Steingold <sds@gnu.org>.
46850
46851 2009-08-08  Bruno Haible  <bruno@clisp.org>
46852
46853         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46854         for the various Unix platforms.
46855         * doc/posix-headers/limits.texi: Update platforms list regarding
46856         HOST_NAME_MAX.
46857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46858
46859 2009-08-07  Jim Meyering  <meyering@redhat.com>
46860
46861         selinux-at: fix typo in a comment
46862         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46863         Spotted by Paolo Bonzini.
46864
46865         selinux-at: remove redundant m4 code, add documentation
46866         * modules/selinux-at (configure.ac): Remove redundant code.
46867         LIB_SELINUX is already set via the dependent module, selinux-h.
46868         (Include): Add quotes around selinux-at.h.
46869         * lib/selinux-at.h: Add documentation.
46870         Reported by Bruno Haible in
46871         http://marc.info/?l=gnulib-bug&m=124958988300749
46872
46873 2009-08-07  Bruno Haible  <bruno@clisp.org>
46874
46875         Avoid link error on MacOS X 10.3 and 10.4.
46876         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46877         on non-ELF systems.
46878         * lib/argp-pv.c (argp_program_version): Likewise.
46879         Reported by Simon Josefsson.
46880
46881 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46882
46883         * tests/test-version-etc.sh: Use $EXEEXT.
46884
46885 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46886
46887         update-copyright: update documentation to point to maint.mk
46888         * build-aux/update-copyright: Here.
46889
46890 2009-08-06  Jim Meyering  <meyering@redhat.com>
46891
46892         maint.mk: support update-copyright-local
46893         * top/maint.mk (update-copyright-local): Define place-holder.
46894         (update-copyright): Depend on $(update-copyright-local).
46895
46896 2009-08-06  Jim Meyering  <meyering@redhat.com>
46897
46898         selinux-at: new module
46899         Initially written for coreutils, this module will soon be
46900         used by findutils, too.
46901         * MODULES.html.sh [Misc]: Add selinux-at.
46902         * lib/selinux-at.h: New file, from coreutils.
46903         * lib/selinux-at.c: Likewise.
46904         * modules/selinux-at: Likewise.
46905         (License): Change from LGPL to GPL, since it depends
46906         on the GPL'd openat module.
46907
46908         doc: update README
46909         * README: Remove references to cogito.
46910         Remove cvs-repo-updating instructions from 2007.
46911         Don't imply that CVS is better if you have limited disk space.
46912
46913 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46914
46915         update-copyright: support C-style comments
46916         * build-aux/update-copyright: Implement and document.
46917         * tests/test-update-copyright.sh: Test.
46918
46919 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46920
46921         update-copyright: support omitted "(C)"
46922         * build-aux/update-copyright: Implement and document.  Also,
46923         allow variable whitespace before "(C)".
46924         * tests/test-update-copyright.sh: Test.
46925
46926 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46927
46928         update-copyright: don't trip on non-FSF copyright statements
46929         * build-aux/update-copyright: Fix so that the first correctly
46930         formatted FSF copyright statement is recognized no matter what
46931         appears before it.  Update documentation.
46932         * tests/test-update-copyright.sh: Test that.
46933
46934 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46935
46936         update-copyright: clean up code a little
46937         * build-aux/update-copyright: Append "_re" to the name of any
46938         variable holding a regular expression.
46939         Replace "old" and "new" with "stmt" in variable names.
46940         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46941         handled correctly.
46942         Format code more consistently.
46943
46944 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46945
46946         update-copyright-tests: improve portability
46947         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46948         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46949
46950 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46951
46952         update-copyright: support @copyright{} and &copy;
46953         * build-aux/update-copyright: Implement and document.
46954         * tests/test-update-copyright.sh: Test.
46955
46956 2009-08-04  Jim Meyering  <meyering@redhat.com>
46957
46958         update-copyright-tests: correctly test EOL=\r\n handling
46959         * tests/test-update-copyright.sh: Put \r at the end of some lines
46960         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46961
46962         maint.mk: make update-copyright exclusion list more configurable
46963         * top/maint.mk (update-copyright): Default to excluding COPYING,
46964         but allow an override, in case someone does want to update that file.
46965
46966         maint.mk: don't update copyright date in COPYING
46967         * top/maint.mk (update-copyright): Exclude COPYING.
46968
46969         maint.mk: add a copyright-updating rule
46970         * top/maint.mk (update-copyright): New rule.
46971         Derived from coreutils/Makefile.am.
46972
46973         update-copyright: rename some variables
46974         * build-aux/update-copyright: Rename a few variables for clarity.
46975         Tweak syntax.  List Joel E. Denny as coauthor.
46976
46977 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46978
46979         update-copyright: fix bug for 2-digit last year and add tests
46980         * build-aux/update-copyright: Fix bug.
46981         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46982         specified.
46983         * modules/update-copyright-tests: New
46984         * tests/test-update-copyright.sh: New.
46985
46986 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46987
46988         update-copyright: handle leading tabs in line prefix
46989         * build-aux/update-copyright: Count leading tabs as 8 spaces
46990         when computing margin.  This helps with the formatting of
46991         ChangeLogs, for example.
46992         Fix documentation a little.
46993
46994 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46995
46996         update-copyright: support EOL=\r\n
46997         * build-aux/update-copyright: Implement that.
46998
46999 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47000
47001         update-copyright: automatically format copyright statements
47002         * build-aux/update-copyright: Implement that.
47003         Also, be a little more predictable and safer by always failing
47004         when the full copyright format is not perfectly recognized as an
47005         unbroken whole.  Discussed at
47006         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47007         Rewrite documentation.
47008
47009 2009-08-03  Bruno Haible  <bruno@clisp.org>
47010
47011         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47012
47013 2009-08-02  Bruno Haible  <bruno@clisp.org>
47014
47015         Tests for module 'uname'.
47016         * modules/uname-tests: New file.
47017         * tests/test-uname.c: New file.
47018
47019         New module 'uname'.
47020         * lib/uname.c: New file.
47021         * m4/uname.m4: New file.
47022         * modules/uname: New file.
47023         * doc/posix-functions/uname.texi: Mention the new module.
47024
47025 2009-08-02  Bruno Haible  <bruno@clisp.org>
47026
47027         Tests for module 'sys_utsname'.
47028         * modules/sys_utsname-tests: New file.
47029         * tests/test-sys_utsname.c: New file.
47030
47031         New module 'sys_utsname'.
47032         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47033         * m4/sys_utsname_h.m4: New file.
47034         * modules/sys_utsname: New file.
47035         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47036
47037 2009-08-02  Bruno Haible  <bruno@clisp.org>
47038
47039         Implicitly initialize the sockets library.
47040         * lib/gethostname.c: Include sockets.h.
47041         (rpl_gethostname): Invoke gl_sockets_startup.
47042         * lib/socket.c: Include sockets.h.
47043         (rpl_socket): Invoke gl_sockets_startup.
47044         * modules/gethostname (Depends-on): Add sockets.
47045         * modules/socket (Depends-on): Likewise.
47046         * tests/test-poll.c: Don't include sockets.h.
47047         (main): Don't invoke gl_sockets_startup.
47048         * tests/test-select.c: Don't include sockets.h.
47049         (main): Don't invoke gl_sockets_startup.
47050
47051 2009-08-02  Bruno Haible  <bruno@clisp.org>
47052
47053         Allow multiple calls to gl_sockets_startup.
47054         * lib/sockets.c (initialized_sockets_version): New variable.
47055         (gl_sockets_startup): Do nothing if already called for this or a higher
47056         version.
47057         (gl_sockets_cleanup): Reset initialized_sockets_version.
47058
47059 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47060
47061         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47062         different project/version.
47063
47064 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47065             Bruno Haible  <bruno@clisp.org>
47066
47067         Tests for module 'pipe-filter-gi'.
47068         * modules/pipe-filter-gi-tests: New file.
47069         * tests/test-pipe-filter-gi1.sh: New file.
47070         * tests/test-pipe-filter-gi1.c: New file.
47071         * tests/test-pipe-filter-gi2.sh: New file.
47072         * tests/test-pipe-filter-gi2-main.c: New file.
47073         * tests/test-pipe-filter-gi2-child.c: New file.
47074
47075         New module 'pipe-filter-gi'.
47076         * lib/pipe-filter-gi.c: New file.
47077         * modules/pipe-filter-gi: New file.
47078
47079 2009-08-02  Bruno Haible  <bruno@clisp.org>
47080             Paolo Bonzini  <bonzini@gnu.org>
47081
47082         Tests for module 'pipe-filter-ii'.
47083         * modules/pipe-filter-ii-tests: New file.
47084         * tests/test-pipe-filter-ii1.sh: New file.
47085         * tests/test-pipe-filter-ii1.c: New file.
47086         * tests/test-pipe-filter-ii2.sh: New file.
47087         * tests/test-pipe-filter-ii2-main.c: New file.
47088         * tests/test-pipe-filter-ii2-child.c: New file.
47089
47090         New module 'pipe-filter-ii'.
47091         * lib/pipe-filter.h: New file.
47092         * lib/pipe-filter-ii.c: New file.
47093         * lib/pipe-filter-aux.h: New file.
47094         * modules/pipe-filter-ii: New file.
47095
47096 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47097
47098         * lib/gc-libgcrypt.c: Change copyright to FSF.
47099         * lib/gc-gnulib.c: Likewise.
47100
47101 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47102
47103         * lib/gethostname.c: Include limits.h.
47104
47105 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47106             Bruno Haible  <bruno@clisp.org>
47107
47108         Ensure HOST_NAME_MAX as part of the gethostname module.
47109         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47110         define also HOST_NAME_MAX.
47111         * tests/test-gethostname.c: Include <limits.h>.
47112         (main): Check also HOST_NAME_MAX.
47113         * doc/posix-headers/limits.texi: Document the mingw problem.
47114
47115 2009-08-02  Bruno Haible  <bruno@clisp.org>
47116
47117         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47118         Add comments.
47119
47120 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47121
47122         * lib/gethostname.c: Add Windows wrapper.
47123         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47124         * modules/gethostname: Depend on sys_socket & errno, for also
47125         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47126         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47127
47128 2009-07-31  Jim Meyering  <meyering@redhat.com>
47129
47130         getloadavg: fix symbol name in comment
47131         * lib/getloadavg.c: Correct a typo I introduced when adding
47132         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47133         Matt Kraai spotted the problem.
47134
47135 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47136
47137         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47138         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47139         code also if ! defined N_NAME_POINTER.
47140         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47141         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47142         but the n_name member is a 12-byte array.
47143
47144 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47145
47146         update-copyright: generalize comment handling
47147         * build-aux/update-copyright: Handle copyright statements
47148         within more comment styles.
47149         Document usage.
47150         Report any file with an external copyright holder or parse failure.
47151
47152 2009-07-29  Jim Meyering  <meyering@redhat.com>
47153
47154         mktime: correct setting of REPLACE_MKTIME
47155         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47156
47157         update-copyright: new module
47158         * modules/update-copyright: New file.
47159         * build-aux/update-copyright: New file.
47160         * MODULES.html.sh (maint+release support): Add update-copyright.
47161
47162 2009-07-27  Bruno Haible  <bruno@clisp.org>
47163
47164         Fix compilation error when <ctime> is used and mktime is replaced.
47165         * lib/time.in.h (mktime): New declaration.
47166         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47167         REPLACE_MKTIME instead of defining mktime in config.h.
47168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47169         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47170         Reported by Ross McFarland <rwmcfa1@neces.com>.
47171
47172 2009-07-27  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47175         Reported by Matt Kraai <mkraai@beckman.com>.
47176
47177 2009-07-25  Jim Meyering  <meyering@redhat.com>
47178
47179         maint.mk: avoid warnings about missing files
47180         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47181         diagnostic when .prev-version does not exist.
47182         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47183         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47184         nonexistent cfg.mk.
47185         Suggestions from Simon Josefsson.
47186
47187 2009-07-25  Bruno Haible  <bruno@clisp.org>
47188
47189         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47190         defined as macros. Needed on QNX 6.4.1.
47191         Reported by Matt Kraai <mkraai@beckman.com>.
47192
47193 2009-07-23  Jim Meyering  <meyering@redhat.com>
47194
47195         maint.mk: invoke "make dist" with a working value of XZ_OPT
47196         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47197
47198 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47199
47200         Make fseeko.c compile on QNX.
47201         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47202
47203 2009-07-22  Peter Simons  <simons@cryp.to>
47204
47205         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47206         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47207         * lib/md4.h: Likewise.
47208         * lib/md5.h: Likewise.
47209         * lib/sha1.h: Likewise.
47210         * lib/sha256.h: Likewise.
47211         * lib/sha512.h: Likewise.
47212
47213         tests-sha1: don't assign literal string to 'char *' variable
47214         * tests/test-sha1.c (main): Declare locals with "const" to match
47215         attributes of the right hand side.
47216
47217 2009-07-21  Eric Blake  <ebb9@byu.net>
47218
47219         dup2: fix more mingw problems
47220         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47221         fd to itself.
47222         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47223         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47224         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47225         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47226         care of mingw bugs.
47227
47228 2009-07-21  Jim Meyering  <meyering@redhat.com>
47229
47230         vc-list-files: avoid failure when /bin/sh is dash
47231         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47232         On some Debian based systems, /bin/sh is a symlink to dash, and running
47233         this command would omit the "/" following each 'tests' prefix:
47234           dash -x build-aux/vc-list-files -C . tests
47235         That is because bash and dash work differently:
47236           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47237           bash ok
47238           dash odd
47239
47240 2009-07-21  Eric Blake  <ebb9@byu.net>
47241
47242         dup2-tests: test previous patch
47243         * modules/dup2-tests: New file.
47244         * tests/test-dup2.c: Likewise.
47245         * tests/test-open.c (main): Avoid unspecified behavior.
47246         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47247         test.
47248
47249         dup2: work around mingw and cygwin 1.5 bug
47250         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47252         * modules/unistd (Makefile.am): Substitute it.
47253         * lib/unistd.in.h (dup2): Declare the replacement.
47254         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47255         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47256         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47257         * modules/execute (Depends-on): Add dup2.
47258         * modules/fseterr (Depends-on): Likewise.
47259         * modules/pipe (Depends-on): Likewise.
47260         * modules/posix_spawn-internal (Depends-on): Likewise.
47261
47262 2009-07-21  Bruno Haible  <bruno@clisp.org>
47263
47264         * modules/.gitattributes: New file.
47265
47266 2009-07-20  Bruno Haible  <bruno@clisp.org>
47267
47268         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47269         (main): Use it.
47270
47271 2009-07-20  Eric Blake  <ebb9@byu.net>
47272
47273         test-pipe: make a bit more robust.
47274         * tests/test-pipe.c (myerr): Allow error messages regardless of
47275         what we do to stderr.
47276         (test_pipe): Rearrange to avoid deadlock.
47277         (child_main): Try a larger read, to ensure we avoided deadlock.
47278         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47279         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47280         if misused.
47281
47282 2009-07-19  Jim Meyering  <meyering@redhat.com>
47283
47284         fts: avoid false-positive cycle-detection
47285         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47286         for each new command line argument.
47287
47288 2009-07-19  Bruno Haible  <bruno@clisp.org>
47289
47290         Fix build error on mingw with the modules sys_select and unistd.
47291         * modules/acl-tests (Depends-on): Add close.
47292         * modules/binary-io-tests (Depends-on): Likewise.
47293         * modules/closein-tests (Depends-on): Likewise.
47294         * modules/flock-tests (Depends-on): Likewise.
47295         * modules/fsync-tests (Depends-on): Likewise.
47296         * modules/lseek-tests (Depends-on): Likewise.
47297         * modules/pipe-tests (Depends-on): Likewise.
47298         * modules/posix_spawn-tests (Depends-on): Likewise.
47299         * modules/posix_spawnp-tests (Depends-on): Likewise.
47300         * modules/stat-time-tests (Depends-on): Likewise.
47301         * modules/yesno-tests (Depends-on): Likewise.
47302
47303 2009-07-19  Bruno Haible  <bruno@clisp.org>
47304
47305         Unify conditionals.
47306         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47307         macros, not at the compiler macros.
47308         * lib/pipe.c: Likewise.
47309         * lib/execute.c: Likewise.
47310         * lib/spawni.c: Likewise.
47311
47312 2009-07-19  Bruno Haible  <bruno@clisp.org>
47313
47314         Fix handling of closed stdin/stdout/stderr on mingw.
47315         * lib/w32spawn.h: Include unistd.h.
47316         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47317         file descriptor with O_NOINHERIT flag.
47318         (fd_safer_noinherit): New function, based on fd-safer.c.
47319         (dup_safer_noinherit): New function, based on dup-safer.c.
47320         (undup_safer_noinherit): New function.
47321         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47322         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47323         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47324         instead of fd_safer.
47325         * tests/test-pipe.c: Include <windows.h>.
47326         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47327         result.
47328
47329         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47330         from main.
47331         (test_pipe): Pass an extra argument for disambiguation.
47332         (main): Invoke parent_main or child_main.
47333
47334         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47335         consistently.
47336
47337 2009-07-18  Eric Blake  <ebb9@byu.net>
47338
47339         test-pipe: fix mingw build
47340         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47341
47342 2009-07-18  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/pipe-tests (Makefile.am): Fix typo.
47345
47346 2009-07-18  Eric Blake  <ebb9@byu.net>
47347
47348         error: fix mingw build
47349         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47350         Reported by Bruno Haible.
47351
47352         error: avoid undefined use of stdout
47353         * lib/error.c (error, error_at_line): Check that fd 1 is open
47354         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47355         is handling faults and the close_stdout module wants to report the
47356         detection of closed stdout as an error.
47357
47358 2009-07-17  Eric Blake  <ebb9@byu.net>
47359
47360         pipe: be robust in face of closed fds
47361         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47362         should cause child to misbehave.
47363         * modules/pipe-tests: New module.
47364         * tests/test-pipe.c: New file.
47365         * tests/test-pipe.sh: New file.
47366         Reported by Akim Demaille.
47367
47368 2009-07-14  Bruno Haible  <bruno@clisp.org>
47369
47370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47371         Reported by anonymous kc.
47372
47373 2009-07-07  Jim Meyering  <meyering@redhat.com>
47374
47375         maint.mk: don't look for translatable strings in *.m4 or *.mk
47376         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47377         when searching for translatable strings.
47378
47379 2009-07-05  Jim Meyering  <meyering@redhat.com>
47380
47381         remove superfluous parentheses in STREQ definition
47382         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47383         * lib/getugroups.c (STREQ): Likewise.
47384         * lib/fnmatch.c (STREQ): Likewise.
47385         Spotted by Bruno Haible.
47386
47387 2009-07-04  Jim Meyering  <meyering@redhat.com>
47388
47389         argv-iter: new module
47390         * MODULES.html.sh: Add argv-iter.
47391         * lib/argv-iter.c, lib/argv-iter.h: New files.
47392         * modules/argv-iter: New file.
47393         * modules/argv-iter-tests: New file.
47394         * tests/test-argv-iter.c: Test it.
47395
47396 2009-07-04  Bruno Haible  <bruno@clisp.org>
47397
47398         Fix assertion.
47399         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47400         contains more exact copies of a given entry than file2, leave the extra
47401         copies unpaired rather than aborting.
47402         Reported by Eric Blake.
47403
47404 2009-07-02  Bruno Haible  <bruno@clisp.org>
47405
47406         Speedup git-merge-changelog for git cherry-pick.
47407         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47408         (entries_mapping_get): New function, extracted from compute_mapping.
47409         (entries_mapping_reverse_get): New function.
47410         (compute_mapping): Add a 'full' argument. Return the result in a
47411         'struct entries_mapping'.
47412         (main): Update. Access the mappings through entries_mapping_get.
47413         Reported by Eric Blake.
47414
47415 2009-07-02  Bruno Haible  <bruno@clisp.org>
47416
47417         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47418         best_i.
47419
47420 2009-07-02  Bruno Haible  <bruno@clisp.org>
47421
47422         Speed up approximate search for matching ChangeLog entries.
47423         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47424         argument. Call fstrcmp_bounded instead of fstrcmp.
47425         (compute_mapping, try_split_merged_entry, main): Update callers.
47426
47427 2009-07-02  Bruno Haible  <bruno@clisp.org>
47428
47429         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47430
47431 2009-06-30  Bruno Haible  <bruno@clisp.org>
47432
47433         Reduce the number of uc_is_cased calls.
47434         * lib/unicase.h (casing_suffix_context_t): Add
47435         'first_char_except_ignorable' field.
47436         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47437         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47438         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47439         Update initializer.
47440         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47441         case-ignorable characters.
47442         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47443         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47444         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47445         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47446         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47447
47448 2009-06-30  Bruno Haible  <bruno@clisp.org>
47449
47450         Tests for module 'unicase/ignorable'.
47451         * modules/unicase/ignorable-tests: New file.
47452         * tests/unicase/test-ignorable.c: New file, generated by
47453         gen-uni-tables.
47454
47455         Tests for module 'unicase/cased'.
47456         * modules/unicase/cased-tests: New file.
47457         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47458         * tests/unicase/test-predicate-part1.h: New file, derived from
47459         tests/unictype/test-predicate-part1.h.
47460         * tests/unicase/test-predicate-part2.h: New file, same as
47461         tests/unictype/test-predicate-part2.h.
47462
47463         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47464         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47465         (output_casing_properties): New function.
47466         (main): Call it.
47467         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47468         * lib/unicase/cased.c: Include unictype/bitmap.h.
47469         (uc_is_cased): Define through a bitmap lookup.
47470         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47471         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47472         (uc_is_case_ignorable): Define through a bitmap lookup.
47473         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47474         lib/unictype/bitmap.h.
47475         (Depends-on): Add inline. Clean up.
47476         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47477         lib/unictype/bitmap.h.
47478         (Depends-on): Add inline. Clean up.
47479         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47480         recognition.
47481         * tests/unicase/test-u16-tolower.c (main): Likewise.
47482         * tests/unicase/test-u32-tolower.c (main): Likewise.
47483
47484 2009-06-30  Bruno Haible  <bruno@clisp.org>
47485
47486         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47487         * lib/unicase/u16-casemap.c: Likewise.
47488         * lib/unicase/u32-casemap.c: Likewise.
47489
47490 2009-06-29  Bruno Haible  <bruno@clisp.org>
47491
47492         Define u32_casefold as a wrapper around u32_ct_casefold.
47493         * lib/unicase/u32-casefold.c: Update.
47494         * modules/unicase/u32-casefold (Depends-on): Add
47495         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47496         unicase/empty-suffix-context. Clean up.
47497
47498         Define u16_casefold as a wrapper around u16_ct_casefold.
47499         * lib/unicase/u16-casefold.c: Update.
47500         * modules/unicase/u16-casefold (Depends-on): Add
47501         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47502         unicase/empty-suffix-context. Clean up.
47503
47504         Define u8_casefold as a wrapper around u8_ct_casefold.
47505         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47506         * lib/unicase/u8-casefold.c: Update.
47507         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47508         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47509
47510         Define u32_totitle as a wrapper around u32_ct_totitle.
47511         * lib/unicase/u32-totitle.c: Update.
47512         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47513         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47514
47515         Define u16_totitle as a wrapper around u16_ct_totitle.
47516         * lib/unicase/u16-totitle.c: Update.
47517         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47518         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47519
47520         Define u8_totitle as a wrapper around u8_ct_totitle.
47521         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47522         functions.
47523         (FUNC): Delegate to U_CT_TOTITLE.
47524         * lib/unicase/u8-totitle.c: Update.
47525         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47526         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47527
47528         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47529         invocation.
47530         * modules/unicase/u32-tolower (Depends-on): Add
47531         unicase/empty-prefix-context, unicase/empty-suffix-context.
47532
47533         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47534         invocation.
47535         * modules/unicase/u16-tolower (Depends-on): Add
47536         unicase/empty-prefix-context, unicase/empty-suffix-context.
47537
47538         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47539         * modules/unicase/u8-tolower (Depends-on): Add
47540         unicase/empty-prefix-context, unicase/empty-suffix-context.
47541
47542         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47543         invocation.
47544         * modules/unicase/u32-toupper (Depends-on): Add
47545         unicase/empty-prefix-context, unicase/empty-suffix-context.
47546
47547         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47548         invocation.
47549         * modules/unicase/u16-toupper (Depends-on): Add
47550         unicase/empty-prefix-context, unicase/empty-suffix-context.
47551
47552         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47553         * modules/unicase/u8-toupper (Depends-on): Add
47554         unicase/empty-prefix-context, unicase/empty-suffix-context.
47555
47556         New module 'unicase/u32-ct-casefold'.
47557         * lib/unicase/u32-ct-casefold.c: New file.
47558         * modules/unicase/u32-ct-casefold: New file.
47559
47560         New module 'unicase/u16-ct-casefold'.
47561         * lib/unicase/u16-ct-casefold.c: New file.
47562         * modules/unicase/u16-ct-casefold: New file.
47563
47564         New module 'unicase/u8-ct-casefold'.
47565         * lib/unicase/u8-ct-casefold.c: New file.
47566         * lib/unicase/u-ct-casefold.h: New file, derived from
47567         lib/unicase/u-casefold.h.
47568         * modules/unicase/u8-ct-casefold: New file.
47569
47570         New module 'unicase/u32-ct-totitle'.
47571         * lib/unicase/u32-ct-totitle.c: New file.
47572         * modules/unicase/u32-ct-totitle: New file.
47573
47574         New module 'unicase/u16-ct-totitle'.
47575         * lib/unicase/u16-ct-totitle.c: New file.
47576         * modules/unicase/u16-ct-totitle: New file.
47577
47578         New module 'unicase/u8-ct-totitle'.
47579         * lib/unicase/u8-ct-totitle.c: New file.
47580         * lib/unicase/u-ct-totitle.h: New file, derived from
47581         lib/unicase/u-totitle.h.
47582         * modules/unicase/u8-ct-totitle: New file.
47583
47584         New module 'unicase/u32-ct-tolower'.
47585         * lib/unicase/u32-ct-tolower.c: New file.
47586         * modules/unicase/u32-ct-tolower: New file.
47587
47588         New module 'unicase/u16-ct-tolower'.
47589         * lib/unicase/u16-ct-tolower.c: New file.
47590         * modules/unicase/u16-ct-tolower: New file.
47591
47592         New module 'unicase/u8-ct-tolower'.
47593         * lib/unicase/u8-ct-tolower.c: New file.
47594         * modules/unicase/u8-ct-tolower: New file.
47595
47596         New module 'unicase/u32-ct-toupper'.
47597         * lib/unicase/u32-ct-toupper.c: New file.
47598         * modules/unicase/u32-ct-toupper: New file.
47599
47600         New module 'unicase/u16-ct-toupper'.
47601         * lib/unicase/u16-ct-toupper.c: New file.
47602         * modules/unicase/u16-ct-toupper: New file.
47603
47604         New module 'unicase/u8-ct-toupper'.
47605         * lib/unicase/u8-ct-toupper.c: New file.
47606         * modules/unicase/u8-ct-toupper: New file.
47607
47608         Add context arguments to u*_casemap functions.
47609         * lib/unicase/unicasemap.h: Include unicase.h.
47610         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47611         suffix_context arguments.
47612         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47613         functions.
47614         (FUNC): Add prefix_context and suffix_context arguments. Use
47615         uc_is_cased and uc_is_case_ignorable.
47616         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47617         * lib/unicase/u16-casemap.c: Likewise.
47618         * lib/unicase/u32-casemap.c: Likewise.
47619         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47620         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47621         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47622         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47623         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47624         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47625
47626         New module 'unicase/u32-suffix-context'.
47627         * lib/unicase/u32-suffix-context.c: New file.
47628         * modules/unicase/u32-suffix-context: New file.
47629
47630         New module 'unicase/u16-suffix-context'.
47631         * lib/unicase/u16-suffix-context.c: New file.
47632         * modules/unicase/u16-suffix-context: New file.
47633
47634         New module 'unicase/u8-suffix-context'.
47635         * lib/unicase/u8-suffix-context.c: New file.
47636         * lib/unicase/u-suffix-context.h: New file.
47637         * modules/unicase/u8-suffix-context: New file.
47638
47639         New module 'unicase/empty-suffix-context'.
47640         * lib/unicase/empty-suffix-context.c: New file.
47641         * modules/unicase/empty-suffix-context: New file.
47642
47643         New module 'unicase/u32-prefix-context'.
47644         * lib/unicase/u32-prefix-context.c: New file.
47645         * modules/unicase/u32-prefix-context: New file.
47646
47647         New module 'unicase/u16-prefix-context'.
47648         * lib/unicase/u16-prefix-context.c: New file.
47649         * modules/unicase/u16-prefix-context: New file.
47650
47651         New module 'unicase/u8-prefix-context'.
47652         * lib/unicase/u8-prefix-context.c: New file.
47653         * lib/unicase/u-prefix-context.h: New file.
47654         * lib/unicase/context.h: New file.
47655         * modules/unicase/u8-prefix-context: New file.
47656
47657         New module 'unicase/empty-prefix-context'.
47658         * lib/unicase/empty-prefix-context.c: New file.
47659         * modules/unicase/empty-prefix-context: New file.
47660
47661         New module 'unicase/ignorable'.
47662         * lib/unicase/ignorable.c: New file.
47663         * modules/unicase/ignorable: New file.
47664
47665         New module 'unicase/cased'.
47666         * lib/unicase/caseprop.h: New file.
47667         * lib/unicase/cased.c: New file.
47668         * modules/unicase/cased: New file.
47669
47670         New functions for case mapping of substrings.
47671         * lib/unicase.h (casing_prefix_context_t): New type.
47672         (unicase_empty_prefix_context): New variable.
47673         (u8_casing_prefix_context, u16_casing_prefix_context,
47674         u32_casing_prefix_context, u8_casing_prefixes_context,
47675         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47676         declarations.
47677         (casing_suffix_context_t): New type.
47678         (unicase_empty_suffix_context): New variable.
47679         (u8_casing_suffix_context, u16_casing_suffix_context,
47680         u32_casing_suffix_context, u8_casing_suffixes_context,
47681         u16_casing_suffixes_context, u32_casing_suffixes_context,
47682         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47683         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47684         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47685         declarations.
47686
47687 2009-06-28  Jim Meyering  <meyering@redhat.com>
47688
47689         boostrap: indent only with spaces
47690         * build-aux/bootstrap: Indent only with spaces, never TABs.
47691
47692         bootstrap: split long lines
47693         * build-aux/bootstrap: Keep line length < 80.
47694
47695         bootstrap: sync from coreutils
47696         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47697         just as autoreconf does.  Verify a list of prerequisite
47698         package-name,version-number pairs if defined in bootstrap.conf.
47699         Refer to README-prereq, if prerequisites are not satisfied.
47700
47701 2009-06-27  Eric Blake  <ebb9@byu.net>
47702
47703         tests: add test for bogus NULL definition
47704         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47705         * tests/test-stdlib.c: Likewise.
47706         * tests/test-string.c: Likewise.
47707         * tests/test-locale.c: Likewise.
47708         * tests/test-unistd.c: Likewise.
47709         * modules/stdio-tests (Depends-on): Add verify.
47710         * modules/stdlib-tests (Depends-on): Likewise.
47711         * modules/string-tests (Depends-on): Likewise.
47712         * modules/locale-tests (Depends-on): Likewise.
47713         * modules/unistd-tests (Depends-on): Likewise.
47714
47715 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47716
47717         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47718         self-explaining comment.
47719         * m4/selinux-selinux-h: Update serial.
47720         (gl_LIBSELINUX): New macro, adding a warning for missing development
47721         packages to code extracted from...
47722         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47723         Add warning for missing development packages here, too.
47724
47725 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47726
47727         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47728
47729 2009-06-25  Eric Blake  <ebb9@byu.net>
47730
47731         version-etc: fix regression
47732         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47733         gcc.
47734         (version_etc): Use it, to catch bugs with trailing NULL.
47735         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47736         (version_etc_va): Fix logic bug.
47737         * modules/version-etc-tests: Add test.
47738         * tests/test-version-etc.c: New file.
47739         * tests/test-version-etc.sh: Likewise.
47740
47741 2009-06-25  Sam Steingold  <sds@gnu.org>
47742
47743         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47744         mbtowc declaration.
47745
47746 2009-06-25  Eric Blake  <ebb9@byu.net>
47747
47748         fpurge: migrate into <stdio.h>
47749         * lib/fpurge.h: Delete...
47750         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47751         * lib/fpurge.c (fpurge): Change declaring header.
47752         * modules/fpurge (Files): Drop deleted file.
47753         (Depends-on): Add stdio.
47754         (configure.ac): Set witness.
47755         * modules/stdio (Makefile.am): Support fpurge macros.
47756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47757         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47758         * lib/fflush.c: Update client.
47759         * tests/test-fpurge.c: Likewise.
47760         * NEWS: Mention the change.
47761
47762 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47763
47764         * lib/argp-version-etc.c (program_authors): Add const
47765         qualifier.
47766         * lib/version-etc.c: Fix typos in the comments.
47767         * modules/argp-version-etc: Depends on version-etc.
47768
47769 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47770
47771         argp-version-etc: new module.
47772
47773         * lib/argp-version-etc.c: New file.
47774         * lib/argp-version-etc.h: New file.
47775         * modules/argp-version-etc: New file.
47776         * modules/argp-version-etc-tests: New file.
47777         * tests/test-argp-version-etc.c: New test.
47778         * tests/test-argp-version-etc-1.sh: New test.
47779
47780 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47781
47782         Provide additional interfaces and documentation for version-etc
47783         module.
47784
47785         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47786         interfaces.
47787         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47788         prototypes.
47789
47790 2009-06-24  Bruno Haible  <bruno@clisp.org>
47791
47792         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47793         HAVE_LIB${NAME} macro.
47794         Reported by Sam Steingold <sds@gnu.org>.
47795
47796 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47797
47798         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47799         needed.
47800
47801 2009-06-21  Bruno Haible  <bruno@clisp.org>
47802
47803         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47804         work.
47805         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47806         together with LIB${NAME}, LTLIB${NAME}.
47807         Reported by Sam Steingold <sds@gnu.org>.
47808
47809 2009-06-20  Jim Meyering  <meyering@redhat.com>
47810
47811         tests: make sc_require_test_exit_idiom more generic
47812         * top/maint.mk (Exit_witness_file): New overridable variable.
47813         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47814         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47815
47816 2009-06-19  Jim Meyering  <meyering@redhat.com>
47817
47818         hash: reverse order of src/dst parameters in an internal interface
47819         * lib/hash.c (transfer_entries): Reverse order of parameters to
47820         put DST before SRC.  Adjust callers.
47821
47822         tests: test-hash: avoid wholesale duplication
47823         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47824         Instead, use a loop and add a single conditional.
47825
47826         tests: test-hash: allow seed selection via a command line argument
47827         * tests/test-hash.c (get_seed): New function.
47828         (main): Use it.
47829
47830 2009-06-19  Eric Blake  <ebb9@byu.net>
47831
47832         hash: avoid memory leak on allocation failure
47833         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47834         failure.  Factor repeated algorithm...
47835         (transfer_entries): ...into new helper routine.
47836         (hash_delete): React to hash_rehash return value.
47837
47838         hash: reduce memory pressure in hash_rehash no-op case
47839         * lib/hash.c (next_prime): Avoid overflow.
47840         (hash_initialize): Factor bucket size computation...
47841         (compute_bucket_size): ...into new helper function.
47842         (hash_rehash): Use new function and open coding to reduce memory
47843         pressure, and avoid a memory leak in USE_OBSTACK code.
47844         Reported by Jim Meyering.
47845
47846 2009-06-18  Eric Blake  <ebb9@byu.net>
47847
47848         hash: make rotation more obvious
47849         * modules/hash (Depends-on): Add bitrotate and stdint.
47850         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47851         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47852         (SIZE_MAX): Rely on headers for definition.
47853         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47854         (raw_hasher): Use rotr_sz.
47855         Suggested by Jim Meyering.
47856
47857         hash: fix memory leak in last patch
47858         * lib/hash.c (hash_rehash): Avoid memory leak.
47859
47860         hash: avoid no-op rehashing
47861         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47862
47863         hash: provide default callback functions
47864         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47865         (hash_initialize): Use them as defaults.
47866         * tests/test-hash.c (main): Test this.
47867
47868         hash: minor optimization
47869         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47870         when possible.
47871         (hash_initialize): Document this promise.
47872         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47873         * tests/test-hash.c (hash_compare_strings): Test this.
47874
47875 2009-06-18  Bruno Haible  <bruno@clisp.org>
47876
47877         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47878         going to be replaced anyway.
47879
47880 2009-06-18  Bruno Haible  <bruno@clisp.org>
47881
47882         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47883         in one place.
47884         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47885         be replaced anyway.
47886
47887 2009-06-18  Eric Blake  <ebb9@byu.net>
47888
47889         hash: check for resize before insertion
47890         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47891         threshold before insertion, so that a pathological hash_rehash
47892         that fills every bucket can still trigger another rehash.
47893
47894 2009-06-18  Jim Meyering  <meyering@redhat.com>
47895
47896         hash-tests: add a loop around the small tests
47897         * tests/test-hash.c (main): Repeat small tests with selected
47898         small initial table sizes.
47899
47900 2009-06-17  Eric Blake  <ebb9@byu.net>
47901
47902         hash: minor cleanups
47903         * lib/hash.h (hash_entry): Make opaque, by moving...
47904         * lib/hash.c (hash_entry): ...here.
47905         (hash_insert): Clarify restrictions on what can be inserted.
47906         (hash_get_next): Clarify when it is safe to remove an element
47907         during traversal.
47908         (check_tuning): Skip verification when tuning is known safe.
47909         (hash_initialize): Clarify restrictions on tuning.
47910
47911 2009-06-17  Jim Meyering  <jim@meyering.net>
47912         and Eric Blake  <ebb9@byu.net>
47913
47914         hash-tests: new module
47915         * modules/hash-tests: New file.
47916         * tests/test-hash.c: New file.
47917
47918 2009-06-17  Eric Blake  <ebb9@byu.net>
47919
47920         strstr-simple: document new module
47921         * MODULES.html.sh: Document new module.
47922
47923         strstr, strcasestr: replace on platforms with broken memchr
47924         * modules/strstr: Split into...
47925         * modules/strstr-simple: ...new module that does not care about
47926         performance, but does care about glibc bug.
47927         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47928         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47929         if platform memchr is broken, per Debian bug 521737.
47930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47931         memchr.
47932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47933         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47934         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47935         * modules/mountlist (Depends-on): Add strstr-simple.
47936         * modules/gen-uni-tables (Depends-on): Likewise.
47937         * modules/argz (Depends-on): Add strstr.
47938
47939 2009-06-17  Bruno Haible  <bruno@clisp.org>
47940
47941         * modules/posix_spawn-internal (Depends-on): Add errno.
47942
47943 2009-06-17  Bruno Haible  <bruno@clisp.org>
47944
47945         Define missing ESTALE on Interix 3.5.
47946         * lib/errno.in.h (ESTALE): Assign a value if missing.
47947         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47948         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47949         missing.
47950         * doc/posix-headers/errno.texi: Mention the Interix bug.
47951         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47952
47953 2009-06-15  Eric Blake  <ebb9@byu.net>
47954
47955         memchr, memchr2: add valgrind exception
47956         * lib/memchr.valgrind: New file.
47957         * lib/memchr2.valgrind: New file.
47958         * modules/memchr (Files): Distribute valgrind file.
47959         * modules/memchr2 (Files): Likewise.
47960
47961         docs: memchr is no longer obsolete
47962         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47963         * lib/string.in.h (memchr): Simplify logic.
47964
47965 2009-06-14  Jim Meyering  <meyering@redhat.com>
47966
47967         link-follow: fix the "checking..." message to not mention trailing slash
47968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47969         never considered trailing slashes.
47970
47971 2009-06-14  Bruno Haible  <bruno@clisp.org>
47972
47973         * m4/memchr.m4: Mention also the bug on IA-64.
47974         * doc/posix-functions/memchr.texi: Likewise.
47975
47976 2009-06-12  Eric Blake  <ebb9@byu.net>
47977
47978         memchr: detect broken x86_64 and alpha implementations
47979         * modules/memchr-tests (Depends-on): Move mmap detection...
47980         * modules/memchr (Depends-on): ...here.
47981         (configure.ac): Set indicator.
47982         * lib/string.in.h (memchr): Declare replacement.
47983         * modules/string (Makefile.am): Trigger replacement.
47984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47986         bugs.
47987         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47988         * modules/getpagesize (License): Relax license.
47989
47990 2009-06-11  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/idpriv.h: Add more references.
47993
47994 2009-06-08  Bruno Haible  <bruno@clisp.org>
47995
47996         Tests for module 'idpriv-droptemp'.
47997         * modules/idpriv-droptemp-tests: New file.
47998         * tests/test-idpriv-droptemp.sh: New file.
47999         * tests/test-idpriv-droptemp.su.sh: New file.
48000         * tests/test-idpriv-droptemp.c: New file.
48001
48002         New module 'idpriv-droptemp'.
48003         * lib/idpriv-droptemp.c: New file.
48004         * modules/idpriv-droptemp: New file.
48005
48006 2009-06-08  Bruno Haible  <bruno@clisp.org>
48007
48008         Tests for module 'idpriv-drop'.
48009         * modules/idpriv-drop-tests: New file.
48010         * tests/test-idpriv-drop.sh: New file.
48011         * tests/test-idpriv-drop.su.sh: New file.
48012         * tests/test-idpriv-drop.c: New file.
48013
48014         New module 'idpriv-drop'.
48015         * lib/idpriv.h: New file.
48016         * lib-idpriv-drop.c: New file.
48017         * m4/idpriv.m4: New file.
48018         * modules/idpriv-drop: New file.
48019
48020 2009-06-08  Bruno Haible  <bruno@clisp.org>
48021
48022         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48023         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48024         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48025         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48026         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48027         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48028         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48029
48030 2009-06-08  Eric Blake  <ebb9@byu.net>
48031
48032         test-strstr: use memory fence, when possible
48033         * tests/test-strstr.c (main): Use memory fence, in order to be
48034         more likely to trigger Debian bug 521737.
48035         * modules/strstr-tests (Files): Pull in additional files.
48036
48037         memchr: no longer obsolete, for wider field testing
48038         * modules/memchr (Status, Notice): Delete, this module is no
48039         longer obsolete.
48040         * modules/vasnprintf (Depends-on): Add memchr.
48041
48042 2009-06-07  Jim Meyering  <meyering@redhat.com>
48043
48044         hash: declare some functions with the warn_unused_result attribute
48045         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48046
48047 2009-06-07  Bruno Haible  <bruno@clisp.org>
48048
48049         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48050         Reported by Eric Blake.
48051
48052 2009-06-06  Eric Blake  <ebb9@byu.net>
48053
48054         test-alignof: fix typo with long double
48055         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48056         compiler error.
48057
48058 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48059
48060         Escape non-texinfo { and }s.
48061         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48062         markup error.
48063
48064 2009-06-04  Jim Meyering  <meyering@redhat.com>
48065
48066         gitlog-to-changelog: don't infloop on an empty commit log
48067         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48068         Reported by Boris Petersen <transacid@centerim.org>.
48069
48070 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48071
48072         version-etc: extend for packagers
48073         Add three new configure options, intended for packagers:
48074           --with-packager="packager name"
48075           --with-packager-version="packager-specific version"
48076           --with-packager-bug-reports="packager bug reporting"
48077         An example with coreutils:
48078           $ ./configure \
48079             --with-packager=Gentoo \
48080             --with-packager-bug-report=http://bugs.gentoo.org/ \
48081             --with-packager-version="patchset 1.6"
48082           $ ./src/ls --version | head -n2
48083           ls (GNU coreutils) 7.1-dirty
48084           Packaged by Gentoo (patchset 1.6)
48085         Note that the bug reporting info via --help doesn't show up because
48086         coreutils uses its own custom emit_bug_reporting_address() implementation
48087         in src/system.h.  If it didn't, it'd look like:
48088           $ ./src/ls --help | tail -n4
48089           Report bugs to <bug-coreutils@gnu.org>.
48090           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48091           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48092           General help using GNU software: <http://www.gnu.org/gethelp/>.
48093         * lib/version-etc.c: Print new information, if provided.
48094         * m4/version-etc.m4: New file.
48095         * modules/version-etc (Files): Add m4/version-etc.m4.
48096         (configure.ac): Add gl_VERSION_ETC.
48097
48098 2009-05-31  Bruno Haible  <bruno@clisp.org>
48099
48100         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48101         and 'int64_t'.
48102         * modules/alignof-tests (Dependencies): Add stdint.
48103         Reported by Eric Blake.
48104
48105 2009-05-31  Bruno Haible  <bruno@clisp.org>
48106
48107         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48108         restriction due to compiler bugs.
48109         Reported by Eric Blake.
48110
48111 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48112             Bruno Haible  <bruno@clisp.org>
48113
48114         Fix test-alignof failure.
48115         * lib/alignof.h (alignof_slot): New macro.
48116         (alignof_type): New macro, with the same semantics as the previous
48117         'alignof'.
48118         (alignof): Alias to alignof_slot.
48119         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48120         check that the results are usable as constant expressions.
48121
48122 2009-05-31  Bruno Haible  <bruno@clisp.org>
48123
48124         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48125         * tests/test-memchr.c (main): Check that memchr does not read past the
48126         first occurrence of the byte.
48127         * tests/test-strstr.c (main): Update comment.
48128         Suggested by Eric Blake.
48129
48130 2009-05-30  Bruno Haible  <bruno@clisp.org>
48131
48132         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48133         detail how to use dumpbin.
48134         Reported by David Byron <dbyron@dbyron.com>.
48135
48136 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48137
48138         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48139
48140 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48141
48142         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48143
48144 2009-05-28  Bruno Haible  <bruno@clisp.org>
48145
48146         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48147         build-aux/ files.
48148
48149 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48150
48151         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48152
48153 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48154
48155         * gnulib-tool (sed_transform_main_lib_file)
48156         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48157         regexps.
48158
48159 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48160
48161         * tests/test-strstr.c: Add another self-test.
48162         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48163         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48164
48165 2009-05-23  Bruno Haible  <bruno@clisp.org>
48166
48167         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48168         change.
48169
48170 2009-05-21  Bruno Haible  <bruno@clisp.org>
48171
48172         Simplify use of mode_t varargs.
48173         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48174         uses 'mode_t' or 'int'.
48175         * lib/openat.c (openat): Likewise.
48176         * lib/open-safer.c (open_safer): Likewise.
48177         * m4/mode_t.m4: New file.
48178         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48179         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48180         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48181         * modules/open (Files): Add m4/mode_t.m4.
48182         * modules/openat (Files): Likewise.
48183         * modules/fcntl-safer (Files): Likewise.
48184         Suggested by Eric Blake.
48185
48186 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48187
48188         * doc/glibc-functions/fallocate.texi: New file.
48189         * doc/gnulib.texi: Include it.
48190
48191 2009-05-21  Eric Blake  <ebb9@byu.net>
48192             Bruno Haible  <bruno@clisp.org>
48193
48194         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48195         invocations.
48196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48197
48198 2009-05-21  Eric Blake  <ebb9@byu.net>
48199             Bruno Haible  <bruno@clisp.org>
48200
48201         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48202         include_next. Fix of 2008-11-20 commit.
48203         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48204         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48205         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48206         NEXT_MATH_H.
48207         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48208         instead of NEXT_MATH_H.
48209
48210 2009-05-21  Bruno Haible  <bruno@clisp.org>
48211
48212         Avoid redefinition warnings for SIZE_MAX.
48213         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48214         Reported by Simon Josefsson.
48215
48216 2009-05-21  Bruno Haible  <bruno@clisp.org>
48217
48218         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48219         AC_CACHE_VAL.
48220
48221 2009-05-20  Bruno Haible  <bruno@clisp.org>
48222
48223         Make zeroptr.h work on mingw.
48224         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48225         mprotect.
48226         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48227         * modules/memchr2-tests (configure.ac): Likewise.
48228         * modules/memcmp-tests (configure.ac): Likewise.
48229         * modules/memmem-tests (configure.ac): Likewise.
48230         * modules/memrchr-tests (configure.ac): Likewise.
48231         Reported by Simon Josefsson.
48232
48233 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48234
48235         * tests/test-glob.c: Include string.h for strcmp prototype.
48236
48237 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48238
48239         * modules/getdelim (Depends-on): Add explicit stdint, although it
48240         was implicitly already pulled in via realloc-posix.
48241         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48242
48243 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48244
48245         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48246         G. Christensen" <tgc@jupiterrise.com>.
48247         * m4/sys_socket_h.m4: Check for sa_family_t.
48248         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48249         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48250         * tests/test-sys_socket.c: Check that sa_family_t works.
48251
48252 2009-05-18  Eric Blake  <ebb9@byu.net>
48253
48254         maint.mk: allow gnulib_dir in VPATH build
48255         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48256
48257 2009-05-15  Jim Meyering  <meyering@redhat.com>
48258
48259         maint.mk: Give gnulib_dir a default definition.
48260         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48261         Thus, most packages no longer need to specify this variable in cfg.mk
48262
48263 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48264
48265         rename.m4: fix typos that would make non-mingw cross-configure fail
48266         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48267
48268 2009-05-13  Eric Blake  <ebb9@byu.net>
48269
48270         mmap-anon: avoid out-of-order autoconf expansion
48271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48272         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48273         * modules/memchr-tests (Depends-on): Add extensions.
48274         * modules/memchr2-tests (Depends-on): Add extensions.
48275         * modules/memcmp-tests (Depends-on): Add extensions.
48276         * modules/memmem-tests (Depends-on): Add extensions.
48277         * modules/memrchr-tests (Depends-on): Add extensions.
48278
48279 2009-05-13  Bruno Haible  <bruno@clisp.org>
48280
48281         Make some tests ISO C 99 compliant.
48282         * tests/zerosize-ptr.h: New file.
48283         * tests/test-memchr.c: Include zerosize-ptr.h.
48284         (main): Use a zero-size object pointer instead of NULL.
48285         * tests/test-memchr2.c: Include zerosize-ptr.h.
48286         (main): Use a zero-size object pointer instead of NULL.
48287         * tests/test-memcmp.c: Include zerosize-ptr.h.
48288         (main): Use a zero-size object pointer instead of NULL.
48289         * tests/test-memmem.c: Include zerosize-ptr.h.
48290         (main): Use a zero-size object pointer instead of NULL.
48291         * tests/test-memrchr.c: Include zerosize-ptr.h.
48292         (main): Use a zero-size object pointer instead of NULL.
48293         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48294         m4/mmap-anon.m4.
48295         (Depends-on): Add getpagesize.
48296         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48297         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48298         m4/mmap-anon.m4.
48299         (Depends-on): Add getpagesize.
48300         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48301         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48302         m4/mmap-anon.m4.
48303         (Depends-on): Add getpagesize.
48304         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48305         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48306         m4/mmap-anon.m4.
48307         (Depends-on): Add getpagesize.
48308         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48309         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48310         m4/mmap-anon.m4.
48311         (Depends-on): Add getpagesize.
48312         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48313
48314 2009-05-12  Bruno Haible  <bruno@clisp.org>
48315
48316         Tests for module 'alignof'.
48317         * modules/alignof-tests: New file.
48318         * tests/test-alignof.c: New file.
48319
48320 2009-05-12  Bruno Haible  <bruno@clisp.org>
48321
48322         Fix alignof macro.
48323         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48324         vendor compilers that are always correct.
48325
48326 2009-05-12  Bruno Haible  <bruno@clisp.org>
48327
48328         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48329         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48330         not whether its fully works.
48331
48332 2009-05-12  Bruno Haible  <bruno@clisp.org>
48333
48334         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48335
48336 2009-05-12  Jim Meyering  <meyering@redhat.com>
48337
48338         * top/maint.mk: Adjust backslash alignment.
48339
48340 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48341
48342         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48343
48344 2009-05-11  Eric Blake  <ebb9@byu.net>
48345
48346         argp: avoid undefined behavior
48347         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48348         macros.
48349
48350 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48351
48352         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48353         user.name to prevent git commit from complaining.
48354
48355 2009-05-10  Bruno Haible  <bruno@clisp.org>
48356
48357         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48358         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48359         it rewrites every file name only once.
48360         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48361
48362 2009-05-08  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48365         instead of 'max'.
48366
48367 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48368
48369         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48370         sockaddr_storage test.
48371
48372 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48373
48374         * modules/sys_socket (Makefile.am): Substitute
48375         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48376         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48377         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48378         * tests/test-sys_socket.c: Check sockaddr_storage.
48379
48380 2009-05-08  Bruno Haible  <bruno@clisp.org>
48381
48382         New module 'alignof'.
48383         * lib/alignof.h: New file.
48384         * modules/alignof: New file.
48385
48386 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48387             Bruno Haible  <bruno@clisp.org>
48388
48389         Fix test-file-has-acl on FreeBSD.
48390         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48391         mask is implicitly added.
48392         * tests/test-file-has-acl.c: Include <signal.h>.
48393         (main): Terminate the test after 5 seconds.
48394         * modules/acl-tests (configure.ac): Check for alarm function.
48395
48396 2009-05-04  Bruno Haible  <bruno@clisp.org>
48397
48398         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48400         * modules/errno (configure.ac): Drop AC_REQUIRE.
48401         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48402         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48403
48404 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48405
48406         * modules/glob-tests: New module.
48407         * tests/test-glob.c: Add.
48408
48409 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48410
48411         * modules/fnmatch-tests: New module.
48412         * tests/test-fnmatch.c: Add.
48413
48414 2009-05-04  Eric Blake  <ebb9@byu.net>
48415
48416         maint: make the new no-submodule-changes rule VPATH-safe
48417         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48418
48419 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48420             Bruno Haible  <bruno@clisp.org>
48421
48422         acl: Fix infinite loop on FreeBSD.
48423         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48424         of return value from acl_get_entry.
48425         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48426         Likewise.
48427
48428 2009-05-03  Bruno Haible  <bruno@clisp.org>
48429
48430         * lib/acl-internal.h (acl_entries): Clarify return value.
48431         * lib/acl_entries.c (acl_entries): Likewise.
48432
48433 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48434
48435         Bug fix in acl module.
48436         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48437
48438 2009-05-03  Bruno Haible  <bruno@clisp.org>
48439
48440         Create gperf-generated file in the source dir, not in the build dir.
48441         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48442         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48443         * modules/unicase/locale-language (unicase/locale-languages.h):
48444         Likewise.
48445         * modules/unicase/special-casing (unicase/special-casing-table.h):
48446         Likewise.
48447         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48448         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48449         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48450         Reported by Ralf Wildenhues.
48451
48452 2009-05-03  Bruno Haible  <bruno@clisp.org>
48453
48454         * modules/fnmatch (Description, configure.ac): Taken from
48455         fnmatch-posix.
48456         * modules/fnmatch-posix: Turn into a symbolic reference to the
48457         'fnmatch' module, and deprecate.
48458         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48459
48460 2009-05-03  Bruno Haible  <bruno@clisp.org>
48461
48462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48463         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48464         Reported by Ralf Wildenhues.
48465
48466 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48467
48468         * m4/fnmatch.m4: Fix fnmatch re-define.
48469
48470 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48471
48472         priv-set: new module and tests; adapt write-any-file
48473         * lib/priv-set.c: New file.
48474         * lib/priv-set.h: New file.
48475         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48476         * lib/write-any-file.c: Simplify by using priv-set module.
48477         * m4/priv-set.m4: New file.
48478         * modules/priv-set: New file.
48479         * modules/unlinkdir: Add dependency on priv-set module.
48480         * modules/write-any-file: Likewise.
48481
48482         Tests for module 'priv-set'.
48483         * modules/priv-set-tests: New file.
48484         * tests/test-priv-set.c: New file.
48485
48486 2009-05-03  Jim Meyering  <meyering@redhat.com>
48487             Bruno Haible  <bruno@clisp.org>
48488
48489         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48490         use the converted UTF-8 variant of the name instead.
48491
48492 2009-05-03  Jim Meyering  <meyering@redhat.com>
48493
48494         tests: tighten some getdate tests
48495         * tests/test-getdate.c (main): Tighten tests: require equality,
48496         not just greater than.  Set TZ envvar to UTC0.
48497
48498 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48499
48500         getdate: correctly interpret "next monday" when run on a Monday
48501         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48502         that e.g., "next tues" (when run on a tuesday) results in a date
48503         that is one week in the future, and not today's date.
48504         I.e., add a week when the wday is the same as the current one.
48505         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48506         and earlier by Martin Bernreuther and Jan Minář.
48507         * tests/test-getdate.c (main): Check that "next DAY" is always in
48508         the future and that "last DAY" is always in the past.
48509
48510 2009-05-02  Jim Meyering  <meyering@redhat.com>
48511
48512         build: ensure that a release build fails when a submodule is unclean
48513         * top/maint.mk (no-submodule-changes): New rule.
48514         (alpha beta major): Depend on it.
48515
48516 2009-05-02  Bruno Haible  <bruno@clisp.org>
48517
48518         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48519         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48520         shell variable gl_fnmatch_required to detect which variant is
48521         requested.
48522         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48523         gl_FUNC_FNMATCH_POSIX.
48524         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48525         exclude fnmatch-posix.
48526
48527 2009-05-02  Bruno Haible  <bruno@clisp.org>
48528
48529         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48530         * modules/mbsrtowcs (License): Change to LGPLv2+.
48531         * modules/strnlen1 (License): Likewise.
48532         Reported by Simon Josefsson.
48533
48534 2009-05-02  Bruno Haible  <bruno@clisp.org>
48535
48536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48537         "cross".
48538         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48539         gnulib-tool was called with option --source-base=lib.
48540
48541 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48542
48543         Use automake *-local hooks without commands, for extensibility.
48544         * modules/localcharset (Makefile.am): Rename install-exec-local
48545         rule to install-exec-localcharset, and make it a prerequisite of
48546         install-exec-local.  Likewise, rename the uninstall-local rule to
48547         uninstall-localcharset, and make it a prerequisite of the former.
48548
48549 2009-05-01  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48552         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48553         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48555         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48556         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48557         m4/locale-zh.m4, m4/codeset.m4.
48558
48559         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48560         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48561         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48562         m4/locale-zh.m4.
48563
48564         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48565         REPLACE_WCRTOMB if mbstate_t must be replaced.
48566         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48567         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48568
48569 2009-05-01  Bruno Haible  <bruno@clisp.org>
48570
48571         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48572         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48573         dngettext, dcngettext, textdomain, bindtextdomain,
48574         bind_textdomain_codeset): Undefine before redefining.
48575
48576 2009-04-30  Bruno Haible  <bruno@clisp.org>
48577
48578         Fix bug introduced on 2009-04-25.
48579         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48580         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48581         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48582         is defined.
48583         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48584         is defined.
48585         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48586         is defined.
48587         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48588
48589 2009-04-28  Bruno Haible  <bruno@clisp.org>
48590
48591         Comment tweaks.
48592         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48593         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48594         * lib/unicase.h (u*_casexfrm): Likewise.
48595         Reported by Paolo Bonzini.
48596
48597 2009-04-28  Bruno Haible  <bruno@clisp.org>
48598
48599         Fix a compilation error.
48600         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48601         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48602         Reported by Jim Meyering.
48603
48604 2009-04-27  Bruno Haible  <bruno@clisp.org>
48605
48606         New module 'libunistring'.
48607         * modules/libunistring: New file.
48608         * m4/libunistring.m4: New file.
48609         * MODULES.html.sh (Unicode string functions): Add it.
48610
48611 2009-04-27  Eric Blake  <ebb9@byu.net>
48612
48613         maint.mk: allow package-specific header to provide <config.h>
48614         * top/maint.mk (sc_require_config_h): New variable.
48615         (sc_require_config_h, sc_require_config_h_first): Use it.
48616
48617 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48618
48619         * top/maint.mk (sc_avoid_if_before_free): Except
48620         useless-if-before-free script.
48621
48622 2009-04-27  Eric Blake  <ebb9@byu.net>
48623
48624         maintainer-makefile: depend on all required helper scripts
48625         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48626         useless-if-before-free.
48627         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48628         version, rather than assuming gnulib checkout is available.
48629         Reported by Simen Josefsson.
48630
48631 2009-04-26  Bruno Haible  <bruno@clisp.org>
48632
48633         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48634         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48635         "../" or "..".
48636
48637 2009-04-26  Bruno Haible  <bruno@clisp.org>
48638
48639         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48640         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48641         AC_LIB_HAVE_LINKFLAGS.
48642
48643 2009-04-26  Bruno Haible  <bruno@clisp.org>
48644
48645         Simplify calling convention of u*_conv_from_encoding.
48646         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48647         u32_conv_from_encoding): Expect a resultbuf argument and return the
48648         result directly as a pointer.
48649         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48650         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48651         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48652         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48653         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48654         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48655         Update.
48656         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48657         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48658         * lib/vasnprintf.c (VASNPRINTF): Update.
48659         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48660         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48661         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48662         * NEWS: Mention the change.
48663
48664 2009-04-26  Bruno Haible  <bruno@clisp.org>
48665
48666         Simplify calling convention of u*_conv_to_encoding.
48667         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48668         u32_conv_to_encoding): Expect a resultbuf argument and return the
48669         result directly as a pointer.
48670         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48671         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48672         freeing scaled_offsets if mem_iconveha failed.
48673         * lib/unicase/u-casexfrm.h (FUNC): Update.
48674         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48675         * lib/vasnprintf.c (VASNPRINTF): Update.
48676         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48677         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48678         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48679         * NEWS: Mention the change.
48680
48681 2009-04-26  Bruno Haible  <bruno@clisp.org>
48682
48683         Avoid test failures on AIX and OSF/1.
48684         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48685         malloc(0).
48686         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48687         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48688         Likewise.
48689         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48690         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48691         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48692         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48693         * doc/posix-functions/malloc.texi: Document the portability problem
48694         related to malloc(0).
48695
48696 2009-04-26  Bruno Haible  <bruno@clisp.org>
48697
48698         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48699         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48700         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48701
48702 2009-04-25  Bruno Haible  <bruno@clisp.org>
48703
48704         Avoid link error when creating a namespace clean library.
48705         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48706         as macro with arguments if already defined as an alias.
48707         * lib/signbitf.c (gl_signbitf): Don't undefine.
48708         * lib/signbitd.c (gl_signbitd): Don't undefine.
48709         * lib/signbitl.c (gl_signbitl): Don't undefine.
48710
48711 2009-04-25  Jim Meyering  <meyering@redhat.com>
48712
48713         vc-list-files: fix another quoting bug
48714         * build-aux/vc-list-files: Avoid sed backslash expansion
48715         of pathological directory names.
48716
48717 2009-04-25  Eric Blake  <ebb9@byu.net>
48718
48719         vc-list-files: fix shell quoting error
48720         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48721         timestamp.
48722
48723 2009-04-25  Jim Meyering  <meyering@redhat.com>
48724
48725         vc-list-files: restore lost functionality with subdir argument
48726         * build-aux/vc-list-files: When given a non-"." sub-directory
48727         argument, substitute the $dir/ prefix back onto each resulting name.
48728         Otherwise, coreutils' root_tests check would fail.
48729
48730 2009-04-24  Eric Blake  <ebb9@byu.net>
48731
48732         vc-list-files: ignore git symlinks
48733         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48734         than ls-files, to ignore git symlinks.
48735
48736         maint.mk: import improvements from m4
48737         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48738         (move_if_change): Delete unused macro.
48739         (news-date-check, vc-diff-check): Support VPATH builds.
48740         (announcement): Likewise.  Split --bootstrap-tools list...
48741         (boostrap-tools): ...into separate list, which can be overridden
48742         in cfg.mk.
48743         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48744         requiring dependency on useless-if-before-free module.
48745         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48746         Support VPATH builds.
48747
48748 2009-04-24  Jim Meyering  <meyering@redhat.com>
48749
48750         maint.mk: remove coreutils-specific rules and variables
48751         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48752         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48753         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48754
48755         maint.mk: remove obsolete rule
48756         * top/maint.mk (rel-check): Remove rule.
48757         (WGET, WGETFLAGS): Remove now-unused variables.
48758
48759 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48760
48761         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48762         consistency.
48763
48764         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48765         '$(PATH_SEPARATOR)' instead of ':'.
48766
48767 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48768
48769         * lib/getopt1.c (main): Use 'const' for static array.
48770
48771 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48772
48773         * top/maint.mk: Sync with coreutils.
48774         * NEWS: Explain incompatibilities.
48775
48776 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48777             Bruno Haible  <bruno@clisp.org>
48778
48779         Fix cross-compilation results.
48780         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48781         statement, as third argument of AC_TRY_RUN.
48782         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48783         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48784         Likewise.
48785         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48786         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48787         Likewise.
48788         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48790         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48791
48792 2009-04-20  Bruno Haible  <bruno@clisp.org>
48793
48794         Avoid test failure on mingw.
48795         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48796
48797 2009-04-20  Bruno Haible  <bruno@clisp.org>
48798
48799         Avoid compilation error on mingw.
48800         * modules/localename-tests (Depends-on): Add locale.
48801
48802 2009-04-19  Bruno Haible  <bruno@clisp.org>
48803
48804         Support for building a shared library on Windows platforms.
48805         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48806         (main): Test the presence of UNINORM_NFC here.
48807         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48808         (main): Test the presence of UNINORM_NFD here.
48809         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48810         (main): Test the presence of UNINORM_NFKC here.
48811         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48812         (main): Test the presence of UNINORM_NFKD here.
48813
48814 2009-04-19  Bruno Haible  <bruno@clisp.org>
48815
48816         Avoid a compiler warning.
48817         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48818         Change type of variable 'sequence'.
48819
48820 2009-04-19  Bruno Haible  <bruno@clisp.org>
48821
48822         * modules/configmake (Makefile.am): When the contents of configmake.h
48823         does not change, arrange to preserve its modification time.
48824
48825 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48826
48827         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48828         gettext domain.
48829
48830 2009-04-16  Jim Meyering  <meyering@redhat.com>
48831
48832         useless-if-before-free: improve conversion code
48833         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48834         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48835
48836 2009-04-14  Bruno Haible  <bruno@clisp.org>
48837
48838         * modules/fcntl (Depends-on): Add extensions.
48839         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48840
48841 2009-04-12  Ben Pfaff  <blp@gnu.org>
48842
48843         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48844         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48845
48846 2009-03-20  Ben Pfaff  <blp@gnu.org>
48847
48848         Make rename replace existing destinations on Windows.
48849         * m4/rename.m4: Add test for Mingw.
48850         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48851         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48852         * doc/posix-functions/rename.texi: Document.
48853
48854 2009-04-10  Bruno Haible  <bruno@clisp.org>
48855
48856         New include file "iconveh.h".
48857         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48858         * lib/striconveh.h: Include it.
48859         (enum iconv_ilseq_handler): Remove definition.
48860         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48861         striconveh.h.
48862         * lib/striconveha.c: Include striconveh.h.
48863         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48864         * modules/striconveh (Files): Add lib/iconveh.h.
48865         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48866         lib/striconveh.h.
48867
48868 2009-04-10  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/uniconv.h: Update comment.
48871
48872 2009-04-10  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48875         always.
48876         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48877         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48878         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48879         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48880         "unistring-notinline.h", so that the function gets defined always.
48881         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48882         * lib/unistr/u8-uctomb.c: Likewise.
48883         * lib/unistr/u16-mbtouc.c: Likewise.
48884         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48885         * lib/unistr/u16-uctomb.c: Likewise.
48886         * lib/unistr/u32-mbtouc.c: Likewise.
48887         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48888         * lib/unistr/u32-uctomb.c: Likewise.
48889
48890 2009-04-10  Bruno Haible  <bruno@clisp.org>
48891
48892         Mark 'utime' obsolete.
48893         * modules/utime (Status, Notice): New sections.
48894         Suggested by Jim Meyering.
48895
48896         Fix cross-compile guess for utime test.
48897         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48898         autoconf.
48899         * doc/posix-functions/utime.texi: Give more precisions.
48900         Reported by Jan <ipif@ymail.com>.
48901
48902 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48903
48904         filevercmp: correct today's change
48905         * lib/filevercmp.c: Also handle coreutils' test inputs.
48906         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48907
48908         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48909         for reporting it.
48910         * lib/filevercmp.c: Special handle for "", "." and "..".
48911         * tests/test-filevercmp.c: Enlarge the set suite.
48912
48913 2009-04-07  Jim Meyering  <meyering@redhat.com>
48914
48915         useless-if-before-free: show how to remove braced useless free, too
48916         * build-aux/useless-if-before-free: still only in a comment, though.
48917
48918 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48919
48920         maint.mk: import changes to syntax-check macros from coreutils
48921         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48922         Use them in the relevant macros.
48923
48924 2009-04-06  Bruno Haible  <bruno@clisp.org>
48925
48926         Fix unportable use of bit-fields.
48927         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48928         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48929         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48930
48931 2009-04-06  Bruno Haible  <bruno@clisp.org>
48932
48933         Avoid test failures on AIX and OSF/1.
48934         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48935         that malloc(0) = NULL.
48936         * tests/unicase/test-u8-tolower.c (check): Likewise.
48937         * tests/unicase/test-u8-totitle.c (check): Likewise.
48938         * tests/unicase/test-u8-toupper.c (check): Likewise.
48939         * tests/unicase/test-u16-casefold.c (check): Likewise.
48940         * tests/unicase/test-u16-tolower.c (check): Likewise.
48941         * tests/unicase/test-u16-totitle.c (check): Likewise.
48942         * tests/unicase/test-u16-toupper.c (check): Likewise.
48943         * tests/unicase/test-u32-casefold.c (check): Likewise.
48944         * tests/unicase/test-u32-tolower.c (check): Likewise.
48945         * tests/unicase/test-u32-totitle.c (check): Likewise.
48946         * tests/unicase/test-u32-toupper.c (check): Likewise.
48947         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48948         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48949         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48950         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48951         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48952         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48953         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48954         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48955         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48956         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48957         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48958         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48959
48960 2009-04-05  Bruno Haible  <bruno@clisp.org>
48961
48962         Work around an autoconf limitation.
48963         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48964         comment line if it would be longer than 3 KB.
48965
48966 2009-04-05  Bruno Haible  <bruno@clisp.org>
48967
48968         Avoid test failure with libiconv-1.13.
48969         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48970         of the expected test results.
48971
48972 2009-04-05  Bruno Haible  <bruno@clisp.org>
48973
48974         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48975         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48976         that it should be installed.
48977
48978 2009-04-05  Bruno Haible  <bruno@clisp.org>
48979
48980         * gnulib-tool: New option --copy-file.
48981         (func_usage): Document it.
48982         (func_dest_tmpfilename): Moved out of func_import.
48983         (func_add_file, func_update_file): New functions, extracted from
48984         func_import.
48985         (func_import): Update.
48986
48987 2009-04-05  Karl Berry  <karl@gnu.org>
48988
48989         * README: prominently mention gnulib-tool.
48990         Rearrange sections so getting the code is near the top.
48991
48992 2009-04-05  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/unicase.h: Mention u*_cmp2.
48995         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48996         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48997         * lib/unicase/ulc-casecmp.c: Likewise.
48998         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48999         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49000         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49001         unistr/u8-cmp.
49002         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49003         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49004         unistr/u16-cmp.
49005         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49006         unistr/u32-cmp.
49007
49008         * lib/uninorm.h: Mention u*_cmp2.
49009         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49010         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49011         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49012         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49013         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49014         unistr/u8-cmp.
49015         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49016         unistr/u16-cmp.
49017         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49018         unistr/u32-cmp.
49019
49020         New module 'unistr/u32-cmp2'.
49021         * lib/unistr/u32-cmp2.c: New file.
49022         * modules/unistr/u32-cmp2: New file.
49023
49024         New module 'unistr/u16-cmp2'.
49025         * lib/unistr/u16-cmp2.c: New file.
49026         * modules/unistr/u16-cmp2: New file.
49027
49028         New module 'unistr/u8-cmp2'.
49029         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49030         * lib/unistr/u8-cmp2.c: New file.
49031         * lib/unistr/u-cmp2.h: New file.
49032         * modules/unistr/u8-cmp2: New file.
49033
49034 2009-04-05  Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/unictype.h (uc_property_is_valid): New macro.
49037         * tests/unictype/test-pr_byname.c (main): Use it.
49038
49039         * lib/unistr.h: Doc fixes.
49040         * lib/uniconv.h: Doc fixes.
49041         * lib/unictype.h: Doc fixes.
49042
49043 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49044
49045         Port coreutils 7.2 to Solaris 8.
49046
49047         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49048         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49049         for Solaris 8.  This is a bit of a hack, as it means it's the
49050         caller's responsibility to add -lnsl if needed, but most likely it
49051         won't be needed since only getaddrinfo uses this and getaddrinfo
49052         isn't needed on Solaris 8.
49053
49054         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49055         problem to Solaris 8 encountered with coreutils 7.2, which
49056         resulted in a message "fnmatch.c:292: warning: passing argument 4
49057         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49058         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49059
49060 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49061
49062         * m4/ld-version-script.m4: Add FIXME comment.
49063
49064 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49065
49066         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49067         SOVERSION variable.
49068
49069 2009-04-02  Bruno Haible  <bruno@clisp.org>
49070
49071         * Makefile (info, html, dvi, pdf): Combine the rules.
49072         Suggested by Jim Meyering.
49073
49074 2009-04-01  Bruno Haible  <bruno@clisp.org>
49075
49076         * Makefile (info, html, dvi, pdf): New targets.
49077         Reported by Reuben Thomas <rrt@sc3d.org>.
49078
49079 2009-04-01  Bruno Haible  <bruno@clisp.org>
49080
49081         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49082         can be put into PATH.
49083         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49084
49085 2009-04-01  Bruno Haible  <bruno@clisp.org>
49086
49087         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49088
49089 2009-04-01  Bruno Haible  <bruno@clisp.org>
49090
49091         Rename module 'visibility'.
49092         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49093         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49094         * doc/gnulib.texi: Update.
49095         * MODULES.html.sh (Misc): Update.
49096         * NEWS: Mention the change.
49097
49098 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49099
49100         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49101         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49102         Eric Blake <ebb9@byu.net> for review.
49103         * MODULES.html.sh: Add lib-msvc-compat.
49104         * doc/gnulib.texi: Link to new section.
49105         * m4/ld-output-def.m4: New file.
49106         * doc/ld-output-def.texi: New file.
49107
49108 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49109
49110         Rename ld-version-script to lib-symbol-versions.  Suggested by
49111         Bruno Haible <bruno@clisp.org>.
49112         * modules/ld-version-script: Renamed to lib-symbol-versions.
49113         * doc/ld-version-script.texi: Fix module name.
49114         * MODULES.html.sh: Add lib-symbol-versions.
49115
49116 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49117
49118         * modules/u64-tests: New file.
49119         * tests/test-u64.c: New file.
49120
49121 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49122
49123         * MODULES.html.sh: Mention u64.
49124         * modules/u64: New module.
49125         * modules/crypto/sha512: Depend on u64 module instead of providing
49126         u64.h.
49127
49128 2009-03-27  Eric Blake  <ebb9@byu.net>
49129
49130         test-strerror: make debugging EAI_SYSTEM easier
49131         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49132         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49133         failure was EAI_SYSTEM.
49134
49135 2009-03-25  Bruno Haible  <bruno@clisp.org>
49136
49137         Fix a problem with --enable-relocatable on Solaris 7.
49138         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49139         since 2008-02-24.
49140
49141 2009-03-25  Eric Blake  <ebb9@byu.net>
49142
49143         test-sockets: avoid gcc warning
49144         * tests/test-sockets.c (main): Silence compiler warning.
49145
49146 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49147
49148         New modules nproc, pthread, contributed by Glen Lenker.
49149
49150         * MODULES.html.sh: Add pthread, nproc.
49151         * lib/nproc.c: New file.
49152         * lib/nproc.h: New file.
49153         * lib/pthread.in.h: New file.
49154         * m4/pthread.m4: New file.
49155         * modules/nproc: New file.
49156         * modules/pthread: New file.
49157
49158 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49159
49160         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49161         New variable.
49162
49163 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49164
49165         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49166         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49167         * tests/test-filevercmp.c: Add tests for backup suffixes.
49168
49169 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49170
49171         * modules/stdlib (Depends-on): Add stdint, needed when defining
49172         struct random_data on, for example, HP-UX 10.20.  Reported by
49173         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49174
49175 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49176
49177         * lib/readline.c (readline): Call fflush on stdout after printing
49178         prompt.
49179
49180 2009-03-20  Bruno Haible  <bruno@clisp.org>
49181
49182         Remove dependency from 'close' module to -lws2_32 on native Windows.
49183         * lib/close-hook.h: New file.
49184         * lib/close-hook.c: New file.
49185         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49186         w32sock.h.
49187         (_gl_close_fd_maybe_socket): Remove function.
49188         (rpl_close): Invoke execute_all_close_hooks instead of
49189         _gl_close_fd_maybe_socket.
49190         * lib/sockets.c: Include close-hook.h, w32sock.h.
49191         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49192         (close_sockets_hook): New variable.
49193         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49194         (gl_sockets_cleanup): Unregister it.
49195         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49196         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49197         * modules/close-hook: New file.
49198         * modules/close (Files): Remove lib/w32sock.h.
49199         (Depends-on): Add close-hook.
49200         (Link): Remove section.
49201         * modules/sockets (Files): Add lib/w32sock.h.
49202         (Depends-on): Add close-hook.
49203         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49204         invocation.
49205         * NEWS: Mention that LIB_CLOSE is gone.
49206
49207 2009-03-23  Eric Blake  <ebb9@byu.net>
49208
49209         signal-tests: test previous patch
49210         * tests/test-signal.c: New file.
49211         * modules/signal-tests: Likewise.
49212
49213         signal.h: always support 'volatile sig_atomic_t'
49214         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49215         (gl_SIGNAL_H_DEFAULTS): Add a default.
49216         * modules/signal (Makefile.am): Substitute if needed.
49217         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49218         users can blindly add volatile.
49219         * doc/posix-headers/signal.texi (signal.h): Document it.
49220         Reported by Matthew Woehlke.
49221
49222 2009-03-23  Jim Meyering  <meyering@redhat.com>
49223
49224         pathmax: PATH_MAX: use pathconf only when available
49225         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49226         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49227         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49228         This avoids a link failure in a PSP cross-compilation environment
49229         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49230
49231         * lib/vasnprintf.c (divide): Fix typo in comment.
49232
49233 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49234
49235         * gnulib-tool (func_filter_filelist): Fix comment.
49236
49237 2009-03-20  Bruno Haible  <bruno@clisp.org>
49238
49239         Make sockets.h self-contained.
49240         * lib/sockets.c: Include sockets.h first.
49241         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49242
49243 2009-03-19  Eric Blake  <ebb9@byu.net>
49244
49245         doc: mention more functions added in cygwin 1.7.0
49246         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49247         addition.
49248         * doc/posix-functions/log2f.texi: Likewise.
49249
49250 2009-03-19  Jim Meyering  <meyering@redhat.com>
49251
49252         fsusage: avoid syntax error due to statement-before-declaration
49253         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49254         after all declarations.  Reported by Matthew Woehlke in
49255         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49256
49257 2009-03-18  Eric Blake  <ebb9@byu.net>
49258
49259         build-aux/compile: sync from automake
49260         * build-aux/compile: New file, from automake.
49261         * config/srclist.txt: Mention build-aux/compile.
49262
49263 2009-03-17  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/git-merge-changelog.c: Fix typo in comment.
49266         Reported by Reuben Thomas <rrt@sc3d.org>.
49267
49268 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49269
49270         * m4/regex.m4: update and improve help for
49271         --without-included-regex.
49272
49273 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49274
49275         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49276         failure on missing include files.
49277
49278 2009-03-17  Eric Blake  <ebb9@byu.net>
49279
49280         doc: mention more functions added in cygwin 1.7.0
49281         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49282         addition.
49283         * doc/posix-functions/fwscanf.texi: Likewise.
49284         * doc/posix-functions/swprintf.texi: Likewise.
49285         * doc/posix-functions/swscanf.texi: Likewise.
49286         * doc/posix-functions/vfwprintf.texi: Likewise.
49287         * doc/posix-functions/vfwscanf.texi: Likewise.
49288         * doc/posix-functions/vswprintf.texi: Likewise.
49289         * doc/posix-functions/vswscanf.texi: Likewise.
49290         * doc/posix-functions/vwprintf.texi: Likewise.
49291         * doc/posix-functions/vwscanf.texi: Likewise.
49292         * doc/posix-functions/wcscasecmp.texi: Likewise.
49293         * doc/posix-functions/wcsdup.texi: Likewise.
49294         * doc/posix-functions/wcsftime.texi: Likewise.
49295         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49296         * doc/posix-functions/wprintf.texi: Likewise.
49297         * doc/posix-functions/wscanf.texi: Likewise.
49298         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49299
49300 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49301
49302         maint.mk: really add $(AM_MAKEFLAGS)
49303         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49304         was inadvertently omitted in the last commit.
49305         Spotted by Bruno Haible.
49306
49307         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49308         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49309         $(AM_MAKEFLAGS)' rather than plain `make'.
49310
49311         gnulib-tool: execute $MAKE not make
49312         * gnulib-tool: Default $MAKE to 'make'.
49313         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49314         than make.  Initialize $MAKE in the do-autobuild script.
49315
49316         gnulib-tool: use $MAKE not make in generated files
49317         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49318         make, in generated files.  Initialize $MAKE in the do-autobuild
49319         script.
49320
49321         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49322
49323         GNUmakefile: disable parallelism only for multiple, recursive targets
49324         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49325         additions in the Makefile.
49326         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49327         by Automake.
49328         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49329         are listed on the command line and at least one of them is
49330         listed in $(ALL_RECURSIVE_TARGETS).
49331
49332 2009-03-14  Bruno Haible  <bruno@clisp.org>
49333
49334         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49335         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49336         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49337         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49338         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49339         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49340         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49341         unistr/u8-uctomb.
49342         * modules/unistr/u8-strchr (Depends-on): Likewise.
49343         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49344         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49345         unistr/u16-uctomb.
49346         * modules/unistr/u16-strchr (Depends-on): Likewise.
49347         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49348
49349 2009-03-12  Bruno Haible  <bruno@clisp.org>
49350
49351         Work around select() bug on Interix 3.5.
49352         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49353         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49354         * m4/select.m4: New file.
49355         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49356         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49357         * modules/select (Files): Add m4/select.m4.
49358         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49359         * modules/nanosleep (Depends-on): Add select.
49360         * modules/poll (Depends-on): Likewise.
49361         * doc/posix-functions/select.texi: Mention the Interix bug.
49362         Reported by Markus Duft <mduft@gentoo.org>.
49363
49364         * lib/select.c: Renamed from lib/winsock-select.c.
49365         * modules/select (Files): Add lib/select.c, remove
49366         lib/winsock-select.c.
49367         (configure.ac): Update.
49368
49369 2009-03-12  Jim Meyering  <meyering@redhat.com>
49370
49371         avoid gcc warnings about unused macro definitions
49372         * lib/readtokens.c (STREQ): Remove unused definition.
49373         * lib/xmalloc.c (SIZE_MAX): Likewise.
49374         * lib/openat-die.c (N_): Likewise.
49375         * lib/mountlist.c (SIZE_MAX): Remove definition.
49376         Instead, include <stdint.h>.
49377         * lib/readutmp.c: Likewise.
49378         * modules/readutmp (Depends-on): Add stdint.
49379         * modules/mountlist (Depends-on): Add stdint.
49380         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49381
49382 2009-03-10  Bruno Haible  <bruno@clisp.org>
49383
49384         Tests for module 'mbmemcasecoll'.
49385         * modules/mbmemcasecoll-tests: New file.
49386         * tests/test-mbmemcasecoll1.sh: New file.
49387         * tests/test-mbmemcasecoll2.sh: New file.
49388         * tests/test-mbmemcasecoll3.sh: New file.
49389         * tests/test-mbmemcasecoll.c: New file.
49390
49391         New module 'mbmemcasecoll'.
49392         * lib/mbmemcasecoll.h: New file.
49393         * lib/mbmemcasecoll.c: New file.
49394         * modules/mbmemcasecoll: New file.
49395
49396         * tests/test-mbmemcasecmp.h: New file, extracted from
49397         tests/test-mbmemcasecmp.c.
49398         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49399         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49400         (main): Update.
49401         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49402
49403 2009-03-09  Bruno Haible  <bruno@clisp.org>
49404
49405         Tests for module 'mbmemcasecmp'.
49406         * modules/mbmemcasecmp-tests: New file.
49407         * tests/test-mbmemcasecmp1.sh: New file.
49408         * tests/test-mbmemcasecmp2.sh: New file.
49409         * tests/test-mbmemcasecmp3.sh: New file.
49410         * tests/test-mbmemcasecmp.c: New file.
49411
49412         New module 'mbmemcasecmp'.
49413         * lib/mbmemcasecmp.h: New file.
49414         * lib/mbmemcasecmp.c: New file.
49415         * modules/mbmemcasecmp: New file.
49416
49417 2009-03-09  Bruno Haible  <bruno@clisp.org>
49418
49419         Tests for module 'unicase/ulc-casecoll'.
49420         * modules/unicase/ulc-casecoll-tests: New file.
49421         * tests/unicase/test-ulc-casecoll1.sh: New file.
49422         * tests/unicase/test-ulc-casecoll2.sh: New file.
49423         * tests/unicase/test-ulc-casecoll.c: New file.
49424
49425         New module 'unicase/ulc-casecoll'.
49426         * lib/unicase.h (ulc_casecoll): New declaration.
49427         * lib/unicase/ulc-casecoll.c: New file.
49428         * modules/unicase/ulc-casecoll: New file.
49429
49430         New module 'unicase/ulc-casexfrm'.
49431         * lib/unicase.h (ulc_casexfrm): New declaration.
49432         * lib/unicase/ulc-casexfrm.c: New file.
49433         * modules/unicase/ulc-casexfrm: New file.
49434
49435 2009-03-09  Bruno Haible  <bruno@clisp.org>
49436
49437         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49438         invocations.
49439
49440         * m4/mbscasecmp.m4: Remove file.
49441         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49442         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49443
49444         * m4/mbscasestr.m4: Remove file.
49445         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49446         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49447
49448         * m4/mbschr.m4: Remove file.
49449         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49450         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49451
49452         * m4/mbscspn.m4: Remove file.
49453         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49454         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49455
49456         * m4/mbslen.m4: Remove file.
49457         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49458         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49459
49460         * m4/mbsncasecmp.m4: Remove file.
49461         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49462         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49463
49464         * m4/mbsnlen.m4: Remove file.
49465         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49466         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49467
49468         * m4/mbspbrk.m4: Remove file.
49469         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49470         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49471
49472         * m4/mbspcasecmp.m4: Remove file.
49473         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49474         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49475
49476         * m4/mbsrchr.m4: Remove file.
49477         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49478         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49479
49480         * m4/mbssep.m4: Remove file.
49481         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49482         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49483
49484         * m4/mbsspn.m4: Remove file.
49485         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49486         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49487
49488         * m4/mbsstr.m4: Remove file.
49489         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49490         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49491
49492         * m4/mbstok_r.m4: Remove file.
49493         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49494         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49495
49496         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49497
49498         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49499         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49500
49501         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49502
49503 2009-03-08  Bruno Haible  <bruno@clisp.org>
49504
49505         Tests for module 'unicase/ulc-casecmp'.
49506         * modules/unicase/ulc-casecmp-tests: New file.
49507         * tests/unicase/test-ulc-casecmp1.sh: New file.
49508         * tests/unicase/test-ulc-casecmp2.sh: New file.
49509         * tests/unicase/test-ulc-casecmp.c: New file.
49510
49511         New module 'unicase/ulc-casecmp'.
49512         * lib/unicase.h (ulc_casecmp): New declaration.
49513         * lib/unicase/ulc-casecmp.c: New file.
49514         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49515         'const SRC_UNIT *'.
49516         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49517         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49518         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49519         * modules/unicase/ulc-casecmp: New file.
49520
49521         Tests for module 'unicase/u32-is-cased'.
49522         * modules/unicase/u32-is-cased-tests: New file.
49523         * tests/unicase/test-u32-is-cased.c: New file.
49524
49525         Tests for module 'unicase/u16-is-cased'.
49526         * modules/unicase/u16-is-cased-tests: New file.
49527         * tests/unicase/test-u16-is-cased.c: New file.
49528
49529         Tests for module 'unicase/u8-is-cased'.
49530         * modules/unicase/u8-is-cased-tests: New file.
49531         * tests/unicase/test-u8-is-cased.c: New file.
49532         * tests/unicase/test-is-cased.h: New file.
49533
49534         New module 'unicase/u32-is-cased'.
49535         * lib/unicase/u32-is-cased.c: New file.
49536         * modules/unicase/u32-is-cased: New file.
49537
49538         New module 'unicase/u16-is-cased'.
49539         * lib/unicase/u16-is-cased.c: New file.
49540         * modules/unicase/u16-is-cased: New file.
49541
49542         New module 'unicase/u8-is-cased'.
49543         * lib/unicase/u8-is-cased.c: New file.
49544         * lib/unicase/u-is-cased.h: New file.
49545         * modules/unicase/u8-is-cased: New file.
49546
49547         Tests for module 'unicase/u32-is-casefolded'.
49548         * modules/unicase/u32-is-casefolded-tests: New file.
49549         * tests/unicase/test-u32-is-casefolded.c: New file.
49550
49551         Tests for module 'unicase/u16-is-casefolded'.
49552         * modules/unicase/u16-is-casefolded-tests: New file.
49553         * tests/unicase/test-u16-is-casefolded.c: New file.
49554
49555         Tests for module 'unicase/u8-is-casefolded'.
49556         * modules/unicase/u8-is-casefolded-tests: New file.
49557         * tests/unicase/test-u8-is-casefolded.c: New file.
49558         * tests/unicase/test-is-casefolded.h: New file.
49559
49560         New module 'unicase/u32-is-casefolded'.
49561         * lib/unicase/u32-is-casefolded.c: New file.
49562         * modules/unicase/u32-is-casefolded: New file.
49563
49564         New module 'unicase/u16-is-casefolded'.
49565         * lib/unicase/u16-is-casefolded.c: New file.
49566         * modules/unicase/u16-is-casefolded: New file.
49567
49568         New module 'unicase/u8-is-casefolded'.
49569         * lib/unicase/u8-is-casefolded.c: New file.
49570         * modules/unicase/u8-is-casefolded: New file.
49571
49572         Tests for module 'unicase/u32-is-titlecase'.
49573         * modules/unicase/u32-is-titlecase-tests: New file.
49574         * tests/unicase/test-u32-is-titlecase.c: New file.
49575
49576         Tests for module 'unicase/u16-is-titlecase'.
49577         * modules/unicase/u16-is-titlecase-tests: New file.
49578         * tests/unicase/test-u16-is-titlecase.c: New file.
49579
49580         Tests for module 'unicase/u8-is-titlecase'.
49581         * modules/unicase/u8-is-titlecase-tests: New file.
49582         * tests/unicase/test-u8-is-titlecase.c: New file.
49583         * tests/unicase/test-is-titlecase.h: New file.
49584
49585         New module 'unicase/u32-is-titlecase'.
49586         * lib/unicase/u32-is-titlecase.c: New file.
49587         * modules/unicase/u32-is-titlecase: New file.
49588
49589         New module 'unicase/u16-is-titlecase'.
49590         * lib/unicase/u16-is-titlecase.c: New file.
49591         * modules/unicase/u16-is-titlecase: New file.
49592
49593         New module 'unicase/u8-is-titlecase'.
49594         * lib/unicase/u8-is-titlecase.c: New file.
49595         * modules/unicase/u8-is-titlecase: New file.
49596
49597         Tests for module 'unicase/u32-is-lowercase'.
49598         * modules/unicase/u32-is-lowercase-tests: New file.
49599         * tests/unicase/test-u32-is-lowercase.c: New file.
49600
49601         Tests for module 'unicase/u16-is-lowercase'.
49602         * modules/unicase/u16-is-lowercase-tests: New file.
49603         * tests/unicase/test-u16-is-lowercase.c: New file.
49604
49605         Tests for module 'unicase/u8-is-lowercase'.
49606         * modules/unicase/u8-is-lowercase-tests: New file.
49607         * tests/unicase/test-u8-is-lowercase.c: New file.
49608         * tests/unicase/test-is-lowercase.h: New file.
49609
49610         New module 'unicase/u32-is-lowercase'.
49611         * lib/unicase/u32-is-lowercase.c: New file.
49612         * modules/unicase/u32-is-lowercase: New file.
49613
49614         New module 'unicase/u16-is-lowercase'.
49615         * lib/unicase/u16-is-lowercase.c: New file.
49616         * modules/unicase/u16-is-lowercase: New file.
49617
49618         New module 'unicase/u8-is-lowercase'.
49619         * lib/unicase/u8-is-lowercase.c: New file.
49620         * modules/unicase/u8-is-lowercase: New file.
49621
49622         Tests for module 'unicase/u32-is-uppercase'.
49623         * modules/unicase/u32-is-uppercase-tests: New file.
49624         * tests/unicase/test-u32-is-uppercase.c: New file.
49625
49626         Tests for module 'unicase/u16-is-uppercase'.
49627         * modules/unicase/u16-is-uppercase-tests: New file.
49628         * tests/unicase/test-u16-is-uppercase.c: New file.
49629
49630         Tests for module 'unicase/u8-is-uppercase'.
49631         * modules/unicase/u8-is-uppercase-tests: New file.
49632         * tests/unicase/test-u8-is-uppercase.c: New file.
49633         * tests/unicase/test-is-uppercase.h: New file.
49634
49635         New module 'unicase/u32-is-uppercase'.
49636         * lib/unicase/u32-is-uppercase.c: New file.
49637         * modules/unicase/u32-is-uppercase: New file.
49638
49639         New module 'unicase/u16-is-uppercase'.
49640         * lib/unicase/u16-is-uppercase.c: New file.
49641         * modules/unicase/u16-is-uppercase: New file.
49642
49643         New module 'unicase/u8-is-uppercase'.
49644         * lib/unicase/u8-is-uppercase.c: New file.
49645         * modules/unicase/u8-is-uppercase: New file.
49646
49647         New module 'unicase/u32-is-invariant'.
49648         * lib/unicase/u32-is-invariant.c: New file.
49649         * modules/unicase/u32-is-invariant: New file.
49650
49651         New module 'unicase/u16-is-invariant'.
49652         * lib/unicase/u16-is-invariant.c: New file.
49653         * modules/unicase/u16-is-invariant: New file.
49654
49655         New module 'unicase/u8-is-invariant'.
49656         * lib/unicase/u8-is-invariant.c: New file.
49657         * lib/unicase/invariant.h: New file.
49658         * lib/unicase/u-is-invariant.h: New file.
49659         * modules/unicase/u8-is-invariant: New file.
49660
49661         Tests for module 'unicase/u32-casecoll'.
49662         * modules/unicase/u32-casecoll-tests: New file.
49663         * tests/unicase/test-u32-casecoll.c: New file.
49664
49665         Tests for module 'unicase/u16-casecoll'.
49666         * modules/unicase/u16-casecoll-tests: New file.
49667         * tests/unicase/test-u16-casecoll.c: New file.
49668
49669         Tests for module 'unicase/u8-casecoll'.
49670         * modules/unicase/u8-casecoll-tests: New file.
49671         * tests/unicase/test-u8-casecoll.c: New file.
49672
49673         New module 'unicase/u32-casecoll'.
49674         * lib/unicase/u32-casecoll.c: New file.
49675         * modules/unicase/u32-casecoll: New file.
49676
49677         New module 'unicase/u16-casecoll'.
49678         * lib/unicase/u16-casecoll.c: New file.
49679         * modules/unicase/u16-casecoll: New file.
49680
49681         New module 'unicase/u8-casecoll'.
49682         * lib/unicase/u8-casecoll.c: New file.
49683         * lib/unicase/u-casecoll.h: New file.
49684         * modules/unicase/u8-casecoll: New file.
49685
49686         New module 'unicase/u32-casexfrm'.
49687         * lib/unicase/u32-casexfrm.c: New file.
49688         * modules/unicase/u32-casexfrm: New file.
49689
49690         New module 'unicase/u16-casexfrm'.
49691         * lib/unicase/u16-casexfrm.c: New file.
49692         * modules/unicase/u16-casexfrm: New file.
49693
49694         New module 'unicase/u8-casexfrm'.
49695         * lib/unicase/u8-casexfrm.c: New file.
49696         * lib/unicase/u-casexfrm.h: New file.
49697         * modules/unicase/u8-casexfrm: New file.
49698
49699         Tests for module 'unicase/u32-casecmp'.
49700         * modules/unicase/u32-casecmp-tests: New file.
49701         * tests/unicase/test-u32-casecmp.c: New file.
49702
49703         Tests for module 'unicase/u16-casecmp'.
49704         * modules/unicase/u16-casecmp-tests: New file.
49705         * tests/unicase/test-u16-casecmp.c: New file.
49706
49707         Tests for module 'unicase/u8-casecmp'.
49708         * modules/unicase/u8-casecmp-tests: New file.
49709         * tests/unicase/test-u8-casecmp.c: New file.
49710         * tests/unicase/test-casecmp.h: New file.
49711
49712         New module 'unicase/u32-casecmp'.
49713         * lib/unicase/u32-casecmp.c: New file.
49714         * modules/unicase/u32-casecmp: New file.
49715
49716         New module 'unicase/u16-casecmp'.
49717         * lib/unicase/u16-casecmp.c: New file.
49718         * modules/unicase/u16-casecmp: New file.
49719
49720         New module 'unicase/u8-casecmp'.
49721         * lib/unicase/u8-casecmp.c: New file.
49722         * lib/unicase/u-casecmp.h: New file.
49723         * modules/unicase/u8-casecmp: New file.
49724
49725         Tests for module 'unicase/u32-casefold'.
49726         * modules/unicase/u32-casefold-tests: New file.
49727         * tests/unicase/test-u32-casefold.c: New file.
49728
49729         Tests for module 'unicase/u16-casefold'.
49730         * modules/unicase/u16-casefold-tests: New file.
49731         * tests/unicase/test-u16-casefold.c: New file.
49732
49733         Tests for module 'unicase/u8-casefold'.
49734         * modules/unicase/u8-casefold-tests: New file.
49735         * tests/unicase/test-u8-casefold.c: New file.
49736
49737         New module 'unicase/u32-casefold'.
49738         * lib/unicase/u32-casefold.c: New file.
49739         * modules/unicase/u32-casefold: New file.
49740
49741         New module 'unicase/u16-casefold'.
49742         * lib/unicase/u16-casefold.c: New file.
49743         * modules/unicase/u16-casefold: New file.
49744
49745         New module 'unicase/u8-casefold'.
49746         * lib/unicase/u8-casefold.c: New file.
49747         * lib/unicase/u-casefold.h: New file.
49748         * modules/unicase/u8-casefold: New file.
49749
49750         New module 'unicase/tocasefold'.
49751         * lib/unicase/casefold.h: New file.
49752         * lib/unicase/tocasefold.c: New file.
49753         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49754         * modules/unicase/tocasefold: New file.
49755
49756         Tests for module 'unicase/u32-totitle'.
49757         * modules/unicase/u32-totitle-tests: New file.
49758         * tests/unicase/test-u32-totitle.c: New file.
49759
49760         Tests for module 'unicase/u16-totitle'.
49761         * modules/unicase/u16-totitle-tests: New file.
49762         * tests/unicase/test-u16-totitle.c: New file.
49763
49764         Tests for module 'unicase/u8-totitle'.
49765         * modules/unicase/u8-totitle-tests: New file.
49766         * tests/unicase/test-u8-totitle.c: New file.
49767
49768         New module 'unicase/u32-totitle'.
49769         * lib/unicase/u32-totitle.c: New file.
49770         * modules/unicase/u32-totitle: New file.
49771
49772         New module 'unicase/u16-totitle'.
49773         * lib/unicase/u16-totitle.c: New file.
49774         * modules/unicase/u16-totitle: New file.
49775
49776         New module 'unicase/u8-totitle'.
49777         * lib/unicase/u8-totitle.c: New file.
49778         * lib/unicase/u-totitle.h: New file.
49779         * modules/unicase/u8-totitle: New file.
49780
49781         Tests for module 'unicase/u32-tolower'.
49782         * modules/unicase/u32-tolower-tests: New file.
49783         * tests/unicase/test-u32-tolower.c: New file.
49784
49785         Tests for module 'unicase/u16-tolower'.
49786         * modules/unicase/u16-tolower-tests: New file.
49787         * tests/unicase/test-u16-tolower.c: New file.
49788
49789         Tests for module 'unicase/u8-tolower'.
49790         * modules/unicase/u8-tolower-tests: New file.
49791         * tests/unicase/test-u8-tolower.c: New file.
49792
49793         New module 'unicase/u32-tolower'.
49794         * lib/unicase/u32-tolower.c: New file.
49795         * modules/unicase/u32-tolower: New file.
49796
49797         New module 'unicase/u16-tolower'.
49798         * lib/unicase/u16-tolower.c: New file.
49799         * modules/unicase/u16-tolower: New file.
49800
49801         New module 'unicase/u8-tolower'.
49802         * lib/unicase/u8-tolower.c: New file.
49803         * modules/unicase/u8-tolower: New file.
49804
49805         Tests for module 'unicase/u32-toupper'.
49806         * modules/unicase/u32-toupper-tests: New file.
49807         * tests/unicase/test-u32-toupper.c: New file.
49808
49809         Tests for module 'unicase/u16-toupper'.
49810         * modules/unicase/u16-toupper-tests: New file.
49811         * tests/unicase/test-u16-toupper.c: New file.
49812
49813         Tests for module 'unicase/u8-toupper'.
49814         * modules/unicase/u8-toupper-tests: New file.
49815         * tests/unicase/test-u8-toupper.c: New file.
49816
49817         New module 'unicase/u32-toupper'.
49818         * lib/unicase/u32-toupper.c: New file.
49819         * modules/unicase/u32-toupper: New file.
49820
49821         New module 'unicase/u16-toupper'.
49822         * lib/unicase/u16-toupper.c: New file.
49823         * modules/unicase/u16-toupper: New file.
49824
49825         New module 'unicase/u8-toupper'.
49826         * lib/unicase/u8-toupper.c: New file.
49827         * modules/unicase/u8-toupper: New file.
49828
49829         New module 'unicase/u32-casemap'.
49830         * lib/unicase/u32-casemap.c: New file.
49831         * modules/unicase/u32-casemap: New file.
49832
49833         New module 'unicase/u16-casemap'.
49834         * lib/unicase/u16-casemap.c: New file.
49835         * modules/unicase/u16-casemap: New file.
49836
49837         New module 'unicase/u8-casemap'.
49838         * lib/unicase/unicasemap.h: New file.
49839         * lib/unicase/u8-casemap.c: New file.
49840         * lib/unicase/u-casemap.h: New file.
49841         * modules/unicase/u8-casemap: New file.
49842
49843         New module 'unicase/special-casing'.
49844         * lib/unicase/special-casing.h: New file.
49845         * lib/unicase/special-casing.c: New file.
49846         * lib/unicase/special-casing-table.gperf: New file, generated by
49847         gen-uni-tables.c.
49848         * modules/unicase/special-casing: New file.
49849
49850         Tests for module 'unicase/locale-language'.
49851         * modules/unicase/locale-language-tests: New file.
49852         * tests/unicase/test-locale-language.sh: New file.
49853         * tests/unicase/test-locale-language.c: New file.
49854
49855         New module 'unicase/locale-language'.
49856         * lib/unicase/locale-language.c: New file.
49857         * lib/unicase/locale-languages.gperf: New file.
49858         * modules/unicase/locale-language: New file.
49859
49860         Generate more tables for case conversion and case folding.
49861         * lib/gen-uni-tables.c (SCC_*): New enum items.
49862         (struct special_casing_rule): New type.
49863         (casing_rules, num_casing_rules, allocated_casing_rules): New
49864         variables.
49865         (add_casing_rule, fill_casing_rules): New functions.
49866         (struct casefold_rule): New type.
49867         (casefolding_rules, num_casefolding_rules,
49868         allocated_casefolding_rules): New variables.
49869         (fill_casefolding_rules): New function.
49870         (unicode_casefold): New variable.
49871         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49872         sort_casing_rules, output_casing_rules): New functions.
49873         (main): Accept to more arguments: SpecialCasing.txt and
49874         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49875         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49876         Output mapping for casefolding.
49877
49878         * lib/unicase.h: Include stdbool.h, uninorm.h.
49879         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49880         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49881         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49882         arguments.
49883         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49884         resultp arguments.
49885         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49886         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49887         resultp arguments.
49888         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49889         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49890         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49891         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49892         declarations.
49893         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49894
49895 2009-03-08  Bruno Haible  <bruno@clisp.org>
49896
49897         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49898         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49899         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49900         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49901
49902 2009-03-07  Bruno Haible  <bruno@clisp.org>
49903
49904         Adjust u*_normcmp, u*_normcoll API.
49905         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49906         u16_normcoll, u32_normcoll): Change failure conventions.
49907         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49908         errno and return -1.
49909         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49910
49911 2009-03-07  Bruno Haible  <bruno@clisp.org>
49912
49913         Tests for module 'uninorm/u32-normcoll'.
49914         * modules/uninorm/u32-normcoll-tests: New file.
49915         * tests/uninorm/test-u32-normcoll.c: New file.
49916
49917         Tests for module 'uninorm/u16-normcoll'.
49918         * modules/uninorm/u16-normcoll-tests: New file.
49919         * tests/uninorm/test-u16-normcoll.c: New file.
49920
49921         Tests for module 'uninorm/u8-normcoll'.
49922         * modules/uninorm/u8-normcoll-tests: New file.
49923         * tests/uninorm/test-u8-normcoll.c: New file.
49924
49925 2009-03-07  Bruno Haible  <bruno@clisp.org>
49926
49927         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49928         tests/uninorm/test-u32-normcmp.c.
49929         * tests/uninorm/test-u32-normcmp.c: Include it.
49930         (test_nonascii): New function, extracted from main. Add some more
49931         tests.
49932         (main): Invoke test_ascii and test_nonascii.
49933         * modules/uninorm/u32-normcmp-tests (Files): Add
49934         tests/uninorm/test-u32-normcmp.h.
49935         (Depends-on): Remove uninorm/u32-normcmp.
49936
49937         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49938         tests/uninorm/test-u16-normcmp.c.
49939         * tests/uninorm/test-u16-normcmp.c: Include it.
49940         (test_nonascii): New function, extracted from main. Add some more
49941         tests.
49942         (main): Invoke test_ascii and test_nonascii.
49943         * modules/uninorm/u16-normcmp-tests (Files): Add
49944         tests/uninorm/test-u16-normcmp.h.
49945         (Depends-on): Remove uninorm/u16-normcmp.
49946
49947         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49948         tests/uninorm/test-u8-normcmp.c.
49949         * tests/uninorm/test-u8-normcmp.c: Include it.
49950         (test_nonascii): New function, extracted from main. Add some more
49951         tests.
49952         (main): Invoke test_ascii and test_nonascii.
49953         * modules/uninorm/u8-normcmp-tests (Files): Add
49954         tests/uninorm/test-u8-normcmp.h.
49955         (Depends-on): Remove uninorm/u8-normcmp.
49956
49957 2009-03-07  Bruno Haible  <bruno@clisp.org>
49958
49959         New module 'uninorm/u32-normcoll'.
49960         * lib/uninorm/u32-normcoll.c: New file.
49961         * modules/uninorm/u32-normcoll: New file.
49962
49963         New module 'uninorm/u16-normcoll'.
49964         * lib/uninorm/u16-normcoll.c: New file.
49965         * modules/uninorm/u16-normcoll: New file.
49966
49967         New module 'uninorm/u8-normcoll'.
49968         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49969         declarations.
49970         * lib/uninorm/u8-normcoll.c: New file.
49971         * lib/uninorm/u-normcoll.h: New file.
49972         * modules/uninorm/u8-normcoll: New file.
49973
49974         New module 'uninorm/u32-normxfrm'.
49975         * lib/uninorm/u32-normxfrm.c: New file.
49976         * modules/uninorm/u32-normxfrm: New file.
49977
49978         New module 'uninorm/u16-normxfrm'.
49979         * lib/uninorm/u16-normxfrm.c: New file.
49980         * modules/uninorm/u16-normxfrm: New file.
49981
49982         New module 'uninorm/u8-normxfrm'.
49983         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49984         declarations.
49985         * lib/uninorm/u8-normxfrm.c: New file.
49986         * lib/uninorm/u-normxfrm.h: New file.
49987         * modules/uninorm/u8-normxfrm: New file.
49988
49989 2009-03-07  Bruno Haible  <bruno@clisp.org>
49990
49991         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49992         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49993         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49994
49995 2009-03-07  Bruno Haible  <bruno@clisp.org>
49996
49997         New module 'memxfrm'.
49998         * lib/memxfrm.h: New file.
49999         * lib/memxfrm.c: New file.
50000         * modules/memxfrm: New file.
50001
50002 2009-03-07  Bruno Haible  <bruno@clisp.org>
50003
50004         New module 'memcmp2'.
50005         * lib/memcmp2.h: New file.
50006         * lib/memcmp2.c: New file.
50007         * modules/memcmp2: New file.
50008
50009 2009-03-07  Bruno Haible  <bruno@clisp.org>
50010
50011         Tests for module 'uninorm/decomposing-form'.
50012         * modules/uninorm/decomposing-form-tests: New file.
50013         * tests/uninorm/test-decomposing-form.c: New file.
50014
50015         New module 'uninorm/decomposing-form'.
50016         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50017         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50018         Add 'decomposing_variant' field.
50019         * lib/uninorm/decomposing-form.c: New file.
50020         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50021         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50022         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50023         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50024         * modules/uninorm/decomposing-form: New file.
50025         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50026         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50027
50028 2009-03-07  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50031         strings.
50032
50033 2009-03-06  Bruno Haible  <bruno@clisp.org>
50034
50035         Tests for module 'uninorm/u32-normcmp'.
50036         * tests/uninorm/test-u32-normcmp.c: New file.
50037         * modules/uninorm/u32-normcmp-tests: New file.
50038
50039         Tests for module 'uninorm/u16-normcmp'.
50040         * tests/uninorm/test-u16-normcmp.c: New file.
50041         * modules/uninorm/u16-normcmp-tests: New file.
50042
50043         Tests for module 'uninorm/u8-normcmp'.
50044         * tests/uninorm/test-u8-normcmp.c: New file.
50045         * modules/uninorm/u8-normcmp-tests: New file.
50046
50047         New module 'uninorm/u32-normcmp'.
50048         * lib/uninorm/u32-normcmp.c: New file.
50049         * modules/uninorm/u32-normcmp: New file.
50050
50051         New module 'uninorm/u16-normcmp'.
50052         * lib/uninorm/u16-normcmp.c: New file.
50053         * modules/uninorm/u16-normcmp: New file.
50054
50055         New module 'uninorm/u8-normcmp'.
50056         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50057         declarations.
50058         * lib/uninorm/u8-normcmp.c: New file.
50059         * lib/uninorm/u-normcmp.h: New file.
50060         * modules/uninorm/u8-normcmp: New file.
50061
50062 2009-03-06  Bruno Haible  <bruno@clisp.org>
50063
50064         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50065         Reported by Eric Blake.
50066
50067 2009-03-06  Eric Blake  <ebb9@byu.net>
50068             Bruno Haible  <bruno@clisp.org>
50069
50070         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50071         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50072         condition.
50073         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50074         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50075         condition.
50076         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50077
50078 2009-03-06  Eric Blake  <ebb9@byu.net>
50079
50080         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50081         to avoid compiler warnings.
50082         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50083
50084 2009-03-05  Bruno Haible  <bruno@clisp.org>
50085
50086         * tests/test-ftell.c (main): Disable test beyond end of file on
50087         FreeMiNT.
50088         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50089
50090 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50091
50092         * lib/filevercmp.c: Move hidden files up in ordering.
50093         * tests/test-filevercmp.c: Add tests for hidden files.
50094
50095 2009-03-04  Bruno Haible  <bruno@clisp.org>
50096
50097         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50098         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50099         AM_CFLAGS.
50100         Reported by Simon Josefsson.
50101
50102 2009-03-03  Bruno Haible  <bruno@clisp.org>
50103
50104         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50105         Reported by Simon Josefsson.
50106
50107         * doc/ld-version-script.texi: Update node reference.
50108
50109 2009-03-03  Bruno Haible  <bruno@clisp.org>
50110
50111         * modules/visibility (License): Change to 'unlimited'.
50112         Suggested by Simon Josefsson.
50113
50114 2009-03-03  Jim Meyering  <meyering@redhat.com>
50115
50116         unlinkdir: cannot_unlink_dir may modify process state
50117         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50118         it's neither thread-safe nor appropriate for use in a library.
50119
50120 2009-03-03  Eric Blake  <ebb9@byu.net>
50121
50122         test-closein: silence test under Darwin
50123         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50124         care if it dies from EPIPE or EBADF.
50125
50126 2009-03-03  Bruno Haible  <bruno@clisp.org>
50127
50128         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50129         earlier.
50130         * doc/visibility.texi: Fix @node and @section.
50131
50132 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50133
50134         * doc/gnulib.texi: Link to sections for ld version script and
50135         visibility.
50136         * doc/visibility.texi: Add @node and @section.
50137         * modules/ld-version-script: New module.
50138         * m4/ld-version-script.m4: New file.
50139         * doc/ld-version-script.texi: New file.
50140
50141 2009-03-02  David Lutterkort  <lutter@redhat.com>
50142
50143         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50145
50146 2009-03-02  Bruno Haible  <bruno@clisp.org>
50147
50148         * doc/visibility.texi: Mention libtool's -export-symbols option.
50149
50150 2009-03-02  Jim Meyering  <meyering@redhat.com>
50151
50152         announce-gen: new option: --no-print-checksums
50153         * build-aux/announce-gen (usage): Describe it.
50154         (print_checksums): Print a newline here, not in the [*] footnote.
50155         (main): Honor it.
50156
50157 2009-03-01  Bruno Haible  <bruno@clisp.org>
50158
50159         Use socklen_t in the native Windows replacements prototypes.
50160         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50161         instead of 'int'.
50162         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50163         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50164         * modules/getsockopt (Depends-on): Add socklen.
50165         * modules/setsockopt (Depends-on): Add socklen.
50166
50167 2009-03-01  Bruno Haible  <bruno@clisp.org>
50168
50169         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50170         least 4.2.
50171
50172 2009-03-01  Eric Blake  <ebb9@byu.net>
50173             Bruno Haible  <bruno@clisp.org>
50174
50175         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50176         error messages.
50177         * lib/wait-process.c (wait_subprocess): Omit error message about
50178         deadly signal sent to the child of termsigp != NULL.
50179
50180 2009-03-01  Eric Blake  <ebb9@byu.net>
50181
50182         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50183
50184 2009-03-01  Bruno Haible  <bruno@clisp.org>
50185
50186         Avoid a gcc warning.
50187         * tests/test-sched.c (b): Make global.
50188         Reported by Eric Blake.
50189
50190 2009-01-19  Martin Lambers  <marlam@marlam.de>
50191
50192         Provide POSIX semantics for socket timeout options on W32.
50193         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50194         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50195         * modules/setsockopt: Depend on sys_time module for struct timeval.
50196         * modules/getsockopt: Depend on sys_time module for struct timeval.
50197
50198 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50199
50200         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50201         __USE_GNU, for consistency with netdb.in.h.
50202         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50203
50204 2009-03-01  Bruno Haible  <bruno@clisp.org>
50205
50206         More support for FreeMiNT.
50207         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50208         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50209
50210 2009-03-01  Bruno Haible  <bruno@clisp.org>
50211
50212         More support for FreeMiNT.
50213         * lib/fpurge.c (fpurge): Correct last commit.
50214         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50215
50216 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50217
50218         Fix unportable awk script in vc-list-files.
50219         * build-aux/vc-list-files: In the replacement awk script, use
50220         substr with a second argument of 1, not zero.
50221         Report by Simon Josefsson.
50222
50223 2009-02-28  Bruno Haible  <bruno@clisp.org>
50224
50225         More support for FreeMiNT.
50226         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50227         to FreeMiNT today.
50228         * lib/fwriting.c (fwriting): Likewise.
50229         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50230
50231 2009-02-28  Bruno Haible  <bruno@clisp.org>
50232
50233         * tests/test-freadseek.c (main): Disable test beyond end of file on
50234         FreeMiNT.
50235         * tests/test-ftello.c (main): Likewise.
50236         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50237
50238 2009-02-28  Bruno Haible  <bruno@clisp.org>
50239
50240         Add tentative support for FreeMiNT.
50241         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50242         * lib/fpurge.c (fpurge): Likewise.
50243         * lib/freadable.c (freadable): Likewise.
50244         * lib/freading.c (freading): Likewise.
50245         * lib/freadptr.c (freadptr): Likewise.
50246         * lib/freadseek.c (freadptrinc): Likewise.
50247         * lib/fseeko.c (rpl_fseeko): Likewise.
50248         * lib/fseterr.c (fseterr): Likewise.
50249         * lib/fwritable.c (fwritable): Likewise.
50250         * lib/fwriting.c (fwriting): Likewise.
50251         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50252         Hourihane.
50253         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50254
50255 2009-02-28  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50258         SIGCHLD.
50259         Reported by Jim Meyering.
50260
50261 2009-02-28  Bruno Haible  <bruno@clisp.org>
50262
50263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50264         Mention the results of these tests on various platforms.
50265         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50266         order.
50267         * doc/posix-functions/printf.texi: Likewise.
50268         * doc/posix-functions/snprintf.texi: Likewise.
50269         * doc/posix-functions/sprintf.texi: Likewise.
50270         * doc/posix-functions/vfprintf.texi: Likewise.
50271         * doc/posix-functions/vprintf.texi: Likewise.
50272         * doc/posix-functions/vsnprintf.texi: Likewise.
50273         * doc/posix-functions/vsprintf.texi: Likewise.
50274         * doc/glibc-functions/obstack_printf.texi: Likewise.
50275         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50276
50277 2009-02-28  Bruno Haible  <bruno@clisp.org>
50278
50279         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50280         Reported by Loïc Minier <lool@dooz.org>.
50281
50282 2009-02-27  Bruno Haible  <bruno@clisp.org>
50283
50284         * gnulib-tool (func_import): Make the sed expression used to create the
50285         sed script for updating the .gitignore file POSIX compliant.
50286         Reported by Eric Blake.
50287
50288 2009-02-27  Bruno Haible  <bruno@clisp.org>
50289
50290         * gnulib-tool (sed): Don't alias as "sed --posix".
50291         Reported by Eric Blake.
50292
50293 2009-02-27  Bruno Haible  <bruno@clisp.org>
50294
50295         Avoid test link errors.
50296         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50297         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50298         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50299         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50301
50302 2009-02-27  Bruno Haible  <bruno@clisp.org>
50303
50304         Avoid spurious "(cached)" in configure output.
50305         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50306         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50307         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50308         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50309         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50310         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50311         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50312         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50313         Reported by Eric Blake.
50314
50315 2009-02-27  Eric Blake  <ebb9@byu.net>
50316
50317         printf: fix regression in previous patch
50318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50319
50320 2009-02-27  Bruno Haible  <bruno@clisp.org>
50321
50322         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50323         value.
50324         * lib/stdint.in.h: Likewise.
50325         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50326
50327 2009-02-27  Eric Blake  <ebb9@byu.net>
50328
50329         doc: mention more functions added in cygwin 1.7.0
50330         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50331         addition.
50332         * doc/posix-functions/open_wmemstream.texi: Likewise.
50333         * doc/posix-functions/wcsnlen.texi: Likewise.
50334         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50335         * doc/posix-functions/wcstod.texi: Likewise.
50336         * doc/posix-functions/wcstof.texi: Likewise.
50337         * doc/posix-functions/wcstoimax.texi: Likewise.
50338         * doc/posix-functions/wcstok.texi: Likewise.
50339         * doc/posix-functions/wcstoumax.texi: Likewise.
50340
50341         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50343         * doc/posix-functions/fprintf.texi: Update.
50344         * doc/posix-functions/printf.texi: Update.
50345         * doc/posix-functions/snprintf.texi: Update.
50346         * doc/posix-functions/sprintf.texi: Update.
50347         * doc/posix-functions/vfprintf.texi: Update.
50348         * doc/posix-functions/vprintf.texi: Update.
50349         * doc/posix-functions/vsnprintf.texi: Update.
50350         * doc/posix-functions/vsprintf.texi: Update.
50351         * doc/glibc-functions/obstack_printf.texi: Update.
50352         * doc/glibc-functions/obstack_vprintf.texi: Update.
50353
50354 2009-02-26  Eric Blake  <ebb9@byu.net>
50355
50356         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50357         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50358         compilation bug by using runtime conversion.
50359         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50360         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50361         * modules/ceill-tests (Files): Use nan.h.
50362         * modules/floorl-tests (Files): Likewise.
50363         * modules/frexpl-tests (Files): Likewise.
50364         * modules/isnanl-tests (Files): Likewise.
50365         * modules/ldexpl-tests (Files): Likewise.
50366         * modules/roundl-tests (Files): Likewise.
50367         * modules/truncl-tests (Files): Likewise.
50368         * tests/test-ceill.c (main): Use a working NaN.
50369         * tests/test-floorl.c (main): Likewise.
50370         * tests/test-frexpl.c (main): Likewise.
50371         * tests/test-isnan.c (test_long_double): Likewise.
50372         * tests/test-isnanl.h (main): Likewise.
50373         * tests/test-ldexpl.h (main): Likewise.
50374         * tests/test-roundl.h (main): Likewise.
50375         * tests/test-truncl.h (main): Likewise.
50376         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50377
50378 2009-02-26  Eric Blake  <ebb9@byu.net>
50379             Bruno Haible  <bruno@clisp.org>
50380
50381         Work around a *printf bug with %ls on Solaris.
50382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50383         precision is specified, sprintf stops converting the wide string
50384         argument when the number of bytes that have been produced by this
50385         conversion equals or exceeds the precision.
50386         * doc/posix-functions/fprintf.texi: Update.
50387         * doc/posix-functions/printf.texi: Update.
50388         * doc/posix-functions/snprintf.texi: Update.
50389         * doc/posix-functions/sprintf.texi: Update.
50390         * doc/posix-functions/vfprintf.texi: Update.
50391         * doc/posix-functions/vprintf.texi: Update.
50392         * doc/posix-functions/vsnprintf.texi: Update.
50393         * doc/posix-functions/vsprintf.texi: Update.
50394         * doc/glibc-functions/obstack_printf.texi: Update.
50395         * doc/glibc-functions/obstack_vprintf.texi: Update.
50396
50397 2009-02-26  Eric Blake  <ebb9@byu.net>
50398
50399         stdlib: favor compiler check of random.h
50400         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50401         to avoid an ObjC random.h installed by Swarm.
50402
50403 2009-02-26  Bruno Haible  <bruno@clisp.org>
50404
50405         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50406         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50407         Reported by Gary V. Vaughan <gary@gnu.org>.
50408
50409 2009-02-26  Bruno Haible  <bruno@clisp.org>
50410
50411         Fix *printf behaviour regarding the %ls directive.
50412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50413         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50414         NEED_PRINTF_DIRECTIVE_LS.
50415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50416         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50418         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50419         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50420         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50421         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50424         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50426         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50430         * doc/posix-functions/fprintf.texi: Update.
50431         * doc/posix-functions/printf.texi: Update.
50432         * doc/posix-functions/snprintf.texi: Update.
50433         * doc/posix-functions/sprintf.texi: Update.
50434         * doc/posix-functions/vfprintf.texi: Update.
50435         * doc/posix-functions/vprintf.texi: Update.
50436         * doc/posix-functions/vsnprintf.texi: Update.
50437         * doc/posix-functions/vsprintf.texi: Update.
50438         * doc/glibc-functions/obstack_printf.texi: Update.
50439         * doc/glibc-functions/obstack_vprintf.texi: Update.
50440         Reported by Eric Blake.
50441
50442 2009-02-25  Bruno Haible  <bruno@clisp.org>
50443
50444         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50445         with known value.
50446         Reported by Gary V. Vaughan <gary@gnu.org>.
50447
50448 2009-02-25  Bruno Haible  <bruno@clisp.org>
50449
50450         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50451         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50452         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50453         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50454         Reported by Gary V. Vaughan <gary@gnu.org>.
50455
50456 2009-02-25  Bruno Haible  <bruno@clisp.org>
50457
50458         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50459         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50460         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50461         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50462         Reported by Gary V. Vaughan <gary@gnu.org>.
50463
50464 2009-02-25  Eric Blake  <ebb9@byu.net>
50465
50466         tests: skip fseek/ftell tests if ungetc is broken
50467         * m4/ungetc.m4: New file.
50468         * modules/fseek-tests: Split test, so ungetc dependency is
50469         separate from rest of test.
50470         * modules/fseeko-tests: Likewise.
50471         * modules/ftell-tests: Likewise.
50472         * modules/ftello-tests: Likewise.
50473         * tests/test-fseek.c (main): Isolate ungetc dependency.
50474         * tests/test-fseeko.c (main): Likewise.
50475         * tests/test-ftell.c (main): Likewise.
50476         * tests/test-ftello.c (main): Likewise.
50477         * tests/test-fseek2.sh: New file.
50478         * tests/test-fseeko2.sh: Likewise.
50479         * tests/test-ftell2.sh: Likewise.
50480         * tests/test-ftello2.sh: Likewise.
50481
50482 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50483
50484         test-getaddrinfo: fix usage of skip return code 77
50485         * tests/test-gettaddrinfo.c: Return skip code 77 only
50486         for first occurrence of skip (4x77 is not 77)
50487
50488 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50489
50490         strtod: avoid C99 decl-after-statement
50491         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50492
50493 2009-02-24  Eric Blake  <ebb9@byu.net>
50494
50495         strtod: detect HP-UX 11.31 bug
50496         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50497         Reported by Gary V. Vaughan.
50498
50499 2009-02-23  Bruno Haible  <bruno@clisp.org>
50500
50501         Fix invalid read past end of memory block.
50502         * lib/vasnprintf.c (DCHAR_SET): Define.
50503         (local_wcslen): Define only when needed.
50504         (local_strnlen, local_wcsnlen): New functions.
50505         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50506         directives that involve a conversion ourselves.
50507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50508         wcsnlen, mbrtowc, wcrtomb.
50509         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50510         * tests/test-vasprintf-posix.c (test_function): Likewise.
50511         * tests/test-snprintf-posix.h (test_function): Likewise.
50512         * tests/test-sprintf-posix.h (test_function): Likewise.
50513         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50514
50515 2009-02-22  Bruno Haible  <bruno@clisp.org>
50516
50517         Implement new clarified decomposition of Hangul syllables.
50518         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50519         of type LTV, return only a pairwise decomposition.
50520         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50521         Likewise.
50522         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50523         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50524         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50525
50526 2009-02-22  Bruno Haible  <bruno@clisp.org>
50527
50528         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50529         zero-length results and shrink excess allocated memory.
50530         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50531         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50532         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50533         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50534         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50535         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50536         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50537         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50538         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50539         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50540         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50541         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50542
50543 2009-02-21  Bruno Haible  <bruno@clisp.org>
50544
50545         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50546         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50547         spaces after a period. Put a space between a macro name and its
50548         argument list. Trivial rewordings.
50549         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50550         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50551         (main): Return 0 explicitly.
50552
50553 2009-02-21  Bruno Haible  <bruno@clisp.org>
50554
50555         Tests for module 'uninorm/filter'.
50556         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50557         * modules/uninorm/filter-tests: New file.
50558
50559         New module 'uninorm/filter'.
50560         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50561         uninorm_filter_flush, uninorm_filter_free): New declarations.
50562         * lib/uninorm/uninorm-filter.c: New file.
50563         * modules/uninorm/filter: New file.
50564
50565 2009-02-21  Bruno Haible  <bruno@clisp.org>
50566
50567         Tests for module 'uninorm/nfkc'.
50568         * tests/uninorm/test-nfkc.c: New file.
50569         * tests/uninorm/test-u8-nfkc.c: New file.
50570         * tests/uninorm/test-u16-nfkc.c: New file.
50571         * tests/uninorm/test-u32-nfkc.c: New file.
50572         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50573         * tests/uninorm/test-u32-nfkc-big.c: New file.
50574         * modules/uninorm/nfkc-tests: New file.
50575
50576         New module 'uninorm/nfkc'.
50577         * lib/uninorm/nfkc.c: New file.
50578         * modules/uninorm/nfkc: New file.
50579
50580         Tests for module 'uninorm/nfkd'.
50581         * tests/uninorm/test-nfkd.c: New file.
50582         * tests/uninorm/test-u8-nfkd.c: New file.
50583         * tests/uninorm/test-u16-nfkd.c: New file.
50584         * tests/uninorm/test-u32-nfkd.c: New file.
50585         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50586         * tests/uninorm/test-u32-nfkd-big.c: New file.
50587         * modules/uninorm/nfkd-tests: New file.
50588
50589         New module 'uninorm/nfkd'.
50590         * lib/uninorm/nfkd.c: New file.
50591         * modules/uninorm/nfkd: New file.
50592
50593         Tests for module 'uninorm/nfc'.
50594         * tests/uninorm/test-nfc.c: New file.
50595         * tests/uninorm/test-u8-nfc.c: New file.
50596         * tests/uninorm/test-u16-nfc.c: New file.
50597         * tests/uninorm/test-u32-nfc.c: New file.
50598         * tests/uninorm/test-u32-nfc-big.sh: New file.
50599         * tests/uninorm/test-u32-nfc-big.c: New file.
50600         * modules/uninorm/nfc-tests: New file.
50601
50602         New module 'uninorm/nfc'.
50603         * lib/uninorm/nfc.c: New file.
50604         * modules/uninorm/nfc: New file.
50605
50606         Tests for module 'uninorm/nfd'.
50607         * tests/uninorm/test-nfd.c: New file.
50608         * tests/uninorm/test-u8-nfd.c: New file.
50609         * tests/uninorm/test-u16-nfd.c: New file.
50610         * tests/uninorm/test-u32-nfd.c: New file.
50611         * tests/uninorm/test-u32-nfd-big.sh: New file.
50612         * tests/uninorm/test-u32-nfd-big.c: New file.
50613         * tests/uninorm/test-u32-normalize-big.h: New file.
50614         * tests/uninorm/test-u32-normalize-big.c: New file.
50615         * tests/uninorm/NormalizationTest.txt: New file, created from
50616         Unicode 5.1.0 NormalizationTest.txt.
50617         * modules/uninorm/nfd-tests: New file.
50618
50619         New module 'uninorm/nfd'.
50620         * lib/uninorm/nfd.c: New file.
50621         * modules/uninorm/nfd: New file.
50622
50623         New module 'uninorm/u32-normalize'.
50624         * lib/uninorm/u32-normalize.c: New file.
50625         * modules/uninorm/u32-normalize: New file.
50626
50627         New module 'uninorm/u16-normalize'.
50628         * lib/uninorm/u16-normalize.c: New file.
50629         * modules/uninorm/u16-normalize: New file.
50630
50631         New module 'uninorm/u8-normalize'.
50632         * lib/uninorm/u8-normalize.c: New file.
50633         * lib/uninorm/normalize-internal.h: New file.
50634         * lib/uninorm/u-normalize-internal.h: New file.
50635         * modules/uninorm/u8-normalize: New file.
50636
50637         New module 'uninorm/decompose-internal'.
50638         * lib/uninorm/decompose-internal.c: New file.
50639         * modules/uninorm/decompose-internal: New file.
50640
50641         Tests for module 'uninorm/composition'.
50642         * tests/uninorm/test-composition.c: New file.
50643         * modules/uninorm/composition-tests: New file.
50644
50645         New module 'uninorm/composition'.
50646         * lib/uninorm/composition.c: New file.
50647         * lib/uninorm/composition-table.gperf: New file, generated by
50648         gen-uni-tables.
50649         * modules/uninorm/composition: New file.
50650
50651         Tests for module 'uninorm/compat-decomposition'.
50652         * tests/uninorm/test-compat-decomposition.c: New file.
50653         * modules/uninorm/compat-decomposition-tests: New file.
50654
50655         New module 'uninorm/compat-decomposition'.
50656         * lib/uninorm/decompose-internal.h: New file.
50657         * lib/uninorm/compat-decomposition.c: New file.
50658         * modules/uninorm/compat-decomposition: New file.
50659
50660         Tests for module 'uninorm/canonical-decomposition'.
50661         * tests/uninorm/test-canonical-decomposition.c: New file.
50662         * modules/uninorm/canonical-decomposition-tests: New file.
50663
50664         New module 'uninorm/canonical-decomposition'.
50665         * lib/uninorm/canonical-decomposition.c: New file.
50666         * modules/uninorm/canonical-decomposition: New file.
50667
50668         Tests for module 'uninorm/decomposition'.
50669         * tests/uninorm/test-decomposition.c: New file.
50670         * modules/uninorm/decomposition-tests: New file.
50671
50672         New module 'uninorm/decomposition'.
50673         * lib/uninorm/decomposition.c: New file.
50674         * modules/uninorm/decomposition: New file.
50675
50676         New module 'uninorm/decomposition-table'.
50677         * lib/uninorm/decomposition-table.h: New file.
50678         * lib/uninorm/decomposition-table.c: New file.
50679         * lib/uninorm/decomposition-table1.h: New file, generated by
50680         gen-uni-tables.
50681         * lib/uninorm/decomposition-table2.h: New file, generated by
50682         gen-uni-tables.
50683         * modules/uninorm/decomposition-table: New file.
50684
50685         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50686         (UC_DECOMP_*): New enumeration items.
50687         (get_decomposition): New function.
50688         (struct decomp_table): New type.
50689         (output_decomposition, output_decomposition_tables): New functions.
50690         (unicode_composition_exclusions): New variable.
50691         (fill_composition_exclusions, debug_output_composition_tables): New
50692         functions.
50693         (main): Accept one more argument. Invoke fill_composition_exclusions.
50694         Output decomposition and composition tables.
50695
50696         New module 'uninorm/base'.
50697         * lib/uninorm.h: New file.
50698         * lib/unictype.h: Update comment.
50699         * modules/uninorm/base: New file.
50700
50701 2009-02-21  David Lutterkort  <lutter@redhat.com>
50702
50703         Tests for module 'safe-alloc'.
50704         * tests/test-safe-alloc.c: New file.
50705         * modules/safe-alloc-tests: New file.
50706
50707         New module 'safe-alloc'.
50708         * lib/safe-alloc.h: New file.
50709         * lib/safe-alloc.c: New file.
50710         * m4/safe-alloc.m4: New file.
50711         * modules/safe-alloc: New file.
50712         * doc/safe-alloc.texi: New file.
50713         * doc/gnulib.texi: Include it.
50714         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50715         safe-alloc.
50716
50717 2009-02-18  Bruno Haible  <bruno@clisp.org>
50718
50719         Fix link error on non-glibc systems.
50720         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50721         variable.
50722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50723
50724 2009-02-18  Jim Meyering  <meyering@redhat.com>
50725
50726         fts: avoid used-uninitialized error due to recent change
50727         * lib/fts.c (fts_read): Guard uses of the new member,
50728         parent->fts_n_dirs_remaining, since it's not relevant for
50729         the parent of a directory specified on the command-line.
50730
50731 2009-02-17  James Youngman  <jay@gnu.org>
50732             Bruno Haible  <bruno@clisp.org>
50733
50734         * m4/include_next.m4: Reformulate comment.
50735
50736 2009-02-16  Jim Meyering  <meyering@redhat.com>
50737
50738         fts: add #if guards so that the fts_lgpl module still builds
50739         * lib/fts.c: Guard just-added hash-table-using parts with
50740         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50741         Reported by Simon Josefsson.
50742
50743 2009-02-15  Bruno Haible  <bruno@clisp.org>
50744
50745         * modules/array-mergesort-tests: New file.
50746         * tests/test-array-mergesort.c: New file.
50747
50748         New module 'array-mergesort'.
50749         * modules/array-mergesort: New file.
50750         * lib/array-mergesort.h: New file.
50751
50752 2009-02-15  Bruno Haible  <bruno@clisp.org>
50753
50754         Fix 2009-02-07 commit.
50755         * lib/gen-uni-tables.c (output_predicate, output_category,
50756         output_combclass, output_bidi_category, output_decimal_digit,
50757         output_digit, output_numeric, output_mirror, output_scripts,
50758         output_ident_category, output_simple_mapping): Fix format directives.
50759         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50760
50761 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50762
50763         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50764         fixes are available from IBM.
50765
50766 2009-02-13  Jim Meyering  <meyering@redhat.com>
50767
50768         fts: arrange not to stat non-directories in more cases
50769         This makes GNU find (when it doesn't need to stat each file)
50770         *much* more efficient at traversing reiserfs file systems.
50771         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50772         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50773         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50774         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50775         (leaf_optimization_applies): New function.
50776         (LCO_hash, LCO_compare): New helper functions.
50777         (link_count_optimize_ok): New function.
50778         (fts_stat): Initialize new member (if dir).
50779         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50780         we've just stat'ed a directory.  Skip the stat call when possible.
50781         ---
50782         Note this AFS-related exchange:
50783         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50784         and note find's pioctl call in find/fstype.c.
50785         But that is necessary only if you want to enable the
50786         optimization for AFS, and for now, I don't.
50787
50788         fts: move a function definition "up" (no semantic change)
50789         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50790         "up" to precede upcoming use of a related function.
50791
50792 2009-02-11  Jim Meyering  <meyering@redhat.com>
50793
50794         fts: correct internal computation of nlinks (optimization-related)
50795         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50796         whether the current entry is a directory, so don't test it.
50797
50798 2009-02-10  Bruno Haible  <bruno@clisp.org>
50799
50800         Tests for module 'uniwbrk/ulc-wordbreaks'.
50801         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50802         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50803         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50804
50805         Tests for module 'uniwbrk/u32-wordbreaks'.
50806         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50807         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50808
50809         Tests for module 'uniwbrk/u16-wordbreaks'.
50810         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50811         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50812
50813         Tests for module 'uniwbrk/u8-wordbreaks'.
50814         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50815         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50816
50817 2009-02-10  Bruno Haible  <bruno@clisp.org>
50818
50819         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50820         property.
50821         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50822         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50823         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50824
50825 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50826
50827         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50828         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50829
50830 2009-02-10  Bruno Haible  <bruno@clisp.org>
50831
50832         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50833         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50834         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50835         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50836         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50837         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50838
50839 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50840
50841         * lib/sockets.h (gl_fd_to_handle): New function.
50842
50843         * tests/test-sockets.c: Call gl_fd_to_handle.
50844
50845 2009-02-09  Bruno Haible  <bruno@clisp.org>
50846
50847         * doc/havelib.texi: Document the conventions on bi-arch systems.
50848
50849 2009-02-08  Bruno Haible  <bruno@clisp.org>
50850
50851         Document the AC_LIB_LINKFLAGS macro.
50852         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50853         * doc/gnulib.texi: Include it.
50854
50855 2009-02-08  Bruno Haible  <bruno@clisp.org>
50856
50857         Fix wrong order of sections, compared to TOC.
50858         * doc/gnulib.texi: Include relocatable-maint.texi after the
50859         "Regular expressions" node, not before.
50860
50861 2009-02-08  Bruno Haible  <bruno@clisp.org>
50862
50863         Tests for module 'unicase/totitle'.
50864         * modules/unicase/totitle-tests: New file.
50865
50866         Tests for module 'unicase/tolower'.
50867         * modules/unicase/tolower-tests: New file.
50868
50869         Tests for module 'unicase/toupper'.
50870         * modules/unicase/toupper-tests: New file.
50871         * tests/unicase/test-mapping-part1.h: New file.
50872         * tests/unicase/test-mapping-part2.h: New file.
50873
50874         New module 'unicase/totitle'.
50875         * modules/unicase/totitle: New file.
50876         * lib/unicase/totitle.c: New file.
50877
50878         New module 'unicase/tolower'.
50879         * modules/unicase/tolower: New file.
50880         * lib/unicase/tolower.c: New file.
50881
50882         New module 'unicase/toupper'.
50883         * modules/unicase/toupper: New file.
50884         * lib/unicase/toupper.c: New file.
50885         * lib/unicase/simple-mapping.h: New file.
50886
50887         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50888         (mapping_table): New structure.
50889         (output_simple_mapping): New function.
50890         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50891         * modules/gen-uni-tables (Description): Update.
50892         * lib/unicase/toupper.h: New file, automatically generated by
50893         gen-uni-tables.
50894         * lib/unicase/tolower.h: New file, automatically generated by
50895         gen-uni-tables.
50896         * lib/unicase/totitle.h: New file, automatically generated by
50897         gen-uni-tables.
50898         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50899         gen-uni-tables.
50900         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50901         gen-uni-tables.
50902         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50903         gen-uni-tables.
50904
50905         New module 'unicase/base'.
50906         * modules/unicase/base: New file.
50907         * lib/unicase.h: New file.
50908
50909 2009-02-08  Bruno Haible  <bruno@clisp.org>
50910
50911         New module 'uniwbrk/ulc-wordbreaks'.
50912         * modules/uniwbrk/ulc-wordbreaks: New file.
50913         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50914
50915         New module 'uniwbrk/u32-wordbreaks'.
50916         * modules/uniwbrk/u32-wordbreaks: New file.
50917         * lib/uniwbrk/u32-wordbreaks.c: New file.
50918
50919         New module 'uniwbrk/u16-wordbreaks'.
50920         * modules/uniwbrk/u16-wordbreaks: New file.
50921         * lib/uniwbrk/u16-wordbreaks.c: New file.
50922
50923         New module 'uniwbrk/u8-wordbreaks'.
50924         * modules/uniwbrk/u8-wordbreaks: New file.
50925         * lib/uniwbrk/u8-wordbreaks.c: New file.
50926         * lib/uniwbrk/u-wordbreaks.h: New file.
50927
50928         New module 'uniwbrk/table'.
50929         * modules/uniwbrk/table: New file.
50930         * lib/uniwbrk/wbrktable.h: New file.
50931         * lib/uniwbrk/wbrktable.c: New file.
50932
50933         New module 'uniwbrk/wordbreak-property'.
50934         * modules/uniwbrk/wordbreak-property: New file.
50935         * lib/uniwbrk/wordbreak-property.c: New file.
50936
50937         * lib/gen-uni-tables.c (WBP_*): New enum items.
50938         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50939         (unicode_org_wbp): New variable.
50940         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50941         New functions.
50942         (wbp_table): New structure.
50943         (output_wbp, output_wbrk_tables): New functions.
50944         (main): Accept additional argument. Invoke fill_org_wbp,
50945         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50946         output_wbrk_tables.
50947         * modules/gen-uni-tables (Description): Update.
50948         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50949         gen-uni-tables.
50950
50951         New module 'uniwbrk/base'.
50952         * modules/uniwbrk/base: New file.
50953         * lib/uniwbrk.h: New file.
50954
50955 2009-02-08  Bruno Haible  <bruno@clisp.org>
50956
50957         Update to Unicode 5.1.0.
50958         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50959         U+2185..U+2188.
50960         (is_property_default_ignorable_code_point): Don't include characters
50961         of category Cc or Cs and not-a-characters.
50962         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50963         U+0D79, U+109E, U+109F, U+A60C.
50964         * lib/unictype/bidi_of.h: Regenerated.
50965         * lib/unictype/blocks.h: Regenerated.
50966         * lib/unictype/categ_C.h: Regenerated.
50967         * lib/unictype/categ_Cf.h: Regenerated.
50968         * lib/unictype/categ_Cn.h: Regenerated.
50969         * lib/unictype/categ_L.h: Regenerated.
50970         * lib/unictype/categ_Ll.h: Regenerated.
50971         * lib/unictype/categ_Lm.h: Regenerated.
50972         * lib/unictype/categ_Lo.h: Regenerated.
50973         * lib/unictype/categ_Lu.h: Regenerated.
50974         * lib/unictype/categ_M.h: Regenerated.
50975         * lib/unictype/categ_Mc.h: Regenerated.
50976         * lib/unictype/categ_Me.h: Regenerated.
50977         * lib/unictype/categ_Mn.h: Regenerated.
50978         * lib/unictype/categ_N.h: Regenerated.
50979         * lib/unictype/categ_Nd.h: Regenerated.
50980         * lib/unictype/categ_Nl.h: Regenerated.
50981         * lib/unictype/categ_No.h: Regenerated.
50982         * lib/unictype/categ_P.h: Regenerated.
50983         * lib/unictype/categ_Pd.h: Regenerated.
50984         * lib/unictype/categ_Pe.h: Regenerated.
50985         * lib/unictype/categ_Pf.h: Regenerated.
50986         * lib/unictype/categ_Pi.h: Regenerated.
50987         * lib/unictype/categ_Po.h: Regenerated.
50988         * lib/unictype/categ_Ps.h: Regenerated.
50989         * lib/unictype/categ_S.h: Regenerated.
50990         * lib/unictype/categ_Sk.h: Regenerated.
50991         * lib/unictype/categ_Sm.h: Regenerated.
50992         * lib/unictype/categ_So.h: Regenerated.
50993         * lib/unictype/categ_of.h: Regenerated.
50994         * lib/unictype/combining.h: Regenerated.
50995         * lib/unictype/ctype_alnum.h: Regenerated.
50996         * lib/unictype/ctype_alpha.h: Regenerated.
50997         * lib/unictype/ctype_graph.h: Regenerated.
50998         * lib/unictype/ctype_lower.h: Regenerated.
50999         * lib/unictype/ctype_print.h: Regenerated.
51000         * lib/unictype/ctype_punct.h: Regenerated.
51001         * lib/unictype/ctype_upper.h: Regenerated.
51002         * lib/unictype/decdigit.h: Regenerated.
51003         * lib/unictype/digit.h: Regenerated.
51004         * lib/unictype/mirror.h: Regenerated.
51005         * lib/unictype/numeric.h: Regenerated.
51006         * lib/unictype/pr_alphabetic.h: Regenerated.
51007         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51008         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51009         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51010         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51011         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51012         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51013         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51014         * lib/unictype/pr_combining.h: Regenerated.
51015         * lib/unictype/pr_dash.h: Regenerated.
51016         * lib/unictype/pr_decimal_digit.h: Regenerated.
51017         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51018         * lib/unictype/pr_deprecated.h: Regenerated.
51019         * lib/unictype/pr_diacritic.h: Regenerated.
51020         * lib/unictype/pr_extender.h: Regenerated.
51021         * lib/unictype/pr_format_control.h: Regenerated.
51022         * lib/unictype/pr_grapheme_base.h: Regenerated.
51023         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51024         * lib/unictype/pr_grapheme_link.h: Regenerated.
51025         * lib/unictype/pr_id_continue.h: Regenerated.
51026         * lib/unictype/pr_id_start.h: Regenerated.
51027         * lib/unictype/pr_ideographic.h: Regenerated.
51028         * lib/unictype/pr_ignorable_control.h: Regenerated.
51029         * lib/unictype/pr_lowercase.h: Regenerated.
51030         * lib/unictype/pr_math.h: Regenerated.
51031         * lib/unictype/pr_numeric.h: Regenerated.
51032         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51033         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51034         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51035         * lib/unictype/pr_other_id_continue.h: Regenerated.
51036         * lib/unictype/pr_other_lowercase.h: Regenerated.
51037         * lib/unictype/pr_other_math.h: Regenerated.
51038         * lib/unictype/pr_punctuation.h: Regenerated.
51039         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51040         * lib/unictype/pr_soft_dotted.h: Regenerated.
51041         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51042         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51043         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51044         * lib/unictype/pr_uppercase.h: Regenerated.
51045         * lib/unictype/pr_xid_continue.h: Regenerated.
51046         * lib/unictype/pr_xid_start.h: Regenerated.
51047         * lib/unictype/pr_zero_width.h: Regenerated.
51048         * lib/unictype/scripts.h: Regenerated.
51049         * lib/unictype/scripts_byname.gperf: Regenerated.
51050         * lib/unictype/sy_java_ident.h: Regenerated.
51051         * lib/unilbrk/lbrkprop1.h: Regenerated.
51052         * lib/unilbrk/lbrkprop2.h: Regenerated.
51053         * tests/unictype/test-categ_C.c: Regenerated.
51054         * tests/unictype/test-categ_Cf.c: Regenerated.
51055         * tests/unictype/test-categ_Cn.c: Regenerated.
51056         * tests/unictype/test-categ_L.c: Regenerated.
51057         * tests/unictype/test-categ_Ll.c: Regenerated.
51058         * tests/unictype/test-categ_Lm.c: Regenerated.
51059         * tests/unictype/test-categ_Lo.c: Regenerated.
51060         * tests/unictype/test-categ_Lu.c: Regenerated.
51061         * tests/unictype/test-categ_M.c: Regenerated.
51062         * tests/unictype/test-categ_Mc.c: Regenerated.
51063         * tests/unictype/test-categ_Me.c: Regenerated.
51064         * tests/unictype/test-categ_Mn.c: Regenerated.
51065         * tests/unictype/test-categ_N.c: Regenerated.
51066         * tests/unictype/test-categ_Nd.c: Regenerated.
51067         * tests/unictype/test-categ_Nl.c: Regenerated.
51068         * tests/unictype/test-categ_No.c: Regenerated.
51069         * tests/unictype/test-categ_P.c: Regenerated.
51070         * tests/unictype/test-categ_Pd.c: Regenerated.
51071         * tests/unictype/test-categ_Pe.c: Regenerated.
51072         * tests/unictype/test-categ_Pf.c: Regenerated.
51073         * tests/unictype/test-categ_Pi.c: Regenerated.
51074         * tests/unictype/test-categ_Po.c: Regenerated.
51075         * tests/unictype/test-categ_Ps.c: Regenerated.
51076         * tests/unictype/test-categ_S.c: Regenerated.
51077         * tests/unictype/test-categ_Sk.c: Regenerated.
51078         * tests/unictype/test-categ_Sm.c: Regenerated.
51079         * tests/unictype/test-categ_So.c: Regenerated.
51080         * tests/unictype/test-ctype_alnum.c: Regenerated.
51081         * tests/unictype/test-ctype_alpha.c: Regenerated.
51082         * tests/unictype/test-ctype_graph.c: Regenerated.
51083         * tests/unictype/test-ctype_lower.c: Regenerated.
51084         * tests/unictype/test-ctype_print.c: Regenerated.
51085         * tests/unictype/test-ctype_punct.c: Regenerated.
51086         * tests/unictype/test-ctype_upper.c: Regenerated.
51087         * tests/unictype/test-decdigit.h: Regenerated.
51088         * tests/unictype/test-digit.h: Regenerated.
51089         * tests/unictype/test-numeric.h: Regenerated.
51090         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51091         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51092         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51093         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51094         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51095         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51096         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51097         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51098         * tests/unictype/test-pr_combining.c: Regenerated.
51099         * tests/unictype/test-pr_dash.c: Regenerated.
51100         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51101         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51102         * tests/unictype/test-pr_deprecated.c: Regenerated.
51103         * tests/unictype/test-pr_diacritic.c: Regenerated.
51104         * tests/unictype/test-pr_extender.c: Regenerated.
51105         * tests/unictype/test-pr_format_control.c: Regenerated.
51106         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51107         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51108         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51109         * tests/unictype/test-pr_id_continue.c: Regenerated.
51110         * tests/unictype/test-pr_id_start.c: Regenerated.
51111         * tests/unictype/test-pr_ideographic.c: Regenerated.
51112         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51113         * tests/unictype/test-pr_lowercase.c: Regenerated.
51114         * tests/unictype/test-pr_math.c: Regenerated.
51115         * tests/unictype/test-pr_numeric.c: Regenerated.
51116         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51117         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51118         Regenerated.
51119         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51120         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51121         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51122         * tests/unictype/test-pr_other_math.c: Regenerated.
51123         * tests/unictype/test-pr_punctuation.c: Regenerated.
51124         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51125         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51126         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51127         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51128         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51129         * tests/unictype/test-pr_uppercase.c: Regenerated.
51130         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51131         * tests/unictype/test-pr_xid_start.c: Regenerated.
51132         * tests/unictype/test-pr_zero_width.c: Regenerated.
51133
51134         Update to Unicode 5.1.0.
51135         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51136         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51137         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51138         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51139         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51140         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51141         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51142         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51143         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51144         (nonspacing_table_ind): Update.
51145         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51146
51147         Update to Unicode 5.1.0.
51148         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51149         code transform.
51150         * lib/uniname/uniname.c (unicode_character_name,
51151         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51152         * lib/uniname/uninames.h: Regenerated.
51153         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51154
51155 2009-02-07  Bruno Haible  <bruno@clisp.org>
51156
51157         Merge gen-ctype and gen-lbrk into a single program.
51158         * lib/gen-uni-tables.c: New file, incorporating
51159         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51160         Add directory prefixes to the names of the generated files.
51161         * lib/unictype/gen-ctype.c: Remove file.
51162         * lib/unilbrk/gen-lbrk.c: Remove file.
51163         * modules/gen-uni-tables: New file.
51164         * modules/unictype/gen-ctype: Remove file.
51165         * modules/unilbrk/gen-lbrk: Remove file.
51166
51167 2009-02-07  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51170
51171         New module 'unistr/u32-strcoll'.
51172         * modules/unistr/u32-strcoll: New file.
51173         * lib/unistr/u32-strcoll.c: New file.
51174
51175         New module 'unistr/u16-strcoll'.
51176         * modules/unistr/u16-strcoll: New file.
51177         * lib/unistr/u16-strcoll.c: New file.
51178
51179         New module 'unistr/u8-strcoll'.
51180         * modules/unistr/u8-strcoll: New file.
51181         * lib/unistr/u8-strcoll.c: New file.
51182         * lib/unistr/u-strcoll.h: New file.
51183
51184 2009-02-07  Bruno Haible  <bruno@clisp.org>
51185
51186         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51187         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51188         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51189         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51190         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51191         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51192
51193 2009-02-07  Bruno Haible  <bruno@clisp.org>
51194
51195         Make 64-bit clean.
51196         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51197         output_combclass, output_bidi_category, output_decimal_digit,
51198         output_digit, output_numeric, output_mirror, output_scripts,
51199         output_ident_category): Use proper width specifier in format strings.
51200
51201 2009-02-07  Bruno Haible  <bruno@clisp.org>
51202
51203         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51204         failure behaviour.
51205
51206 2009-02-07  Jim Meyering  <meyering@redhat.com>
51207
51208         regex: avoid compilation failure with upcoming gcc-4.4
51209         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51210         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51211         "... error: integer overflow in preprocessor expression".
51212
51213 2009-02-05  Ben Pfaff  <blp@gnu.org>
51214
51215         Fix link errors on Windows when close module is used.
51216         * modules/close: Add $(LIB_CLOSE) to Link section.
51217         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51218         $(LIB_CLOSE) on Windows.
51219
51220 2009-02-05  Jim Meyering  <meyering@redhat.com>
51221
51222         still avoid unused-parameter warnings, but do it cleanly
51223         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51224         (get_fs_usage): Cast to void instead.
51225         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51226         (dev_from_mount_options, read_file_system_list): Cast to void.
51227         Prompted by Bruno Haible.
51228
51229 2009-02-04  Jim Meyering  <meyering@redhat.com>
51230
51231         fsusage.c: correct copyright year
51232         * lib/fsusage.c: Reflect year in which the change is pushed into
51233
51234         avoid misc. warnings
51235         * lib/fsusage.c (UNUSED_PARAM): Define.
51236         (get_fs_usage): Mark parameter "disk" as unused.
51237         * lib/getugroups.c (getgrent): Use "void" in prototype.
51238         * lib/mountlist.c: Mark unused parameters.
51239         (read_file_system_list): Declare a local with "const".
51240         * lib/nanosleep.c (getnow): Declare static.
51241         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51242
51243         dirfd: set errno upon failure
51244         * lib/dirfd.c: Include <errno.h>.
51245         Set errno to ENOTSUP when returning -1.
51246         * modules/dirfd (Depends-on): Add errno.
51247         Suggested by John Kodis <kodis@comcast.net>.
51248
51249 2009-02-01  Bruno Haible  <bruno@clisp.org>
51250
51251         Don't assume sizeof (long) >= sizeof (void *).
51252         * lib/memcmp.c: Include stdint.h.
51253         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51254         srcp2 to 'const byte *'.
51255         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51256         types to uintptr_t.
51257         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51258         * modules/memcmp (Depends-on): Add stdint.
51259         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51260
51261 2009-01-30  Eric Blake  <ebb9@byu.net>
51262
51263         fix more require-before-expand issues
51264         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51265         expand, AC_PROG_AWK.
51266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51267
51268 2009-01-28  Eric Blake  <ebb9@byu.net>
51269
51270         version-etc: use consistent URL formatting
51271         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51272         Improve formatting.  Use fputs for string without %.
51273
51274 2009-01-28  Jim Meyering  <meyering@redhat.com>
51275
51276         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51277         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51278         "underquoted definition of NAME" from autoconf-2.59.
51279
51280 2009-01-28  Bruno Haible  <bruno@clisp.org>
51281
51282         * doc/gnulib.texi: Add "Obsolete modules" to index.
51283
51284 2009-01-28  Jim Meyering  <meyering@redhat.com>
51285
51286         useless-if-before-free: recognize more variants
51287         * build-aux/useless-if-before-free: Also recognize e.g.,
51288         if (NULL != p) free (p);
51289
51290 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51291
51292         test-getaddrinfo: skip (don't fail) this test when there's no network
51293         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51294         on the presumption that it means you lack network access.
51295
51296 2009-01-26  Jim Meyering  <meyering@redhat.com>
51297
51298         fflush: avoid warnings on modern systems
51299         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51300         pos and result, into scopes where they're used.
51301
51302 2009-01-26  Eric Blake  <ebb9@byu.net>
51303
51304         Silence warning reintroduced by recent extensions patch.
51305         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51306         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51307         autoconf.
51308
51309         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51310         * m4/00gnulib.m4: New file.
51311         * gnulib-tool (func_get_filelist): Always use it.
51312         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51313         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51314
51315 2009-01-25  Bruno Haible  <bruno@clisp.org>
51316
51317         Make test-quotearg work on MacOS X and AIX.
51318         * tests/test-quotearg.sh: New file.
51319         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51320         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51321         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51322         include <libintl.h>.
51323         (fake_locale): Remove variable.
51324         (gettext, dgettext, dcgettext): Remove functions.
51325         (main): Instead of setting a fake locale, set a real locale. Call
51326         textdomain and bindtextdomain.
51327         * modules/quotearg-tests (Files): Add the new files.
51328         (Depends-on): Add gettext, setenv, unsetenv.
51329         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51330         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51331         Augment TESTS_ENVIRONMENT.
51332
51333 2009-01-25  Bruno Haible  <bruno@clisp.org>
51334
51335         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51336         fr_FR.ISO8859-1 locale on MacOS X.
51337         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51338         ja_JP.eucJP locale on MacOS X.
51339         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51340         zh_CN.GB18030 locale on MacOS X.
51341
51342 2009-01-25  Bruno Haible  <bruno@clisp.org>
51343
51344         Avoid link errors on MacOS X 10.3.
51345         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51346         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51347
51348 2009-01-25  Bruno Haible  <bruno@clisp.org>
51349
51350         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51351         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51352         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51353         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51354         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51355         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51356         posix_spawnattr_init, posix_spawnattr_setsigmask,
51357         posix_spawnattr_setflags, posix_spawnattr_destroy.
51358
51359         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51360         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51361         * modules/execute (Files): Remove m4/posix_spawn.m4.
51362         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51363         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51364         posix_spawnattr_init, posix_spawnattr_setsigmask,
51365         posix_spawnattr_setflags, posix_spawnattr_destroy.
51366
51367 2009-01-25  Bruno Haible  <bruno@clisp.org>
51368
51369         * lib/glthread/threadlib.c: Include <stdlib.h>.
51370
51371 2009-01-25  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/glthread/threadlib.c (dummy): New declaration.
51374
51375 2009-01-25  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51378         multibyte characters also for the GB18030 encoding. Don't crash when
51379         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51380
51381 2009-01-25  Bruno Haible  <bruno@clisp.org>
51382
51383         Avoid redefining 'struct random_data' on OSF/1 5.1.
51384         * lib/stdlib.in.h: Include <random.h> if it exists.
51385         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51386         HAVE_RANDOM_H. Include <random.h> when testing whether
51387         'struct random_data' exists.
51388         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51389
51390 2009-01-25  Bruno Haible  <bruno@clisp.org>
51391
51392         Don't install charset.alias on MacOS X >= 10.3.
51393         * lib/localcharset.c (DARWIN7): New macro.
51394         (get_charset_aliases): Hardcode the result for Darwin7.
51395         * modules/localcharset (install-exec-local): Don't install
51396         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51397
51398 2009-01-25  Bruno Haible  <bruno@clisp.org>
51399
51400         Don't install charset.alias on mingw and Cygwin.
51401         * modules/localcharset (install-exec-local): Don't install
51402         charset.alias on mingw and Cygwin, if the file does not yet exist.
51403         The result for these platforms is hardcoded in localcharset.c.
51404
51405 2009-01-25  Bruno Haible  <bruno@clisp.org>
51406
51407         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51409         before requiring AC_USE_SYSTEM_EXTENSIONS.
51410
51411 2009-01-25  Jim Meyering  <meyering@redhat.com>
51412
51413         c-strtod: avoid warnings
51414         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51415         "assignment discards qualifiers from pointer target type" warnings.
51416
51417 2009-01-24  Bruno Haible  <bruno@clisp.org>
51418
51419         Add support for non-UTF-8 locales on MacOS X.
51420         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51421         canonical encodings. For Darwin 7 and newer, don't map traditional
51422         encodings to UTF-8.
51423         Reported by Vincent Lefevre <vincent@vinc17.org>
51424         at <http://savannah.gnu.org/bugs/?25235>.
51425
51426 2009-01-24  Bruno Haible  <bruno@clisp.org>
51427
51428         * doc/gnulib.texi (Obsolete modules): New section.
51429         Reported by Mike Frysinger <vapier@gentoo.org>.
51430
51431 2009-01-24  Bruno Haible  <bruno@clisp.org>
51432
51433         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51434         (%.dvi): New rule.
51435
51436 2009-01-24  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51439         Reported by Eric Blake.
51440
51441 2009-01-24  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51444         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51445         Reported by Gary V. Vaughan <gary@gnu.org>.
51446
51447 2009-01-24  Bruno Haible  <bruno@clisp.org>
51448
51449         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51450
51451 2009-01-23  Bruno Haible  <bruno@clisp.org>
51452
51453         Make c-strtod, c-strtold usable in libraries.
51454         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51455         (C_STRTOD): Call strdup instead of xstrdup.
51456         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51457         * modules/c-strtold (Depends-on): Likewise.
51458         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51459         * NEWS: Mention the change.
51460         Reported by Michael Gold <mgold@ncf.ca>.
51461
51462 2009-01-23  Jim Meyering  <meyering@redhat.com>
51463
51464         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51465         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51466         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51467
51468 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51469
51470         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51471         GNU CoreUtils.
51472         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51473         * modules/version-etc (Description): Update.
51474
51475 2009-01-22  Bruno Haible  <bruno@clisp.org>
51476
51477         Cache the C locale object.
51478         * lib/c-strtod.c (c_locale_cache): New variable.
51479         (c_locale): New function.
51480         (C_STRTOD): Use it, and don't call freelocale.
51481         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51482         Suggested by Paolo Bonzini.
51483
51484 2009-01-21  Bruno Haible  <bruno@clisp.org>
51485
51486         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51487         conditions other than overflow.
51488
51489 2009-01-21  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/c-strtod.c: Include errno.h.
51492         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51493         value from STRTOD_L and STRTOD.
51494
51495 2009-01-21  Bruno Haible  <bruno@clisp.org>
51496         and Jim Meyering  <meyering@redhat.com>
51497
51498         nanosleep: skip configure test (fail it) for apple universal builds
51499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51500         universal builds, assume that nanosleep does not work.
51501         * modules/nanosleep (Depends-on): Add multiarch.
51502
51503         mktime: skip configure test (fail it) for apple universal builds
51504         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51505         universal builds, assume that mktime does not work.
51506         * modules/mktime (Depends-on): Add multiarch.
51507
51508 2009-01-21  Eric Blake  <ebb9@byu.net>
51509
51510         multiarch: avoid expand-before-require warning
51511         * modules/multiarch (configure.ac): Require, rather than expand,
51512         gl_MULTIARCH.
51513         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51514         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51515         enforce that all clients require it.  Partial reversion of
51516         2008-12-29 patch.
51517
51518         error: avoid expand-before-require warning
51519         * modules/errno (configure.ac): Require, rather than expand,
51520         gl_HEADER_ERRNO_H.
51521         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51522         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51523         enforce that all clients require it.
51524
51525         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51526         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51527         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51528         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51529
51530 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51531
51532         Revert:
51533         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51534
51535         regex: do not depend on obsolete modules.
51536         * modules/regex: Remove memcmp and memmove.
51537
51538 2009-01-20  Bruno Haible  <bruno@clisp.org>
51539
51540         Make the 'link' module link on Windows NT 4.
51541         * lib/link.c (_WIN32_WINNT): Don't define.
51542         (CreateHardLinkFuncType): New type.
51543         (CreateHardLinkFunc, initialized): New variables.
51544         (initialize): New function.
51545         (link): Invoke CreateHardLink indirectly through the function pointer.
51546
51547 2009-01-20  Bruno Haible  <bruno@clisp.org>
51548
51549         Fix compilation failure on mingw.
51550         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51551
51552 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51553
51554         * doc/c-strtod.texi: Mention a couple of restrictions.
51555
51556 2009-01-20  Jim Meyering  <meyering@redhat.com>
51557
51558         gettimeofday: move more declarations out of functions
51559         * lib/gettimeofday.c: Move extern declarations of tzset and
51560         gmtime out of containing functions.  Prompted by Bruno Haible.
51561
51562 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51563
51564         regex: do not depend on obsolete modules.
51565         * modules/regex: Remove memcmp and memmove.
51566
51567 2009-01-19  Bruno Haible  <bruno@clisp.org>
51568
51569         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51570         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51571         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51572         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51573         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51574
51575 2009-01-19  Bruno Haible  <bruno@clisp.org>
51576
51577         * tests/test-link.c: Include <errno.h>.
51578         (main): Exit with code 77 when a hard link cannot be created due to
51579         the file system.
51580         * tests/test-link.sh: Skip test when a hard link cannot be created due
51581         to the file system.
51582         Suggested by Eric Blake.
51583
51584 2009-01-19  Martin Lambers  <marlam@marlam.de>
51585
51586         * modules/link-tests: New file.
51587         * tests/test-link.sh: New file.
51588         * tests/test-link.c: New file.
51589
51590 2009-01-19  Eric Blake  <ebb9@byu.net>
51591
51592         doc: mention another function added in cygwin 1.7.0
51593         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51594         Another new function in cygwin 1.7.
51595
51596 2009-01-19  Bruno Haible  <bruno@clisp.org>
51597
51598         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51599         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51600         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51601         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51603         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51605         * m4/md4.m4 (gl_MD4): Likewise.
51606         * m4/md5.m4 (gl_MD5): Likewise.
51607         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51608         * m4/sha1.m4 (gl_SHA1): Likewise.
51609         * m4/sha256.m4 (gl_SHA256): Likewise.
51610         * m4/sha512.m4 (gl_SHA512): Likewise.
51611
51612 2009-01-19  Bruno Haible  <bruno@clisp.org>
51613
51614         * modules/uniname/uniname-tests (Depends-on): Add progname.
51615         * tests/uniname/test-uninames.c: Include progname.h.
51616         (main): Call set_program_name.
51617
51618         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51619         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51620         (main): Call set_program_name.
51621
51622         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51623         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51624         (main): Call set_program_name.
51625
51626         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51627         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51628         (main): Call set_program_name.
51629
51630         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51631         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51632         (main): Call set_program_name.
51633
51634         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51635         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51636         (main): Call set_program_name.
51637
51638         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51639         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51640         (main): Call set_program_name.
51641
51642         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51643         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51644         (main): Call set_program_name.
51645
51646         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51647         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51648         (main): Call set_program_name.
51649
51650 2009-01-19  Eric Blake  <ebb9@byu.net>
51651
51652         test-unistd: test previous patch
51653         * tests/test-unistd.c: Test *_FILENO macros.
51654
51655         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51656         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51657         Guarantee a definition.
51658         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51659         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51660         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51661         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51662         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51663         Likewise.
51664         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51665         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51666         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51667         Likewise.
51668         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51669         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51670         (STDERR_FILENO): Likewise.
51671         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51672         (STDERR_FILENO): Likewise.
51673         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51674         (STDERR_FILENO): Likewise.
51675         Reported by Elbert Pol.
51676
51677 2009-01-19  Eric Blake  <ebb9@byu.net>
51678
51679         doc: mention more functions added in cygwin 1.7.0
51680         * doc/posix-functions/abort.texi (abort): Update wording related
51681         to cygwin.
51682         * doc/posix-functions/daylight.texi (daylight): Likewise.
51683         * doc/posix-functions/optarg.texi (optarg): Likewise.
51684         * doc/posix-functions/optarg.texi (opterr): Likewise.
51685         * doc/posix-functions/optarg.texi (optind): Likewise.
51686         * doc/posix-functions/optarg.texi (optopt): Likewise.
51687         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51688         worked in 1.5.x, and was withdrawn in 1.7.
51689         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51690         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51691         cygwin versions.
51692         * doc/posix-functions/perror.texi (perror): Likewise.
51693         * doc/posix-functions/printf.texi (printf): Likewise.
51694         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51695         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51696         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51697         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51698         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51699         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51700         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51701         Likewise.
51702         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51703         Likewise.
51704         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51705         this function.
51706         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51707         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51708         Likewise.
51709         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51710         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51711         * doc/posix-functions/confstr.texi (confstr): Likewise.
51712         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51713         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51714         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51715         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51716         * doc/posix-functions/fputws.texi (fputws): Likewise.
51717         * doc/posix-functions/fwide.texi (fwide): Likewise.
51718         * doc/posix-functions/getwc.texi (getwc): Likewise.
51719         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51720         * doc/posix-functions/putwc.texi (putwc): Likewise.
51721         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51722         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51723         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51724         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51725         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51726         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51727         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51728         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51729         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51730         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51731         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51732
51733 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51734
51735         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51736         * lib/ioctl.c: Include <sys/ioctl.h>.
51737
51738 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51739
51740         * modules/getdate-tests (Depends-on): Add progname.
51741         * tests/test-getdate.c: Use progname module, to avoid link errors
51742         on non-glibc systems.
51743
51744 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51745
51746         * modules/filenamecat-tests (Depends-on): Add progname.
51747         * modules/fstrcmp-tests (Depends-on): Likewise.
51748
51749         * tests/test-filenamecat.c: Use progname module, to avoid link
51750         errors on non-glibc systems.
51751         * tests/test-fstrcmp.c: Likewise.
51752
51753 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51754
51755         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51756         * lib/gettimeofday.c: Move extern declaration out of function.
51757
51758 2009-01-18  Bruno Haible  <bruno@clisp.org>
51759
51760         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51761         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51762         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51763
51764 2009-01-18  Bruno Haible  <bruno@clisp.org>
51765
51766         * lib/strftime.c (MEMPCPY): Remove unused macro.
51767         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51768
51769 2009-01-18  Martin Lambers  <marlam@marlam.de>
51770
51771         New module 'link'.
51772         * lib/unistd.in.h (link): New declaration.
51773         * lib/link.c: New file.
51774         * m4/link.m4: New file.
51775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51776         HAVE_LINK.
51777         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51778         * modules/link: New file.
51779         * doc/posix-functions/link.texi: Mention the new module.
51780
51781 2009-01-18  Bruno Haible  <bruno@clisp.org>
51782
51783         * tests/test-avltree_list.c (main): Call set_program_name.
51784         * tests/test-avltree_oset.c (main): Likewise.
51785         * tests/test-obstack-printf.c: Include progname.h.
51786         (main): Call set_program_name.
51787         * tests/test-quotearg.c: Include progname.h.
51788         (main): Call set_program_name.
51789         * tests/test-xmemdup0.c: Include progname.h.
51790         (main): Call set_program_name.
51791
51792 2009-01-18  Bruno Haible  <bruno@clisp.org>
51793
51794         New module 'alphasort'.
51795         * lib/dirent.in.h (alphasort): New declaration.
51796         * lib/alphasort.c: New file, from glibc with modifications.
51797         * m4/alphasort.m4: New file.
51798         * modules/alphasort: New file.
51799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51800         HAVE_ALPHASORT.
51801         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51802         HAVE_ALPHASORT.
51803         * doc/posix-functions/alphasort.texi: Mention the new module and the
51804         portability problems.
51805
51806 2009-01-18  Bruno Haible  <bruno@clisp.org>
51807
51808         New module 'scandir'.
51809         * lib/dirent.in.h (scandir): New declaration.
51810         * lib/scandir.c: New file, from glibc with modifications.
51811         * m4/scandir.m4: New file.
51812         * modules/scandir: New file.
51813         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51814         HAVE_SCANDIR.
51815         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51816         HAVE_SCANDIR.
51817         * doc/posix-functions/scandir.texi: Mention the new module and the
51818         portability problems.
51819
51820 2009-01-17  Bruno Haible  <bruno@clisp.org>
51821
51822         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51823         Update documentation.
51824         (func_remove_suffix): Escape all dots in the suffix. Update
51825         documentation.
51826         (func_filter_filelist): Update documentation.
51827         Reported by Ralf Wildenhues.
51828
51829 2009-01-17  Bruno Haible  <bruno@clisp.org>
51830
51831         * modules/dprintf-posix-tests: New file.
51832         * tests/test-dprintf-posix.sh: New file.
51833         * tests/test-dprintf-posix.c: New file.
51834
51835         New modules 'dprintf', 'dprintf-posix'.
51836         * lib/stdio.in.h (dprintf): New declaration.
51837         * lib/dprintf.c: New file.
51838         * m4/dprintf.m4: New file.
51839         * m4/dprintf-posix.m4: New file.
51840         * modules/dprintf: New file.
51841         * modules/dprintf-posix: New file.
51842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51843         HAVE_DPRINTF, REPLACE_DPRINTF.
51844         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51845         HAVE_DPRINTF, REPLACE_DPRINTF.
51846         * doc/posix-functions/dprintf.texi: Mention the new modules.
51847
51848 2009-01-17  Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/vdprintf-posix-tests: New file.
51851         * tests/test-vdprintf-posix.sh: New file.
51852         * tests/test-vdprintf-posix.c: New file.
51853
51854         New modules 'vdprintf', 'vdprintf-posix'.
51855         * lib/stdio.in.h (vdprintf): New declaration.
51856         * lib/vdprintf.c: New file.
51857         * m4/vdprintf.m4: New file.
51858         * m4/vdprintf-posix.m4: New file.
51859         * modules/vdprintf: New file.
51860         * modules/vdprintf-posix: New file.
51861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51862         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51863         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51864         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51865         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51866
51867 2009-01-17  Bruno Haible  <bruno@clisp.org>
51868
51869         Fix replacement of fopen on mingw.
51870         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51871         mingw.
51872
51873 2009-01-17  Bruno Haible  <bruno@clisp.org>
51874
51875         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51876         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51877
51878 2009-01-17  Bruno Haible  <bruno@clisp.org>
51879
51880         Avoid test-fflush2.sh failure on mingw.
51881         * tests/test-fflush2.c: Include binary-io.h.
51882         (main): Put standard input into binary mode.
51883         * modules/fflush-tests (Depends-on): Add binary-io.
51884
51885 2009-01-17  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/wchar.in.h: In another particular situation, include only the
51888         system's <wchar.h> file.
51889         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51890         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51891         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51892
51893 2009-01-17  Bruno Haible  <bruno@clisp.org>
51894
51895         Support for stripping executables in --enable-relocatable.
51896         * build-aux/install-reloc: Expect one more argument, or an environment
51897         variable RELOC_STRIP_PROG. If set, strip the destination program and
51898         its wrapper.
51899         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51900         RELOC_STRIP_PROG.
51901         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51902         to set RELOCATABLE_STRIP.
51903         * NEWS: Mention the new Makefile requirement.
51904
51905 2009-01-17  Bruno Haible  <bruno@clisp.org>
51906
51907         * build-aux/install-reloc: Remove debugging information left over by
51908         C compiler on MacOS X.
51909
51910 2009-01-17  Bruno Haible  <bruno@clisp.org>
51911
51912         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51913         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51914         _NSGetExecutablePath.
51915
51916 2009-01-16  Jim Meyering  <meyering@redhat.com>
51917
51918         strerror: avoid warnings about discarding "const"
51919         * lib/strerror.c (rpl_strerror): Instead of returning a const
51920         string from each and every "case", use a variable, and add a single
51921         cast after the switch.
51922
51923 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51924
51925         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51926
51927 2009-01-16  Bruno Haible  <bruno@clisp.org>
51928
51929         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51930         array initializer syntax that also works in C++ mode.
51931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51932
51933 2009-01-16  Jim Meyering  <meyering@redhat.com>
51934
51935         poll: suppress a warning
51936         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51937         to ignore "...unsigned expression < 0 is always false" warnings.
51938
51939 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51940
51941         poll: remove declarations of unused variables
51942         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51943         sockbuf and optlen.
51944
51945 2009-01-15  Bruno Haible  <bruno@clisp.org>
51946
51947         Make fflush-after-ungetc POSIX compliant on BSD systems.
51948         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51949         (clear_ungetc_buffer): Implement also for other systems.
51950         (rpl_fflush): On glibc systems, invoke
51951         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51952         clear_ungetc_buffer after fetching the stream's position, not before.
51953
51954 2009-01-15  Bruno Haible  <bruno@clisp.org>
51955
51956         Make fflush-after-ungetc POSIX compliant on glibc systems.
51957         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51958         after ungetc.
51959         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51960         (rpl_fflush): On glibc systems, simply call the system's fflush
51961         function after clearing the ungetc buffer.
51962         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51963         Instead, lseek only to the end of file, then use the system's fseeko
51964         for the rest. On glibc systems, reset the EOF indicator bit.
51965
51966 2009-01-15  Jim Meyering  <meyering@redhat.com>
51967
51968         openmp.m4: revert quote-adding change, for portability to older autoconf
51969         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51970         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51971         Simon Josefsson noticed the problem when using autoconf-2.61.
51972
51973 2009-01-15  Bruno Haible  <bruno@clisp.org>
51974
51975         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51976         * tests/test-fflush2.c (ASSERT): Always fail.
51977         (main): Add two tests for fflush() after ungetc(), taking into account
51978         the Austin Group's clarification.
51979         Suggested by Eric Blake.
51980
51981 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51982
51983         mktime.m4: remove K&R-style function prototypes
51984         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51985         for the Sun C++ compiler.
51986
51987 2009-01-14  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51990         while including <wchar.h>.
51991         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51992         the system's <wchar.h> file.
51993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51994
51995 2009-01-14  Bruno Haible  <bruno@clisp.org>
51996
51997         * m4/csharp.m4: Don't mention gettext on the serial number line.
51998         * m4/csharpexec.m4: Likewise.
51999         * m4/eaccess.m4: Likewise.
52000         * m4/javaexec.m4: Likewise.
52001         * m4/sig_atomic_t.m4: Likewise.
52002         * m4/tmpdir.m4: Likewise.
52003         * m4/intldir.m4: Bump gettext version.
52004         * m4/lib-ld.m4: Likewise.
52005
52006 2009-01-14  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/progname.c (set_program_name): Add more comments.
52009         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52010
52011 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52012
52013         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52014         were sys/stat.h does not define it.
52015
52016 2009-01-14  Jim Meyering  <meyering@redhat.com>
52017
52018         many *.m4 files: improve m4 quoting
52019         99% of this change was performed by running the following commands:
52020         git ls-files | grep '\.m4$' | xargs perl -pi \
52021           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52022           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52023           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52024           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52025         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52026         The remainder were to add Copyright dates, increment serial numbers,
52027         undo some changes in comments, exclude m4/intl.m4, and add quotes
52028         around the "1" in ",1" where the unusual spacing prohibited the
52029         above regexps from doing the job.  For more details, see
52030         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52031         * m4/acl.m4: Modified.
52032         * m4/afs.m4: Likewise.
52033         * m4/alloca.m4: Likewise.
52034         * m4/argp.m4: Likewise.
52035         * m4/argz.m4: Likewise.
52036         * m4/atexit.m4: Likewise.
52037         * m4/bison-i18n.m4: Likewise.
52038         * m4/bison.m4: Likewise.
52039         * m4/byteswap.m4: Likewise.
52040         * m4/c-stack.m4: Likewise.
52041         * m4/c-strtod.m4: Likewise.
52042         * m4/calloc.m4: Likewise.
52043         * m4/canonicalize-lgpl.m4: Likewise.
52044         * m4/chown.m4: Likewise.
52045         * m4/clock_time.m4: Likewise.
52046         * m4/codeset.m4: Likewise.
52047         * m4/copy-file.m4: Likewise.
52048         * m4/csharp.m4: Likewise.
52049         * m4/csharpcomp.m4: Likewise.
52050         * m4/csharpexec.m4: Likewise.
52051         * m4/d-ino.m4: Likewise.
52052         * m4/d-type.m4: Likewise.
52053         * m4/dirfd.m4: Likewise.
52054         * m4/double-slash-root.m4: Likewise.
52055         * m4/eaccess.m4: Likewise.
52056         * m4/eealloc.m4: Likewise.
52057         * m4/environ.m4: Likewise.
52058         * m4/errno_h.m4: Likewise.
52059         * m4/euidaccess.m4: Likewise.
52060         * m4/execute.m4: Likewise.
52061         * m4/fatal-signal.m4: Likewise.
52062         * m4/fchdir.m4: Likewise.
52063         * m4/fcntl_h.m4: Likewise.
52064         * m4/fileblocks.m4: Likewise.
52065         * m4/filenamecat.m4: Likewise.
52066         * m4/findprog.m4: Likewise.
52067         * m4/flexmember.m4: Likewise.
52068         * m4/fnmatch.m4: Likewise.
52069         * m4/fopen.m4: Likewise.
52070         * m4/fpending.m4: Likewise.
52071         * m4/fprintf-posix.m4: Likewise.
52072         * m4/free.m4: Likewise.
52073         * m4/frexp.m4: Likewise.
52074         * m4/frexpl.m4: Likewise.
52075         * m4/fsusage.m4: Likewise.
52076         * m4/ftruncate.m4: Likewise.
52077         * m4/gc-camellia.m4: Likewise.
52078         * m4/gc-random.m4: Likewise.
52079         * m4/gc.m4: Likewise.
52080         * m4/getaddrinfo.m4: Likewise.
52081         * m4/getcwd-abort-bug.m4: Likewise.
52082         * m4/getcwd-path-max.m4: Likewise.
52083         * m4/getdate.m4: Likewise.
52084         * m4/getdomainname.m4: Likewise.
52085         * m4/getgroups.m4: Likewise.
52086         * m4/gethostname.m4: Likewise.
52087         * m4/gethrxtime.m4: Likewise.
52088         * m4/getline.m4: Likewise.
52089         * m4/getloadavg.m4: Likewise.
52090         * m4/getndelim2.m4: Likewise.
52091         * m4/getpass.m4: Likewise.
52092         * m4/gettext.m4: Likewise.
52093         * m4/gettime.m4: Likewise.
52094         * m4/gettimeofday.m4: Likewise.
52095         * m4/gnulib-common.m4: Likewise.
52096         * m4/group-member.m4: Likewise.
52097         * m4/host-os.m4: Likewise.
52098         * m4/iconv.m4: Likewise.
52099         * m4/iconv_open.m4: Likewise.
52100         * m4/inet_ntop.m4: Likewise.
52101         * m4/inet_pton.m4: Likewise.
52102         * m4/inline.m4: Likewise.
52103         * m4/intldir.m4: Likewise.
52104         * m4/intlmacosx.m4: Likewise.
52105         * m4/intmax.m4: Likewise.
52106         * m4/intmax_t.m4: Likewise.
52107         * m4/inttypes.m4: Likewise.
52108         * m4/inttypes_h.m4: Likewise.
52109         * m4/inttypes-pri.m4: Likewise.
52110         * m4/isapipe.m4: Likewise.
52111         * m4/isnand.m4: Likewise.
52112         * m4/isnanf.m4: Likewise.
52113         * m4/isnanl.m4: Likewise.
52114         * m4/javacomp.m4: Likewise.
52115         * m4/javaexec.m4: Likewise.
52116         * m4/jm-winsz1.m4: Likewise.
52117         * m4/jm-winsz2.m4: Likewise.
52118         * m4/lchown.m4: Likewise.
52119         * m4/lcmessage.m4: Likewise.
52120         * m4/ldexpl.m4: Likewise.
52121         * m4/lib-ld.m4: Likewise.
52122         * m4/lib-link.m4: Likewise.
52123         * m4/libsigsegv.m4: Likewise.
52124         * m4/link-follow.m4: Likewise.
52125         * m4/localcharset.m4: Likewise.
52126         * m4/locale-fr.m4: Likewise.
52127         * m4/locale-ja.m4: Likewise.
52128         * m4/locale-tr.m4: Likewise.
52129         * m4/locale-zh.m4: Likewise.
52130         * m4/lock.m4: Likewise.
52131         * m4/longlong.m4: Likewise.
52132         * m4/ls-mntd-fs.m4: Likewise.
52133         * m4/lstat.m4: Likewise.
52134         * m4/malloc.m4: Likewise.
52135         * m4/mathl.m4: Likewise.
52136         * m4/mbrtowc.m4: Likewise.
52137         * m4/mbstate_t.m4: Likewise.
52138         * m4/mbswidth.m4: Likewise.
52139         * m4/memchr.m4: Likewise.
52140         * m4/memcmp.m4: Likewise.
52141         * m4/memcpy.m4: Likewise.
52142         * m4/memmem.m4: Likewise.
52143         * m4/memmove.m4: Likewise.
52144         * m4/mempcpy.m4: Likewise.
52145         * m4/memrchr.m4: Likewise.
52146         * m4/memset.m4: Likewise.
52147         * m4/minmax.m4: Likewise.
52148         * m4/mkdir-slash.m4: Likewise.
52149         * m4/mkdtemp.m4: Likewise.
52150         * m4/mktime.m4: Likewise.
52151         * m4/mmap-anon.m4: Likewise.
52152         * m4/mountlist.m4: Likewise.
52153         * m4/nanosleep.m4: Likewise.
52154         * m4/nls.m4: Likewise.
52155         * m4/nocrash.m4: Likewise.
52156         * m4/open.m4: Likewise.
52157         * m4/openat.m4: Likewise.
52158         * m4/openmp.m4: Likewise.
52159         * m4/pathmax.m4: Likewise.
52160         * m4/perl.m4: Likewise.
52161         * m4/physmem.m4: Likewise.
52162         * m4/pipe.m4: Likewise.
52163         * m4/po.m4: Likewise.
52164         * m4/poll.m4: Likewise.
52165         * m4/posixtm.m4: Likewise.
52166         * m4/posixver.m4: Likewise.
52167         * m4/printf-frexp.m4: Likewise.
52168         * m4/printf-frexpl.m4: Likewise.
52169         * m4/printf-posix.m4: Likewise.
52170         * m4/printf-posix-rpl.m4: Likewise.
52171         * m4/printf.m4: Likewise.
52172         * m4/progtest.m4: Likewise.
52173         * m4/putenv.m4: Likewise.
52174         * m4/readline.m4: Likewise.
52175         * m4/readlink.m4: Likewise.
52176         * m4/readutmp.m4: Likewise.
52177         * m4/realloc.m4: Likewise.
52178         * m4/regex.m4: Likewise.
52179         * m4/relocatable.m4: Likewise.
52180         * m4/relocatable-lib.m4: Likewise.
52181         * m4/rename-dest-slash.m4: Likewise.
52182         * m4/rename.m4: Likewise.
52183         * m4/rmdir-errno.m4: Likewise.
52184         * m4/rmdir.m4: Likewise.
52185         * m4/roundf.m4: Likewise.
52186         * m4/roundl.m4: Likewise.
52187         * m4/rpmatch.m4: Likewise.
52188         * m4/save-cwd.m4: Likewise.
52189         * m4/selinux-selinux-h.m4: Likewise.
52190         * m4/setenv.m4: Likewise.
52191         * m4/settime.m4: Likewise.
52192         * m4/sig2str.m4: Likewise.
52193         * m4/sig_atomic_t.m4: Likewise.
52194         * m4/signalblocking.m4: Likewise.
52195         * m4/signbit.m4: Likewise.
52196         * m4/sigpipe.m4: Likewise.
52197         * m4/sockets.m4: Likewise.
52198         * m4/sockpfaf.m4: Likewise.
52199         * m4/st_dm_mode.m4: Likewise.
52200         * m4/stat-time.m4: Likewise.
52201         * m4/stdbool.m4: Likewise.
52202         * m4/stdint.m4: Likewise.
52203         * m4/stdint_h.m4: Likewise.
52204         * m4/stpcpy.m4: Likewise.
52205         * m4/stpncpy.m4: Likewise.
52206         * m4/strcase.m4: Likewise.
52207         * m4/strchrnul.m4: Likewise.
52208         * m4/strcspn.m4: Likewise.
52209         * m4/strdup.m4: Likewise.
52210         * m4/strftime.m4: Likewise.
52211         * m4/strndup.m4: Likewise.
52212         * m4/strnlen.m4: Likewise.
52213         * m4/strpbrk.m4: Likewise.
52214         * m4/strptime.m4: Likewise.
52215         * m4/strsep.m4: Likewise.
52216         * m4/strtod.m4: Likewise.
52217         * m4/strtoimax.m4: Likewise.
52218         * m4/strtok_r.m4: Likewise.
52219         * m4/strtol.m4: Likewise.
52220         * m4/strtoll.m4: Likewise.
52221         * m4/strtoul.m4: Likewise.
52222         * m4/strtoull.m4: Likewise.
52223         * m4/strtoumax.m4: Likewise.
52224         * m4/strverscmp.m4: Likewise.
52225         * m4/threadlib.m4: Likewise.
52226         * m4/timegm.m4: Likewise.
52227         * m4/tm_gmtoff.m4: Likewise.
52228         * m4/tmpdir.m4: Likewise.
52229         * m4/tmpfile.m4: Likewise.
52230         * m4/tzset.m4: Likewise.
52231         * m4/uintmax_t.m4: Likewise.
52232         * m4/unlinkdir.m4: Likewise.
52233         * m4/unlocked-io.m4: Likewise.
52234         * m4/uptime.m4: Likewise.
52235         * m4/userspec.m4: Likewise.
52236         * m4/utimbuf.m4: Likewise.
52237         * m4/utime.m4: Likewise.
52238         * m4/utimes-null.m4: Likewise.
52239         * m4/utimes.m4: Likewise.
52240         * m4/vararrays.m4: Likewise.
52241         * m4/vasnprintf.m4: Likewise.
52242         * m4/vfprintf-posix.m4: Likewise.
52243         * m4/vprintf-posix.m4: Likewise.
52244         * m4/wait-process.m4: Likewise.
52245         * m4/wchar_t.m4: Likewise.
52246         * m4/wint_t.m4: Likewise.
52247         * m4/write-any-file.m4: Likewise.
52248         * m4/yield.m4: Likewise.
52249
52250 2009-01-13  Bruno Haible  <bruno@clisp.org>
52251
52252         Avoid test-copy-file.sh failures when ACL support insufficient.
52253         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52254         TESTS_ENVIRONMENT.
52255         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52256         Reported by Jim Meyering.
52257
52258 2009-01-13  Bruno Haible  <bruno@clisp.org>
52259
52260         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52261         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52262         * modules/unistdio/u8-printf-parse (Files): Likewise.
52263         * modules/unistdio/u32-printf-parse (Files): Likewise.
52264         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52265
52266 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52267
52268         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52269         and m4/inttypes_h.m4 too.
52270
52271 2009-01-12  Eric Blake  <ebb9@byu.net>
52272
52273         tests: IRIX 6.2 cc can't compile -0.0 into .data
52274         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52275         rather than at compile-time.
52276         * tests/test-floorl.c (minus_zero): Likewise.
52277         * tests/test-frexpl.c (minus_zero): Likewise.
52278         * tests/test-isnan.c (minus_zerol): Likewise.
52279         * tests/test-isnanl.h (minus_zero): Likewise.
52280         * tests/test-ldexpl.c (minus_zero): Likewise.
52281         * tests/test-roundl.c (minus_zero): Likewise.
52282         * tests/test-signbit.c (minus_zerol): Likewise.
52283         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52284         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52285         * tests/test-truncl.c (minus_zero): Likewise.
52286         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52287         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52288         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52289
52290 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52291
52292         regex: fix glibc bug 9697
52293         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52294         handling.
52295
52296 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52297
52298         regex: fix glibc bug 697
52299         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52300         being NULL also if there are no backreferences.
52301
52302 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52303
52304         regex: merge glibc changes
52305         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52306         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52307         re_string_skip_chars, re_string_reconstruct): Likewise.
52308         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52309
52310 2009-01-07  Jim Meyering  <meyering@redhat.com>
52311
52312         poll: filter through cppi
52313         * lib/poll.c: Indent cpp directives to reflect nesting.
52314
52315 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52316
52317         poll: don't return uninitialized
52318         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52319
52320 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52321
52322         avoid compile failure on AIX 6.1
52323         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52324         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52325
52326 2009-01-04  Jim Meyering  <meyering@redhat.com>
52327
52328         remove duplicate inclusion of <stdio.h>
52329         * tests/test-fprintf-posix.c: Likewise.
52330         * tests/test-printf-posix.c: Likewise.
52331         * tests/test-snprintf-posix.c: Likewise.
52332         * tests/test-sprintf-posix.c: Likewise.
52333         * tests/test-vasprintf-posix.c: Likewise.
52334         * tests/test-vfprintf-posix.c: Likewise.
52335         * tests/test-vprintf-posix.c: Likewise.
52336         * tests/test-vsnprintf-posix.c: Likewise.
52337         * tests/test-vsprintf-posix.c: Likewise.
52338
52339 2009-01-03  Jim Meyering  <meyering@redhat.com>
52340
52341         gnulib-tool: fix sed-based filtering
52342         * gnulib-tool (func_filter_filelist): Remove extra backslash
52343         in sed_fff_filter definition.
52344
52345 2009-01-02  Jim Meyering  <meyering@redhat.com>
52346
52347         strftime: avoid compilation failure on Solaris 2.6
52348         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52349         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52350         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52351         be available.  Reported by Tom G. Christensen.  Details in
52352         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52353
52354 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52355             Bruno Haible  <bruno@clisp.org>
52356
52357         Speed up gnulib-tool by doing more string processing through shell
52358         built-ins.
52359         * gnulib-tool (fast_func_append): New variable.
52360         (func_remove_prefix, func_remove_suffix): New functions.
52361         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52362         (func_filter_filelist): New function.
52363         (func_get_dependencies): Use func_remove_suffix instead of sed.
52364         (func_get_automake_snippet): Use func_filter_filelist instead of a
52365         subshell and sed invocation.
52366
52367 2009-01-01  Bruno Haible  <bruno@clisp.org>
52368
52369         Fix a security bug.
52370         * gnulib-tool (func_import, import, update): Don't allow the characters
52371         '"', '$', '`', '\' in macro arguments that become part of commands that
52372         are evaluated.
52373
52374 2009-01-01  Bruno Haible  <bruno@clisp.org>
52375
52376         * gnulib-tool (func_reset_sigpipe): Add more comments.
52377
52378 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52379
52380         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52381         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52382         already know the answer.
52383
52384 2009-01-01  Jim Meyering  <meyering@redhat.com>
52385
52386         * lib/version-etc.c (version_etc_va): Update copyright year.
52387
52388 2008-12-30  Bruno Haible  <bruno@clisp.org>
52389
52390         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52391         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52392         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52393
52394 2008-12-29  Eric Blake  <ebb9@byu.net>
52395
52396         multiarch: avoid autoconf AC_REQUIRE bug
52397         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52398         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52399         2.63 and older.
52400         Reported by Bruno Haible, and analyzed in
52401         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52402
52403 2008-12-29  Bruno Haible  <bruno@clisp.org>
52404
52405         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52406         files in subdirectories correctly.
52407         Reported by Ralf Wildenhues.
52408
52409 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52410
52411         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52412         rather than 'join FILE -', for Solaris join.
52413
52414 2008-12-29  Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52417         quoting.
52418         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52419         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52420         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52421         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52422         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52423         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52424         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52425         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52426         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52427         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52428         * m4/nls.m4 (AM_NLS): Likewise.
52429         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52430         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52431         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52432         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52433         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52434         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52435         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52436         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52437         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52438         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52439         * m4/xsize.m4 (gl_XSIZE): Likewise.
52440         Suggested by Jim Meyering.
52441
52442 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52443
52444         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52445         * lib/parse-duration.c: use a switch instead of cascading if's.
52446
52447 2008-12-29  Eric Blake  <ebb9@byu.net>
52448
52449         wchar.h: supply WEOF on Irix 5.3
52450         * lib/wchar.in.h (wint_t): Also supply WEOF.
52451         * lib/wctype.in.h (wint_t): Likewise.
52452         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52453         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52454         Reported by Tom G. Christensen.
52455
52456 2008-12-26  Bruno Haible  <bruno@clisp.org>
52457
52458         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52459         i486, i586, i686.
52460
52461 2008-12-26  Bruno Haible  <bruno@clisp.org>
52462
52463         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52464
52465 2008-12-26  Bruno Haible  <bruno@clisp.org>
52466
52467         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52468         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52469         not __STDC_CONSTANT_MACROS.
52470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52471
52472 2008-12-25  Bruno Haible  <bruno@clisp.org>
52473
52474         Add support for universal builds to vasnprintf.
52475         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52476         universal builds, guess no.
52477         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52478         * modules/vasprintf-posix (Depends-on): Likewise.
52479         * modules/fprintf-posix (Depends-on): Likewise.
52480         * modules/vfprintf-posix (Depends-on): Likewise.
52481         * modules/snprintf-posix (Depends-on): Likewise.
52482         * modules/vsnprintf-posix (Depends-on): Likewise.
52483         * modules/sprintf-posix (Depends-on): Likewise.
52484         * modules/vsprintf-posix (Depends-on): Likewise.
52485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52492
52493         Add support for universal builds to <inttypes.h>.
52494         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52495         _SCNu64_PREFIX): In Apple
52496         universal builds, define directly, using _LP64.
52497         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52498         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52499         * modules/inttypes (Depends-on): Add multiarch.
52500         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52501
52502         Add support for universal builds to <stdint.h>.
52503         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52504         universal builds, define directly, using _LP64.
52505         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52506         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52507         and size_t.
52508         * modules/stdint (Depends-on): Add multiarch.
52509         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52510
52511         New module 'multiarch'.
52512         * modules/multiarch: New file.
52513         * m4/multiarch.m4: New file.
52514
52515 2008-12-25  Bruno Haible  <bruno@clisp.org>
52516
52517         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52518
52519 2008-12-25  Bruno Haible  <bruno@clisp.org>
52520
52521         * modules/btowc (License): Relicense under LGPLv2+.
52522         * modules/mbsinit (License): Likewise.
52523         * modules/mbrtowc (License): Likewise.
52524         * modules/wcrtomb (License): Likewise.
52525         * modules/streq (License): Likewise.
52526         Reported by David Lutterkort <lutter@redhat.com>.
52527
52528 2008-12-23  Bruno Haible  <bruno@clisp.org>
52529
52530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52531
52532 2008-12-23  Bruno Haible  <bruno@clisp.org>
52533
52534         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52536         GETADDRINFO_LIB, not in LIBS.
52537         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52538         * modules/canon-host (Link): Likewise.
52539         * NEWS: Mention the change.
52540         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52541         GETADDRINFO_LIB.
52542
52543 2008-12-22  Bruno Haible  <bruno@clisp.org>
52544
52545         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52546         * doc/posix-functions/iswalpha_l.texi: Likewise.
52547         * doc/posix-functions/iswblank_l.texi: Likewise.
52548         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52549         * doc/posix-functions/iswctype_l.texi: Likewise.
52550         * doc/posix-functions/iswdigit_l.texi: Likewise.
52551         * doc/posix-functions/iswgraph_l.texi: Likewise.
52552         * doc/posix-functions/iswlower_l.texi: Likewise.
52553         * doc/posix-functions/iswprint_l.texi: Likewise.
52554         * doc/posix-functions/iswpunct_l.texi: Likewise.
52555         * doc/posix-functions/iswspace_l.texi: Likewise.
52556         * doc/posix-functions/iswupper_l.texi: Likewise.
52557         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52558         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52559         * doc/posix-functions/open_wmemstream.texi: Likewise.
52560         * doc/posix-functions/swscanf.texi: Likewise.
52561         * doc/posix-functions/towctrans_l.texi: Likewise.
52562         * doc/posix-functions/towlower.texi: Likewise.
52563         * doc/posix-functions/towlower_l.texi: Likewise.
52564         * doc/posix-functions/towupper.texi: Likewise.
52565         * doc/posix-functions/towupper_l.texi: Likewise.
52566         * doc/posix-functions/vfwprintf.texi: Likewise.
52567         * doc/posix-functions/vfwscanf.texi: Likewise.
52568         * doc/posix-functions/vswscanf.texi: Likewise.
52569         * doc/posix-functions/vwprintf.texi: Likewise.
52570         * doc/posix-functions/vwscanf.texi: Likewise.
52571         * doc/posix-functions/wcpcpy.texi: Likewise.
52572         * doc/posix-functions/wcpncpy.texi: Likewise.
52573         * doc/posix-functions/wcscasecmp.texi: Likewise.
52574         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52575         * doc/posix-functions/wcscoll_l.texi: Likewise.
52576         * doc/posix-functions/wcsdup.texi: Likewise.
52577         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52578         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52579         * doc/posix-functions/wcsnlen.texi: Likewise.
52580         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52581         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52582         * doc/posix-functions/wctrans_l.texi: Likewise.
52583         * doc/posix-functions/wctype_l.texi: Likewise.
52584         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52585         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52586         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52587         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52588         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52589         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52590         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52591         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52592         * doc/glibc-functions/wcschrnul.texi: Likewise.
52593         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52594         * doc/glibc-functions/wcstod_l.texi: Likewise.
52595         * doc/glibc-functions/wcstof_l.texi: Likewise.
52596         * doc/glibc-functions/wcstol_l.texi: Likewise.
52597         * doc/glibc-functions/wcstold_l.texi: Likewise.
52598         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52599         * doc/glibc-functions/wcstoq.texi: Likewise.
52600         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52601         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52602         * doc/glibc-functions/wcstouq.texi: Likewise.
52603         * doc/glibc-functions/wmempcpy.texi: Likewise.
52604
52605 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52606             Eric Blake  <ebb9@byu.net>
52607             Paolo Bonzini  <bonzini@gnu.org>
52608             Bruno Haible  <bruno@clisp.org>
52609
52610         Make c-stack work on Haiku.
52611         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52612         (c_stack_action): Use SA_ONSTACK flag.
52613
52614 2008-12-22  Bruno Haible  <bruno@clisp.org>
52615
52616         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52617
52618 2008-12-22  Bruno Haible  <bruno@clisp.org>
52619
52620         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52621         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52622         being overridden.
52623         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52624         New macros.
52625         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52627         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52628         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52629
52630 2008-12-22  Bruno Haible  <bruno@clisp.org>
52631
52632         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52633         from test code.
52634
52635 2008-12-22  Eric Blake  <ebb9@byu.net>
52636
52637         Avoid gcc warnings on cygwin.
52638         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52639         Avoid unused variable.
52640         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52641         Likewise.
52642
52643 2008-12-22  Bruno Haible  <bruno@clisp.org>
52644
52645         Remove HAVE_MBRTOWC conditionals.
52646         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52647         (mbscasecmp): Assume mbrtowc function.
52648         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52649         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52650         * lib/mbschr.c: Include mbuiter.h unconditionally.
52651         (mbschr): Assume mbrtowc function.
52652         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52653         (mbscspn): Assume mbrtowc function.
52654         * lib/mbslen.c: Include mbuiter.h unconditionally.
52655         (mbslen): Assume mbrtowc function.
52656         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52657         (mbsncasecmp): Assume mbrtowc function.
52658         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52659         (mbsnlen): Assume mbrtowc function.
52660         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52661         (mbspbrk): Assume mbrtowc function.
52662         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52663         (mbspcasecmp): Assume mbrtowc function.
52664         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52665         (mbsrchr): Assume mbrtowc function.
52666         * lib/mbssep.c: Include mbuiter.h unconditionally.
52667         (mbssep): Assume mbrtowc function.
52668         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52669         (mbsspn): Assume mbrtowc function.
52670         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52671         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52672         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52673         (mbstok_r): Assume mbrtowc function.
52674         * lib/propername.c: Include mbuiter.h unconditionally.
52675         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52676         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52677         (trim2): Assume mbrtowc function.
52678         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52679         (mbsnwidth): Assume mbrtowc function.
52680         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52681         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52682         fallback definitions.
52683         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52684
52685 2008-12-22  Bruno Haible  <bruno@clisp.org>
52686
52687         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52688
52689 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52690
52691         * modules/regex: Request emulations for the mb*/wc* functions we need.
52692         * m4/regex.m4: Don't look for those functions here.
52693         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52694
52695 2008-12-22  Bruno Haible  <bruno@clisp.org>
52696
52697         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52698
52699 2008-12-21  Bruno Haible  <bruno@clisp.org>
52700
52701         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52702         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52703         (Include): Remove conditionalization.
52704         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52705         (Include): Remove conditionalization.
52706         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52707         (Include): Remove conditionalization.
52708         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52709         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52710         * NEWS: Mention the change.
52711         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52712         via Sergey Poznyakoff <gray@gnu.org.ua>.
52713
52714 2008-12-21  Bruno Haible  <bruno@clisp.org>
52715
52716         * MODULES.html.sh (Extended multibyte and wide character utilities
52717         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52718         wcrtomb, wcsrtombs.
52719         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52720         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52721         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52722         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52723
52724 2008-12-21  Bruno Haible  <bruno@clisp.org>
52725
52726         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52727
52728 2008-12-21  Bruno Haible  <bruno@clisp.org>
52729
52730         * modules/wcsnrtombs-tests: New file.
52731         * tests/test-wcsnrtombs1.sh: New file.
52732         * tests/test-wcsnrtombs2.sh: New file.
52733         * tests/test-wcsnrtombs3.sh: New file.
52734         * tests/test-wcsnrtombs4.sh: New file.
52735         * tests/test-wcsnrtombs.c: New file.
52736
52737         New module 'wcsnrtombs'.
52738         * lib/wchar.in.h (wcsnrtombs): New declaration.
52739         * lib/wcsnrtombs.c: New file.
52740         * lib/wcsrtombs-state.c: New file.
52741         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52742         (internal_state): Remove variable.
52743         * m4/wcsnrtombs.m4: New file.
52744         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52745         compilation units.
52746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52747         HAVE_WCSNRTOMBS.
52748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52749         HAVE_WCSNRTOMBS.
52750         * modules/wcsnrtombs: New file.
52751         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52752         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52753
52754 2008-12-21  Bruno Haible  <bruno@clisp.org>
52755
52756         * modules/wcsrtombs-tests: New file.
52757         * tests/test-wcsrtombs1.sh: New file.
52758         * tests/test-wcsrtombs2.sh: New file.
52759         * tests/test-wcsrtombs3.sh: New file.
52760         * tests/test-wcsrtombs4.sh: New file.
52761         * tests/test-wcsrtombs.c: New file.
52762
52763         New module 'wcsrtombs'.
52764         * lib/wchar.in.h (wcsrtombs): New declaration.
52765         * lib/wcsrtombs.c: New file.
52766         * m4/wcsrtombs.m4: New file.
52767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52768         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52770         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52771         * modules/wcsrtombs: New file.
52772         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52773         bugs.
52774
52775 2008-12-21  Bruno Haible  <bruno@clisp.org>
52776
52777         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52778         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52780         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52781         if not correct.
52782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52783         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52784         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52785         m4/locale-zh.m4, m4/codeset.m4.
52786         * doc/posix-functions/wcrtomb.texi: Document the bug.
52787
52788 2008-12-21  Bruno Haible  <bruno@clisp.org>
52789
52790         Work around a btowc() bug on IRIX 6.5.
52791         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52792         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52793         REPLACE_WTOBC if not.
52794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52795         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52796         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52797
52798 2008-12-21  Bruno Haible  <bruno@clisp.org>
52799
52800         * modules/wcrtomb-tests: New file.
52801         * tests/test-wcrtomb.sh: New file.
52802         * tests/test-wcrtomb.c: New file.
52803
52804         New module 'wcrtomb'.
52805         * lib/wchar.in.h (wcrtomb): New declaration.
52806         * lib/wcrtomb.c: New file.
52807         * m4/wcrtomb.m4: New file.
52808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52809         HAVE_WCRTOMB.
52810         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52811         HAVE_WCRTOMB.
52812         * modules/wcrtomb: New file.
52813         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52814
52815 2008-12-21  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52818         * modules/mbsrtowcs (Files): Likewise.
52819         * modules/wctob (Files): Likewise.
52820         * modules/c-strcase-tests (Files): Likewise.
52821         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52822         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52823         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52824         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52825         * modules/vasnprintf-posix-tests (Files): Likewise.
52826
52827 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52828
52829         gitlog-to-changelog: pass all command-line arguments to git-log
52830         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52831         it is sometimes convenient to filter the commits in various ways.
52832         gitlog-to-changelog only allows --since to specify a start date,
52833         but git-log itself supports many other filtering mechanisms.
52834         At the moment, I want to filter by branch name.  Rather than
52835         adding a --branch option to gitlog-to-changelog, it seems more
52836         flexible to simply pass all options directly to git-log and let
52837         git do the work.  Notice that this effectively makes --since a
52838         redundant option for gitlog-to-changelog, but removing it would
52839         require current usage to change since calls would then require
52840         an additional '--'.
52841
52842 2008-12-21  Bruno Haible  <bruno@clisp.org>
52843
52844         * modules/mbsnrtowcs-tests: New file.
52845         * tests/test-mbsnrtowcs1.sh: New file.
52846         * tests/test-mbsnrtowcs2.sh: New file.
52847         * tests/test-mbsnrtowcs3.sh: New file.
52848         * tests/test-mbsnrtowcs4.sh: New file.
52849         * tests/test-mbsnrtowcs.c: New file.
52850
52851         New module 'mbsnrtowcs'.
52852         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52853         * lib/mbsnrtowcs.c: New file.
52854         * lib/mbsrtowcs-state.c: New file.
52855         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52856         (internal_state): Remove variable.
52857         * m4/mbsnrtowcs.m4: New file.
52858         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52859         compilation units.
52860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52861         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52862         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52863         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52864         * modules/mbsnrtowcs: New file.
52865         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52866         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52867         portability problem.
52868
52869 2008-12-21  Bruno Haible  <bruno@clisp.org>
52870
52871         Work around mbsrtowcs bug.
52872         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52873         (gl_FUNC_MBSRTOWCS): Invoke it.
52874         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52875         m4/locale-zh.m4.
52876         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52877
52878 2008-12-21  Bruno Haible  <bruno@clisp.org>
52879
52880         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52881
52882 2008-12-21  Bruno Haible  <bruno@clisp.org>
52883
52884         Update doc for AIX.
52885         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52886         16-bit wchar_t type.
52887         * doc/posix-functions/btowc.texi: Likewise.
52888         * doc/posix-functions/fgetwc.texi: Likewise.
52889         * doc/posix-functions/fgetws.texi: Likewise.
52890         * doc/posix-functions/fputwc.texi: Likewise.
52891         * doc/posix-functions/fputws.texi: Likewise.
52892         * doc/posix-functions/fwide.texi: Likewise.
52893         * doc/posix-functions/fwprintf.texi: Likewise.
52894         * doc/posix-functions/fwscanf.texi: Likewise.
52895         * doc/posix-functions/getwchar.texi: Likewise.
52896         * doc/posix-functions/getwc.texi: Likewise.
52897         * doc/posix-functions/iswalnum.texi: Likewise.
52898         * doc/posix-functions/iswalpha.texi: Likewise.
52899         * doc/posix-functions/iswblank.texi: Likewise.
52900         * doc/posix-functions/iswcntrl.texi: Likewise.
52901         * doc/posix-functions/iswctype.texi: Likewise.
52902         * doc/posix-functions/iswdigit.texi: Likewise.
52903         * doc/posix-functions/iswgraph.texi: Likewise.
52904         * doc/posix-functions/iswlower.texi: Likewise.
52905         * doc/posix-functions/iswprint.texi: Likewise.
52906         * doc/posix-functions/iswpunct.texi: Likewise.
52907         * doc/posix-functions/iswspace.texi: Likewise.
52908         * doc/posix-functions/iswupper.texi: Likewise.
52909         * doc/posix-functions/iswxdigit.texi: Likewise.
52910         * doc/posix-functions/mbrtowc.texi: Likewise.
52911         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52912         * doc/posix-functions/mbstowcs.texi: Likewise.
52913         * doc/posix-functions/mbtowc.texi: Likewise.
52914         * doc/posix-functions/putwchar.texi: Likewise.
52915         * doc/posix-functions/putwc.texi: Likewise.
52916         * doc/posix-functions/swprintf.texi: Likewise.
52917         * doc/posix-functions/tolower.texi: Likewise.
52918         * doc/posix-functions/toupper.texi: Likewise.
52919         * doc/posix-functions/towctrans.texi: Likewise.
52920         * doc/posix-functions/ungetwc.texi: Likewise.
52921         * doc/posix-functions/vswprintf.texi: Likewise.
52922         * doc/posix-functions/wcrtomb.texi: Likewise.
52923         * doc/posix-functions/wcscat.texi: Likewise.
52924         * doc/posix-functions/wcschr.texi: Likewise.
52925         * doc/posix-functions/wcscmp.texi: Likewise.
52926         * doc/posix-functions/wcscoll.texi: Likewise.
52927         * doc/posix-functions/wcscpy.texi: Likewise.
52928         * doc/posix-functions/wcscspn.texi: Likewise.
52929         * doc/posix-functions/wcsftime.texi: Likewise.
52930         * doc/posix-functions/wcslen.texi: Likewise.
52931         * doc/posix-functions/wcsncat.texi: Likewise.
52932         * doc/posix-functions/wcsncmp.texi: Likewise.
52933         * doc/posix-functions/wcsncpy.texi: Likewise.
52934         * doc/posix-functions/wcspbrk.texi: Likewise.
52935         * doc/posix-functions/wcsrchr.texi: Likewise.
52936         * doc/posix-functions/wcsrtombs.texi: Likewise.
52937         * doc/posix-functions/wcsspn.texi: Likewise.
52938         * doc/posix-functions/wcsstr.texi: Likewise.
52939         * doc/posix-functions/wcstod.texi: Likewise.
52940         * doc/posix-functions/wcstof.texi: Likewise.
52941         * doc/posix-functions/wcstoimax.texi: Likewise.
52942         * doc/posix-functions/wcstok.texi: Likewise.
52943         * doc/posix-functions/wcstold.texi: Likewise.
52944         * doc/posix-functions/wcstoll.texi: Likewise.
52945         * doc/posix-functions/wcstol.texi: Likewise.
52946         * doc/posix-functions/wcstombs.texi: Likewise.
52947         * doc/posix-functions/wcstoull.texi: Likewise.
52948         * doc/posix-functions/wcstoul.texi: Likewise.
52949         * doc/posix-functions/wcstoumax.texi: Likewise.
52950         * doc/posix-functions/wcswidth.texi: Likewise.
52951         * doc/posix-functions/wcsxfrm.texi: Likewise.
52952         * doc/posix-functions/wctob.texi: Likewise.
52953         * doc/posix-functions/wctomb.texi: Likewise.
52954         * doc/posix-functions/wctrans.texi: Likewise.
52955         * doc/posix-functions/wctype.texi: Likewise.
52956         * doc/posix-functions/wcwidth.texi: Likewise.
52957         * doc/posix-functions/wmemchr.texi: Likewise.
52958         * doc/posix-functions/wmemcmp.texi: Likewise.
52959         * doc/posix-functions/wmemcpy.texi: Likewise.
52960         * doc/posix-functions/wmemmove.texi: Likewise.
52961         * doc/posix-functions/wmemset.texi: Likewise.
52962         * doc/posix-functions/wprintf.texi: Likewise.
52963         * doc/posix-functions/wscanf.texi: Likewise.
52964
52965 2008-12-21  Bruno Haible  <bruno@clisp.org>
52966
52967         Update doc for HP-UX 11.11.
52968         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52969         in HP-UX version 11.00, not in all versions of HP-UX 11.
52970         * doc/posix-functions/fwide.texi: Likewise.
52971         * doc/posix-functions/fwprintf.texi: Likewise.
52972         * doc/posix-functions/fwscanf.texi: Likewise.
52973         * doc/posix-functions/inet_ntop.texi: Likewise.
52974         * doc/posix-functions/inet_pton.texi: Likewise.
52975         * doc/posix-functions/mbrlen.texi: Likewise.
52976         * doc/posix-functions/mbrtowc.texi: Likewise.
52977         * doc/posix-functions/mbsinit.texi: Likewise.
52978         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52979         * doc/posix-functions/swprintf.texi: Likewise.
52980         * doc/posix-functions/swscanf.texi: Likewise.
52981         * doc/posix-functions/towctrans.texi: Likewise.
52982         * doc/posix-functions/vfwprintf.texi: Likewise.
52983         * doc/posix-functions/vswprintf.texi: Likewise.
52984         * doc/posix-functions/vwprintf.texi: Likewise.
52985         * doc/posix-functions/wcrtomb.texi: Likewise.
52986         * doc/posix-functions/wcsrtombs.texi: Likewise.
52987         * doc/posix-functions/wcsstr.texi: Likewise.
52988         * doc/posix-functions/wctob.texi: Likewise.
52989         * doc/posix-functions/wctrans.texi: Likewise.
52990         * doc/posix-functions/wmemchr.texi: Likewise.
52991         * doc/posix-functions/wmemcmp.texi: Likewise.
52992         * doc/posix-functions/wmemcpy.texi: Likewise.
52993         * doc/posix-functions/wmemmove.texi: Likewise.
52994         * doc/posix-functions/wmemset.texi: Likewise.
52995         * doc/posix-functions/wprintf.texi: Likewise.
52996         * doc/posix-functions/wscanf.texi: Likewise.
52997
52998 2008-12-21  Bruno Haible  <bruno@clisp.org>
52999
53000         Work around a portability problem.
53001         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53002         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53003
53004 2008-12-20  Bruno Haible  <bruno@clisp.org>
53005
53006         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53007         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53008         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53010         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53011
53012         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53013         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53014         set.
53015         (GNULIB_defined_mbstate_t): New macro.
53016         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53017         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53018         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53019         reuses the system's mbrtowc function but works around the bugs.
53020         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53021         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53022         macros.
53023         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53024         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53025         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53027         REPLACE_MBSINIT if mbsinit needs to be overridden.
53028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53029         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53030         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53031         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53032         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53033         m4/locale-zh.m4.
53034         (Depends): Add mbsinit.
53035         * modules/mbsinit (Depends): Add mbrtowc.
53036         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53037
53038 2008-12-20  Bruno Haible  <bruno@clisp.org>
53039
53040         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53041         so that there are no conversion errors on AIX.
53042         * tests/test-mbsrtowcs.c (main): LIkewise.
53043
53044 2008-12-20  Bruno Haible  <bruno@clisp.org>
53045
53046         Work around wctob bug on Solaris <= 9.
53047         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53048         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53050         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53051         * modules/wctob (Files): Add m4/locale-fr.m4.
53052         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53053
53054 2008-12-20  Bruno Haible  <bruno@clisp.org>
53055
53056         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53057         /dev/null.
53058         * tests/test-select-in.sh: Likewise.
53059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53060
53061 2008-12-20  Bruno Haible  <bruno@clisp.org>
53062
53063         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53064         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53065         Cygwin 1.5.x.
53066
53067 2008-12-20  Bruno Haible  <bruno@clisp.org>
53068
53069         Ensure mbstate_t is defined on HP-UX 11.11.
53070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53071         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53072         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53073         AC_USE_SYSTEM_EXTENSIONS.
53074         * modules/fnmatch (Depends-on): Add extensions.
53075         * modules/mbrlen (Depends-on): Likewise.
53076         * modules/mbrtowc (Depends-on): Likewise.
53077         * modules/mbsinit (Depends-on): Likewise.
53078         * modules/mbsrtowcs (Depends-on): Likewise.
53079         * modules/mbswidth (Depends-on): Likewise.
53080         * modules/quotearg (Depends-on): Likewise.
53081         * modules/strftime (Depends-on): Likewise.
53082
53083 2008-12-20  Bruno Haible  <bruno@clisp.org>
53084
53085         Ensure wctob is declared on IRIX 6.5.
53086         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53087         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53088         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53090         of HAVE_WCTOB.
53091         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53092         HAVE_WCTOB.
53093         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53094
53095 2008-12-19  Bruno Haible  <bruno@clisp.org>
53096
53097         * modules/mbsrtowcs-tests: New file.
53098         * tests/test-mbsrtowcs1.sh: New file.
53099         * tests/test-mbsrtowcs2.sh: New file.
53100         * tests/test-mbsrtowcs3.sh: New file.
53101         * tests/test-mbsrtowcs4.sh: New file.
53102         * tests/test-mbsrtowcs.c: New file.
53103
53104         New module 'mbsrtowcs'.
53105         * lib/wchar.in.h (mbsrtowcs): New declaration.
53106         * lib/mbsrtowcs.c: New file.
53107         * m4/mbsrtowcs.m4: New file.
53108         * modules/mbsrtowcs: New file.
53109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53110         HAVE_MBSRTOWCS.
53111         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53112         HAVE_MBSRTOWCS.
53113         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53114
53115 2008-12-19  Bruno Haible  <bruno@clisp.org>
53116
53117         New module 'mbrlen'.
53118         * lib/wchar.in.h (mbrlen): New declaration.
53119         * lib/mbrlen.c: New file.
53120         * m4/mbrlen.m4: New file.
53121         * modules/mbrlen: New file.
53122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53123         HAVE_MBRLEN.
53124         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53125         HAVE_MBRLEN.
53126         * doc/posix-functions/mbrlen.texi: Document the new module.
53127
53128 2008-12-19  Bruno Haible  <bruno@clisp.org>
53129
53130         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53131         * modules/mbrtowc (Depends-on): Add verify.
53132         Suggested by Paul Eggert.
53133
53134 2008-12-18  Bruno Haible  <bruno@clisp.org>
53135
53136         * modules/mbsinit-tests: New file.
53137         * tests/test-mbsinit.sh: New file.
53138         * tests/test-mbsinit.c: New file.
53139
53140 2008-12-18  Bruno Haible  <bruno@clisp.org>
53141
53142         * modules/mbrtowc-tests: New file.
53143         * tests/test-mbrtowc1.sh: New file.
53144         * tests/test-mbrtowc2.sh: New file.
53145         * tests/test-mbrtowc3.sh: New file.
53146         * tests/test-mbrtowc4.sh: New file.
53147         * tests/test-mbrtowc.c: New file.
53148
53149         New module 'mbrtowc'.
53150         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53151         mbsinit and mbrtowc.
53152         (mbrtowc): New declaration.
53153         * lib/mbrtowc.c: New file.
53154         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53155         * modules/mbrtowc: New file.
53156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53157         HAVE_MBRTOWC.
53158         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53159         HAVE_MBRTOWC.
53160         * doc/posix-functions/mbrtowc.texi: Document the new module.
53161
53162 2008-12-18  Bruno Haible  <bruno@clisp.org>
53163
53164         New module 'wctob'.
53165         * lib/wchar.in.h (wctob): New declaration.
53166         * lib/wctob.c: New file.
53167         * m4/wctob.m4: New file.
53168         * modules/wctob: New file.
53169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53170         HAVE_WCTOB.
53171         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53172         * doc/posix-functions/wctob.texi: Document the new module.
53173
53174 2008-12-18  Bruno Haible  <bruno@clisp.org>
53175
53176         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53177         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53178
53179 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53180
53181         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53182         G. Christensen" <tgc@jupiterrise.com>.
53183
53184         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53185         G. Christensen" <tgc@jupiterrise.com>.
53186
53187         * lib/flock.c: Need to include string.h.  Reported by "Tom
53188         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53189         <ebb9@byu.net>.
53190
53191 2008-12-18  Bruno Haible  <bruno@clisp.org>
53192
53193         * m4/locale-ja.m4: New file, from GNU gettext.
53194
53195 2008-12-17  Bruno Haible  <bruno@clisp.org>
53196
53197         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53198         Suggested by Eric Blake.
53199
53200 2008-12-17  Bruno Haible  <bruno@clisp.org>
53201
53202         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53203
53204 2008-12-17  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53207         * modules/mbsinit (Depends-on): Add verify.
53208         Suggested by Paul Eggert.
53209
53210 2008-12-17  Bruno Haible  <bruno@clisp.org>
53211
53212         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53213         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53214         gl_FUNC_MBRTOWC.
53215         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53216         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53217         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53218         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53219         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53220         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53221         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53222         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53223         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53224         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53225         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53226         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53227         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53228         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53229         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53230         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53231         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53232         * modules/trim (configure.ac): Likewise.
53233
53234 2008-12-17  Bruno Haible  <bruno@clisp.org>
53235
53236         * modules/btowc-tests: New file.
53237         * tests/test-btowc1.sh: New file.
53238         * tests/test-btowc2.sh: New file.
53239         * tests/test-btowc.c: New file.
53240
53241         New module 'btowc'.
53242         * lib/wchar.in.h (btowc): New declaration.
53243         * lib/btowc.c: New file.
53244         * m4/btowc.m4: New file.
53245         * modules/btowc: New file.
53246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53247         HAVE_BTOWC.
53248         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53249         * doc/posix-functions/btowc.texi: Document the new module.
53250
53251 2008-12-17  Bruno Haible  <bruno@clisp.org>
53252
53253         New module 'mbsinit'.
53254         * lib/wchar.in.h (mbsinit): New declaration.
53255         * lib/mbsinit.c: New file.
53256         * m4/mbsinit.m4: New file.
53257         * modules/mbsinit: New file.
53258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53259         HAVE_MBSINIT.
53260         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53261         HAVE_MBSINIT.
53262         * doc/posix-functions/mbsinit.texi: Document the new module.
53263
53264 2008-12-16  Bruno Haible  <bruno@clisp.org>
53265
53266         * lib/unistd.in.h: Add comment.
53267         * tests/test-environ.c: Don't include <stdlib.h>.
53268
53269 2008-12-16  Bruno Haible  <bruno@clisp.org>
53270
53271         * lib/parse-duration.h (parse_duration): Document return value
53272         convention.
53273         * lib/parse-duration.c: Include specification header first. Add
53274         comments.
53275         (_): Remove macro.
53276         (parse_year_month_day, parse_hour_minute_second): Move side effects
53277         outside of strchr call.
53278         (parse_non_iso8601): Move side effects outside of isspace call.
53279         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53280         call.
53281
53282 2008-12-16  Bruno Haible  <bruno@clisp.org>
53283
53284         * tests/test-parse-duration.sh: Produce no output when the test
53285         succeeds.
53286
53287 2008-12-16  Bruno Haible  <bruno@clisp.org>
53288
53289         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53290         expressions.
53291
53292 2008-12-15  Bruno Haible  <bruno@clisp.org>
53293
53294         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53295         * doc/glibc-functions/flistxattr.texi: Likewise.
53296         * doc/glibc-functions/fopencookie.texi: Likewise.
53297         * doc/glibc-functions/fremovexattr.texi: Likewise.
53298         * doc/glibc-functions/fsetxattr.texi: Likewise.
53299         * doc/glibc-functions/getxattr.texi: Likewise.
53300         * doc/glibc-functions/lgetxattr.texi: Likewise.
53301         * doc/glibc-functions/listxattr.texi: Likewise.
53302         * doc/glibc-functions/llistxattr.texi: Likewise.
53303         * doc/glibc-functions/lremovexattr.texi: Likewise.
53304         * doc/glibc-functions/lsetxattr.texi: Likewise.
53305         * doc/glibc-functions/removexattr.texi: Likewise.
53306         * doc/glibc-functions/setxattr.texi: Likewise.
53307         * doc/posix-functions/open_memstream.texi: Likewise.
53308
53309 2008-12-15  Eric Blake  <ebb9@byu.net>
53310
53311         Update doc for cygwin 1.7.
53312         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53313         functions.
53314         * doc/posix-functions/fchmodat.texi: Likewise.
53315         * doc/posix-functions/fchownat.texi: Likewise.
53316         * doc/posix-functions/fdopendir.texi: Likewise.
53317         * doc/posix-functions/fmemopen.texi: Likewise.
53318         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53319         * doc/posix-functions/fstatat.texi: Likewise.
53320         * doc/posix-functions/futimens.texi: Likewise.
53321         * doc/posix-functions/gai_strerror.texi: Likewise.
53322         * doc/posix-functions/getaddrinfo.texi: Likewise.
53323         * doc/posix-functions/getnameinfo.texi: Likewise.
53324         * doc/posix-functions/if_freenameindex.texi: Likewise.
53325         * doc/posix-functions/if_indextoname.texi: Likewise.
53326         * doc/posix-functions/if_nameindex.texi: Likewise.
53327         * doc/posix-functions/if_nametoindex.texi: Likewise.
53328         * doc/posix-functions/insque.texi: Likewise.
53329         * doc/posix-functions/linkat.texi: Likewise.
53330         * doc/posix-functions/llrint.texi: Likewise.
53331         * doc/posix-functions/llrintf.texi: Likewise.
53332         * doc/posix-functions/llrintl.texi: Likewise.
53333         * doc/posix-functions/lockf.texi: Likewise.
53334         * doc/posix-functions/lrintl.texi: Likewise.
53335         * doc/posix-functions/mkdirat.texi: Likewise.
53336         * doc/posix-functions/mkfifoat.texi: Likewise.
53337         * doc/posix-functions/mknodat.texi: Likewise.
53338         * doc/posix-functions/mq_close.texi: Likewise.
53339         * doc/posix-functions/mq_getattr.texi: Likewise.
53340         * doc/posix-functions/mq_notify.texi: Likewise.
53341         * doc/posix-functions/mq_open.texi: Likewise.
53342         * doc/posix-functions/mq_receive.texi: Likewise.
53343         * doc/posix-functions/mq_send.texi: Likewise.
53344         * doc/posix-functions/mq_setattr.texi: Likewise.
53345         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53346         * doc/posix-functions/mq_timedsend.texi: Likewise.
53347         * doc/posix-functions/mq_unlink.texi: Likewise.
53348         * doc/posix-functions/open_memstream.texi: Likewise.
53349         * doc/posix-functions/openat.texi: Likewise.
53350         * doc/posix-functions/posix_fadvise.texi: Likewise.
53351         * doc/posix-functions/posix_fallocate.texi: Likewise.
53352         * doc/posix-functions/posix_madvise.texi: Likewise.
53353         * doc/posix-functions/posix_memalign.texi: Likewise.
53354         * doc/posix-functions/posix_openpt.texi: Likewise.
53355         * doc/posix-functions/readlinkat.texi: Likewise.
53356         * doc/posix-functions/remque.texi: Likewise.
53357         * doc/posix-functions/renameat.texi: Likewise.
53358         * doc/posix-functions/rintl.texi: Likewise.
53359         * doc/posix-functions/sem_unlink.texi: Likewise.
53360         * doc/posix-functions/shm_open.texi: Likewise.
53361         * doc/posix-functions/shm_unlink.texi: Likewise.
53362         * doc/posix-functions/signgam.texi: Likewise.
53363         * doc/posix-functions/sigset.texi: Likewise.
53364         * doc/posix-functions/stpcpy.texi: Likewise.
53365         * doc/posix-functions/stpncpy.texi: Likewise.
53366         * doc/posix-functions/strerror.texi: Likewise.
53367         * doc/posix-functions/strtod.texi: Likewise.
53368         * doc/posix-functions/symlinkat.texi: Likewise.
53369         * doc/posix-functions/unlinkat.texi: Likewise.
53370         * doc/posix-functions/utimensat.texi: Likewise.
53371         * doc/glibc-functions/bindresvport.texi: Likewise.
53372         * doc/glibc-functions/dn_expand.texi: Likewise.
53373         * doc/glibc-functions/exp10.texi: Likewise.
53374         * doc/glibc-functions/exp10f.texi: Likewise.
53375         * doc/glibc-functions/fgetxattr.texi: Likewise.
53376         * doc/glibc-functions/flistxattr.texi: Likewise.
53377         * doc/glibc-functions/fopencookie.texi: Likewise.
53378         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53379         * doc/glibc-functions/fremovexattr.texi: Likewise.
53380         * doc/glibc-functions/fsetxattr.texi: Likewise.
53381         * doc/glibc-functions/getifaddrs.texi: Likewise.
53382         * doc/glibc-functions/getxattr.texi: Likewise.
53383         * doc/glibc-functions/lgetxattr.texi: Likewise.
53384         * doc/glibc-functions/listxattr.texi: Likewise.
53385         * doc/glibc-functions/llistxattr.texi: Likewise.
53386         * doc/glibc-functions/lremovexattr.texi: Likewise.
53387         * doc/glibc-functions/lsetxattr.texi: Likewise.
53388         * doc/glibc-functions/pow10.texi: Likewise.
53389         * doc/glibc-functions/pow10f.texi: Likewise.
53390         * doc/glibc-functions/rcmd_af.texi: Likewise.
53391         * doc/glibc-functions/removexattr.texi: Likewise.
53392         * doc/glibc-functions/res_init.texi: Likewise.
53393         * doc/glibc-functions/res_mkquery.texi: Likewise.
53394         * doc/glibc-functions/res_query.texi: Likewise.
53395         * doc/glibc-functions/res_querydomain.texi: Likewise.
53396         * doc/glibc-functions/res_send.texi: Likewise.
53397         * doc/glibc-functions/rresvport_af.texi: Likewise.
53398         * doc/glibc-functions/setxattr.texi: Likewise.
53399         * doc/glibc-functions/strcasestr.texi: Likewise.
53400
53401 2008-12-15  Bruno Haible  <bruno@clisp.org>
53402
53403         Fix compilation error on OSF/1 4.0.
53404         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53405         <sys/time.h>, simply delegate to the system header.
53406         Reported by Daniel Richard G. <oss@teragram.com>.
53407
53408 2008-12-15  Bruno Haible  <bruno@clisp.org>
53409
53410         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53411         * doc/posix-functions/fchmodat.texi: Likewise.
53412         * doc/posix-functions/fchownat.texi: Likewise.
53413         * doc/posix-functions/fdopendir.texi: Likewise.
53414         * doc/posix-functions/fstatat.texi: Likewise.
53415         * doc/posix-functions/mkdirat.texi: Likewise.
53416         * doc/posix-functions/unlinkat.texi: Likewise.
53417
53418 2008-12-14  Bruno Haible  <bruno@clisp.org>
53419
53420         Update doc for POSIX:2008.
53421         * doc/posix-functions/faccessat.texi: New file.
53422         * doc/posix-functions/fchmodat.texi: New file.
53423         * doc/posix-functions/fchownat.texi: New file.
53424         * doc/posix-functions/fdopendir.texi: New file.
53425         * doc/posix-functions/fstatat.texi: New file.
53426         * doc/posix-functions/futimens.texi: New file.
53427         * doc/posix-functions/linkat.texi: New file.
53428         * doc/posix-functions/mkdirat.texi: New file.
53429         * doc/posix-functions/mkfifoat.texi: New file.
53430         * doc/posix-functions/mknodat.texi: New file.
53431         * doc/posix-functions/open_wmemstream.texi: New file.
53432         * doc/posix-functions/openat.texi: New file.
53433         * doc/posix-functions/psiginfo.texi: New file.
53434         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53435         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53436         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53437         * doc/posix-functions/readlinkat.texi: New file.
53438         * doc/posix-functions/renameat.texi: New file.
53439         * doc/posix-functions/strerror_l.texi: New file.
53440         * doc/posix-functions/symlinkat.texi: New file.
53441         * doc/posix-functions/unlinkat.texi: New file.
53442         * doc/posix-functions/utimensat.texi: New file.
53443         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53444
53445 2008-12-14  Bruno Haible  <bruno@clisp.org>
53446
53447         Update doc for POSIX:2008.
53448         * doc/posix-functions/alphasort.texi: Renamed from
53449         doc/glibc-functions/alphasort.texi.
53450         * doc/posix-functions/dirfd.texi: Renamed from
53451         doc/glibc-functions/dirfd.texi.
53452         * doc/posix-functions/dprintf.texi: Renamed from
53453         doc/glibc-functions/dprintf.texi.
53454         * doc/posix-functions/duplocale.texi: Renamed from
53455         doc/glibc-functions/duplocale.texi.
53456         * doc/posix-functions/fexecve.texi: Renamed from
53457         doc/glibc-functions/fexecve.texi.
53458         * doc/posix-functions/fmemopen.texi: Renamed from
53459         doc/glibc-functions/fmemopen.texi.
53460         * doc/posix-functions/freelocale.texi: Renamed from
53461         doc/glibc-functions/freelocale.texi.
53462         * doc/posix-functions/getdate_err.texi: Renamed from
53463         doc/glibc-functions/getdate_err.texi.
53464         * doc/posix-functions/isalnum_l.texi: Renamed from
53465         doc/glibc-functions/isalnum_l.texi.
53466         * doc/posix-functions/isalpha_l.texi: Renamed from
53467         doc/glibc-functions/isalpha_l.texi.
53468         * doc/posix-functions/isblank_l.texi: Renamed from
53469         doc/glibc-functions/isblank_l.texi.
53470         * doc/posix-functions/iscntrl_l.texi: Renamed from
53471         doc/glibc-functions/iscntrl_l.texi.
53472         * doc/posix-functions/isdigit_l.texi: Renamed from
53473         doc/glibc-functions/isdigit_l.texi.
53474         * doc/posix-functions/isgraph_l.texi: Renamed from
53475         doc/glibc-functions/isgraph_l.texi.
53476         * doc/posix-functions/islower_l.texi: Renamed from
53477         doc/glibc-functions/islower_l.texi.
53478         * doc/posix-functions/isprint_l.texi: Renamed from
53479         doc/glibc-functions/isprint_l.texi.
53480         * doc/posix-functions/ispunct_l.texi: Renamed from
53481         doc/glibc-functions/ispunct_l.texi.
53482         * doc/posix-functions/isspace_l.texi: Renamed from
53483         doc/glibc-functions/isspace_l.texi.
53484         * doc/posix-functions/isupper_l.texi: Renamed from
53485         doc/glibc-functions/isupper_l.texi.
53486         * doc/posix-functions/iswalnum_l.texi: Renamed from
53487         doc/glibc-functions/iswalnum_l.texi.
53488         * doc/posix-functions/iswalpha_l.texi: Renamed from
53489         doc/glibc-functions/iswalpha_l.texi.
53490         * doc/posix-functions/iswblank_l.texi: Renamed from
53491         doc/glibc-functions/iswblank_l.texi.
53492         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53493         doc/glibc-functions/iswcntrl_l.texi.
53494         * doc/posix-functions/iswctype_l.texi: Renamed from
53495         doc/glibc-functions/iswctype_l.texi.
53496         * doc/posix-functions/iswdigit_l.texi: Renamed from
53497         doc/glibc-functions/iswdigit_l.texi.
53498         * doc/posix-functions/iswgraph_l.texi: Renamed from
53499         doc/glibc-functions/iswgraph_l.texi.
53500         * doc/posix-functions/iswlower_l.texi: Renamed from
53501         doc/glibc-functions/iswlower_l.texi.
53502         * doc/posix-functions/iswprint_l.texi: Renamed from
53503         doc/glibc-functions/iswprint_l.texi.
53504         * doc/posix-functions/iswpunct_l.texi: Renamed from
53505         doc/glibc-functions/iswpunct_l.texi.
53506         * doc/posix-functions/iswspace_l.texi: Renamed from
53507         doc/glibc-functions/iswspace_l.texi.
53508         * doc/posix-functions/iswupper_l.texi: Renamed from
53509         doc/glibc-functions/iswupper_l.texi.
53510         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53511         doc/glibc-functions/iswxdigit_l.texi.
53512         * doc/posix-functions/isxdigit_l.texi: Renamed from
53513         doc/glibc-functions/isxdigit_l.texi.
53514         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53515         doc/glibc-functions/mbsnrtowcs.texi.
53516         * doc/posix-functions/mkdtemp.texi: Renamed from
53517         doc/glibc-functions/mkdtemp.texi.
53518         * doc/posix-functions/newlocale.texi: Renamed from
53519         doc/glibc-functions/newlocale.texi.
53520         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53521         doc/glibc-functions/nl_langinfo_l.texi.
53522         * doc/posix-functions/open_memstream.texi: Renamed from
53523         doc/glibc-functions/open_memstream.texi.
53524         * doc/posix-functions/opterr.texi: Renamed from
53525         doc/glibc-functions/opterr.texi.
53526         * doc/posix-functions/optind.texi: Renamed from
53527         doc/glibc-functions/optind.texi.
53528         * doc/posix-functions/optopt.texi: Renamed from
53529         doc/glibc-functions/optopt.texi.
53530         * doc/posix-functions/psignal.texi: Renamed from
53531         doc/glibc-functions/psignal.texi.
53532         * doc/posix-functions/scandir.texi: Renamed from
53533         doc/glibc-functions/scandir.texi.
53534         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53535         doc/glibc-functions/sched_get_priority_min.texi.
53536         * doc/posix-functions/signgam.texi: Renamed from
53537         doc/glibc-functions/signgam.texi.
53538         * doc/posix-functions/stpcpy.texi: Renamed from
53539         doc/glibc-functions/stpcpy.texi.
53540         * doc/posix-functions/stpncpy.texi: Renamed from
53541         doc/glibc-functions/stpncpy.texi.
53542         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53543         doc/glibc-functions/strcasecmp_l.texi.
53544         * doc/posix-functions/strcoll_l.texi: Renamed from
53545         doc/glibc-functions/strcoll_l.texi.
53546         * doc/posix-functions/strfmon_l.texi: Renamed from
53547         doc/glibc-functions/strfmon_l.texi.
53548         * doc/posix-functions/strftime_l.texi: Renamed from
53549         doc/glibc-functions/strftime_l.texi.
53550         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53551         doc/glibc-functions/strncasecmp_l.texi.
53552         * doc/posix-functions/strndup.texi: Renamed from
53553         doc/glibc-functions/strndup.texi.
53554         * doc/posix-functions/strnlen.texi: Renamed from
53555         doc/glibc-functions/strnlen.texi.
53556         * doc/posix-functions/strsignal.texi: Renamed from
53557         doc/glibc-functions/strsignal.texi.
53558         * doc/posix-functions/strxfrm_l.texi: Renamed from
53559         doc/glibc-functions/strxfrm_l.texi.
53560         * doc/posix-functions/timer_gettime.texi: Renamed from
53561         doc/glibc-functions/timer_gettime.texi.
53562         * doc/posix-functions/tolower_l.texi: Renamed from
53563         doc/glibc-functions/tolower_l.texi.
53564         * doc/posix-functions/toupper_l.texi: Renamed from
53565         doc/glibc-functions/toupper_l.texi.
53566         * doc/posix-functions/towctrans_l.texi: Renamed from
53567         doc/glibc-functions/towctrans_l.texi.
53568         * doc/posix-functions/towlower_l.texi: Renamed from
53569         doc/glibc-functions/towlower_l.texi.
53570         * doc/posix-functions/towupper_l.texi: Renamed from
53571         doc/glibc-functions/towupper_l.texi.
53572         * doc/posix-functions/uselocale.texi: Renamed from
53573         doc/glibc-functions/uselocale.texi.
53574         * doc/posix-functions/vdprintf.texi: Renamed from
53575         doc/glibc-functions/vdprintf.texi.
53576         * doc/posix-functions/wcpcpy.texi:
53577         Renamed from doc/glibc-functions/wcpcpy.texi.
53578         * doc/posix-functions/wcpncpy.texi: Renamed from
53579         doc/glibc-functions/wcpncpy.texi.
53580         * doc/posix-functions/wcscasecmp.texi: Renamed from
53581         doc/glibc-functions/wcscasecmp.texi.
53582         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53583         doc/glibc-functions/wcscasecmp_l.texi.
53584         * doc/posix-functions/wcscoll_l.texi: Renamed from
53585         doc/glibc-functions/wcscoll_l.texi.
53586         * doc/posix-functions/wcsdup.texi: Renamed from
53587         doc/glibc-functions/wcsdup.texi.
53588         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53589         doc/glibc-functions/wcsncasecmp.texi.
53590         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53591         doc/glibc-functions/wcsncasecmp_l.texi.
53592         * doc/posix-functions/wcsnlen.texi: Renamed from
53593         doc/glibc-functions/wcsnlen.texi.
53594         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53595         doc/glibc-functions/wcsnrtombs.texi.
53596         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53597         doc/glibc-functions/wcsxfrm_l.texi.
53598         * doc/posix-functions/wctrans_l.texi: Renamed from
53599         doc/glibc-functions/wctrans_l.texi.
53600         * doc/posix-functions/wctype_l.texi: Renamed from
53601         doc/glibc-functions/wctype_l.texi.
53602         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53603         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53604         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53605         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53606         these subsections.
53607         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53608         Remove sections.
53609
53610 2008-12-14  Bruno Haible  <bruno@clisp.org>
53611
53612         Update doc for POSIX:2008.
53613         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53614
53615 2008-12-14  Bruno Haible  <bruno@clisp.org>
53616
53617         Update doc for POSIX:2008.
53618         * doc/pastposix-functions/bcmp.texi: Renamed from
53619         doc/posix-functions/bcmp.texi.
53620         * doc/pastposix-functions/bcopy.texi: Renamed from
53621         doc/posix-functions/bcopy.texi.
53622         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53623         doc/posix-functions/bsd_signal.texi.
53624         * doc/pastposix-functions/bzero.texi: Renamed from
53625         doc/posix-functions/bzero.texi.
53626         * doc/pastposix-functions/ecvt.texi: Renamed from
53627         doc/posix-functions/ecvt.texi.
53628         * doc/pastposix-functions/fcvt.texi: Renamed from
53629         doc/posix-functions/fcvt.texi.
53630         * doc/pastposix-functions/ftime.texi: Renamed from
53631         doc/posix-functions/ftime.texi.
53632         * doc/pastposix-functions/gcvt.texi: Renamed from
53633         doc/posix-functions/gcvt.texi.
53634         * doc/pastposix-functions/getcontext.texi: Renamed from
53635         doc/posix-functions/getcontext.texi.
53636         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53637         doc/posix-functions/gethostbyaddr.texi.
53638         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53639         doc/posix-functions/gethostbyname.texi.
53640         * doc/pastposix-functions/getwd.texi: Renamed from
53641         doc/posix-functions/getwd.texi.
53642         * doc/pastposix-functions/h_errno.texi: Renamed from
53643         doc/posix-functions/h_errno.texi.
53644         * doc/pastposix-functions/index.texi: Renamed from
53645         doc/posix-functions/index.texi.
53646         * doc/pastposix-functions/makecontext.texi: Renamed from
53647         doc/posix-functions/makecontext.texi.
53648         * doc/pastposix-functions/mktemp.texi: Renamed from
53649         doc/posix-functions/mktemp.texi.
53650         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53651         doc/posix-functions/pthread_attr_getstackaddr.texi.
53652         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53653         doc/posix-functions/pthread_attr_setstackaddr.texi.
53654         * doc/pastposix-functions/rindex.texi: Renamed from
53655         doc/posix-functions/rindex.texi.
53656         * doc/pastposix-functions/scalb.texi: Renamed from
53657         doc/posix-functions/scalb.texi.
53658         * doc/pastposix-functions/setcontext.texi: Renamed from
53659         doc/posix-functions/setcontext.texi.
53660         * doc/pastposix-functions/swapcontext.texi: Renamed from
53661         doc/posix-functions/swapcontext.texi.
53662         * doc/pastposix-functions/ualarm.texi: Renamed from
53663         doc/posix-functions/ualarm.texi.
53664         * doc/pastposix-functions/usleep.texi: Renamed from
53665         doc/posix-functions/usleep.texi.
53666         * doc/pastposix-functions/vfork.texi: Renamed from
53667         doc/posix-functions/vfork.texi.
53668         * doc/pastposix-functions/wcswcs.texi: Renamed from
53669         doc/posix-functions/wcswcs.texi.
53670         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53671         (Function Substitutes): Update.
53672
53673 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53674
53675         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53676         m4/strerror.m4.
53677
53678 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53679             Bruno Haible  <bruno@clisp.org>
53680
53681         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53682
53683 2008-12-13  Bruno Haible  <bruno@clisp.org>
53684
53685         * modules/strtoull (Depends-on): Remove unistd.
53686
53687 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53688
53689         * modules/strtoull (Depends-on): Add stdlib.
53690
53691 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53692
53693         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53694
53695 2008-12-10  Jim Meyering  <meyering@redhat.com>
53696
53697         gl_ASSERT: don't say assertions are disabled when they're not
53698         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53699         "checking whether to enable assertions... no", when they are in
53700         fact enabled.  This is solely a bug in the output of configure.
53701         In spite of saying "no", NDEBUG was not defined in that case.
53702         Also, as noted by Eric Blake, leave assertions enabled upon
53703         --enable-assert=INVALID.
53704
53705 2008-12-10  Bruno Haible  <bruno@clisp.org>
53706
53707         Change MODULES.html to refer to POSIX:2008 where possible.
53708         * MODULES.html.sh (POSIX2008_URL): New variable.
53709         (posix_headers): Remove sys/timeb, ucontext.
53710         (posix2001_headers): New variable.
53711         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53712         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53713         index, makecontext, mktemp, pthread_attr_getstackaddr,
53714         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53715         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53716         (posix2001_functions): New variable.
53717         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53718         otherwise.
53719
53720 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53721
53722         add missing include to parse-duration.c
53723         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53724         * modules/parse-duration (Depends-on): Add xalloc.
53725
53726         fix sed script reading maint.mk
53727         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53728         (syntax-check-rules): Use it.
53729
53730 2008-12-09  Bruno Haible  <bruno@clisp.org>
53731
53732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53733         MacOS X 10.4/PowerPC.
53734         Reported by Simon Josefsson.
53735
53736 2008-12-08  Jim Meyering  <meyering@redhat.com>
53737
53738         work around mingw's lack of some S_IF definitions
53739         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53740         Reported by Simon Josefsson.
53741
53742 2008-12-08  Bruno Haible  <bruno@clisp.org>
53743
53744         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53745         applied to variables. Needed on MacOS X 10.4/PowerPC.
53746         Reported by Simon Josefsson.
53747
53748 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53749         and Eric Blake  <ebb9@byu.net>
53750
53751         assert: honor --enable-assert
53752         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53753         order to honor --enable-assert, rather than treating it as a
53754         synonym for --disable-assert.
53755
53756 2008-12-08  Jim Meyering  <meyering@redhat.com>
53757
53758         * lib/posixtm.c: Remove now-useless declaration of mktime.
53759
53760         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53761
53762 2008-12-07  Bruno Haible  <bruno@clisp.org>
53763
53764         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53765         test_once): Mark functions as static.
53766         * tests/test-tls.c (test_tls): Likewise.
53767
53768 2008-12-07  Bruno Haible  <bruno@clisp.org>
53769
53770         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53771         iconv_register_autodetect.
53772
53773 2008-12-07  Jim Meyering  <meyering@redhat.com>
53774
53775         posixtm.c: avoid a warning
53776         * lib/posixtm.c (posixtime): Don't initialize tm0.
53777         It's no longer needed to placate gcc4's -Wuninitialized,
53778         and the attempt to placate would elicit a new warning.
53779
53780         unicodeio.c: mark unused parameters
53781         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53782         (fallback_failure_callback): Likewise.
53783
53784 2008-12-07  Bruno Haible  <bruno@clisp.org>
53785
53786         * gnulib-tool (func_create_testdir): When building the tests
53787         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53788         Reported by Simon Josefsson.
53789
53790 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53791
53792         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53793
53794 2008-12-06  Bruno Haible  <bruno@clisp.org>
53795
53796         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53797         Suggested by Eric Blake.
53798
53799 2008-12-06  Bruno Haible  <bruno@clisp.org>
53800
53801         Fix a c-stack test failure on MacOS X.
53802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53803         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53804         handler for SIGBUS as well.
53805         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53806         install a signal handler for SIGBUS as well.
53807         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53808
53809 2008-12-06  Bruno Haible  <bruno@clisp.org>
53810
53811         Advocacy documentation.
53812         * doc/gnulib-intro.texi (Benefits): New section.
53813         * doc/gnulib.texi: Update.
53814
53815 2008-12-06  Bruno Haible  <bruno@clisp.org>
53816
53817         Document the 'manywarnings' module.
53818         * doc/manywarnings.texi: New file.
53819         * doc/gnulib.texi: Include it.
53820
53821 2008-12-05  Eric Blake  <ebb9@byu.net>
53822
53823         tests: silence some gcc warnings
53824         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53825         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53826         type mismatches.
53827
53828 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53829             Bruno Haible  <bruno@clisp.org>
53830
53831         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53832
53833 2008-11-29  Jim Meyering  <meyering@redhat.com>
53834
53835         unicodeio.c: mark unused parameters
53836         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53837         (fallback_failure_callback): Likewise.
53838
53839         fts: fix a thinko
53840         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53841         (set_stat_type): Return S_IF*-valued "type" directly.
53842         Prompted by James Youngman's spotting a related bug.
53843         Confirmed by further testing through find.
53844
53845         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53846         * lib/fts.c (D_TYPE): Define.
53847         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53848         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53849         (s_ifmt_shift_bits): New function.
53850         (set_stat_type): New function.
53851         (fts_build): When not calling fts_stat, call set_stat_type
53852         to propagate dirent.d_type info to fts_read caller.
53853         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53854         fts_statp->st_mode type information may be valid.
53855
53856 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53857
53858         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53859         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53860         <sds@gnu.org>.
53861
53862 2008-11-20  Bruno Haible  <bruno@clisp.org>
53863
53864         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53865         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53866         INCLUDE_NEXT.
53867         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53868         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53869         * modules/math (Makefile.am): Substitute
53870         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53871         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53872
53873 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53874             Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/stdint.in.h: Define all type macros so that their expansion is
53877         a single typedef'ed token. Fixes a compilation failure in Boost which
53878         does "using ::int8_t;".
53879
53880 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53881
53882         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53883         gl_MANYWARN_ALL_GCC.
53884         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53885         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53886         * modules/manywarnings: New file.
53887         * MODULES.html.sh: Mention manywarnings module.
53888
53889 2008-11-18  Bruno Haible  <bruno@clisp.org>
53890
53891         * doc/gnulib-tool.texi (Unit tests): New section.
53892
53893 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53894
53895         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53896         paths like 'lib/po/foo.po'.
53897
53898 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53899
53900         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53901         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53902
53903 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53904
53905         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53906         parameter works.
53907
53908 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53909
53910         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53911
53912 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53913
53914         * modules/parse-duration-tests: New file.
53915         * tests/test-parse-duration.sh: New file.
53916         * tests/test-parse-duration.c: New file.
53917
53918         New module 'parse-duration'.
53919         * lib/parse-duration.h: New file.
53920         * lib/parse-duration.c: New file.
53921         * modules/parse-duration: New file.
53922
53923 2008-11-17  Bruno Haible  <bruno@clisp.org>
53924
53925         * tests/test-select-out.sh: Comment out the first pipe test.
53926         Reported by Simon Josefsson.
53927
53928 2008-11-17  Bruno Haible  <bruno@clisp.org>
53929
53930         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53932         gl_HOSTENT.
53933
53934 2008-11-17  Bruno Haible  <bruno@clisp.org>
53935
53936         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53937         -lnetwork and -lnet. Needed for Haiku and BeOS.
53938
53939 2008-11-16  Bruno Haible  <bruno@clisp.org>
53940
53941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53942
53943 2008-11-16  Bruno Haible  <bruno@clisp.org>
53944
53945         Avoid test failure on Haiku.
53946         * tests/test-fsync.c: Include <errno.h>.
53947         (main): Don't require that fsync (0) fails.
53948
53949 2008-11-15  Bruno Haible  <bruno@clisp.org>
53950
53951         New module 'hostent'.
53952         * modules/hostent: New file.
53953         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53954
53955 2008-11-15  Bruno Haible  <bruno@clisp.org>
53956
53957         New module 'servent'.
53958         * modules/servent: New file.
53959         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53960
53961 2008-11-15  Bruno Haible  <bruno@clisp.org>
53962
53963         Avoid generating same test program with two different rules.
53964         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53965         test-frexp to test-frexp-nolibm.
53966         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53967         test-frexpl to test-frexpl-nolibm.
53968
53969 2008-11-15  Bruno Haible  <bruno@clisp.org>
53970
53971         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53972         $(FREXPL_LIBM).
53973
53974 2008-11-15  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/netdb.in.h: Activate the definitions also when the system's
53977         <netdb.h> has 'struct addrinfo'.
53978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53979         EAI_OVERFLOW or AI_NUMERICSERV.
53980         * doc/posix-headers/netdb.texi: Document the problem.
53981
53982 2008-11-15  Bruno Haible  <bruno@clisp.org>
53983
53984         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53985
53986         Make the 'sched' module work on platforms where <sched.h> exists but
53987         is incomplete (such as Haiku).
53988         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53989         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53990         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53991         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53992         HAVE_STRUCT_SCHED_PARAM.
53993         * modules/sched (Depends-on): Add include_next.
53994         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53995         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53996         * doc/posix-headers/sched.texi: Document the issue.
53997
53998 2008-11-13  Jim Meyering  <meyering@redhat.com>
53999
54000         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54001         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54002         test would fail due to the difference in the Report bugs to ...
54003         line.  The expected address is empty, "<>", while the actual
54004         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54005
54006 2008-11-12  Bruno Haible  <bruno@clisp.org>
54007
54008         lstat: don't compile lstat.c on systems lacking lstat
54009         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54010         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54011         Reported by Daniel P. Berrange via Jim Meyering.
54012
54013 2008-11-12  Jim Meyering  <meyering@redhat.com>
54014
54015         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54016
54017 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54018
54019         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54020         instead.
54021
54022 2008-11-12  Bruno Haible  <bruno@clisp.org>
54023
54024         * lib/unicodeio.c: Include unistr.h.
54025         (utf8_wctomb): Remove function.
54026         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54027
54028 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54029
54030         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54031         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54032         <bruno@clisp.org>.
54033         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54034
54035 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54036
54037         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54038         * doc/gnulib.texi: Add section for warnings.
54039
54040 2008-11-11  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/sockets.h: Add a comment.
54043
54044 2008-11-11  Karl Berry  <karl@gnu.org>
54045
54046         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54047
54048 2008-11-11  Eric Blake  <ebb9@byu.net>
54049
54050         fdl.texi: avoid git symlinks
54051         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54052
54053 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54054
54055         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54056
54057 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54058
54059         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54060         (gl_WARN_ADD): Substitute $2 if literal.
54061
54062 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54063
54064         * m4/warning.m4: Remove.
54065
54066 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54067
54068         * m4/warnings.m4: Almost complete rewrite. :-)
54069
54070 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54071
54072         * modules/warnings: New module.
54073         * m4/warnings.m4: New file.
54074         * MODULES.html.sh: Mention warnings module.
54075         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54076         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54077
54078 2008-11-10  Eric Blake  <ebb9@byu.net>
54079
54080         fdl.texi: make a symlink to the latest version
54081         * doc/standards.texi: Revert today's earlier change.
54082         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54083         * doc/fdl.texi: ...and replace this with a symlink to the newer
54084         fdl-1.3.texi.
54085
54086 2008-11-10  Bruno Haible  <bruno@clisp.org>
54087
54088         * tests/test-select-fd.c (main): Accept the result file name as fourth
54089         argument.
54090         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54091         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54092
54093 2008-11-10  Bruno Haible  <bruno@clisp.org>
54094
54095         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54096         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54097         as autoconf-substituted macros.
54098         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54100         gl_NETDB_H_DEFAULTS. Set these variables.
54101         * modules/netdb (Makefile.am): Substitute these variables.
54102
54103 2008-11-10  Eric Blake  <ebb9@byu.net>
54104
54105         standards.texi: include correct file for FDL 1.3
54106         * doc/standards.texi (GNU Free Documentation License): Change
54107         include file to pull in FDL 1.3, not 1.2.
54108
54109         fdl.texi: revert accidental change to license
54110         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54111
54112 2008-11-10  Bruno Haible  <bruno@clisp.org>
54113
54114         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54115         cross-compiling guesses also when the native compile gives no result.
54116
54117 2008-11-10  Bruno Haible  <bruno@clisp.org>
54118
54119         * lib/spawni.c (__spawni): Force variable into the stack.
54120
54121 2008-11-10  Bruno Haible  <bruno@clisp.org>
54122
54123         Add support for Haiku.
54124         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54125         glibc and BeOS, but also on Haiku.
54126         * lib/fpurge.c (fpurge): Likewise.
54127         * lib/freadable.c (freadable): Likewise.
54128         * lib/freadahead.c (freadahead): Likewise.
54129         * lib/freading.c (freading): Likewise.
54130         * lib/freadptr.c (freadptr): Likewise.
54131         * lib/freadseek.c (freadptrinc): Likewise.
54132         * lib/fseeko.c (rpl_fseeko): Likewise.
54133         * lib/fseterr.c (fseterr): Likewise.
54134         * lib/fwritable.c (fwritable): Likewise.
54135         * lib/fwriting.c (fwriting): Likewise.
54136         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54137
54138 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54139
54140         * lib/config.charset: Treat Haiku like BeOS.
54141
54142 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54143
54144         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54145         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54146
54147 2008-11-08  Bruno Haible  <bruno@clisp.org>
54148
54149         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54150         AC_CACHE_CHECK.
54151
54152 2008-11-08  Bruno Haible  <bruno@clisp.org>
54153
54154         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54155
54156 2008-11-08  Bruno Haible  <bruno@clisp.org>
54157
54158         * tests/test-select-fd.c: New file.
54159         * tests/test-select-in.sh: New file.
54160         * tests/test-select-out.sh: New file.
54161         * tests/test-select-stdin.c: New file.
54162         * modules/select-tests (Files): Add the new files.
54163         (Depends-on): Add gettimeofday.
54164         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54165         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54166         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54167
54168 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54169             Bruno Haible  <bruno@clisp.org>
54170
54171         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54172
54173 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54174
54175         * build-aux/pmccabe2html: Added support for C++ source files.
54176
54177 2008-11-05  Ben Pfaff  <blp@gnu.org>
54178
54179         Fix lib/close.c build on Windows.
54180         * modules/close (Files): Add lib/w32sock.h.
54181
54182 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54183
54184         Accept Bison's NEWS format.
54185         * build-aux/announce-gen (print_news_deltas): Tweak
54186         $re_prefix.
54187
54188 2008-11-04  Bruno Haible  <bruno@clisp.org>
54189
54190         * modules/random_r (Maintainer): Add glibc.
54191
54192 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54193
54194         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54195         by karl@freefriends.org (Karl Berry).
54196         * doc/alloca.texi: Likewise.
54197         * doc/c-ctype.texi: Likewise.
54198         * doc/c-strcase.texi: Likewise.
54199         * doc/c-strcaseeq.texi: Likewise.
54200         * doc/c-strcasestr.texi: Likewise.
54201         * doc/c-strstr.texi: Likewise.
54202         * doc/c-strtod.texi: Likewise.
54203         * doc/c-strtold.texi: Likewise.
54204         * doc/ctime.texi: Likewise.
54205         * doc/error.texi: Likewise.
54206         * doc/fdl.texi: Likewise.
54207         * doc/gcd.texi: Likewise.
54208         * doc/getdate.texi: Likewise.
54209         * doc/gnulib-intro.texi: Likewise.
54210         * doc/gnulib-tool.texi: Likewise.
54211         * doc/gnulib.texi: Likewise.
54212         * doc/inet_ntoa.texi: Likewise.
54213         * doc/maintain.texi: Likewise.
54214         * doc/make-stds.texi: Likewise.
54215         * doc/quote.texi: Likewise.
54216         * doc/regexprops-generic.texi: Likewise.
54217         * doc/standards.texi: Likewise.
54218         * doc/verify.texi: Likewise.
54219         * doc/visibility.texi: Likewise.
54220         * doc/gnulib.texi (GNU Free Documentation License): Include
54221         fdl-1.3.texi instead of fdl.texi.
54222
54223 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54224
54225         * doc/fdl-1.3.texi: New file, from
54226         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54227         * modules/fdl-1.3: Add.
54228         * MODULES.html.sh: Add fdl-1.3.
54229
54230 2008-11-03  Bruno Haible  <bruno@clisp.org>
54231
54232         Make determination of absolute name of header file work with AIX xlc.
54233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54234         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54235         preprocessing.
54236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54237         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54238
54239 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54240
54241         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54242         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54243         <ludo@gnu.org>.
54244
54245 2008-11-02  Bruno Haible  <bruno@clisp.org>
54246
54247         Mark 'strpbrk' obsolete.
54248         * modules/strpbrk (Status, Notice): New sections.
54249         * modules/strtok_r (Depends-on): Add strpbrk.
54250
54251 2008-11-02  Bruno Haible  <bruno@clisp.org>
54252
54253         Mark 'strdup' obsolete.
54254         * modules/strdup (Status, Notice): New sections.
54255         * modules/findprog (Depends-on): Add strdup.
54256         * modules/getaddrinfo (Depends-on): Likewise.
54257         * modules/localename (Depends-on): Likewise.
54258         * modules/relocatable-lib (Depends-on): Likewise.
54259         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54260         * modules/relocatable-prog (Depends-on): Likewise.
54261         * modules/trim (Depends-on): Likewise.
54262         * modules/unictype/gen-ctype (Depends-on): Likewise.
54263         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54264
54265 2008-11-02  Bruno Haible  <bruno@clisp.org>
54266
54267         Mark 'strcspn' obsolete.
54268         * modules/strcspn (Status, Notice): New sections.
54269
54270 2008-11-02  Bruno Haible  <bruno@clisp.org>
54271
54272         Mark 'rmdir' obsolete.
54273         * modules/rmdir (Status, Notice): New sections.
54274         * modules/clean-temp (Depends-on): Add rmdir.
54275         * modules/openat (Depends-on): Likewise.
54276
54277 2008-11-02  Bruno Haible  <bruno@clisp.org>
54278
54279         Mark 'raise' obsolete.
54280         * modules/raise (Status, Notice): New sections.
54281         (Include): Specify <signal.h>.
54282         * modules/stdio (Depends-on): Add raise.
54283         * modules/write (Depends-on): Likewise.
54284
54285 2008-11-02  Bruno Haible  <bruno@clisp.org>
54286
54287         Mark 'memset' obsolete.
54288         * modules/memset (Status, Notice): New sections.
54289
54290 2008-11-02  Bruno Haible  <bruno@clisp.org>
54291
54292         Mark 'memmove' obsolete.
54293         * modules/memmove (Status, Notice): New sections.
54294         * modules/argp (Depends-on): Add memmove.
54295         * modules/argz (Depends-on): Likewise.
54296         * modules/canonicalize (Depends-on): Likewise.
54297         * modules/canonicalize-lgpl (Depends-on): Likewise.
54298         * modules/fts (Depends-on): Likewise.
54299         * modules/getcwd (Depends-on): Likewise.
54300         * modules/human (Depends-on): Likewise.
54301         * modules/regex (Depends-on): Likewise.
54302         * modules/striconveh (Depends-on): Likewise.
54303         * modules/trim (Depends-on): Likewise.
54304         * modules/unistr/u8-move (Depends-on): Likewise.
54305         * modules/unistr/u16-move (Depends-on): Likewise.
54306         * modules/unistr/u32-move (Depends-on): Likewise.
54307
54308 2008-11-02  Bruno Haible  <bruno@clisp.org>
54309
54310         Mark 'memcpy' obsolete.
54311         * modules/memcpy (Status, Notice): New sections.
54312
54313 2008-11-02  Bruno Haible  <bruno@clisp.org>
54314
54315         Mark 'memcmp' obsolete.
54316         * modules/memcmp (Status, Notice): New sections.
54317         * modules/argmatch (Depends-on): Add memchr.
54318         * modules/backupfile (Depends-on): Likewise.
54319         * modules/c-strcasestr (Depends-on): Likewise.
54320         * modules/crypto/des (Depends-on): Likewise.
54321         * modules/csharpcomp (Depends-on): Likewise.
54322         * modules/fnmatch (Depends-on): Likewise.
54323         * modules/git-merge-changelog (Depends-on): Likewise.
54324         * modules/isnand (Depends-on): Likewise.
54325         * modules/isnand-nolibm (Depends-on): Likewise.
54326         * modules/isnanf (Depends-on): Likewise.
54327         * modules/isnanf-nolibm (Depends-on): Likewise.
54328         * modules/isnanl (Depends-on): Likewise.
54329         * modules/isnanl-nolibm (Depends-on): Likewise.
54330         * modules/mbchar (Depends-on): Likewise.
54331         * modules/memcoll (Depends-on): Likewise.
54332         * modules/quotearg (Depends-on): Likewise.
54333         * modules/regex (Depends-on): Likewise.
54334         * modules/relocatable-prog (Depends-on): Likewise.
54335         * modules/same (Depends-on): Likewise.
54336         * modules/signbit (Depends-on): Likewise.
54337         * modules/strcasestr-simple (Depends-on): Likewise.
54338         * modules/unictype/gen-ctype (Depends-on): Likewise.
54339         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54340         * modules/uniname/uniname (Depends-on): Likewise.
54341         * modules/unistr/u8-cmp (Depends-on): Likewise.
54342
54343 2008-11-02  Bruno Haible  <bruno@clisp.org>
54344
54345         Mark 'memchr' obsolete.
54346         * modules/memchr (Status, Notice): New sections.
54347         * modules/argp (Depends-on): Add memchr.
54348         * modules/base64 (Depends-on): Likewise.
54349         * modules/c-strcasestr (Depends-on): Likewise.
54350         * modules/chdir-long (Depends-on): Likewise.
54351         * modules/fnmatch (Depends-on): Likewise.
54352         * modules/getsubopt (Depends-on): Likewise.
54353         * modules/git-merge-changelog (Depends-on): Likewise.
54354         * modules/glob (Depends-on): Likewise.
54355         * modules/strcasestr-simple (Depends-on): Likewise.
54356         * modules/strnlen (Depends-on): Likewise.
54357
54358 2008-11-02  Bruno Haible  <bruno@clisp.org>
54359
54360         Mark 'atexit' obsolete.
54361         * modules/atexit (Status, Notice): New sections.
54362         * modules/chdir-long (Depends-on): Add atexit.
54363         * modules/wait-process (Depends-on): Likewise.
54364
54365 2008-11-02  Bruno Haible  <bruno@clisp.org>
54366
54367         * gnulib-tool: New option --with-obsolete.
54368         (func_usage): Document it.
54369         (func_modules_transitive_closure): Drop obsolete dependencies if
54370         incobsolete is not true.
54371         (func_import): Read and save the incobsolete variable to the cache.
54372
54373 2008-11-02  Bruno Haible  <bruno@clisp.org>
54374
54375         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54376         * gnulib-tool: New option --extract-status.
54377         (func_usage): Document it.
54378         (sed_extract_prog): Recognize it.
54379         (func_get_status): New function.
54380
54381 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54382
54383         * modules/sockets (License): Change from LGPL to LGPLv2+.
54384
54385 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54386
54387         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54388
54389 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54390
54391         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54392         Mention times and sys_times.
54393         * modules/sys_times, modules/sys_times-tests: New modules.
54394         * modules/times, modules/times-tests: Likewise
54395         * m4/sys_times_h.m4: New file.
54396         * lib/sys_times.in.h: Likewise
54397         * lib/times.c: Likewise.
54398         * tests/test-sys_times.c: Likewise.
54399         * tests/test-times.c: Likewise.
54400         * doc/posix-headers/sys_times.texi: Update.
54401         * doc/posix-functions/times.texi: Update.
54402
54403 2008-10-28  Jim Meyering  <meyering@redhat.com>
54404
54405         * modules/tempname (Depends-on): Add lstat.
54406
54407         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54408
54409 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54410
54411         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54412         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54413         using idiom used elsewhere in gnulib.
54414
54415 2008-10-27  Jim Meyering  <meyering@redhat.com>
54416
54417         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54418
54419 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54420
54421         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54422         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54423         programs.
54424         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54425
54426 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54427
54428         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54429
54430 2008-10-27  Bruno Haible  <bruno@clisp.org>
54431
54432         * tests/test-lstat.c: Include <stdio.h>.
54433
54434 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54435
54436         * modules/lstat-tests: New module.
54437         * tests/test-lstat.c: New file.
54438
54439 2008-10-26  Jim Meyering  <meyering@redhat.com>
54440
54441         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54442
54443 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54444             Bruno Haible  <bruno@clisp.org>
54445
54446         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54447         * modules/configmake (Include): Add a note that the include must come
54448         after all system headers.
54449         * lib/javaversion.c: Include configmake.h after all other includes.
54450
54451 2008-10-26  Bruno Haible  <bruno@clisp.org>
54452
54453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54454         HAVE_STRUCT_RANDOM_DATA to 1.
54455         (gl_STDLIB_H): Simplify.
54456
54457 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54458
54459         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54460         substitute HAVE_STRUCT_RANDOM_DATA.
54461         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54462         random_data.
54463         * modules/stdlib (Makefile.am): Substitute
54464         HAVE_STRUCT_RANDOM_DATA.
54465
54466 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54467
54468         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54469         * doc/gnulib-intro.texi (Copyright): Likewise.
54470
54471 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54472
54473         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54474         findings.
54475
54476 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54477             Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/unistd.in.h: Include <winsock2.h>.
54480         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54481         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54482         Provide dummy declarations.
54483         (gethostname): Override.
54484         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54486         gl_PREREQ_SYS_H_WINSOCK2.
54487         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54488         * doc/posix-functions/gethostname.texi: More details.
54489
54490 2008-10-25  Bruno Haible  <bruno@clisp.org>
54491
54492         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54493         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54494         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54495
54496         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54497         here ...
54498         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54500         gl_UNISTD_H_DEFAULTS.
54501
54502 2008-10-25  Eric Blake  <ebb9@byu.net>
54503
54504         signbit: avoid spurious compiler failure
54505         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54506         declarations inside function.
54507
54508 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54509             Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54512         * modules/random_r (Depends-on): Add stdint.
54513
54514 2008-10-24  Bruno Haible  <bruno@clisp.org>
54515
54516         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54517         Eggert.
54518         * modules/strerror (License): Likewise.
54519
54520 2008-10-24  Jim Meyering  <meyering@redhat.com>
54521
54522         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54523         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54524
54525 2008-10-24  Eric Blake  <ebb9@byu.net>
54526
54527         getgroups: fix compilation when getgroups is available
54528         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54529         but with <config.h> override of getgroups disabled.
54530
54531 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54532
54533         * doc/gnulib.texi (Header files): Add note about C++ problems.
54534         Explained by Bruno Haible <bruno@clisp.org>.
54535
54536 2008-10-23  Bruno Haible  <bruno@clisp.org>
54537
54538         Define a dummy SA_NODEFER macro on Interix.
54539         * lib/signal.in.h (SA_NODEFER): Define fallback.
54540         Reported by Aleksey Cheusov <cheusov@tut.by> via
54541         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54542
54543 2008-10-23  Bruno Haible  <bruno@clisp.org>
54544
54545         * modules/freadahead (License): Change to LGPLv2+.
54546         Suggested by Simon Josefsson.
54547
54548 2008-10-23  Jim Meyering  <meyering@redhat.com>
54549
54550         random_r: new module
54551         * modules/random_r: New file.
54552         * m4/random_r.m4: New file.
54553         * lib/random_r.c: New file, from glibc.
54554         * modules/random_r-tests: New file.
54555         * tests/test-random_r.c: New file.
54556         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54557          Declare.
54558         (RAND_MAX): Define.
54559         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54560         * modules/stdlib: Substitute them, too.
54561         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54562         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54563         * doc/glibc-functions/random_r.texi: Likewise.
54564         * doc/glibc-functions/setstate_r.texi: Likewise.
54565         * doc/glibc-functions/srandom_r.texi: Likewise.
54566         * config/srclist.txt: Mention it.
54567
54568 2008-10-23  David Lutterkort  <lutter@redhat.com>
54569
54570         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54571         link requirement
54572
54573 2008-10-23  Jim Meyering  <meyering@redhat.com>
54574
54575         selinux-h: mark parameters of stub functions as intentionally unused
54576         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54577         * lib/se-context.in.h: Likewise.
54578
54579 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54580
54581         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54582
54583 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54584
54585         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54586
54587 2008-10-22  Eric Blake  <ebb9@byu.net>
54588
54589         glthread/thread: avoid compiler warning
54590         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54591         Add unreachable abort to silence compiler.
54592
54593 2008-10-22  Eric Blake  <ebb9@byu.net>
54594
54595         netdb: also supply struct addrinfo for cygwin 1.5.x
54596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54597         older cygwin.
54598         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54599         cygwin.
54600         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54601
54602 2008-10-22  Bruno Haible  <bruno@clisp.org>
54603
54604         * users.txt: Update entry about pspp.
54605
54606 2008-10-21  Bruno Haible  <bruno@clisp.org>
54607
54608         Simplification.
54609         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54610         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54611
54612         Simplification.
54613         * lib/ioctl.c (ioctl): Don't undefine.
54614         * lib/socket.c (socket): Don't undefine.
54615
54616         Remove unused module indicator macros.
54617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54618         GNULIB_$1 as a C macro.
54619
54620         * doc/posix-functions/close.texi: Undo last change.
54621         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54622         Windows platforms.
54623
54624 2008-10-21  Bruno Haible  <bruno@clisp.org>
54625
54626         Add gethostname() declaration to <unistd.h>.
54627         * lib/unistd.in.h (gethostname): New declaration.
54628         * lib/gethostname.c: Include <unistd.h>.
54629         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54630         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54632         and HAVE_GETHOSTNAME.
54633         * modules/gethostname (Depends-on): Add unistd.
54634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54635         (Include): Specify <unistd.h>.
54636         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54637         HAVE_GETHOSTNAME.
54638         * tests/test-gethostname.c: Include <unistd.h> first.
54639
54640 2008-10-21  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54643         * modules/select-tests (Depends-on): Likewise.
54644         Reported by Simon Josefsson.
54645
54646 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54647
54648         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54649         * lib/accept.c: New file, based on winsock.c.
54650         * lib/bind.c: New file, based on winsock.c.
54651         * lib/connect.c: New file, based on winsock.c.
54652         * lib/getpeername.c: New file, based on winsock.c.
54653         * lib/getsockname.c: New file, based on winsock.c.
54654         * lib/getsockopt.c: New file, based on winsock.c.
54655         * lib/ioctl.c: New file, based on winsock.c.
54656         * lib/listen.c: New file, based on winsock.c.
54657         * lib/recv.c: New file, based on winsock.c.
54658         * lib/recvfrom.c: New file, based on winsock.c.
54659         * lib/send.c: New file, based on winsock.c.
54660         * lib/sendto.c: New file, based on winsock.c.
54661         * lib/setsockopt.c: New file, based on winsock.c.
54662         * lib/shutdown.c: New file, based on winsock.c.
54663         * lib/socket.c: New file, based on winsock.c.
54664         * lib/w32sock.h: New file, based on winsock.c.
54665         * lib/winsock.c: Remove file.
54666         * modules/accept: Likewise.
54667         * modules/bind: Likewise.
54668         * modules/connect: Likewise.
54669         * modules/getpeername: Likewise.
54670         * modules/getsockname: Likewise.
54671         * modules/getsockopt: Likewise.
54672         * modules/ioctl: Likewise.
54673         * modules/listen: Likewise.
54674         * modules/recv: Likewise.
54675         * modules/recvfrom: Likewise.
54676         * modules/send: Likewise.
54677         * modules/sendto: Likewise.
54678         * modules/setsockopt: Likewise.
54679         * modules/shutdown: Likewise.
54680         * modules/socket: Use socket.c instead of winsock.c.
54681         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54682         * doc/posix-functions/accept.texi: Doc fix.
54683         * doc/posix-functions/bind.texi: Doc fix.
54684         * doc/posix-functions/close.texi: Doc fix.
54685         * doc/posix-functions/connect.texi: Doc fix.
54686         * doc/posix-functions/getpeername.texi: Doc fix.
54687         * doc/posix-functions/getsockname.texi: Doc fix.
54688         * doc/posix-functions/getsockopt.texi: Doc fix.
54689         * doc/posix-functions/ioctl.texi: Doc fix.
54690         * doc/posix-functions/listen.texi: Doc fix.
54691         * doc/posix-functions/recv.texi: Doc fix.
54692         * doc/posix-functions/recvfrom.texi: Doc fix.
54693         * doc/posix-functions/send.texi: Doc fix.
54694         * doc/posix-functions/sendto.texi: Doc fix.
54695         * doc/posix-functions/setsockopt.texi: Doc fix.
54696         * doc/posix-functions/shutdown.texi: Doc fix.
54697         * doc/posix-functions/socket.texi: Doc fix.
54698
54699 2008-10-20  Bruno Haible  <bruno@clisp.org>
54700
54701         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54702         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54703         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54704         as an alias for SIGABRT.
54705         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54706         (sigaction): Map it to SIGABRT.
54707         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54708
54709 2008-10-20  Bruno Haible  <bruno@clisp.org>
54710
54711         * lib/fts.c: Don't include lstat.h.
54712         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54713
54714         Move the lstat() declaration to <sys/stat.h>.
54715         * lib/lstat.h: Remove file.
54716         * lib/sys_stat.in.h: Add special invocation convention.
54717         (lstat): New declaration.
54718         * lib/lstat.c (orig_lstat): New function.
54719         (rpl_lstat): Use orig_lstat instead of lstat.
54720         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54721         AC_C_INLINE. Set REPLACE_LSTAT.
54722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54723         and REPLACE_LSTAT.
54724         * modules/lstat (Files): Remove lib/lstat.h.
54725         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54726         (Include): Specify <sys/stat.h> instead of lstat.h.
54727         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54728         REPLACE_LSTAT.
54729         * NEWS: Mention the change.
54730
54731 2008-10-20  Bruno Haible  <bruno@clisp.org>
54732
54733         * modules/posix_spawn-tests: New file.
54734         * tests/test-posix_spawn3.c: New file.
54735
54736 2008-10-20  Bruno Haible  <bruno@clisp.org>
54737
54738         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54739         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54740         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54741         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54742         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54743
54744 2008-10-20  Bruno Haible  <bruno@clisp.org>
54745
54746         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54747         of posix_spawn on AIX 5.3.
54748
54749 2008-10-20  Bruno Haible  <bruno@clisp.org>
54750
54751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54752
54753 2008-10-20  Bruno Haible  <bruno@clisp.org>
54754
54755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54756         of AC_LANG_PROGRAM.
54757
54758 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54759
54760         * lib/netdb.in.h: Don't define GNU specific constants until they
54761         are supported or needed.  Reported by Bruno Haible
54762         <bruno@clisp.org>.
54763
54764 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54765
54766         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54767
54768 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54769
54770         * lib/getaddrinfo.h: Remove file.
54771         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54772         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54773         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54774         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54775         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54776         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54777         * tests/test-getaddrinfo.c: Likewise.
54778         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54779         * NEWS: Mention change.
54780
54781 2008-10-19  Bruno Haible  <bruno@clisp.org>
54782
54783         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54784
54785 2008-10-19  Bruno Haible  <bruno@clisp.org>
54786
54787         * lib/wait-process.c: Include simply <sys/wait.h>.
54788         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54789         WIFSTOPPED): Remove fallback definitions.
54790         * modules/wait-process (Depends-on): Add sys_wait.
54791
54792         New module 'sys_wait'.
54793         * modules/sys_wait: New file.
54794         * lib/sys_wait.in.h: New file, partially copied from
54795         lib/wait-process.c.
54796         * m4/sys_wait_h.m4: New file.
54797         * doc/posix-headers/sys_wait.texi: Mention the new module.
54798
54799 2008-10-19  Bruno Haible  <bruno@clisp.org>
54800
54801         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54802
54803 2008-10-19  Bruno Haible  <bruno@clisp.org>
54804
54805         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54806         * lib/wait-process.c (WAIT_T): Remove type.
54807         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54808         (wait_subprocess): Update.
54809
54810 2008-10-19  Bruno Haible  <bruno@clisp.org>
54811
54812         New module 'atoll'.
54813         * modules/atoll: New file.
54814         * lib/stdlib.in.h (atoll): New declaration.
54815         * lib/atoll.c: New file, from glibc with modifications.
54816         * m4/atoll.m4: New file.
54817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54818         HAVE_ATOLL.
54819         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54820         * doc/posix-functions/atoll.texi: Mention the new module.
54821
54822 2008-10-19  Bruno Haible  <bruno@clisp.org>
54823
54824         Add strtoull() declaration to <stdlib.h>.
54825         * lib/stdlib.in.h (strtoull): New declaration.
54826         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54827         Set HAVE_STRTOULL.
54828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54829         HAVE_STRTOULL.
54830         * modules/strtoull (Depends-on): Add stdlib.
54831         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54832         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54833         HAVE_STRTOULL.
54834
54835 2008-10-19  Bruno Haible  <bruno@clisp.org>
54836
54837         Add strtoll() declaration to <stdlib.h>.
54838         * lib/stdlib.in.h (strtoll): New declaration.
54839         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54840         Set HAVE_STRTOLL.
54841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54842         HAVE_STRTOLL.
54843         * modules/strtoll (Depends-on): Add stdlib.
54844         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54845         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54846
54847 2008-10-19  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/bcopy (Depends-on): Add strings.
54850         (Include): Specify <strings.h>.
54851
54852 2008-10-19  Bruno Haible  <bruno@clisp.org>
54853
54854         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54855
54856 2008-10-19  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54859         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54860         mingw.
54861
54862 2008-10-19  Bruno Haible  <bruno@clisp.org>
54863
54864         * lib/atanl.c: Don't include isnanl.h.
54865         * lib/cosl.c: Likewise.
54866         * lib/ldexpl.c: Likewise.
54867         * lib/logl.c: Likewise.
54868         * lib/sinl.c: Likewise.
54869         * lib/sqrtl.c: Likewise.
54870         * lib/tanl.c: Likewise.
54871
54872         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54873         * lib/isnanf.h: Remove file.
54874         * lib/isnand.h: Remove file.
54875         * lib/isnanl.h: Remove file.
54876         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54877         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54878         macros.
54879         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54880         HAVE_ISNANF, don't define it as a C macro.
54881         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54882         HAVE_ISNAND, don't define it as a C macro.
54883         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54884         HAVE_ISNANL, don't define it as a C macro.
54885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54886         HAVE_ISNAN[FDL].
54887         * modules/isnanf (Files): Remove lib/isnanf.h.
54888         (Depends-on): Add math.
54889         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54890         (Include): Specify <math.h> instead of isnanf.h.
54891         * modules/isnand (Files): Remove lib/isnand.h.
54892         (Depends-on): Add math.
54893         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54894         (Include): Specify <math.h> instead of isnand.h.
54895         * modules/isnanl (Files): Remove lib/isnanl.h.
54896         (Depends-on): Add math.
54897         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54898         (Include): Specify <math.h> instead of isnanl.h.
54899         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54900         HAVE_ISNAN[FDL].
54901         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54902         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54903         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54904         * NEWS: Mention the change.
54905
54906 2008-10-18  Bruno Haible  <bruno@clisp.org>
54907
54908         Add getusershell(), setusershell(), endusershell() declarations to
54909         <unistd.h>.
54910         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54911         declarations.
54912         * lib/getusershell.c: Include unistd.h.
54913         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54914         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54915         HAVE_GETUSERSHELL.
54916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54917         and HAVE_GETUSERSHELL.
54918         * modules/getusershell (Depends-on): Add unistd, extensions.
54919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54920         (Include): Specify <unistd.h>.
54921         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54922         HAVE_GETUSERSHELL.
54923
54924 2008-10-18  Bruno Haible  <bruno@clisp.org>
54925
54926         Add a getloadavg() declaration to <stdlib.h>.
54927         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54928         getloadavg declaration.
54929         (getloadavg): New declaration.
54930         * lib/getloadavg.c: Include <stdlib.h> first.
54931         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54932         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54933         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54935         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54936         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54938         (Include): Specify <stdlib.h>.
54939         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54940         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54941
54942 2008-10-18  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/dirchownmod.c: Don't include lchmod.h.
54945
54946         Move the lchmod() declaration to <sys/stat.h>.
54947         * lib/lchmod.h: Remove file.
54948         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54949         (lchmod): New declaration, moved here from lib/lchown.h.
54950         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54951         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54953         and HAVE_LCHMOD.
54954         * modules/lchmod (Files): Remove lib/lchmod.h.
54955         (Depends-on): Add sys_stat, extensions.
54956         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54957         (Include): Specify <sys/stat.h> instead of lchmod.h.
54958         * modules/sys_stat (Depends-on): Add link-warning.
54959         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54960         definition of GL_LINK_WARNING.
54961         * NEWS: Mention the change.
54962
54963 2008-10-18  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/fchdir.c: Don't include dirfd.h.
54966         * lib/fts.c: Likewise.
54967         * lib/getcwd.c: Likewise.
54968         * lib/glob.c: Likewise.
54969
54970         Move the dirfd() declaration to <dirent.h>.
54971         * lib/dirfd.h: Remove file.
54972         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54973         (dirfd): New declaration.
54974         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54975         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54976         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54977         HAVE_DECL_DIRFD.
54978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54979         HAVE_DECL_DIRFD.
54980         * modules/dirfd (Files): Remove lib/dirfd.h.
54981         (Depends-on): Add dirent, extensions.
54982         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54983         (Include): Specify <dirent.h> instead of dirfd.h.
54984         * modules/dirent (Depends-on): Add link-warning.
54985         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54986         definition of GL_LINK_WARNING.
54987         * NEWS: Mention the change.
54988
54989 2008-10-18  Bruno Haible  <bruno@clisp.org>
54990
54991         Move the euidaccess() declaration to <unistd.h>.
54992         * lib/euidaccess.h: Remove file.
54993         * lib/unistd.in.h (euidaccess): New declaration.
54994         * lib/euidaccess.c: Don't include euidaccess.h.
54995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54996         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54998         and HAVE_EUIDACCESS.
54999         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55000         (Depends-on): Add unistd.
55001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55002         (Include): Specify <unistd.h> instead of euidaccess.h.
55003         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55004         HAVE_EUIDACCESS.
55005         * NEWS: Mention the change.
55006
55007 2008-10-18  Bruno Haible  <bruno@clisp.org>
55008
55009         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55010
55011         Move the getdomainname() declaration to <unistd.h>.
55012         * lib/getdomainname.h: Remove file.
55013         * lib/unistd.in.h (getdomainname): New declaration.
55014         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55015         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55016         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55017         HAVE_GETDOMAINNAME.
55018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55019         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55020         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55021         (Depends-on): Add unistd, extensions.
55022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55023         (Includes): Specify <unistd.h> instead of getdomainname.h.
55024         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55025         HAVE_GETDOMAINNAME.
55026         * NEWS: Mention the change.
55027
55028 2008-10-18  Bruno Haible  <bruno@clisp.org>
55029
55030         * modules/dirent: New file.
55031         * m4/dirent_h.m4: New file.
55032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55033         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55034         * modules/fchdir (Files): Remove lib/dirent.in.h.
55035         (Depends-on): Add dirent.
55036         (Makefile.am): Move rules to modules/dirent.
55037         * doc/posix-headers/dirent.texi: Mention the new module.
55038
55039 2008-10-18  Bruno Haible  <bruno@clisp.org>
55040
55041         Avoid -Wunused-parameter warnings in public gnulib header files.
55042         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55043         macro.
55044         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55045
55046 2008-10-18  Bruno Haible  <bruno@clisp.org>
55047
55048         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55049         * doc/glibc-functions/error.texi: Mention the module 'error'.
55050         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55051         * doc/glibc-functions/getdomainname.texi: Mention the module
55052         'getdomainname'.
55053         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55054         * doc/glibc-functions/getpagesize.texi: Mention the module
55055         'getpagesize'.
55056         * doc/glibc-functions/getusershell.texi: Mention the module
55057         'getusershell'.
55058         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55059         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55060         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55061         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55062         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55063         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55064         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55065         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55066         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55067         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55068         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55069         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55070         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55071         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55072
55073 2008-10-17  Bruno Haible  <bruno@clisp.org>
55074
55075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55076         HP-UX and IRIX, use -0.0L.
55077         * tests/test-ceill.c (minus_zero): Likewise.
55078         * tests/test-floorl.c (minus_zero): Likewise.
55079         * tests/test-frexpl.c (minus_zero): Likewise.
55080         * tests/test-isnan.c (minus_zerol): Likewise.
55081         * tests/test-isnanl.h (minus_zero): Likewise.
55082         * tests/test-ldexpl.c (minus_zero): Likewise.
55083         * tests/test-roundl.c (minus_zero): Likewise.
55084         * tests/test-signbit.c (minus_zerol): Likewise.
55085         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55086         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55087         * tests/test-truncl.c (minus_zero): Likewise.
55088         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55089         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55090         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55091         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55092
55093 2008-10-17  Bruno Haible  <bruno@clisp.org>
55094
55095         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55096         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55097         that it gets activated only for gcc >= 3.0.
55098         * lib/dirent.in.h: Likewise.
55099         * lib/errno.in.h: Likewise.
55100         * lib/fcntl.in.h: Likewise.
55101         * lib/float.in.h: Likewise.
55102         * lib/iconv.in.h: Likewise.
55103         * lib/inttypes.in.h: Likewise.
55104         * lib/locale.in.h: Likewise.
55105         * lib/math.in.h: Likewise.
55106         * lib/netdb.in.h: Likewise.
55107         * lib/netinet_in.in.h: Likewise.
55108         * lib/search.in.h: Likewise.
55109         * lib/signal.in.h: Likewise.
55110         * lib/spawn.in.h: Likewise.
55111         * lib/stdarg.in.h: Likewise.
55112         * lib/stdint.in.h: Likewise.
55113         * lib/stdio.in.h: Likewise.
55114         * lib/stdlib.in.h: Likewise.
55115         * lib/string.in.h: Likewise.
55116         * lib/strings.in.h: Likewise.
55117         * lib/sys_file.in.h: Likewise.
55118         * lib/sys_ioctl.in.h: Likewise.
55119         * lib/sys_select.in.h: Likewise.
55120         * lib/sys_socket.in.h: Likewise.
55121         * lib/sys_stat.in.h: Likewise.
55122         * lib/sys_time.in.h: Likewise.
55123         * lib/sysexits.in.h: Likewise.
55124         * lib/time.in.h: Likewise.
55125         * lib/unistd.in.h: Likewise.
55126         * lib/wchar.in.h: Likewise.
55127         * lib/wctype.in.h: Likewise.
55128         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55129
55130 2008-10-17  Jim Meyering  <meyering@redhat.com>
55131
55132         ignore-value: don't depend on inline module
55133         * modules/ignore-value (Depends-on): Remove 'inline'.
55134         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55135         Suggestion from Bruno Haible.
55136
55137 2008-10-17  Bruno Haible  <bruno@clisp.org>
55138
55139         New implementation of condition variables for Win32.
55140         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55141         (gl_linked_waitqueue_t): New type.
55142         (gl_cond_t): Use it.
55143         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55144         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55145         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55146         (glthread_cond_init_func, glthread_cond_wait_func,
55147         glthread_cond_timedwait_func, glthread_cond_signal_func,
55148         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55149         Reimplemented on the basis of gl_linked_waitqueue_t.
55150         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55151         gl_waitqueue_t.
55152         (gl_rwlock_t): Update.
55153         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55154
55155 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55156
55157         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55158         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55159
55160 2008-10-17  Jim Meyering  <meyering@redhat.com>
55161
55162         ignore-value: new module
55163         * modules/ignore-value: New file.
55164         * lib/ignore-value.h: New file.
55165         * MODULES.html.sh (Compiler warning management): New section,
55166         just for this module.  More to come.
55167
55168 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55169
55170         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55171         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55172         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55173
55174 2008-10-16  Jim Meyering  <meyering@redhat.com>
55175
55176         openat-die.c: avoid 'no previous prototype' warning
55177         * lib/openat-die.c: Include "openat.h".
55178         Reported by Reuben Thomas <rrt@sc3d.org>.
55179
55180 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55181
55182         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55183         * lib/netdb.in.h: Fix typo.
55184         Reported by Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/netdb.in.h: Include sys/socket.h for platforms without
55187         netdb.h, to get structures like hostent on MinGW.
55188         * modules/netdb (Depends-on): Add sys_socket.
55189
55190 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55191
55192         * modules/netdb, modules/netdb-tests: New file.
55193         * m4/netdb_h.m4: New file.
55194         * lib/netdb.in.h: Add, currently just an empty file pending
55195         definitions.
55196         * tests/test-netdb.c: New file.
55197         * doc/posix-headers/netdb.texi: Mention that we replace it if
55198         needed.
55199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55200         netdb.
55201
55202 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55203
55204         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55205         with code.
55206
55207 2008-10-13  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/glthread/cond.c (glthread_cond_wait_func,
55210         glthread_cond_timedwait_func): Add a comment.
55211
55212 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55213
55214         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55215         * tests/test-select.c: Likewise,
55216
55217 2008-10-13  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/glthread/cond.c (glthread_cond_wait_func,
55220         glthread_cond_timedwait_func): Fix variable name.
55221         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55222
55223 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55224
55225         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55227         struct sockaddr.sa_len.
55228         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55229
55230 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55231
55232         * build-aux/pmccabe2html: Add css and css_url parameters.
55233
55234 2008-10-12  Bruno Haible  <bruno@clisp.org>
55235
55236         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55237         calling aclx_get.
55238         Reported by Rainer Tammer <tammer@tammer.net>.
55239
55240 2008-10-12  Bruno Haible  <bruno@clisp.org>
55241
55242         Use msvcrt aware primitives for creation/termination of Win32 threads.
55243         * lib/glthread/thread.c: Include <process.h>.
55244         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55245         (wrapper_func): Update signature.
55246         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55247
55248 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55249             Bruno Haible  <bruno@clisp.org>
55250
55251         Provide a Win32 implementation of the 'cond' module.
55252         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55253         * lib/glthread/cond.c (glthread_cond_init_func,
55254         glthread_cond_wait_func, glthread_cond_timedwait_func,
55255         glthread_cond_signal_func, glthread_cond_broadcast_func,
55256         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55257         * modules/cond (Dependencies): Add gettimeofday.
55258
55259 2008-10-11  Bruno Haible  <bruno@clisp.org>
55260
55261         Make sleep work on older versions of mingw.
55262         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55263         only whether it exists.
55264         * doc/posix-functions/sleep.texi: Mention the problem with older
55265         versions of mingw.
55266
55267 2008-10-11  Bruno Haible  <bruno@clisp.org>
55268
55269         New module 'shutdown'.
55270         * modules/shutdown: New file.
55271         * lib/sys_socket.in.h (shutdown): New declaration.
55272         * lib/winsock.c (shutdown): New function.
55273         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55274         GNULIB_SHUTDOWN.
55275         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55276         * doc/posix-functions/shutdown.texi: Document the new module.
55277
55278 2008-10-11  Jim Meyering  <meyering@redhat.com>
55279
55280         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55281
55282 2008-10-11  Bruno Haible  <bruno@clisp.org>
55283
55284         New module 'fclose'.
55285         * modules/fclose: New file.
55286         * lib/stdio.in.h (fclose): New declaration.
55287         * lib/fclose.c: New file.
55288         * m4/fclose.m4: New file.
55289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55290         REPLACE_FCLOSE.
55291         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55292         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55293         REPLACE_FCLOSE.
55294         * modules/close (Depends-on): fclose.
55295         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55296
55297 2008-10-11  Bruno Haible  <bruno@clisp.org>
55298
55299         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55300         set errno and don't call _close.
55301
55302 2008-10-10  Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55305         ACL, not afterwards. Fixes test failure on Cygwin.
55306
55307 2008-10-09  Ben Pfaff  <blp@gnu.org>
55308
55309         * build-aux/announce-gen: Fix gnulib version related part of usage
55310         message.  Die with a useful error message if no tarballs are
55311         found.
55312
55313 2008-10-10  Jim Meyering  <meyering@redhat.com>
55314
55315         bootstrap: use git's --depth=N option only if it's supported
55316         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55317         recognize the --depth option.  Reported by Pádraig Brady.
55318
55319 2008-10-09  Bruno Haible  <bruno@clisp.org>
55320
55321         New module 'ioctl'.
55322         * modules/ioctl: New file.
55323         * lib/sys_socket.in.h (ioctl): Remove declaration.
55324         * lib/winsock.c: Include <sys/ioctl.h>.
55325         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55326         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55327         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55328         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55329         * doc/posix-functions/ioctl.texi: Mention the new module.
55330
55331 2008-10-09  Bruno Haible  <bruno@clisp.org>
55332
55333         New module 'sys_ioctl'.
55334         * lib/sys_ioctl.in.h: New file.
55335         * m4/sys_ioctl_h.m4: New file.
55336         * modules/sys_ioctl: New file.
55337         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55338
55339 2008-10-09  Bruno Haible  <bruno@clisp.org>
55340
55341         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55342         * lib/winsock.c: Include <stdarg.h>.
55343         (rpl_ioctl): Change to second argument 'int' and then varargs.
55344
55345 2008-10-09  Bruno Haible  <bruno@clisp.org>
55346
55347         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55348         when the sys_socket module is present and the system has <winsock2.h>.
55349
55350 2008-10-09  Bruno Haible  <bruno@clisp.org>
55351
55352         * doc/posix-functions/close.texi: Mention module 'close' instead of
55353         module 'sys_socket'.
55354
55355 2008-10-09  Bruno Haible  <bruno@clisp.org>
55356
55357         * doc/glibc-headers/sys_ioctl.texi: New file.
55358         * doc/gnulib.texi: Include it.
55359
55360 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55361             Bruno Haible  <bruno@clisp.org>
55362
55363         Combine the two replacements of 'close'.
55364         * lib/sys_socket.in.h (close): Define to a reminder to include
55365         <unistd.h>.
55366         (_gl_close_fd_maybe_socket): New declaration.
55367         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55368         * lib/winsock.c (close): Remove undefinition.
55369         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55370         needed for the gnulib module 'close'.
55371         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55372         define to an error symbol or to a warning, if suitable.
55373         * lib/close.c: Include <sys/socket.h>.
55374         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55375         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55376         UNISTD_H_HAVE_WINSOCK2_H.
55377         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55379         UNISTD_H_HAVE_WINSOCK2_H.
55380         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55381         (configure.ac): Set a module indicator.
55382         (Makefile.am): Substitute GNULIB_CLOSE.
55383         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55384         * modules/poll-tests (Depends-on): Add close.
55385         * modules/select-tests (Depends-on): Likewise.
55386
55387 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55388             Bruno Haible  <bruno@clisp.org>
55389
55390         New module 'close'.
55391         * modules/close: New file.
55392         * lib/unistd.in.h (close): Move declaration out of the
55393         FCHDIR_REPLACEMENT scope.
55394         (_gl_unregister_fd): New declaration.
55395         * lib/close.c: New file.
55396         * lib/fchdir.c (rpl_close): Remove function.
55397         * m4/close.m4: New file.
55398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55399         close.
55400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55401         REPLACE_CLOSE.
55402         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55403         REPLACE_CLOSE.
55404         * modules/fchdir (Depends-on): Add close.
55405
55406 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55407             Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/fcntl.in.h (open): Simplify conditionals.
55410         (_gl_register_fd): New declaration.
55411         * lib/fchdir.c (rpl_open): Remove function.
55412         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55413         also.
55414         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55416         open.
55417
55418 2008-10-09  Jim Meyering  <meyering@redhat.com>
55419
55420         GNUmakefile: use the more name-space-friendly "_version"
55421         * top/GNUmakefile (_dummy): Update.
55422         (_version): Rename from "version".
55423
55424 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55425             Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55428         rpl_close.
55429         (_gl_register_fd): New function, extracted from rpl_open.
55430         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55431         (rpl_open, rpl_opendir): Use _gl_register_fd.
55432
55433 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55434
55435         Fix organization of 'open' replacement.
55436         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55437         (gl_FUNC_OPEN): Use it.
55438         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55439
55440 2008-10-08  Bruno Haible  <bruno@clisp.org>
55441
55442         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55443
55444 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55445
55446         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55447         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55448         listen).
55449
55450 2008-10-08  Eric Blake  <ebb9@byu.net>
55451
55452         GNUmakefile: add 'make version' target
55453         * top/GNUmakefile (_curr-ver): Split version update rules...
55454         (version): ...into a target.
55455
55456 2008-10-07  Bruno Haible  <bruno@clisp.org>
55457
55458         Use a more portable replacement expression for -0.0L.
55459         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55460         instead of -0.0L. Fix m4 quotation.
55461
55462         * tests/test-signbit.c: Include <float.h>.
55463         (minus_zero): New variable.
55464         (test_signbitl): Use minus_zero instead of -zero.
55465         * modules/signbit-tests (Depends-on): Add float.
55466
55467         * tests/test-ceill.c: Include <float.h>.
55468         (zero): Remove variable.
55469         (minus_zero): New variable.
55470         (main): Use minus_zero instead of -zero.
55471         * modules/ceill-tests (Depends-on): Add float.
55472
55473         * tests/test-floorl.c: Include <float.h>.
55474         (zero): Remove variable.
55475         (minus_zero): New variable.
55476         (main): Use minus_zero instead of -zero.
55477         * modules/floorl-tests (Depends-on): Add float.
55478
55479         * tests/test-roundl.c: Include <float.h>.
55480         (zero): Remove variable.
55481         (minus_zero): New variable.
55482         (main): Use minus_zero instead of -zero.
55483         * modules/roundl-tests (Depends-on): Add float.
55484
55485         * tests/test-truncl.c: Include <float.h>.
55486         (zero): Remove variable.
55487         (minus_zero): New variable.
55488         (main): Use minus_zero instead of -zero.
55489         * modules/truncl-tests (Depends-on): Add float.
55490
55491         * tests/test-frexpl.c (zero): Remove variable.
55492         (minus_zero): New variable.
55493         (main): Use minus_zero instead of -zero.
55494         * modules/frexpl-tests (Depends-on): Add float.
55495
55496         * tests/test-isnan.c (zerol): Remove variable.
55497         (minus_zerol): New variable.
55498         (test_long_double): Use minus_zerol instead of -zerol.
55499         * modules/isnan-tests (Depends-on): Add float.
55500
55501         * tests/test-isnanl.h (zero): Remove variable.
55502         (minus_zero): New variable.
55503         (main): Use minus_zero instead of -zero.
55504         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55505         * modules/isnanl-tests (Depends-on): Add float.
55506
55507         * tests/test-ldexpl.c (zero): Remove variable.
55508         (minus_zero): New variable.
55509         (main): Use minus_zero instead of -zero.
55510         * modules/ldexpl-tests (Depends-on): Add float.
55511
55512         * tests/test-snprintf-posix.h (zerol): Remove variable.
55513         (minus_zerol): New variable.
55514         (test_function): Use minus_zerol instead of -zerol.
55515         * modules/snprintf-posix-tests (Depends-on): Add float.
55516         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55517
55518         * tests/test-sprintf-posix.h (zerol): Remove variable.
55519         (minus_zerol): New variable.
55520         (test_function): Use minus_zerol instead of -zerol.
55521         * modules/sprintf-posix-tests (Depends-on): Add float.
55522         * modules/vsprintf-posix-tests (Depends-on): Add float.
55523
55524         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55525         (minus_zerol): New variable.
55526         (test_function): Use minus_zerol instead of -zerol.
55527         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55528
55529         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55530         (minus_zerol): New variable.
55531         (test_function): Use minus_zerol instead of -zerol.
55532         * modules/vasprintf-posix-tests (Depends-on): Add float.
55533
55534 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55535
55536         * MODULES.html.sh (Support for building documentation): Mention
55537         pmccabe2html.  Sort entries.
55538
55539         Add pmccabe2html module, from gnupdf.
55540         * build-aux/pmccabe.css: New file.
55541         * build-aux/pmccabe2html: New file.
55542         * m4/pmccabe2html.m4: New file.
55543         * modules/pmccabe2html: New file.
55544
55545 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55546
55547         flock: new module
55548         * MODULES.html.sh: Add to list of modules.
55549         * lib/flock.c: flock implementation for Windows and Unix systems
55550         which have fcntl.
55551         * doc/glibc-functions/flock.texi: Update documentation.
55552         * lib/sys_file.in.h: <sys/file.h> header file.
55553         * m4/flock.m4: M4 macros.
55554         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55555         * modules/flock: flock module.
55556         * modules/flock-tests: flock tests module.
55557         * modules/sys_file: sys/file.h module.
55558         * tests/test-flock.c: test suite for flock.
55559
55560 2008-10-06  Jim Meyering  <meyering@redhat.com>
55561
55562         bootstrap: check for LT_INIT more portably still ;-)
55563         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55564         Spotted by Bruno Haible.
55565
55566 2008-10-06  Eric Blake  <ebb9@byu.net>
55567
55568         test-signbit: avoid tripping Irix cc bug on -0.0L
55569         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55570         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55571         entire testsuite consistent and avoids an Irix 6.2 bug.
55572
55573 2008-10-05  Bruno Haible  <bruno@clisp.org>
55574             Jim Meyering  <jim@meyering.net>
55575
55576         Add an option for ignoring EPIPE during close_stdout.
55577         * lib/closeout.h: Include <stdbool.h>.
55578         (close_stdout_set_ignore_EPIPE): New declaration.
55579         * lib/closeout.c: Include <stdbool.h>.
55580         (ignore_EPIPE): New variable.
55581         (close_stdout_set_ignore_EPIPE): New function.
55582         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55583         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55584         failure.
55585         * modules/closeout (Depends-on): Add stdbool.
55586
55587 2008-10-05  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/accept: New file.
55590         * modules/bind: New file.
55591         * modules/connect: New file.
55592         * modules/getpeername: New file.
55593         * modules/getsockname: New file.
55594         * modules/getsockopt: New file.
55595         * modules/listen: New file.
55596         * modules/recv: New file.
55597         * modules/recvfrom: New file.
55598         * modules/send: New file.
55599         * modules/sendto: New file.
55600         * modules/setsockopt: New file.
55601         * modules/socket: New file.
55602         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55603         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55604         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55605         the particular module is requested. Add a link warning when the
55606         particular module is not requested.
55607         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55608         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55609         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55610         the particular module is requested.
55611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55612         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55613         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55614         * modules/sys_socket (Depends-on): Add link-warning.
55615         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55616         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55617         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55618         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55619         GL_LINK_WARNING.
55620         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55621         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55622         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55623         * doc/posix-functions/getpeername.texi: Mention the new module
55624         'getpeername'.
55625         * doc/posix-functions/getsockname.texi: Mention the new module
55626         'getsockname'.
55627         * doc/posix-functions/getsockopt.texi: Mention the new module
55628         'getsockopt'.
55629         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55630         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55631         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55632         * doc/posix-functions/send.texi: Mention the new module 'send'.
55633         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55634         * doc/posix-functions/setsockopt.texi: Mention the new module
55635         'setsockopt'.
55636         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55637         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55638         listen, connect, accept.
55639         * modules/select-tests (Depends-on): Likewise.
55640
55641 2008-10-05  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/winsock.c (strerror): Remove unused #undef.
55644         (rpl_close): Remove unused local variable.
55645
55646         * modules/sys_socket (Depends-on); Add errno.
55647
55648 2008-10-05  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55651         (select): Add a link warning when the 'select' module is not used.
55652         * modules/sys_select (Depends-on): Add link-warning.
55653         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55654         Suggested by Paolo Bonzini.
55655
55656 2008-10-05  Jim Meyering  <meyering@redhat.com>
55657
55658         bootstrap: check for LT_INIT more portably
55659         * build-aux/bootstrap: Avoid using grep -E, since it's not
55660         portable enough.  Suggestion from Bruno Haible.
55661
55662 2008-10-05  Bruno Haible  <bruno@clisp.org>
55663
55664         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55665         as being fixed by gnulib.
55666
55667 2008-10-05  Bruno Haible  <bruno@clisp.org>
55668
55669         * modules/select-tests: New file, mostly copied from
55670         modules/sys_select-tests.
55671         * tests/test-select.c: New file, mostly copied from
55672         tests/test-sys_select.c.
55673         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55674         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55675         (Makefile.am): Remove test_sys_select_LDADD.
55676
55677         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55678         to an undefined symbol, for an error message.
55679         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55680         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55681         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55682         winsock-select.c here.
55683         * modules/sys_select (Files): Remove lib/winsock-select.c.
55684         (Depends-on): Remove alloca.
55685         (Makefile.am): Substitute GNULIB_SELECT.
55686         * modules/select: New file.
55687         * doc/posix-functions/select.texi: Update.
55688
55689 2008-10-05  Bruno Haible  <bruno@clisp.org>
55690
55691         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55692         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55693         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55694         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55695         getdtablesize.
55696         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55697         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55698
55699 2008-10-05  Bruno Haible  <bruno@clisp.org>
55700
55701         * modules/getdtablesize-tests: New file.
55702         * tests/test-getdtablesize.c: New file.
55703
55704         New module 'getdtablesize'.
55705         * lib/unistd.in.h (getdtablesize): New declaration.
55706         * lib/getdtablesize.c: New file.
55707         * m4/getdtablesize.m4: New file.
55708         * modules/getdtablesize: New file.
55709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55710         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55711         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55712         HAVE_GETDTABLESIZE.
55713         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55714
55715 2008-10-05  Bruno Haible  <bruno@clisp.org>
55716
55717         * modules/sched (Makefile.am): Fix typo.
55718         Reported by Simon Josefsson.
55719
55720 2008-10-05  Jim Meyering  <meyering@redhat.com>
55721
55722         bootstrap: check for LT_INIT, too
55723         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55724         are deprecated.  Suggestion from Ralf Wildenhues.
55725
55726 2008-10-05  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55729         overriding them by ours.
55730         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55731
55732 2008-10-05  Jim Meyering  <meyering@redhat.com>
55733
55734         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55735         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55736         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55737
55738 2008-10-04  Bruno Haible  <bruno@clisp.org>
55739
55740         * modules/dup2 (License): Change to LGPLv2+.
55741         * modules/sleep (License): Likewise.
55742         * modules/perror (License): Likewise.
55743         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55744         Blake.
55745         * modules/signal (License): Likewise.
55746         * modules/sigprocmask (License): Likewise.
55747         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55748         Meyering.
55749
55750 2008-10-04  Bruno Haible  <bruno@clisp.org>
55751
55752         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55753         Reported by Rainer Tammer <tammer@tammer.net>.
55754
55755 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55756             Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55759         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55760         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55761
55762 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55763
55764         filevercmp: new module
55765         * lib/filevercmp.h: New function filevercmp comparing version strings.
55766         * lib/filevercmp.c: Implementation of filevercmp function.
55767         * modules/filevercmp: Module metadata.
55768         * tests/test-filevercmp.c: Unit test for new module.
55769         * modules/filevercmp-tests: Unit test metadata.
55770         * MODULES.html.sh: Add filevercmp module.
55771
55772 2008-10-03  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/c-ctype.h: Add comment.
55775         Reported by Jim Meyering.
55776
55777 2008-10-02  Bruno Haible  <bruno@clisp.org>
55778
55779         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55780
55781 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55782
55783         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55784         name of bootstrap.conf accordingly.
55785
55786 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55787
55788         * build-aux/bootstrap: Install git-merge-changelog configuration
55789         items into .gitconfig if needed.
55790
55791 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55792
55793         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55794         git repository, and initialize/update it accordingly.
55795
55796 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55797
55798         * modules/fsync-tests: New file.
55799         * tests/test-fsync.c: New file.
55800
55801         New module 'fsync'.
55802         * lib/fsync.c: New file.
55803         * m4/fsync.m4: New file.
55804         * modules/fsync: New file.
55805         * lib/unistd.in.h (fsync): New declaration.
55806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55807         GNULIB_FSYNC and HAVE_FSYNC.
55808         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55809         * MODULES.html.sh (posix_functions): Add fsync.
55810         * doc/posix-functions/fsync.texi: Mention the new module.
55811
55812 2008-10-02  Jim Meyering  <meyering@redhat.com>
55813
55814         fts.c: sync with similar code from coreutils' remove.c
55815         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55816         Guard also with "#if defined __linux__", since for now at least,
55817         this code is Linux-kernel-specific.
55818
55819 2008-10-02  Jim Meyering  <meyering@redhat.com>
55820
55821         fts: bug fixes
55822         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55823         Include <sys/vfs.h>, not <sys/statfs.h>.
55824
55825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55826         Include <sys/vfs.h>, not <sys/statfs.h>.
55827
55828 2008-10-01  Bruno Haible  <bruno@clisp.org>
55829
55830         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55831         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55832         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55833         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55834         * doc/posix-functions/posix_spawnp.texi: Likewise.
55835         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55836         whether posix_spawn actually works.
55837         * m4/pipe.m4 (gl_PIPE): Likewise.
55838         * modules/execute (Files): Add m4/posix_spawn.m4.
55839         * modules/pipe (Files): Add m4/posix_spawn.m4.
55840         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55841
55842 2008-10-01  Jim Meyering  <meyering@redhat.com>
55843
55844         remove trailing spaces
55845         * NEWS: Likewise.
55846         * lib/poll.c (poll): Likewise.
55847         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55848         * lib/winsock.c (rpl_close): Likewise.
55849         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55850         * modules/yield: Likewise.
55851         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55852         * tests/test-sys_select.c (connect_to_socket): Likewise.
55853
55854         fts.c: adjust a new interface to be more generally useful
55855         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55856         (fts_build): Adjust caller.
55857
55858 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55859
55860         * modules/cond-tests: New file.
55861         * tests/test-cond.c: New file.
55862
55863 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55864             Bruno Haible  <bruno@clisp.org>
55865
55866         * modules/cond (Dependencies): Add errno, time.
55867         * lib/glthread/cond.h: Include <time.h>.
55868         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55869         across platforms.
55870
55871 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55872             Bruno Haible  <bruno@clisp.org>
55873
55874         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55875
55876 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55877             Bruno Haible  <bruno@clisp.org>
55878
55879         * modules/tls-tests (Depends-on): Add thread, yield.
55880         (configure.ac): Remove all checks.
55881         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55882         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55883         gl_thread_self): Remove definitions. Include glthread/thread.h and
55884         glthread/yield.h instead.
55885         (test_tls): Pass an additional NULL argument to gl_thread_join.
55886
55887 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55888             Bruno Haible  <bruno@clisp.org>
55889
55890         * modules/lock-tests (Depends-on): Add thread, yield.
55891         (configure.ac): Remove all checks.
55892         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55893         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55894         gl_thread_self): Remove definitions. Include glthread/thread.h and
55895         glthread/yield.h instead.
55896         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55897         additional NULL argument to gl_thread_join.
55898
55899 2008-09-30  Bruno Haible  <bruno@clisp.org>
55900
55901         Fix the Win32 implementation of the 'thread' module.
55902         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55903         pointer type.
55904         (gl_thread_self): Invoke gl_thread_self_func.
55905         (gl_thread_self_func): New declaration.
55906         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55907         (do_init_self_key, init_self_key): New functions.
55908         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55909         Remove some fields.
55910         (running_threads, running_lock): Remove variables.
55911         (get_current_thread_handle): New function.
55912         (gl_thread_self_func, wrapper_func, glthread_create_func,
55913         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55914         simplified.
55915
55916 2008-09-30  Bruno Haible  <bruno@clisp.org>
55917
55918         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55919         files.
55920
55921 2008-09-30  Jim Meyering  <meyering@redhat.com>
55922
55923         fts.m4: correct the test for statfs.f_type
55924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55925         when checking for statfs.f_type.
55926
55927 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55928
55929         tests: avoid some compiler warnings
55930         * tests/test-memchr.c (main): Pass NULL indirectly.
55931         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55932
55933 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55934
55935         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55936         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55937         exactly specified dayshifts.
55938         (dayshift): New rule.
55939         (rel): Add dayshift.
55940         (relative_time_table) [tomorrow, yesterday, today, now]:
55941         Use tDAY_SHIFT in place of tDAY_UNIT.
55942         * tests/test-getdate.c: Add tests for now-disallowed countable
55943         dayshifts, e.g., "4 yesterday ago".
55944
55945 2008-09-29  Bruno Haible  <bruno@clisp.org>
55946
55947         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55948         * tests/test-posix_spawn1.in.sh: Renamed from
55949         tests/test-posix_spawn.in.sh.
55950         * tests/test-posix_spawn2.c: New file.
55951         * tests/test-posix_spawn2.in.sh: New file.
55952         * modules/posix_spawnp-tests (Files): Update.
55953         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55954
55955 2008-09-29  Bruno Haible  <bruno@clisp.org>
55956
55957         Propagate effects of putenv/setenv/unsetenv to child processes.
55958         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55959         * lib/pipe.c (create_pipe): Likewise.
55960
55961 2008-09-29  Bruno Haible  <bruno@clisp.org>
55962
55963         Enable use of shell scripts as executables in mingw.
55964         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55965         run the program as a shell script.
55966         * lib/pipe.c (create_pipe): Likewise.
55967         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55968         resulting array.
55969
55970 2008-09-29  Eric Blake  <ebb9@byu.net>
55971
55972         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55973
55974 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55975
55976         * doc/posix-functions/accept.texi: Update mingw problems.
55977         * doc/posix-functions/bind.texi: Update mingw problems.
55978         * doc/posix-functions/close.texi: Update mingw problems.
55979         * doc/posix-functions/connect.texi: Update mingw problems.
55980         * doc/posix-functions/getpeername.texi: Update mingw problems.
55981         * doc/posix-functions/getsockname.texi: Update mingw problems.
55982         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55983         * doc/posix-functions/ioctl.texi: Update mingw problems.
55984         * doc/posix-functions/listen.texi: Update mingw problems.
55985         * doc/posix-functions/recv.texi: Update mingw problems.
55986         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55987         * doc/posix-functions/select.texi: Update mingw problems.
55988         * doc/posix-functions/send.texi: Update mingw problems.
55989         * doc/posix-functions/sendto.texi: Update mingw problems.
55990         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55991         * doc/posix-functions/socket.texi: Update mingw problems.
55992
55993 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55994             Bruno Haible  <bruno@clisp.org>
55995
55996         * lib/sys_select.in.h: Include sys/time.h.
55997         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55998         * modules/sys_select: Depend on sys_time.
55999         * tests/test-sys_select.c: Test that sys/select.h defines struct
56000         timeval fully.
56001
56002 2008-09-29  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56005         * lib/sys_select.in.h: Likewise.
56006
56007 2008-09-29  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56010
56011 2008-09-29  Bruno Haible  <bruno@clisp.org>
56012
56013         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56014         Set LIBSOCKET instead of augmenting LIBS.
56015         * modules/sockets (Link): New section.
56016         * modules/sockets-tests (test_sockets_LDADD): New variable.
56017         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56018         * modules/poll-tests (test_poll_LDADD): New variable.
56019         * NEWS: Document the change.
56020
56021 2008-09-29  Bruno Haible  <bruno@clisp.org>
56022
56023         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56024         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56025         ARPA_INET_H directly.
56026         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56027
56028 2008-09-28  Bruno Haible  <bruno@clisp.org>
56029
56030         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56031         from gl_HEADER_SYS_SOCKET.
56032         (gl_HEADER_SYS_SOCKET): Invoke it.
56033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56034
56035 2008-09-28  Bruno Haible  <bruno@clisp.org>
56036
56037         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56038         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56039         Needed on OSF/1 4.0.
56040
56041 2008-09-28  Bruno Haible  <bruno@clisp.org>
56042
56043         Override open more carefully.
56044         * lib/open.c (orig_open): New function.
56045         (rpl_open): Use orig_open instead of open.
56046         * lib/fcntl.in.h: Add special invocation convention.
56047         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56048         (gl_FUNC_OPEN): Invoke it.
56049
56050         Override freopen more carefully.
56051         * lib/freopen.c (orig_freopen): New function.
56052         (rpl_freopen): Use orig_freopen instead of freopen.
56053         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56054         (gl_FUNC_FREOPEN): Invoke it.
56055
56056         Override fopen more carefully.
56057         * lib/fopen.c (orig_fopen): New function.
56058         (rpl_fopen): Use orig_fopen instead of fopen.
56059         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56060         (gl_FUNC_FOPEN): Invoke it.
56061         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56062
56063 2008-09-28  Bruno Haible  <bruno@clisp.org>
56064
56065         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56066         SIGPIPE.
56067
56068 2008-09-28  Bruno Haible  <bruno@clisp.org>
56069
56070         * tests/test-sigaction.c (handler, main): Disable the check whether
56071         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56072         glibc systems with LinuxThreads.
56073
56074 2008-09-28  Bruno Haible  <bruno@clisp.org>
56075
56076         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56077
56078         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56079         with AIX xlc.
56080         * lib/fcntl.in.h (open): Likewise.
56081         Reported by Rainer Tammer <tammer@tammer.net>.
56082
56083 2008-09-28  Bruno Haible  <bruno@clisp.org>
56084
56085         * modules/posix_spawnp-tests: New file.
56086         * tests/test-posix_spawn.c: New file.
56087         * tests/test-posix_spawn.in.sh: New file.
56088
56089         New module 'posix_spawnp'.
56090         * modules/posix_spawnp: New file.
56091         * lib/spawnp.c: New file, from GNU libc with modifications.
56092         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56093
56094         New module 'posix_spawn'.
56095         * modules/posix_spawn: New file.
56096         * lib/spawn.c: New file, from GNU libc with modifications.
56097         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56098
56099         New module 'posix_spawnattr_destroy'.
56100         * modules/posix_spawnattr_destroy: New file.
56101         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56102         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56103         module.
56104
56105         New module 'posix_spawnattr_setsigmask'.
56106         * modules/posix_spawnattr_setsigmask: New file.
56107         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56108         modifications.
56109         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56110         new module.
56111
56112         New module 'posix_spawnattr_getsigmask'.
56113         * modules/posix_spawnattr_getsigmask: New file.
56114         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56115         modifications.
56116         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56117         new module.
56118
56119         New module 'posix_spawnattr_setsigdefault'.
56120         * modules/posix_spawnattr_setsigdefault: New file.
56121         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56122         modifications.
56123         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56124         new module.
56125
56126         New module 'posix_spawnattr_getsigdefault'.
56127         * modules/posix_spawnattr_getsigdefault: New file.
56128         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56129         modifications.
56130         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56131         new module.
56132
56133         New module 'posix_spawnattr_setschedpolicy'.
56134         * modules/posix_spawnattr_setschedpolicy: New file.
56135         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56136         modifications.
56137         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56138         new module.
56139
56140         New module 'posix_spawnattr_getschedpolicy'.
56141         * modules/posix_spawnattr_getschedpolicy: New file.
56142         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56143         modifications.
56144         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56145         new module.
56146
56147         New module 'posix_spawnattr_setschedparam'.
56148         * modules/posix_spawnattr_setschedparam: New file.
56149         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56150         modifications.
56151         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56152         new module.
56153
56154         New module 'posix_spawnattr_getschedparam'.
56155         * modules/posix_spawnattr_getschedparam: New file.
56156         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56157         modifications.
56158         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56159         new module.
56160
56161         New module 'posix_spawnattr_setpgroup'.
56162         * modules/posix_spawnattr_setpgroup: New file.
56163         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56164         modifications.
56165         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56166         module.
56167
56168         New module 'posix_spawnattr_getpgroup'.
56169         * modules/posix_spawnattr_getpgroup: New file.
56170         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56171         modifications.
56172         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56173         module.
56174
56175         New module 'posix_spawnattr_setflags'.
56176         * modules/posix_spawnattr_setflags: New file.
56177         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56178         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56179         module.
56180
56181         New module 'posix_spawnattr_getflags'.
56182         * modules/posix_spawnattr_getflags: New file.
56183         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56184         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56185         module.
56186
56187         New module 'posix_spawnattr_init'.
56188         * modules/posix_spawnattr_init: New file.
56189         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56190         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56191         module.
56192
56193         New module 'posix_spawn_file_actions_destroy'.
56194         * modules/posix_spawn_file_actions_destroy: New file.
56195         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56196         modifications.
56197         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56198         the new module.
56199
56200         New module 'posix_spawn_file_actions_addopen'.
56201         * modules/posix_spawn_file_actions_addopen: New file.
56202         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56203         modifications.
56204         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56205         the new module.
56206
56207         New module 'posix_spawn_file_actions_adddup2'.
56208         * modules/posix_spawn_file_actions_adddup2: New file.
56209         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56210         modifications.
56211         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56212         the new module.
56213
56214         New module 'posix_spawn_file_actions_addclose'.
56215         * modules/posix_spawn_file_actions_addclose: New file.
56216         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56217         modifications.
56218         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56219         the new module.
56220
56221         New module 'posix_spawn_file_actions_init'.
56222         * modules/posix_spawn_file_actions_init: New file.
56223         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56224         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56225         new module.
56226
56227         New module 'posix_spawn-internal'.
56228         * modules/posix_spawn-internal: New file.
56229         * lib/spawn_int.h: New file, from GNU libc with modifications.
56230         * lib/spawni.c: New file, from GNU libc with modifications.
56231         * m4/posix_spawn.m4: New file.
56232
56233         New module 'spawn'.
56234         * modules/spawn: New file.
56235         * lib/spawn.in.h: New file, from GNU libc with modifications.
56236         * m4/spawn_h.m4: New file.
56237         * doc/posix-headers/spawn.texi: Mention the new module.
56238
56239 2008-09-28  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/sched-tests: New file.
56242         * tests/test-sched.c: New file.
56243
56244         New module 'sched'.
56245         * modules/sched: New file.
56246         * lib/sched.in.h: New file.
56247         * m4/sched_h.m4: New file.
56248         * doc/posix-headers/sched.texi: Mention the new module.
56249
56250 2008-09-27  Eric Blake  <ebb9@byu.net>
56251
56252         Fix previous patch, and tweak references to $0.
56253         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56254         (func_version, func_gnulib_dir): Don't call this program
56255         gnulib-tool.
56256         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56257         with using $0 in function.
56258         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56259         (func_fatal_error): Reuse the name the user invoked us with.
56260
56261 2008-09-27  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56264         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56265         (gl_ICONV_H): Not here.
56266         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56267         instead of assigning ICONV_H directly.
56268
56269         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56271         WCHAR_H directly.
56272
56273 2008-09-27  Bruno Haible  <bruno@clisp.org>
56274
56275         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56276         * modules/arpa_inet (Depends-on): Add link-warning.
56277         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56278         * modules/unistd (Makefile.am): Likewise.
56279
56280 2008-09-26  Bruno Haible  <bruno@clisp.org>
56281
56282         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56283         variables.
56284         (func_version): Essentially copied from gnulib-tool.
56285         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56286         func_readlink): Copied from gnulib-tool.
56287
56288 2008-09-26  Bruno Haible  <bruno@clisp.org>
56289
56290         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56291         invoking git-version-gen.
56292
56293 2008-09-26  Bruno Haible  <bruno@clisp.org>
56294
56295         * posix-modules: Update to directory names changed on 2008-01-19.
56296         Remove commas in output before splitting into words. No more need to
56297         avoid 'ftruncate' since 2007-02-19.
56298
56299 2008-09-26  Bruno Haible  <bruno@clisp.org>
56300
56301         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56302
56303 2008-09-26  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56306         * modules/fwriteerror (Depends-on): Add errno.
56307
56308 2008-09-26  Bruno Haible  <bruno@clisp.org>
56309
56310         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56311         * tests/test-vc-list-files-cvs.sh: Likewise.
56312
56313 2008-09-26  Bruno Haible  <bruno@clisp.org>
56314
56315         * doc/posix-headers/sys_resource.texi: Reorder items.
56316
56317 2008-09-26  Jim Meyering  <meyering@redhat.com>
56318
56319         fts: tweak inode comparison function
56320         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56321         inode numbers, as documented.
56322
56323         fts: sort dirent entries on inode number before traversing
56324         This avoids a quadratic, seek-related performance penalty when
56325         operating on a directory containing many entries (measurable at 10k;
56326         3.5 hours at 2 million entries with a cold cache) on certain types
56327         of file systems, including ext3 and ext4, but not tmpfs.
56328         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56329         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56330         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56331         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56332         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56333         (fts_build): Set the stat.st_ino member from D_INO.
56334         If it is likely to be useful, sort dirent entries on inode number.
56335
56336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56337         and the struct statfs.f_type member.
56338         * modules/fts (Depends-on): Add d-ino.
56339
56340 2008-09-26  Bruno Haible  <bruno@clisp.org>
56341
56342         * modules/sigpipe-die (Depends-on): Add sigpipe.
56343
56344         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56345         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56346         and GNULIB_STDIO_H_SIGPIPE are set.
56347         * lib/stdio-write.c: New file.
56348         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56349         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56350         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56351         REPLACE_STDIO_WRITE_FUNCS.
56352         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56353         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56354         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56355         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56356         * modules/stdio (Files): Add lib/stdio-write.c.
56357         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56358         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56359         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56360         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56361         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56362         REPLACE_FPRINTF_POSIX.
56363         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56364         REPLACE_PRINTF_POSIX.
56365         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56366         REPLACE_VFPRINTF_POSIX.
56367         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56368         REPLACE_VPRINTF_POSIX.
56369         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56370         SIGPIPE issue.
56371         * doc/posix-functions/fputc.texi: Likewise.
56372         * doc/posix-functions/fputs.texi: Likewise.
56373         * doc/posix-functions/fwrite.texi: Likewise.
56374         * doc/posix-functions/printf.texi: Likewise.
56375         * doc/posix-functions/putc.texi: Likewise.
56376         * doc/posix-functions/putchar.texi: Likewise.
56377         * doc/posix-functions/puts.texi: Likewise.
56378         * doc/posix-functions/vfprintf.texi: Likewise.
56379         * doc/posix-functions/vprintf.texi: Likewise.
56380
56381         * modules/safe-write (Depends-on): Add write.
56382
56383         * modules/sigpipe-tests: New file.
56384         * tests/test-sigpipe.c: New file.
56385         * tests/test-sigpipe.sh: New file.
56386
56387         * modules/write: New file.
56388         * lib/unistd.in.h: Include <sys/types.h>.
56389         (write): New declaration.
56390         * lib/write.c: New file.
56391         * m4/write.m4: New file.
56392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56393         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56394         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56395         GNULIB_WRITE, REPLACE_WRITE.
56396         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56397         and the SIGPIPE issue.
56398
56399         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56400         (raise): New declaration.
56401         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56402         (ext_signal): New function.
56403         (rpl_raise): New function.
56404         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56405         GNULIB_SIGNAL_H_SIGPIPE.
56406         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56407         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56408
56409         * modules/sigpipe: New file.
56410         * m4/sigpipe.m4: New file.
56411
56412 2008-09-25  Derek Price  <derek@ximbiot.com>
56413             Bruno Haible  <bruno@clisp.org>
56414
56415         * gnulib-tool (func_import): Report all license incompatibilities, not
56416         just the first one.
56417
56418 2008-09-25  Bruno Haible  <bruno@clisp.org>
56419
56420         * gnulib-tool (func_import): When computing the edits, consider not
56421         only the Makefile.ams that exist but also those that will be generated.
56422
56423 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56424
56425         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56426         fixes gnulib-tool --test warning about duplicate dependency.
56427
56428 2008-09-25  Bruno Haible  <bruno@clisp.org>
56429
56430         * gnulib-tool: Don't ask the user to perform edits in the generated
56431         Makefile.ams.
56432         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56433         apply to the Makefile.am being generated.
56434         (func_emit_tests_Makefile_am): Execute edits that apply to the
56435         Makefile.am being generated.
56436         (func_import): Setup list of Makefile.am edits before emitting the
56437         Makefile.ams, not at the end.
56438         (func_create_testdir): Update.
56439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56440
56441 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56442
56443         * gnulib-tool (func_import): Store the --tests-base option in the
56444         comment in gnulib-cache.m4.
56445
56446 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56447
56448         * NEWS: Document increased portability that sys_select now provides.
56449
56450         * lib/sys_select.in.h: Install select wrapper.
56451         * lib/sys_socket.in.h: Use more descriptive name when there is no
56452         select wrapper.
56453         * lib/winsock-select.c: New.
56454         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56455         Require gl_HEADER_SYS_SOCKET.
56456         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56457         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56458         * tests/test-sys_select.c: Add functional tests.
56459
56460 2008-09-24  Eric Blake  <ebb9@byu.net>
56461
56462         open, fopen: close fd leak in last patch
56463         * lib/open.c (rpl_open): Close fd before returning error.
56464         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56465         * doc/posix-functions/open.texi (open): Document that Irix also
56466         has the bug.
56467         * doc/posix-functions/fopen.texi (fopen): Likewise.
56468         Reported by Paolo Bonzini.
56469
56470 2008-09-24  Bruno Haible  <bruno@clisp.org>
56471
56472         Ensure that a filename ending in a slash cannot be used to access a
56473         non-directory.
56474         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56475         to check whether it's really a directory.
56476         * lib/fopen.c: Include fcntl.h, unistd.h.
56477         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56478         and fdopen().
56479         * modules/fopen (Depends-on): Add unistd.
56480         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56481         * tests/test-fopen.c (main): Likewise.
56482         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56483         * doc/posix-functions/fopen.texi: Likewise.
56484         Reported by Eric Blake.
56485
56486 2008-09-23  Eric Blake  <ebb9@byu.net>
56487
56488         c-stack: avoid compiler optimizations when provoking overflow
56489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56490         recursion harder to optimize, to ensure a stack overflow occurs.
56491         * tests/test-c-stack.c (recurse): Likewise.
56492         Borrowed from libsigsegv.
56493
56494         c-stack: work around Irix sigaltstack bug
56495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56496         whether sigaltstack uses wrong end of stack_t (copied in part from
56497         libsigsegv).
56498         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56499         Irix bug, without requiring an over-allocation.
56500         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56501         bug.
56502
56503         fopen: document mingw bug on directories
56504         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56505         not allowing a stream visiting a directory, even though reading
56506         from such a stream is not portable.
56507
56508 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56509
56510         * lib/poll.c: Rewrite.
56511         * modules/poll: Depend on alloca.
56512
56513 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56514
56515         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56516         instead define prototypes for a full set of wrappers.  Ensure
56517         that Cygwin does not use the compatibility code, which is only
56518         for MinGW.
56519         * lib/winsock.c: New.
56520         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56521         * modules/sys_socket: Add lib/winsock.c.
56522
56523         * modules/poll-tests: Add errno and perror.
56524         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56525
56526 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56527
56528         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56529
56530 2008-09-23  Bruno Haible  <bruno@clisp.org>
56531
56532         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56533         * doc/glibc-functions/*: Likewise.
56534
56535 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56536
56537         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56538         success.
56539
56540 2008-09-22  Eric Blake  <ebb9@byu.net>
56541             Bruno Haible  <bruno@clisp.org>
56542
56543         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56544         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56545         supply %A but mishandle pseudo-NaN.
56546         Reported by Simon Josefsson.
56547
56548 2008-09-21  Bruno Haible  <bruno@clisp.org>
56549
56550         * tests/test-lock.c (main): Tweak skip message.
56551         * tests/test-tls.c (main): Likewise.
56552
56553 2008-09-21  Bruno Haible  <bruno@clisp.org>
56554
56555         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56556         whether 'struct sigaction' has sa_sigaction here...
56557         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56558         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56559
56560 2008-09-21  Bruno Haible  <bruno@clisp.org>
56561
56562         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56563         section.
56564         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56565         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56566         the new section.
56567         (Support for obsolete systems lacking POSIX:2001): New section.
56568         (String handling <string.h>): Move strdup to the new section.
56569         Suggested by Simon Josefsson and Paolo Bonzini.
56570
56571 2008-09-21  Bruno Haible  <bruno@clisp.org>
56572
56573         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56574         exponents in %e and %g results on 'long double'. Needed for mingw's
56575         improved *printf functions.
56576         * tests/test-vasprintf-posix.c (test_function): Likewise.
56577         * tests/test-snprintf-posix.h (test_function): Likewise.
56578         * tests/test-sprintf-posix.h (test_function): Likewise.
56579         Reported by Eric Blake.
56580
56581 2008-09-21  Bruno Haible  <bruno@clisp.org>
56582
56583         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56584         * tests/test-sprintf-posix.h (test_function): Likewise.
56585
56586 2008-09-21  Bruno Haible  <bruno@clisp.org>
56587
56588         * modules/getpass (Depends-on): Add strdup-posix.
56589
56590         New module 'strdup-posix'.
56591         * modules/strdup-posix: New file.
56592         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56593         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56595         REPLACE_STRDUP.
56596         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56597         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56599         strdup-posix.
56600
56601         * modules/strdup (Depends-on): Remove malloc-posix.
56602
56603 2008-09-20  Bruno Haible  <bruno@clisp.org>
56604
56605         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56606         Wildenhues.
56607
56608 2008-09-20  Bruno Haible  <bruno@clisp.org>
56609
56610         Ensure that wint_t gets defined on IRIX 5.3.
56611         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56612         * lib/wctype.in.h (wint_t): Likewise.
56613         (__wctype_wint_t): Remove type.
56614         (isw*): Use wint_t instead of __wctype_wint_t.
56615         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56616         * modules/wchar (Files): Add m4/wint_t.m4.
56617         (Makefile.am): Substitute HAVE_WINT_T.
56618         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56619         * tests/test-wctype.c: Check that wint_t is defined.
56620         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56621         * doc/posix-headers/wctype.texi: Likewise.
56622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56623
56624 2008-09-18  Bruno Haible  <bruno@clisp.org>
56625
56626         * gnulib-tool (func_exit): Update comment.
56627
56628 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56629
56630         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56631         assumes strdup exists and does not depend on strdup to return
56632         ENOMEM on out of memory conditions.
56633
56634 2008-09-18  Bruno Haible  <bruno@clisp.org>
56635
56636         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56637         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56638         digits for the exponent.
56639
56640 2008-09-18  Jim Meyering  <meyering@redhat.com>
56641             Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/vasnprintf.c (decimal_point_char): Define also if
56644         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56645
56646 2008-09-16  Bruno Haible  <bruno@clisp.org>
56647         and Eric Blake  <ebb9@byu.net>
56648
56649         vasnprintf: support Irix 5.3
56650         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56651         that mishandle long double infinity.
56652         Reported by Tom G. Christensen.
56653
56654 2008-09-16  Bruno Haible  <bruno@clisp.org>
56655
56656         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56657         Solaris 9.
56658         * doc/glibc-functions/alphasort.texi: Likewise.
56659         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56660
56661 2008-09-16  Jim Meyering  <meyering@redhat.com>
56662
56663         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56664         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56665         a umask modification leak out of a subshell.  Otherwise, the
56666         opensolaris /bin/sh would be accepted and thus cause unwarranted
56667         failures in the coreutils test suite.
56668
56669 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56670
56671         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56672         to succeed.
56673
56674 2008-09-16  Jim Meyering  <meyering@redhat.com>
56675
56676         avoid spurious test failure when library is built without ACL support
56677         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56678         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56679         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56680         * tests/test-copy-acl.sh: Likewise.
56681
56682 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56683
56684         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56685         based on character occurrence counts.
56686
56687 2008-09-15  Eric Blake  <ebb9@byu.net>
56688
56689         tests: avoid some compiler warnings
56690         * tests/test-memchr.c (main): Pass NULL indirectly.
56691         * tests/test-closein.c (main): Avoid unused variable.
56692
56693 2008-09-15  Bruno Haible  <bruno@clisp.org>
56694
56695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56696         are missing on OpenBSD 4.0 individually.
56697         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56698
56699 2008-09-15  Bruno Haible  <bruno@clisp.org>
56700
56701         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56702         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56703         * doc/posix-functions/perror.texi: Likewise.
56704         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56705         is missing.
56706         Reported by Eric Blake.
56707
56708         * lib/errno.in.h: Use replacement values >= 2000.
56709         Reported by Eric Blake.
56710
56711 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56712
56713         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56714         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56715         limit.
56716         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56717         compareseq was aborted.
56718
56719 2008-09-14  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56722         yvec_edit_count.
56723         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56724         (fstrcmp_bounded): Simplify result computation accordingly.
56725
56726 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56727
56728         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56729         (fstrcmp): Define in terms of fstrcmp_bounded.
56730         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56731         lower_bound argument.
56732         Return quickly if the result is certainly < lower_bound.
56733         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56734
56735 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56736
56737         * lib/diffseq.h (EARLY_ABORT): New macro.
56738         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56739         evaluates to true.
56740
56741 2008-09-14  Bruno Haible  <bruno@clisp.org>
56742
56743         * modules/perror-tests: New file.
56744         * tests/test-perror.sh: New file.
56745         * tests/test-perror.c: New file.
56746
56747         New module 'perror'.
56748         * lib/stdio.in.h (perror): New declaration.
56749         * lib/perror.c: New file.
56750         * m4/perror.m4: New file.
56751         * modules/perror: New file.
56752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56753         * doc/posix-functions/perror.texi: Mention the perror module.
56754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56755         REPLACE_PERROR.
56756         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56757         REPLACE_PERROR.
56758
56759 2008-09-14  Bruno Haible  <bruno@clisp.org>
56760
56761         * modules/stdio (Makefile.am): Reorder to match the order in
56762         lib/stdio.in.h.
56763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56764
56765 2008-09-13  Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56768
56769 2008-09-13  Bruno Haible  <bruno@clisp.org>
56770
56771         Extend strerror to cover the added errno values.
56772         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56773         (rpl_strerror): Provide error messages for the added errno values and
56774         for the WSA* values.
56775         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56776         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56777         strerror.
56778         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56779         * modules/strerror (Depends-on): Add errno.
56780         * doc/posix-functions/strerror.texi: Document the change.
56781         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56782         and EOVERFLOW.
56783
56784 2008-09-13  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/EOVERFLOW: Remove file.
56787         * m4/eoverflow.m4: Remove file.
56788         * modules/EOVERFLOW-tests: Remove file.
56789         * tests/test-EOVERFLOW.c: Remove file.
56790         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56791         * modules/ftell (Depends-on): Likewise.
56792         * modules/getdelim (Depends-on): Likewise.
56793         * modules/getugroups (Depends-on): Likewise.
56794         * modules/poll (Depends-on): Likewise.
56795         * modules/snprintf (Depends-on): Likewise.
56796         * modules/sprintf-posix (Depends-on): Likewise.
56797         * modules/vasnprintf (Depends-on): Likewise.
56798         * modules/vasprintf (Depends-on): Likewise.
56799         * modules/vfprintf-posix (Depends-on): Likewise.
56800         * modules/vsnprintf (Depends-on): Likewise.
56801         * modules/vsprintf-posix (Depends-on): Likewise.
56802         * modules/xvasprintf (Depends-on): Likewise.
56803         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56804         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56805         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56806         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56807         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56808         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56809         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56810         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56811         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56812         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56813         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56814         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56816         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56817         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56818         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56819         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56820         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56821         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56822         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56823         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56824         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56825         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56826         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56827         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56828         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56829         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56830         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56831         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56832         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56833         * MODULES.html.sh: Remove EOVERFLOW.
56834         * NEWS: Mention the change.
56835
56836 2008-09-13  Bruno Haible  <bruno@clisp.org>
56837
56838         * modules/errno-tests: New file.
56839         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56840
56841         * lib/errno.in.h: New file.
56842         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56843         * modules/errno: New file.
56844         * doc/posix-headers/errno.texi: Update documentation.
56845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56846
56847 2008-09-13  Bruno Haible  <bruno@clisp.org>
56848
56849         * tests/test-poll.c: Use #if for native Windows, rather than testing
56850         __MSVCRT__.
56851
56852 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56853             Bruno Haible  <bruno@clisp.org>
56854
56855         * lib/glob.c: Don't include <pwd.h> on native Windows.
56856         (WINDOWS32): New macro.
56857         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56858
56859 2008-09-13  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56862         (ETIMEDOUT): Remove macro.
56863         (glthread_cond_timedwait_multithreaded): New declaration.
56864         (glthread_cond_timedwait): Use it.
56865         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56866         (glthread_cond_timedwait_multithreaded): New function.
56867
56868 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56869
56870         * modules/poll-tests: Do not check for io.h.
56871         * tests/test-poll.c: Check for __MSVCRT__ instead.
56872
56873 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56874
56875         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56876         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56877         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56878
56879 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56880
56881         * modules/poll-tests: New.
56882         * tests/test-poll.c: New.
56883
56884 2008-09-12  Eric Blake  <ebb9@byu.net>
56885
56886         frexp: test for NetBSD failure on -0.0
56887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56888         not all, bugs from NetBSD 3.0 have been fixed.
56889         * doc/posix-functions/frexp.texi (frexp): Document bug.
56890         Reported by Thomas Klausner.
56891
56892         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56893         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56894         literal -0.0.
56895         Reported by Jonathan C. Patschke <jp@centtech.com>.
56896
56897 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56898
56899         * lib/glthread/cond.h: Use dummy implementation also if
56900         USE_WIN32_THREADS.
56901
56902 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56903
56904         * modules/fnmatch-posix (License): Change to LGPLv2+.
56905         * modules/fnmatch-gnu (License): Likewise.
56906
56907 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56908
56909         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56910
56911 2008-09-11  Jim Meyering  <meyering@redhat.com>
56912
56913         * users.txt: Add gtk-vnc.
56914
56915 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56916
56917         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56918         rotate amounts.
56919
56920         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56921         required for 16-bit and 8-bit rotates.
56922         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56923         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56924         UINT8_MAX instead of hard-coded constants.
56925         Suggested by Paul Eggert.
56926
56927 2008-09-07  Bruno Haible  <bruno@clisp.org>
56928
56929         * tests/test-striconveh.c (main): Check behaviour when converting from
56930         UTF-7.
56931
56932         Make striconveh work better with stateful encodings.
56933         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56934         that iconv does not increment the inptr when returning -1/EINVAL.
56935
56936 2008-09-07  Bruno Haible  <bruno@clisp.org>
56937
56938         * build-aux/config.rpath: Update according to libtool-2.2.6.
56939         * build-aux/config.libpath: Likewise.
56940
56941 2008-09-06  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56944         * lib/freadptr.c (freadptr): Likewise.
56945         * lib/freadseek.c (freadptrinc): Likewise.
56946         Reported by Simon Josefsson.
56947
56948 2008-09-06  Bruno Haible  <bruno@clisp.org>
56949
56950         * modules/freadptr (License): Change to LGPLv2+.
56951         * modules/freadseek (License): Likewise.
56952         Suggested by Eric Blake.
56953
56954         * modules/memchr2 (License): Change to LGPLv2+.
56955         Approved by Eric Blake.
56956
56957 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56958             Bruno Haible  <bruno@clisp.org>
56959
56960         Make gnulib-tool work with native 'sed' on AIX.
56961         * gnulib-tool (sed_noop): New variable.
56962         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56963         func_add_or_update, func_create_testdir): Use it to initialize sed
56964         script variables.
56965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56966
56967 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56968             Bruno Haible  <bruno@clisp.org>
56969
56970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56971         also works after #include directives.
56972
56973 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56974
56975         getdate.y: reject an out-of-range timezone value
56976         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56977         the range [-24...+24].  When specified with only one or two digits,
56978         * tests/test-getdate.c: Tests for the fix.
56979         * doc/getdate.texi: Document this change.
56980
56981 2008-09-03  Bruno Haible  <bruno@clisp.org>
56982
56983         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56984
56985 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56986
56987         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56988         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56989         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56990         Blake <ebb9@byu.net>.
56991
56992         * tests/test-bitrotate.c: Add more test vectors.
56993
56994 2008-09-02  Eric Blake  <ebb9@byu.net>
56995
56996         vasnprintf-posix: handle large precision via %.*d
56997         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56998         when handling it ourselves.
56999         * tests/test-vasnprintf-posix.c (test_function): Add test.
57000         * tests/test-snprintf-posix.h (test_function): Likewise.
57001         * tests/test-sprintf-posix.h (test_function): Likewise.
57002         * tests/test-vasprintf-posix.c (test_function): Likewise.
57003         Reported by Alain Guibert.
57004
57005 2008-09-01  Eric Blake  <ebb9@byu.net>
57006
57007         c-stack: make configure-time check more robust
57008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57009         successful sigaction call.
57010         Reported by Tom G. Christensen.
57011
57012 2008-09-01  Bruno Haible  <bruno@clisp.org>
57013
57014         New module 'findprog-lgpl'.
57015         * modules/findprog-lgpl: New file.
57016         * lib/findprog-lgpl.c: New file.
57017         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57018         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57019         to decide whether to use strdup or xstrdup, concatenated_filename or
57020         xconcatenated_filename.
57021
57022 2008-09-01  Bruno Haible  <bruno@clisp.org>
57023
57024         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57025         'xconcat-filename' (GPL).
57026         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57027         (License): Change to LGPLv2+.
57028         * modules/xconcat-filename: New file.
57029         * lib/concat-filename.h (concatenated_filename): Change specification.
57030         (xconcatenated_filename): New declaration.
57031         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57032         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57033         memory situations.
57034         * lib/xconcat-filename.c: New file.
57035         * NEWS: Mention the change.
57036         * lib/findprog.c: Include concat-filename.h, not filename.h.
57037         (find_in_path): Use xconcatenated_filename instead of
57038         concatenated_filename.
57039         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57040         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57041         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57042         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57043         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57044         instead of concatenated_filename.
57045         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57046         (execute_java_class): Use xconcatenated_filename instead of
57047         concatenated_filename.
57048         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57049         * modules/javacomp (Depends-on): Likewise.
57050         * modules/javaexec (Depends-on): Likewise.
57051
57052 2008-09-01  Bruno Haible  <bruno@clisp.org>
57053
57054         Split module 'filename' into 'filename' and 'concat-filename'.
57055         * modules/filename: Keep only lib/filename.h.
57056         (License): Change to LGPLv2+.
57057         * modules/concat-filename: New file, extracted from modules/filename.
57058         * lib/filename.h (concatenated_filename): Remove declaration.
57059         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57060         * lib/concat-filename.c: Include concat-filename.h.
57061         * NEWS: Mention the change.
57062
57063 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57064
57065         * lib/bitrotate.h (rotl8, rotr8): Add.
57066
57067         * modules/bitrotate (configure.ac): Need
57068         AC_REQUIRE([AC_C_INLINE]).
57069         (Description): Mention stdint.h.  Reported by Bruno Haible
57070         <bruno@clisp.org>.
57071
57072         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57073         Paolo Bonzini <bonzini@gnu.org>.
57074
57075 2008-08-31  Bruno Haible  <bruno@clisp.org>
57076
57077         Assume Solaris specific bi-arch conventions on Solaris systems.
57078         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57079         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57081         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57082         like acl_libdirstem.
57083         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57084         acl_libdirstem.
57085         * NEWS: Mention the change.
57086         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57087
57088 2008-08-31  Jim Meyering  <meyering@redhat.com>
57089
57090         * lib/strftime.h: Add comments describing the two added arguments.
57091
57092         remove duplicate #include directives
57093         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57094         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57095
57096 2008-08-31  Bruno Haible  <bruno@clisp.org>
57097
57098         New module 'sigpipe-die'.
57099         * modules/sigpipe-die: New file.
57100         * lib/sigpipe-die.h: New file.
57101         * lib/sigpipe-die.c: New file.
57102         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57103
57104 2008-08-31  Bruno Haible  <bruno@clisp.org>
57105
57106         Don't override previously installed signal handlers.
57107         * lib/fatal-signal.c (saved_sigactions): New variable.
57108         (uninstall_handlers): Reset the signal to the saved handler, not
57109         to SIG_DFL (except when ignored).
57110         (install_handlers): Save the previous handlers.
57111
57112 2008-08-30  Bruno Haible  <bruno@clisp.org>
57113
57114         * gnulib-tool (func_reset_sigpipe): New function.
57115         (func_get_automake_snippet, func_modules_transitive_closure,
57116         func_import): Invoke it before a join command that reads from stdin,
57117         to avoid "echo: write error: Broken pipe" error messages on stderr.
57118         Reported by Sam Steingold <sds@gnu.org>.
57119
57120 2008-08-30  Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57123         Code copied from m4/open.m4.
57124         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57125         access and the filename ends in a slash. Code copied from lib/open.c.
57126         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57127         * tests/test-fopen.c (main): Check against bug with trailing slash.
57128
57129 2008-08-29  Bruno Haible  <bruno@clisp.org>
57130
57131         Avoid some "gcc -pedantic" warnings.
57132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57133         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57134         * lib/dirent.in.h: Likewise.
57135         * lib/fcntl.in.h: Likewise.
57136         * lib/float.in.h: Likewise.
57137         * lib/iconv.in.h: Likewise.
57138         * lib/inttypes.in.h: Likewise.
57139         * lib/locale.in.h: Likewise.
57140         * lib/math.in.h: Likewise.
57141         * lib/netinet_in.in.h: Likewise.
57142         * lib/search.in.h: Likewise.
57143         * lib/signal.in.h: Likewise.
57144         * lib/stdarg.in.h: Likewise.
57145         * lib/stdint.in.h: Likewise.
57146         * lib/stdio.in.h: Likewise.
57147         * lib/stdlib.in.h: Likewise.
57148         * lib/string.in.h: Likewise.
57149         * lib/strings.in.h: Likewise.
57150         * lib/sys_select.in.h: Likewise.
57151         * lib/sys_socket.in.h: Likewise.
57152         * lib/sys_stat.in.h: Likewise.
57153         * lib/sys_time.in.h: Likewise.
57154         * lib/sysexits.in.h: Likewise.
57155         * lib/time.in.h: Likewise.
57156         * lib/unistd.in.h: Likewise.
57157         * lib/wchar.in.h: Likewise.
57158         * lib/wctype.in.h: Likewise.
57159         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57160         * modules/fchdir (Makefile.am): Likewise.
57161         * modules/fcntl (Makefile.am): Likewise.
57162         * modules/float (Makefile.am): Likewise.
57163         * modules/iconv_open (Makefile.am): Likewise.
57164         * modules/inttypes (Makefile.am): Likewise.
57165         * modules/locale (Makefile.am): Likewise.
57166         * modules/math (Makefile.am): Likewise.
57167         * modules/netinet_in (Makefile.am): Likewise.
57168         * modules/search (Makefile.am): Likewise.
57169         * modules/signal (Makefile.am): Likewise.
57170         * modules/stdarg (Makefile.am): Likewise.
57171         * modules/stdint (Makefile.am): Likewise.
57172         * modules/stdio (Makefile.am): Likewise.
57173         * modules/stdlib (Makefile.am): Likewise.
57174         * modules/string (Makefile.am): Likewise.
57175         * modules/strings (Makefile.am): Likewise.
57176         * modules/sys_select (Makefile.am): Likewise.
57177         * modules/sys_socket (Makefile.am): Likewise.
57178         * modules/sys_stat (Makefile.am): Likewise.
57179         * modules/sys_time (Makefile.am): Likewise.
57180         * modules/sysexits (Makefile.am): Likewise.
57181         * modules/time (Makefile.am): Likewise.
57182         * modules/unistd (Makefile.am): Likewise.
57183         * modules/wchar (Makefile.am): Likewise.
57184         * modules/wctype (Makefile.am): Likewise.
57185         Reported by Reuben Thomas <rrt@sc3d.org>.
57186
57187 2008-08-29  Bruno Haible  <bruno@clisp.org>
57188
57189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57190         any more.
57191
57192 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57193
57194         * MODULES.html.sh (Misc): Add bitrotate.
57195
57196         * modules/bitrotate: New file.
57197
57198         * lib/bitrotate.h: New file.
57199
57200         * modules/bitrotate-tests: New file.
57201
57202         * tests/test-bitrotate.c: New file.
57203
57204         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57205         on the bitrotate module.
57206
57207         * lib/arctwo.c: Use new bitrotate module.
57208
57209 2008-08-29  Jim Meyering  <meyering@redhat.com>
57210
57211         bootstrap: merge changes from coreutils
57212         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57213         of copied files.  Remove a kludge, now that this is fixed.
57214         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57215         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57216         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57217
57218 2008-08-29  Bruno Haible  <bruno@clisp.org>
57219
57220         * MODULES.html.sh: Remove --cvs-urls option.
57221
57222 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57223
57224         maint.mk: adjust to file name change
57225         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57226
57227 2008-08-28  Jim Meyering  <meyering@redhat.com>
57228
57229         * modules/getndelim2 (License): Relicense to LGPLv2+.
57230         Approved by Richard Stallman for the version of 1995, and by
57231         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57232
57233 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57234
57235         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57236         dummy if one is not available.  Do not touch them if
57237         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57238         (getc_maybe_unlocked): New.
57239         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57240
57241 2008-08-26  Eric Blake  <ebb9@byu.net>
57242
57243         doc/INSTALL: resync from autoconf
57244         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57245         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57246         moving...
57247         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57248         * INSTALL: Regenerate.
57249         * INSTALL.ISO: New file.
57250         * INSTALL.UTF-8: Likewise.
57251
57252 2008-08-26  Jim Meyering  <meyering@redhat.com>
57253
57254         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57255         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57256         these definitions conditional, so that they may be overridden, too.
57257
57258 2008-08-26  Bruno Haible  <bruno@clisp.org>
57259
57260         Generate INSTALL file variants with prettier quotes.
57261         * doc/Makefile (INSTALL_PRELUDE): New macro.
57262         (INSTALL): Use it.
57263         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57264
57265 2008-08-26  Bruno Haible  <bruno@clisp.org>
57266
57267         Run makeinfo in an English locale.
57268         * doc/Makefile (MAKEINFO): New variable.
57269
57270 2008-08-26  Bruno Haible  <bruno@clisp.org>
57271
57272         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57273         Suggested by Eric Blake.
57274
57275 2008-08-25  Bruno Haible  <bruno@clisp.org>
57276
57277         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57278
57279 2008-08-25  Eric Blake  <ebb9@byu.net>
57280
57281         c-stack: test that stack overflow can be caught
57282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57283         that platform allows handling stack overflow; at least OS/2 EMX
57284         has sigaltstack, but crashes before transferring control to
57285         handler on stack overflow.
57286         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57287         check for HAVE_STACK_OVERFLOW_HANDLING.
57288         Reported by Elbert Pol.
57289
57290 2008-08-25  Bruno Haible  <bruno@clisp.org>
57291
57292         * doc/posix-functions/strftime.texi: Fix description of strftime
57293         module.
57294
57295 2008-08-24  Bruno Haible  <bruno@clisp.org>
57296
57297         * tests/uniwidth/test-uc_width2.c: New file.
57298         * tests/uniwidth/test-uc_width2.sh: New file.
57299         * modules/uniwidth/width-tests (Files): Add the new files.
57300         (TESTS): Add uniwidth/test-uc_width2.sh.
57301         (TESTS_ENVIRONMENT): New variable.
57302         (check_PROGRAMS): Add test-uc_width2.
57303         (test_uc_width2_SOURCES): New variable.
57304
57305         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57306         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57307         not 0x00AB.
57308         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57309
57310 2008-08-22  Eric Blake  <ebb9@byu.net>
57311
57312         test-lock, test-tls: mention why a test is skipped
57313         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57314         skipped.
57315         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57316
57317         count-one-bits: relax license
57318         * modules/count-one-bits (License): Relicense to LGPLv2+.
57319         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57320
57321 2008-08-22  Andreas Schwab  <schwab@suse.de>
57322
57323         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57324         Remove spurious space in assignment.
57325
57326 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57327
57328         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57329         Paul Eggert <eggert@CS.UCLA.EDU>.
57330
57331 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57332
57333         * modules/gettext: Add m4/threadlib.m4.
57334
57335 2008-08-19  Eric Blake  <ebb9@byu.net>
57336
57337         test-c-stack: fix compilation failure on FreeBSD 5.0
57338         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57339         headers before <sys/resource.h>.
57340         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57341         the bug.
57342         Reported by Nelson H. F. Beebe.
57343
57344         strverscmp: migrate from "strverscmp.h" to <string.h>
57345         * modules/string (Makefile.am): Add new hooks.
57346         * modules/strverscmp (Files): Remove strverscmp.h.
57347         (Depends-on): Add string.
57348         (configure.ac): Add indicator.
57349         (Include): Mention new header.
57350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57351         defaults.
57352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57353         results.
57354         * lib/strverscmp.h: Delete.
57355         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57356         * tests/test-strverscmp.c (includes): Adjust client.
57357         * lib/check-version.c (includes): Likewise.
57358         * NEWS: Document the change.
57359
57360         strverscmp: add unit test
57361         * modules/strverscmp-tests: New file.
57362         * tests/test-strverscmp.c: Likewise.
57363
57364 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57365
57366         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57367         regarding Windows crypto stuff, from Mono.
57368
57369 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57370
57371         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57372         if present, for intel RND.  Return error on failures.
57373
57374 2008-08-18  Ben Pfaff  <blp@gnu.org>
57375
57376         gitlog-to-changelog: give better diagnostic for failed pipe-open
57377         * build-aux/gitlog-to-changelog: Improve error message: suggest
57378         that the version of Git may be too old.
57379
57380 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57381
57382         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57383         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57384
57385 2008-08-18  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57388         pthread_in_use().
57389
57390 2008-08-18  Bruno Haible  <bruno@clisp.org>
57391
57392         * lib/glthread/threadlib.c: Include <pthread.h>.
57393
57394 2008-08-18  Bruno Haible  <bruno@clisp.org>
57395
57396         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57397         glthread_recursive_lock_* macros.
57398         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57399         Fix syntax error.
57400
57401 2008-08-18  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/glthread/thread.c: Avoid forcing a context switch right after
57404         thread creation.
57405
57406 2008-08-17  Bruno Haible  <bruno@clisp.org>
57407
57408         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57409         * lib/glthread/thread.h: Provide Win32 specific implementation.
57410         * modules/thread (Files): Add lib/glthread/thread.c.
57411         (Depends-on): Add lock.
57412         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57413
57414 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57415
57416         New module 'yield'.
57417         * modules/yield: New file.
57418         * lib/glthread/yield.h: New file.
57419         * m4/yield.m4: New file.
57420         * MODULES.html.sh (Multithreading): Add yield.
57421
57422 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57423
57424         New module 'thread'.
57425         * modules/thread: New file.
57426         * lib/glthread/thread.h: New file.
57427         * m4/thread.m4: New file.
57428         * MODULES.html.sh (Multithreading): Add thread.
57429
57430 2008-08-17  Bruno Haible  <bruno@clisp.org>
57431
57432         * lib/glthread/lock.h: Include <stdlib.h> always.
57433         * lib/glthread/tls.h: Likewise.
57434         * lib/glthread/cond.h: Likewise.
57435
57436 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57437
57438         New module 'cond'.
57439         * modules/cond: New file.
57440         * lib/glthread/cond.h: New file.
57441         * lib/glthread/cond.c: New file.
57442         * m4/cond.m4: New file.
57443         * MODULES.html.sh (Multithreading): Add cond.
57444
57445 2008-08-16  Eric Blake  <ebb9@byu.net>
57446
57447         c-stack: fix regression on Irix 5.3 from 2008-06-21
57448         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57449         sa_sigaction...
57450         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57451         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57452         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57453         * modules/signal (Makefile.am): Use the value.
57454         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57455         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57456         * doc/posix-headers/signal.texi (signal.h): Document this
57457         portability issue.
57458         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57459         Reported by Tom G. Christensen.
57460
57461 2008-08-17  Bruno Haible  <bruno@clisp.org>
57462
57463         New module 'threadlib'.
57464         * modules/threadlib: New file.
57465         * lib/glthread/threadlib.c: New file, extracted from
57466         lib/glthread/lock.c.
57467         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57468         functions.
57469         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57470         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57471         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57472         macros.
57473         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57474         (gl_DISABLE_THREADS): Remove macro.
57475         * modules/lock (Files): Remove build-aux/config.rpath.
57476         (Depends-on): Remove havelib. Add threadlib.
57477         (configure.ac-early): Remove section.
57478         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57479         * modules/tls (Depends-on): Remove lock. Add threadlib.
57480         (Link): New section, copied from threadlib.
57481         * MODULES.html.sh (Multithreading): Add threadlib.
57482
57483 2008-08-14  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57486         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57487         glthread_rwlock_unlock, glthread_rwlock_destroy,
57488         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57489         glthread_recursive_lock_destroy): Define as macros always.
57490         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57491         glthread_lock_lock.
57492         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57493         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57494         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57495         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57496         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57497         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57498         (glthread_recursive_lock_lock_func): Renamed from
57499         glthread_recursive_lock_lock.
57500         (glthread_recursive_lock_unlock_func): Renamed from
57501         glthread_recursive_lock_unlock.
57502         (glthread_recursive_lock_destroy_func): Renamed from
57503         glthread_recursive_lock_destroy.
57504
57505 2008-08-14  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/glthread/lock.h: Renamed from lib/lock.h.
57508         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57509         * lib/glthread/tls.h: Renamed from lib/tls.h.
57510         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57511         * lib/fstrcmp.c: Update includes.
57512         * lib/strsignal.c: Update includes.
57513         * modules/lock (Files, Makefile.am): Update.
57514         (Include): Change to "glthread/lock.h".
57515         * modules/tls (Files, Makefile.am): Update.
57516         (Include): Change to "glthread/tls.h".
57517         * tests/test-lock.c: Update includes.
57518         * tests/test-tls.c: Update includes.
57519         * NEWS: Mention the renamed header files.
57520
57521 2008-08-11  Jim Meyering  <meyering@redhat.com>
57522
57523         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57524
57525 2008-08-11  Eric Blake  <ebb9@byu.net>
57526
57527         test-c-stack: avoid C99-ism
57528         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57529         before statement.
57530         Reported by Alain Guibert.
57531
57532 2008-08-10  Jim Meyering  <meyering@redhat.com>
57533
57534         ensure that return value of uinttostr et al are not ignored
57535         * lib/inttostr.h (__GNUC_PREREQ): Define.
57536         (__attribute_warn_unused_result__): Define.
57537         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57538
57539 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57540
57541         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57542         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57543
57544 2008-08-07  Jim Meyering  <meyering@redhat.com>
57545
57546         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57547
57548         * modules/mkstemp (License): Relicense under LGPLv2+.
57549         * modules/tempname (License): Likewise.
57550
57551 2008-08-06  Bruno Haible  <bruno@clisp.org>
57552
57553         * lib/poll.c (poll): Further micro-optimization.
57554
57555 2008-08-06  Jim Meyering  <meyering@redhat.com>
57556
57557         inet_pton.c: use locale-independent tolower
57558         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57559         (inet_pton6): Use c_tolower rather than tolower.
57560         * modules/inet_pton (Depends-on): Add c-ctype.
57561
57562 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57563
57564         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57565         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57566
57567 2008-08-06  Jim Meyering  <meyering@redhat.com>
57568
57569         * modules/inet_pton (License): Relicense under LGPLv2+.
57570
57571 2008-08-03  Bruno Haible  <bruno@clisp.org>
57572
57573         Additional non-aborting API for lock and tls.
57574         * lib/lock.h: Include <errno.h>.
57575         (glthread_lock_init): New macro/function.
57576         (gl_lock_init): Define as wrapper around glthread_lock_init.
57577         (glthread_lock_lock): New macro/function.
57578         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57579         (glthread_lock_unlock): New macro/function.
57580         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57581         (glthread_lock_destroy): New macro/function.
57582         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57583         (glthread_rwlock_init): New macro/function.
57584         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57585         (glthread_rwlock_rdlock): New macro/function.
57586         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57587         (glthread_rwlock_wrlock): New macro/function.
57588         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57589         (glthread_rwlock_unlock): New macro/function.
57590         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57591         (glthread_rwlock_destroy): New macro/function.
57592         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57593         (glthread_recursive_lock_init): New macro/function.
57594         (gl_recursive_lock_init): Define as wrapper around
57595         glthread_recursive_lock_init.
57596         (glthread_recursive_lock_lock): New macro/function.
57597         (gl_recursive_lock_lock): Define as wrapper around
57598         glthread_recursive_lock_lock.
57599         (glthread_recursive_lock_unlock): New macro/function.
57600         (gl_recursive_lock_unlock): Define as wrapper around
57601         glthread_recursive_lock_unlock.
57602         (glthread_recursive_lock_destroy): New macro/function.
57603         (gl_recursive_lock_destroy): Define as wrapper around
57604         glthread_recursive_lock_destroy.
57605         (glthread_once): New macro/function.
57606         (gl_once): Define as wrapper around glthread_once.
57607         Update function declarations.
57608         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57609         glthread_rwlock_init. Return error code.
57610         (glthread_rwlock_rdlock_multithreaded): Renamed from
57611         glthread_rwlock_rdlock. Return error code.
57612         (glthread_rwlock_wrlock_multithreaded): Renamed from
57613         glthread_rwlock_wrlock. Return error code.
57614         (glthread_rwlock_unlock_multithreaded): Renamed from
57615         glthread_rwlock_unlock. Return error code.
57616         (glthread_rwlock_destroy_multithreaded): Renamed from
57617         glthread_rwlock_destroy. Return error code.
57618         (glthread_recursive_lock_init_multithreaded): Renamed from
57619         glthread_recursive_lock_init. Return error code.
57620         (glthread_recursive_lock_lock_multithreaded): Renamed from
57621         glthread_recursive_lock_lock. Return error code.
57622         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57623         glthread_recursive_lock_unlock. Return error code.
57624         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57625         glthread_recursive_lock_destroy. Return error code.
57626         (glthread_once_call): Make static.
57627         (glthread_once_multithreaded): Renamed from glthread_once.
57628         * lib/tls.h: Include <errno.h>.
57629         (glthread_tls_key_init): New macro/function.
57630         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57631         (glthread_tls_set): New macro/function.
57632         (gl_tls_set): Define as wrapper around glthread_tls_set.
57633         (glthread_tls_key_destroy): New macro/function.
57634         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57635         Update function declarations.
57636         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57637         glthread_tls_get.
57638         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57639
57640 2008-08-04  Eric Blake  <ebb9@byu.net>
57641
57642         gnumakefile: use space, not TAB, outside of targets
57643         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57644
57645 2008-08-02  Jim Meyering  <meyering@redhat.com>
57646
57647         getdate.y: avoid locale-dependent date parsing failure
57648         In Turkish locales, getdate would fail to recognize keywords
57649         containing a lowercase "i".  The solution is not to rely on
57650         locale-sensitive case-conversion.
57651         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57652         (lookup_word): Use c_toupper in place of toupper.
57653         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57654         Reported by Vefa Bicakci <bicave@superonline.com> in
57655         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57656         * modules/getdate (Depends-on): Add c-ctype.
57657
57658 2008-08-02  Bruno Haible  <bruno@clisp.org>
57659
57660         * gnulib-tool (func_import): When updating or creating a .gitignore
57661         file, prepend each added line with a slash, and ignore leading slashes
57662         from the existing lines.
57663         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57664
57665 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57666
57667         Portability fix for GNU make 3.79.1.
57668         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57669         versions do not understand.
57670
57671 2008-08-01  Bruno Haible  <bruno@clisp.org>
57672
57673         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57674         * tests/test-isnanf.h (zero): New variable.
57675         (main): Avoid literal -0.0f.
57676         * tests/test-isnand.h (zero): New variable.
57677         (main): Avoid literal -0.0.
57678         * tests/test-isnanl.h (zero): New variable.
57679         (main): Avoid literal -0.0L.
57680         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57681         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57682         -0.0, -0.0L.
57683         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57684         (test_signbitd): Avoid literal -0.0.
57685         (test_signbitl): Avoid literal -0.0L.
57686         * tests/test-ceilf1.c (zero): New variable.
57687         (main): Avoid literal -0.0f.
57688         * tests/test-ceill.c (zero): New variable.
57689         (main): Avoid literal -0.0L.
57690         * tests/test-floorf1.c (zero): New variable.
57691         (main): Avoid literal -0.0f.
57692         * tests/test-floorl.c (zero): New variable.
57693         (main): Avoid literal -0.0L.
57694         * tests/test-roundf1.c (zero): New variable.
57695         (main): Avoid literal -0.0f.
57696         * tests/test-round1.c (zero): New variable.
57697         (main): Avoid literal -0.0.
57698         * tests/test-roundl.c (zero): New variable.
57699         (main): Avoid literal -0.0L.
57700         * tests/test-truncf1.c (zero): New variable.
57701         (main): Avoid literal -0.0f.
57702         * tests/test-trunc1.c (zero): New variable.
57703         (main): Avoid literal -0.0.
57704         * tests/test-truncl.c (zero): New variable.
57705         (main): Avoid literal -0.0L.
57706         * tests/test-frexp.c (zero): New variable.
57707         (main): Avoid literal -0.0.
57708         * tests/test-frexpl.c (zero): New variable.
57709         (main): Avoid literal -0.0L.
57710         * tests/test-ldexpl.c (zero): New variable.
57711         (main): Avoid literal -0.0L.
57712         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57713         (zerod, zerol): New variables.
57714         (test_function): Avoid literals -0.0, -0.0L.
57715         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57716         (zerod, zerol): New variables.
57717         (test_function): Avoid literals -0.0, -0.0L.
57718         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57719         (zerod, zerol): New variables.
57720         (test_function): Avoid literals -0.0, -0.0L.
57721         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57722         (zerod, zerol): New variables.
57723         (test_function): Avoid literals -0.0, -0.0L.
57724         * tests/test-strtod.c (zero): New variable.
57725         (main): Avoid literal -0.0.
57726         Reported by Jonathan C. Patschke <jp@centtech.com>.
57727
57728 2008-07-31  Jim Meyering  <meyering@redhat.com>
57729
57730         sha256.h: correct definition of SHA224_DIGEST_SIZE
57731         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57732         Reported by Paulie Pena IV <paulie4@gmail.com>.
57733         Define as 224 / 8, rather than as a literal.
57734         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57735         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57736         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57737
57738 2008-07-31  Bruno Haible  <bruno@clisp.org>
57739
57740         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57741         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57742         Reported by Jonathan Patschke <jp@centtech.com>.
57743
57744 2008-07-31  Bruno Haible  <bruno@clisp.org>
57745
57746         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57747         Reported by Paolo Bonzini <bonzini@gnu.org>.
57748
57749 2008-07-30  Eric Blake  <ebb9@byu.net>
57750
57751         test-strtod: allow compilation without -lm
57752         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57753         Reported by Dennis Clarke <blastwave@gmail.com>.
57754
57755 2008-07-28  Jim Meyering  <meyering@redhat.com>
57756
57757         bootstrap: work also when there are no .po files in po/
57758         * build-aux/bootstrap (update_po_files): Complete the change
57759         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57760
57761 2008-07-27  Jim Meyering  <meyering@redhat.com>
57762
57763         * users.txt: Add zile.
57764
57765 2008-07-26  Ben Pfaff  <blp@gnu.org>
57766
57767         Add missing dependencies on new m4/exponent[fdl].m4 files.
57768         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57769         * modules/isnand-nolibm: Add m4/exponentd.m4.
57770         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57771         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57772         m4/isnan[fdl].m4, because the macros actually used moved.
57773         Reported by Jim Meyering.
57774
57775 2008-07-14  Ben Pfaff  <blp@gnu.org>
57776
57777         Add isinf module.
57778         * lib/isinf.c: New file.
57779         * lib/math.in.h: Define isinf macro if we have decided to replace
57780         it.
57781         * m4/isinf.m4: New file.
57782         * m4/math_h.m4: Initialize and substitute variables for isinf
57783         module.
57784         * modules/isinf: New file.
57785         * modules/isinf-tests: New file.
57786         * modules/math: Add substitutions for new module.
57787         * tests/test-isinf.c: New file.
57788         * doc/posix-functions/isinf.texi: Mention new module.
57789         * MODULES.html.sh: Mention new module.
57790
57791 2008-07-14  Ben Pfaff  <blp@gnu.org>
57792
57793         Factor out some macros for use by additional modules.
57794         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57795         exponentf.m4.
57796         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57797         exponentd.m4.
57798         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57799         file exponentl.m4.
57800         * m4/exponentf.m4: New file.
57801         * m4/exponentd.m4: New file.
57802         * m4/exponentl.m4: New file.
57803         * modules/isnanf: Use new file m4/exponentf.m4.
57804         * modules/isnand: Use new file m4/exponentd.m4.
57805         * modules/isnanl: Use new file m4/exponentl.m4.
57806
57807 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57808
57809         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57810         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57811         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57812         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57813
57814         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57815         readlink on platforms without PATH_MAX.
57816
57817 2008-07-21  Eric Blake  <ebb9@byu.net>
57818
57819         Warn, not fail, on stale version.
57820         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57821
57822         Don't allow installation with stale devel version number.
57823         * top/GNUmakefile (_is-install-target): New macro.
57824         (_curr-ver): Forbid installation with stale version number.
57825
57826 2008-07-20  Bruno Haible  <bruno@clisp.org>
57827
57828         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57829         TESTS_ENVIRONMENT.
57830         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57831
57832 2008-07-20  Bruno Haible  <bruno@clisp.org>
57833
57834         * lib/c-stack.h (c_stack_action): Add documentation.
57835         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57836
57837 2008-07-20  Bruno Haible  <bruno@clisp.org>
57838
57839         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57840         * modules/readlink (License): Likewise.
57841
57842 2008-07-17  Eric Blake  <ebb9@byu.net>
57843
57844         * modules/c-stack (Link): Fix typo.
57845
57846         Make c-stack use libsigsegv, when available.
57847         * modules/c-stack (Depends-on): Add libsigsegv.
57848         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57849         needed.
57850         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57851         (segv_handler, overflow_handler, c_stack_action)
57852         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57853         implementation when libsigsegv is available, but only when using
57854         the library is necessary.
57855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57856         comment, explaining why XSI check fails on Linux.
57857         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57858         * tests/test-c-stack2.sh: Tweak skip message.
57859         * NEWS: Document new link-time requirements.
57860
57861 2008-07-16  Eric Blake  <ebb9@byu.net>
57862
57863         c-stack: Expose false positives when not using libsigsegv.
57864         * modules/c-stack-tests (Files): Expand test.
57865         * tests/test-c-stack.c (main): Add means to conditionally trigger
57866         non-overflow SIGSEGV.
57867         * tests/test-c-stack2.sh: New file.
57868
57869 2008-07-14  Bruno Haible  <bruno@clisp.org>
57870
57871         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57872         Reported by Eric Blake.
57873
57874 2008-07-14  Sam Steingold  <sds@gnu.org>
57875             Bruno Haible  <bruno@clisp.org>
57876
57877         New module libsigsegv.
57878         * modules/libsigsegv: New file.
57879         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57880         modifications.
57881         * MODULES.html.sh (Signal handling): New section.
57882
57883 2008-07-14  Bruno Haible  <bruno@clisp.org>
57884
57885         * modules/unictype/ctype-* (Description): Add the word "function".
57886         Improves the resulting doc in MODULES.html.
57887
57888 2008-07-12  Ben Pfaff  <blp@gnu.org>
57889
57890         Add longlong module.
57891         * modules/longlong: New file.
57892
57893 2008-07-12  Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57896         to empty.
57897
57898 2008-07-10  Ben Pfaff  <blp@gnu.org>
57899
57900         Add isnan module.
57901         * doc/posix-functions/isnan.texi: Mention new module.
57902         * lib/math.in.h: Define isnan macro if we have decided to replace
57903         it.
57904         * m4/isnan.m4: New file.
57905         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57906         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57907         also.
57908         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57909         redundancy.
57910         * m4/math_h.m4: Initialize and substitute variables for isnan
57911         module.
57912         * modules/isnan: New file.
57913         * modules/isnan-tests: New file.
57914         * modules/math: Add substitutions for new module.
57915         * tests/test-isnan.c: New file.
57916         * MODULES.html.sh: Mention new module.
57917
57918 2008-07-10  Ben Pfaff  <blp@gnu.org>
57919
57920         Add isnanf module.
57921         * lib/isnanf.m4: New file.
57922         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57923         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57924         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57925         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57926         * modules/isnanf: New file.
57927         * modules/isnanf-tests: New file.
57928         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57929         files.
57930         * tests/test-isnanf-nolibm.c: factored most of its contents into
57931         new file tests/test-isnanf.h.
57932         * tests/test-isnanf.h: New file.
57933         * tests/test-isnanf.c: New file.
57934         * MODULES.html.sh: Mention new module.
57935         * doc/glibc-functions/isnanf.texi: Mention new module.
57936
57937 2008-07-10  Ben Pfaff  <blp@gnu.org>
57938
57939         Add isnand module.
57940         * lib/isnand.h: New file.
57941         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57942         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57943         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57944         functionality also.
57945         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57946         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57947         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57948         * modules/isnand: New file.
57949         * modules/isnand-tests: New file.
57950         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57951         files.
57952         * tests/test-isnand-nolibm.c: factored most of its contents into
57953         new file tests/test-isnand.h.
57954         * tests/test-isnand.h: New file.
57955         * tests/test-isnand.c: New file.
57956         * MODULES.html.sh: Mention new module.
57957
57958 2008-07-10  Ben Pfaff  <blp@gnu.org>
57959
57960         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57961         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57962         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57963         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57964         * modules/isnanf-nolibm: Update references to renamed files.
57965         * modules/isnand-nolibm: Likewise.
57966         * modules/isnanf-nolibm-tests: Likewise.
57967         * modules/isnand-nolibm-tests: Likewise.
57968         * lib/frexp.c: Likewise.
57969         * lib/isfinite.c: Likewise.
57970         * lib/signbitd.c: Likewise.
57971         * lib/signbitf.c: Likewise.
57972         * lib/vasnprintf.c: Likewise.
57973         * tests/test-ceilf1.c: Likewise.
57974         * tests/test-ceilf2.c: Likewise.
57975         * tests/test-floorf1.c: Likewise.
57976         * tests/test-floorf2.c: Likewise.
57977         * tests/test-frexp.c: Likewise.
57978         * tests/test-round1.c: Likewise.
57979         * tests/test-round2.c: Likewise.
57980         * tests/test-roundf1.c: Likewise.
57981         * tests/test-strtod.c: Likewise.
57982         * tests/test-trunc1.c: Likewise.
57983         * tests/test-trunc2.c: Likewise.
57984         * tests/test-truncf1.c: Likewise.
57985         * tests/test-truncf2.c: Likewise.
57986         * NEWS: Mention the renamed header files.
57987
57988 2008-07-11  Jim Meyering  <meyering@redhat.com>
57989
57990         vc-list-files: make the last-resort awk code more portable
57991         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57992         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57993         does not support it.
57994
57995 2008-07-10  Eric Blake  <ebb9@byu.net>
57996
57997         Work with tar's bootstrap.
57998         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57999         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58000         an m4 comment.
58001
58002 2008-07-09  Jim Meyering  <meyering@redhat.com>
58003
58004         posix-shell.m4: fix typo that made this test malfunction
58005         * m4/posix-shell.m4: Remove capitalization in variable name.
58006
58007 2008-07-08  Bruno Haible  <bruno@clisp.org>
58008
58009         * m4/onceonly.m4: Update comments.
58010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58011
58012 2008-07-04  Jim Meyering  <meyering@redhat.com>
58013
58014         * users.txt: Add vc-dwim.
58015         (bison, coreutils): Use the gitweb URL.
58016
58017 2008-07-03  Jim Meyering  <meyering@redhat.com>
58018
58019         * users.txt: Add libffcall.  From Sam Steingold.
58020
58021 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
58022
58023         getdate.y: do not ignore TZ with relative day, month or year offset
58024         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58025         relative-date-handling, since otherwise, the latter would clobber the
58026         sole output (an updated Start value) of the tz-handling block.
58027         * tests/test-getdate.c: Tests for the fix
58028
58029 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58030
58031         Recognize 'foo_LIBRARIES += libgnu.a'.
58032         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58033         makefile snippet has already specified an installation location,
58034         also using '+='.
58035
58036 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
58037
58038         getdate.y: factor out common actions
58039         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58040         Use them in place of open-coded actions.
58041
58042 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58043
58044         Add self-test for getdate module.
58045         * modules/getdate-tests: New file.
58046         * tests/test-getdate.c: New file.
58047
58048 2008-06-29  Bruno Haible  <bruno@clisp.org>
58049
58050         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58051         .gitignore.
58052         Reported by Sylvain Beucler <beuc@beuc.net>.
58053
58054 2008-06-29  Bruno Haible  <bruno@clisp.org>
58055
58056         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58057         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58058
58059 2008-06-29  Bruno Haible  <bruno@clisp.org>
58060
58061         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58062         EXTRA_DIST.
58063         Reported by Sylvain Beucler <beuc@beuc.net>.
58064
58065 2008-06-26  Jim Meyering  <meyering@redhat.com>
58066
58067         make several modules depend on the "open" module
58068         This provides slightly increased consistency when opening-for-write
58069         the name of a non-directory spelled with a trailing slash.
58070         * modules/chdir-safer: Likewise.
58071         * modules/chown: Likewise.
58072         * modules/clean-temp: Likewise.
58073         * modules/copy-file: Likewise.
58074         * modules/fchdir: Likewise.
58075         * modules/fcntl-safer: Likewise.
58076         * modules/pipe: Likewise.
58077         * modules/utime: Likewise.
58078         Prompted by Eric Blake and Bruno Haible.
58079
58080 2008-06-24  Andreas Schwab  <schwab@suse.de>
58081
58082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58083         literals can be used as initializers for global variables.
58084
58085 2008-06-23  Eric Blake  <ebb9@byu.net>
58086
58087         Make gnulib-cache.m4 easier to diff.
58088         * gnulib-tool (func_import): Allow newlines when reading cached
58089         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58090
58091 2008-06-23  Bruno Haible  <bruno@clisp.org>
58092
58093         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58094         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58095         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58096         m4/signalblocking.m4.
58097         (gl_PREREQ_SIGACTION): Don't invoke it.
58098         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58099         gl_PREREQ_SIG_HANDLER_H.
58100         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58101         Don't check for sigaction here.
58102
58103 2008-06-23  Bruno Haible  <bruno@clisp.org>
58104
58105         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58106         (install_handlers): Don't set the SA_RESETHAND flag.
58107
58108 2008-06-23  Bruno Haible  <bruno@clisp.org>
58109
58110         * m4/sigaction.m4: Comment fixes.
58111         * lib/signal.in.h: Likewise.
58112
58113 2008-06-23  Eric Blake  <ebb9@byu.net>
58114
58115         Fix typo.
58116         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58117
58118         Avoid SA_ namespace.
58119         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58120         Reported by Ralf Wildenhues.
58121
58122         Avoid test failure due to SA_RESTORER.
58123         * tests/test-sigaction.c (SA_MASK): New macro.
58124         (main): Avoid failing due to extension flags being set.
58125         Reported by Jim Meyering.
58126
58127         Revert use of sig-handler.h in sigprocmask.c.
58128         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58129         it requires the existence of struct sigaction.
58130         * lib/sigprocmask.c (handler_t): Restore typedef.
58131         (rpl_signal, old_handlers): Use local type.
58132
58133 2008-06-22  Bruno Haible  <bruno@clisp.org>
58134
58135         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58136         conditionally.
58137         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58138
58139 2008-06-22  Bruno Haible  <bruno@clisp.org>
58140
58141         * doc/posix-functions/siginterrupt.texi: Move note.
58142
58143         * lib/signal.in.h (SA_RESTART): New macro.
58144         * lib/sigaction.c: Update comment.
58145
58146         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58147
58148         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58149         (gl_PREREQ_SIGPROCMASK): Invoke it.
58150         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58151
58152         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58153
58154         * lib/sigprocmask.c: Update a comment.
58155
58156 2008-06-21  Eric Blake  <ebb9@byu.net>
58157
58158         Use sigaction module rather than signal().
58159         * modules/c-stack (Depends-on): Add sigaction.
58160         * modules/fatal-signal (Depends-on): Likewise.
58161         * modules/nanosleep (Depends-on): Likewise.
58162         * modules/sigprocmask (Files): Add sig-handler.h.
58163         * modules/sigaction (Files): Likewise.
58164         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58165         Eggert.
58166         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58167         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58168         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58169         (init_fatal_signals): Likewise.
58170         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58171         (siginterrupt): Delete fallback.
58172         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58173         instead.
58174         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58175         siginterrupt.
58176
58177         New module sigaction, for mingw.
58178         * modules/sigaction: New module...
58179         * modules/sigaction-tests: ...and its test.
58180         * m4/sigaction.m4: New file.
58181         * lib/sigaction.c: Likewise.
58182         * tests/test-sigaction.c: Likewise.
58183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58184         * modules/signal (Makefile.am): Likewise.
58185         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58186         needed.
58187         * doc/posix-headers/signal.texi (signal.h): Mention provided
58188         types.
58189         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58190         that sigaction is preferable.
58191         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58192         module.
58193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58194         sigaction.
58195
58196         Improve robustness of sigprocmask by overriding signal.
58197         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58198         is in use.
58199         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58200         (SIGKILL, SIGSTOP): Provide fallbacks.
58201         (rpl_signal): Implement.
58202         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58203         signal can be called inside handlers.
58204
58205         Fix nanosleep module on mingw.
58206         * modules/nanosleep (Depends-on): Add sys_select.
58207         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58208
58209         Fix licensing of sigprocmask.
58210         * modules/raise (License): Relicense as LGPL.
58211
58212 2008-06-21  Bruno Haible  <bruno@clisp.org>
58213
58214         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58215         result if it contains question marks.
58216         Reported by Michael Geng <linux@michaelgeng.de>.
58217
58218 2008-06-19  Bruno Haible  <bruno@clisp.org>
58219
58220         Fix CVS-ism.
58221         * doc/gnulib.texi: Include updated-stamp.texi.
58222         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58223         (updated-stamp.texi): New rule.
58224         (gnulib.info): Depend on it.
58225         * doc/.gitignore: Add updated-stamp.texi.
58226         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58227
58228 2008-06-19  Bruno Haible  <bruno@clisp.org>
58229
58230         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58231         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58232
58233 2008-06-19  Eric Blake  <ebb9@byu.net>
58234
58235         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58236         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58237         Reported by Stepan Kasal.
58238
58239 2008-06-18  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58242         Reported by Eric Blake.
58243
58244 2008-06-18  Eric Blake  <ebb9@byu.net>
58245
58246         Work around cygwin 1.5.25 strsignal bug.
58247         * tests/test-strsignal.c: Allow for const char *.
58248         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58249
58250 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58251
58252         * users.txt: Update URL to article and add author/date
58253         information.
58254
58255 2008-06-17  Bruno Haible  <bruno@clisp.org>
58256
58257         New macro gl_DISABLE_THREADS.
58258         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58259         if the user did not pass --enable-threads or --disable-threads option.
58260         (gl_DISABLE_THREADS): New macro.
58261         Reported by Eric Blake <ebb9@byu.net>.
58262
58263 2008-06-17  Bruno Haible  <bruno@clisp.org>
58264
58265         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58266         when the macro ignores it.
58267         Based on a patch by Eric Blake <ebb9@byu.net>.
58268
58269 2008-06-17  Bruno Haible  <bruno@clisp.org>
58270
58271         * modules/tls (License): Change to LGPLv2+.
58272         Reported by Eric Blake.
58273
58274 2008-06-17  Eric Blake  <ebb9@byu.net>
58275
58276         Simplify c-stack prerequisites.
58277         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58279         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58280         check.
58281         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58282         <sys/resource.h>.
58283
58284         Move c-stack test into testsuite.
58285         * modules/c-stack-tests: New file.
58286         * lib/c-stack.c [DEBUG]: Move test program...
58287         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58288         fail test if sigaltstack is lacking.
58289         * tests/test-c-stack.sh: New driver file.
58290
58291 2008-06-16  Eric Blake  <ebb9@byu.net>
58292
58293         Use raise module consistently.
58294         * modules/fatal-signal (Depends-on): Add raise.
58295         * modules/sigprocmask (Depends-on): Likewise.
58296         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58297         * lib/sigprocmask.c (sigprocmask): Likewise.
58298         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58299         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58300
58301         Fix compliance bug in sigpending.
58302         * lib/sigprocmask.c (sigpending): Return pending array via
58303         parameter, not return value.
58304
58305 2008-06-14  Eric Blake  <ebb9@byu.net>
58306
58307         Improve obstack-printf test code.
58308         * tests/test-obstack-printf.c (test_function): Fix comment, and
58309         simplify usage of obstack_* in macros.  Add a test for coverage.
58310         Reported by Bruno Haible.
58311
58312 2008-06-14  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58315         array size as a constant, not as a const variable.
58316         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58317         AC_USE_SYSTEM_EXTENSIONS.
58318         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58319         Test whether the obstack_printf function actually exists.
58320         * modules/obstack-printf (Depends-on): Add extensions.
58321         (Include): Remove obstack.h.
58322         * modules/obstack-printf-posix (Depends-on): Add extensions.
58323         (Include): Remove obstack.h.
58324
58325 2008-06-13  Eric Blake  <ebb9@byu.net>
58326
58327         Add obstack-printf and obstack-printf-posix modules.
58328         * modules/obstack-printf: New file.
58329         * modules/obstack-printf-posix: Likewise.
58330         * MODULES.html.sh (Misc): Mention them.
58331         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58332         Likewise.
58333         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58334         Likewise.
58335         * modules/stdio (Makefile.am): Accomodate new modules.
58336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58337         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58338         Declare.
58339         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58340         functions.
58341         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58342         (gl_REPLACE_OBSTACK_PRINTF): New macros
58343         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58344         * tests/test-obstack-printf.c: New file.
58345         * modules/obstack-printf-tests: Likewise.
58346         * modules/obstack-printf-posix-tests: Likewise.
58347
58348 2008-06-11  Bruno Haible  <bruno@clisp.org>
58349
58350         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58351         * lib/open.c: Include errno.h.
58352         (open): Fail when attempting to write to a file that has a trailing
58353         slash.
58354         * tests/test-open.c (main): Test against trailing slash bug.
58355         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58356
58357 2008-06-10  Bruno Haible  <bruno@clisp.org>
58358
58359         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58360         for $? to work inside the trap command, with various /bin/sh-s.
58361         * tests/test-vc-list-files-cvs.sh: Likewise.
58362
58363 2008-06-10  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/acl-internal.h: Don't include gettext.h here.
58366         * lib/set-mode-acl.c: Include gettext.h here.
58367         * lib/copy-acl.c: Likewise.
58368
58369 2008-06-10  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58372         * lib/wait-process.c (wait_subprocess): Likewise.
58373         * lib/execute.h (execute): Add termsigp argument.
58374         * lib/execute.c (execute): Likewise.
58375         * lib/csharpcomp.c (compile_csharp_using_pnet,
58376         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58377         * lib/csharpexec.c (execute_csharp_using_pnet,
58378         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58379         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58380         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58381         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58382         is_jikes_present): Update.
58383         * lib/javaexec.c (execute_java_class): Update.
58384         * lib/javaversion.c (execute_and_read_line): Update.
58385         * NEWS: Document the changes.
58386         Reported by Eric Blake.
58387
58388 2008-06-10  Eric Blake  <ebb9@byu.net>
58389
58390         Add missing include.
58391         * tests/test-strstr.c (includes): Add <signal.h>.
58392         * tests/test-strcasestr.c (includes): Likewise.
58393         * tests/test-memmem.c (includes): Likewise.
58394
58395 2008-06-10  Bruno Haible  <bruno@clisp.org>
58396
58397         * lib/wait-process.c (wait_subprocess): Add an assertion.
58398
58399 2008-06-10  Bruno Haible  <bruno@clisp.org>
58400
58401         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58402
58403 2008-06-10  Bruno Haible  <bruno@clisp.org>
58404
58405         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58406         using alarm().
58407         * tests/test-strcasestr.c (main): Likewise.
58408         * tests/test-strstr.c (main): Likewise.
58409
58410 2008-06-09  Bruno Haible  <bruno@clisp.org>
58411
58412         Work around the Solaris 10 ACE ACLs ABI change.
58413         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58414         declare if ACL_NO_TRIVIAL is present.
58415         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58416         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58417         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58418         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58419         define if ACL_NO_TRIVIAL is present.
58420         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58421         and use the current ABI.
58422         (file_has_acl): Use same #if condition as elsewhere.
58423         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58424         in use, and use the current ABI.
58425         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58426         Reported by Jim Meyering.
58427
58428 2008-06-09  Eric Blake  <ebb9@byu.net>
58429
58430         Work around environments that (stupidly) ignore SIGALRM.
58431         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58432         before using alarm().
58433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58435         Reported by Ian Beckwith <ianb@erislabs.net>.
58436
58437         Produce autobuild blurb earlier in log.
58438         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58439
58440 2008-06-09  Jim Meyering  <meyering@redhat.com>
58441         and OndÅ™ej Vašík  <ovasik@redhat.com>
58442
58443         utimens.c: correct kernel bug work-around
58444         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58445         failure, not success, and the kernel bug we're trying to work
58446         around affects not just the utimensat call, but also the fallback
58447         futimens call.
58448         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58449         not success.
58450         [HAVE_FUTIMENS]: Use the same work-around, here.
58451
58452 2008-06-09  Jim Meyering  <meyering@redhat.com>
58453
58454         add more guards around definition of ACE_-related code
58455         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58456         ALLOW and ACE_OWNER are also defined.
58457
58458 2008-06-08  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/acl-internal.h: Add me as co-author.
58461         * lib/file-has-acl.c: Likewise.
58462         * lib/set-mode-acl.c: Likewise.
58463         * lib/copy-acl.c: Likewise.
58464
58465 2008-06-08  Bruno Haible  <bruno@clisp.org>
58466
58467         Add support for AIX ACLs.
58468         * lib/acl-internal.h (acl_nontrivial): New declaration.
58469         * lib/file-has-acl.c (acl_nontrivial): New function.
58470         (file_has_acl): Add implementation using AIX 4 ACL API.
58471         * lib/set-mode-acl.c (qset_acl): Likewise.
58472         * lib/copy-acl.c (qcopy_acl): Likewise.
58473
58474 2008-06-08  Bruno Haible  <bruno@clisp.org>
58475
58476         Add support for HP-UX ACLs.
58477         * lib/acl-internal.h (acl_nontrivial): New declaration.
58478         * lib/file-has-acl.c (acl_nontrivial): New function.
58479         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58480         * lib/set-mode-acl.c (qset_acl): Likewise.
58481         * lib/copy-acl.c (qcopy_acl): Likewise.
58482
58483 2008-06-08  Bruno Haible  <bruno@clisp.org>
58484
58485         Add support for Cygwin ACLs.
58486         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58487         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58488         the chmod_or_fchmod call.
58489         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58490
58491 2008-06-08  Bruno Haible  <bruno@clisp.org>
58492
58493         Fix bug with setuid modes in Solaris 10+ code.
58494         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58495         succeeded, when the mode contains some special bits.
58496
58497 2008-06-08  Bruno Haible  <bruno@clisp.org>
58498
58499         Add support for Solaris 7..10 ACLs.
58500         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58501         declarations.
58502         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58503         functions.
58504         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58505         * lib/set-mode-acl.c (qset_acl): Likewise.
58506         * lib/copy-acl.c (qcopy_acl): Likewise.
58507
58508 2008-06-08  Bruno Haible  <bruno@clisp.org>
58509
58510         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58511         declaration.
58512         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58513         (acl_access_nontrivial): Remove MacOS X case.
58514         (file_has_acl): Use acl_extended_nontrivial.
58515         * lib/copy-acl.c (qcopy_acl): Likewise.
58516
58517 2008-06-08  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58520
58521 2008-06-08  Jim Meyering  <meyering@redhat.com>
58522
58523         * modules/acl (Maintainer): Add Bruno Haible.
58524
58525 2008-06-07  Bruno Haible  <bruno@clisp.org>
58526
58527         Improve support for Tru64 ACLs.
58528         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58529         ACL on OSF/1.
58530
58531 2008-06-07  Bruno Haible  <bruno@clisp.org>
58532
58533         Add support for MacOS X ACLs.
58534         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58535         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58536         * lib/set-mode-acl.c (qset_acl): Likewise.
58537         * lib/copy-acl.c (qcopy_acl): Likewise.
58538
58539 2008-06-07  Bruno Haible  <bruno@clisp.org>
58540
58541         Fix memory leak introduced on 2008-05-22.
58542         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58543         use.
58544
58545 2008-06-07  Bruno Haible  <bruno@clisp.org>
58546
58547         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58548         to construct an empty ACL.
58549
58550 2008-06-07  Bruno Haible  <bruno@clisp.org>
58551
58552         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58553         precisely.
58554         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58555
58556 2008-06-07  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58559         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58560
58561 2008-06-07  Bruno Haible  <bruno@clisp.org>
58562
58563         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58564         regardless of POSIX.
58565         * doc/posix-functions/_longjmp.texi: Likewise.
58566         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58567         SystemV platform in this case.
58568
58569 2008-06-06  Eric Blake  <ebb9@byu.net>
58570
58571         Document abort() bugs.
58572         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58573
58574         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58575         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58576         sigsetjmp.
58577         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58578         siglongjmp, but only as a macro.
58579         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58580         is obsolete.
58581         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58582
58583         Tweak documentation to cover cygwin argz bugs.
58584         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58585         argz bug fix; no code change needed since no cygwin releases
58586         occurred between the last fix and the bug being tested.
58587         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58588         module and recently fixed cygwin bugs.
58589         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58590         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58591         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58592         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58593         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58594         Likewise.
58595         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58596         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58597         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58598         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58599         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58600         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58601         Likewise.
58602
58603         Avoid gcc warning on cygwin.
58604         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58605         !ACL_NO_TRIVIAL]: Avoid unused variable.
58606
58607 2008-06-05  Eric Blake  <ebb9@byu.net>
58608
58609         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58610         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58611         git-version-gen fails to come up with a version.
58612         Reported by Simon Josefsson.
58613
58614 2008-06-05  Jim Meyering  <meyering@redhat.com>
58615             Paul Eggert  <eggert@cs.ucla.edu>
58616
58617         utimens.c: work around a probable Linux kernel bug
58618         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58619         appears to be a kernel bug that causes utimensat to return 280
58620         instead of 0, indicating success.
58621
58622 2008-06-04  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58625         2008-06-01 commit.
58626
58627 2008-06-04  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58630         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58631         (file_has_acl): Use it. Save errno afterwards.
58632         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58633
58634 2008-06-03  Bruno Haible  <bruno@clisp.org>
58635
58636         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58637         draft code. Simplify #ifs.
58638         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58639         Put Solaris code after POSIX-draft code. Fix comments regarding
58640         Solaris 10, HP-UX. Mention Cygwin.
58641         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58642
58643 2008-06-03  Eric Blake  <ebb9@byu.net>
58644
58645         Provide fallback for older kernels.
58646         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58647         Provide runtime fallback if kernel lacks support.
58648         Reported by Mike Frysinger.
58649
58650 2008-06-02  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58653         it exists.
58654
58655 2008-06-02  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58658         * lib/copy-acl.c (qcopy_acl): Update comment.
58659
58660 2008-06-02  Bruno Haible  <bruno@clisp.org>
58661
58662         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58663         like ACL APIs.
58664
58665 2008-06-02  Bruno Haible  <bruno@clisp.org>
58666
58667         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58668         * tests/test-set-mode-acl.sh: Likewise.
58669         * tests/test-copy-acl.sh: Likewise.
58670         * tests/test-copy-file.sh: Likewise.
58671
58672 2008-06-02  Bruno Haible  <bruno@clisp.org>
58673
58674         * tests/test-file-has-acl.sh: Remove unused code.
58675
58676 2008-06-01  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58679         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58680         messages.
58681         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58682
58683 2008-06-01  Bruno Haible  <bruno@clisp.org>
58684
58685         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58686         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58687         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58688         APIs.
58689         * modules/acl-tests (configure.ac): Remove tests now contained in
58690         m4/acl.m4.
58691
58692 2008-06-02  Jim Meyering  <meyering@redhat.com>
58693
58694         announce-gen: use a better key-server host name
58695         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58696         it may be more consistently reliable.  Suggested by Werner Koch
58697         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58698
58699 2008-06-01  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58702         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58703
58704 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58705
58706         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58707
58708 2008-06-01  Bruno Haible  <bruno@clisp.org>
58709
58710         New ACL tests.
58711         * tests/test-file-has-acl.sh: New file.
58712         * tests/test-file-has-acl.c: New file.
58713         * tests/test-set-mode-acl.sh: New file.
58714         * tests/test-set-mode-acl.c: New file.
58715         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58716         * tests/test-copy-acl.c: New file.
58717         * modules/acl-tests: New file, based on modules/copy-file-tests.
58718         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58719         (Depends-on): Add acl-tests.
58720         (configure.ac): Remove checks.
58721         (Makefile.am): Don't create test-sameacls program here any more.
58722
58723 2008-06-01  Bruno Haible  <bruno@clisp.org>
58724
58725         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58726         * tests/test-sameacls.c: Include progname.h.
58727         (main): Invoke set_program_name. Portability fixes for MacOS X,
58728         Solaris, HP-UX.
58729
58730 2008-06-01  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58733         function.
58734         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58735
58736 2008-06-01  Bruno Haible  <bruno@clisp.org>
58737
58738         * modules/rpmatch (Depends-on): Add strdup.
58739
58740 2008-06-01  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/pipe.c: Include unistd-safer.h.
58743         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58744         * modules/pipe (Depends-on): Add unistd-safer.
58745
58746 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58747
58748         * modules/autobuild (configure.ac): Call AB_INIT.
58749
58750 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58751
58752         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58753         Suggested by Bruno Haible <bruno@clisp.org>.
58754
58755 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58756
58757         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58758         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58759         <bruno@clisp.org>.
58760
58761 2008-05-29  Eric Blake  <ebb9@byu.net>
58762
58763         Prefer new POSIX 200x interfaces over futimesat.
58764         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58765         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58766         when available.
58767         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58768
58769 2008-05-28  Bruno Haible  <bruno@clisp.org>
58770
58771         * modules/stpcpy (License): Change to LGPLv2+.
58772         Requested by David Lutterkort <dlutter@redhat.com>.
58773
58774 2008-05-27  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58777         current mingw.
58778         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58779
58780 2008-05-27  Bruno Haible  <bruno@clisp.org>
58781
58782         * modules/iconv_open (Link): New section, from module 'iconv'.
58783         * modules/striconv (Link): Likewise.
58784         * modules/striconveh (Link): Likewise.
58785         * modules/xstriconv (Link): Likewise.
58786         * modules/unicodeio (Link): Likewise.
58787         * modules/propername (Link): Likewise.
58788         Reported by Jim Meyering.
58789
58790 2008-05-26  Jim Meyering  <meyering@redhat.com>
58791
58792         sha256: do not artificially restrict buffer length to be < 2^32
58793         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58794         uint32_t to size_t.
58795         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58796         to match.
58797
58798         avoid unaligned access errors, e.g., on sparc
58799         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58800         direct access through a possibly-unaligned uint64* pointer.
58801         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58802         direct access through a possibly-unaligned uint32* pointer.
58803         Prompted by this patch from Tom "spot" Callaway:
58804         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58805
58806         sha512.c: fix typo in comment
58807         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58808
58809 2008-05-25  Bruno Haible  <bruno@clisp.org>
58810
58811         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58812         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58813         (Makefile.am): Update lib_SOURCES.
58814
58815 2008-05-25  Bruno Haible  <bruno@clisp.org>
58816
58817         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58818
58819 2008-05-25  Jim Meyering  <meyering@redhat.com>
58820
58821         useless-if-before-free: freed expr may have white-space differences
58822         * build-aux/useless-if-before-free: Recognize cases in which the
58823         freed expression differs from the tested one in embedded white
58824         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58825         $1 was used, so we can't make any regexp shy.  Improved tests now
58826         detect this.
58827
58828         useless-if-before-free: accept white space in the expression.
58829         * build-aux/useless-if-before-free: For now, any white space
58830         in the expression must be identical in the free argument.
58831
58832         useless-if-before-free: efficiency tweak
58833         * build-aux/useless-if-before-free: Make the expression-matching
58834         regexp "shy".
58835         Make the *outer* regexp shy, not the expr-matching one.
58836
58837         update code-in-comment to accept cast of free arg
58838         * build-aux/useless-if-before-free: Update regexp.
58839
58840 2008-05-25  Bruno Haible  <bruno@clisp.org>
58841
58842         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58843         * modules/copy-file-tests (Files, Makefile.am): Update.
58844         * tests/test-copy-file.c (func_test_copy): Update.
58845
58846 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58847
58848         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58849
58850 2008-05-23  Bruno Haible  <bruno@clisp.org>
58851
58852         Improve support for ACLs on OSF/1.
58853         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58854         Remove fallback for unknown flavors of ACLs.
58855
58856 2008-05-22  Bruno Haible  <bruno@clisp.org>
58857
58858         Add support for ACLs on OSF/1.
58859         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58860         replacements.
58861         (acl_free_text): New macro fallback.
58862         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58863         acl_free.
58864         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58865         acl_free_text function. Require AC_C_INLINE.
58866
58867 2008-05-22  Bruno Haible  <bruno@clisp.org>
58868
58869         Make copy_acl work on MacOS X 10.5.
58870         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58871         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58872         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58873         If MODE_INSIDE_ACL, don't assume that every system has the same text
58874         representation for ACLs as FreeBSD.
58875         * lib/copy-acl.c (copy_acl): Add support for platforms with
58876         !MODE_INSIDE_ACL.
58877         * lib/file-has-acl.c (file_has_acl): Likewise.
58878         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58879         FreeBSD, MacOS X, or IRIX, respectively.
58880
58881 2008-05-22  Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/acl.h: Don't include <sys/acl.h>.
58884         (GETACLCNT): Move fallback to lib/acl-internal.h.
58885         * lib/acl-internal.h: Include <sys/acl.h> here.
58886         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58887
58888 2008-05-22  Bruno Haible  <bruno@clisp.org>
58889
58890         Split off copy_acl function to separate file.
58891         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58892         * lib/acl.c (copy_acl): Moved function to separate file.
58893         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58894         * modules/acl (Files): Add lib/copy-acl.c.
58895         (Makefiles.am): Augment lib_SOURCES.
58896
58897 2008-05-22  Bruno Haible  <bruno@clisp.org>
58898
58899         * modules/copy-file-tests: New file.
58900         * tests/test-copy-file.sh: New file.
58901         * tests/test-copy-file.c: New file.
58902         * tests/test-copy-file-sameacls.c: New file.
58903
58904 2008-05-22  Eric Blake  <ebb9@byu.net>
58905
58906         Avoid gcc warning.
58907         * tests/test-memcmp.c (main): Pass NULL indirectly.
58908
58909 2008-05-21  Bruno Haible  <bruno@clisp.org>
58910
58911         Add reference doc about ACLs.
58912         * doc/acl-resources.txt: New file.
58913         * doc/acl-cygwin.txt: New file.
58914
58915 2008-05-21  Bruno Haible  <bruno@clisp.org>
58916
58917         Avoid one more warning from gcc.
58918         * lib/vasnprintf.c (IF_LINT): Update comments.
58919         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58920
58921 2008-05-21  Jim Meyering  <meyering@redhat.com>
58922
58923         avoid a warning from gcc
58924         * lib/vasnprintf.c (IF_LINT): Define.
58925         (scale10_round_decimal_long_double):
58926         Use it to avoid a "may be used uninitialized" warning.
58927         (scale10_round_decimal_double): Likewise.
58928
58929 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58930
58931         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58932         declared.
58933
58934 2008-05-20  Bruno Haible  <bruno@clisp.org>
58935
58936         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58937         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58938
58939 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58940
58941         * modules/memcmp-tests: New file.
58942         * tests/test-memcmp.c: New file.
58943
58944 2008-05-19  Bruno Haible  <bruno@clisp.org>
58945
58946         * modules/propername (Notice, configure.ac): Put quoted "..." into
58947         --keyword option.
58948         * lib/propername.h: Update comments accordingly.
58949         Reported by Eric Blake.
58950
58951 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58952
58953         * modules/getpass-gnu (Depends-on): Add fseeko.
58954
58955 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58956
58957         * modules/base64-tests: New file.
58958
58959 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58960
58961         * lib/base64.c (base64_decode_ctx): If a decode context structure
58962         was passed in use it to ignore newlines.  If a context structure
58963         was _not_ passed in, continue to treat newlines as garbage (this
58964         is the historical behavior).  Formerly base64_decode.
58965         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58966         takes a decode context structure.
58967         * lib/base64.h (base64_decode): Macro for four-argument calls.
58968         (base64_decode_alloc): Likewise.
58969         * lib/base64.c (base64_decode_ctx): If a decode context structure
58970         was passed in use it to ignore newlines.  If a context structure
58971         was _not_ passed in, continue to treat newlines as garbage (this
58972         is the historical behavior).  Formerly base64_decode.
58973         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58974         takes a decode context structure.
58975         * lib/base64.h (base64_decode): Macro for four-argument calls.
58976         (base64_decode_alloc): Likewise.
58977
58978 2008-05-19  Jim Meyering  <meyering@redhat.com>
58979
58980         avoid a warning from gcc
58981         * lib/trim.c (IF_LINT): Define.
58982         (trim2): Use it to avoid a "may be used uninitialized" warning.
58983
58984         Fix doc typo.
58985         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58986
58987 2008-05-19  Bruno Haible  <bruno@clisp.org>
58988
58989         * doc/glibc-functions/getpass.texi: Document limits of other
58990         implementations.
58991
58992 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58993             Bruno Haible <bruno@clisp.org>
58994
58995         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58996
58997 2008-05-18  Bruno Haible  <bruno@clisp.org>
58998
58999         * modules/propername: New file, from GNU gettext.
59000         * lib/propername.h: New file, from GNU gettext.
59001         * lib/propername.c: New file, from GNU gettext.
59002         * MODULES.html.sh (Internationalization functions): Add propername.
59003
59004 2008-05-16  Jim Meyering  <meyering@redhat.com>
59005             Bruno Haible  <bruno@clisp.org>
59006
59007         Avoid some warnings from "gcc -Wshadow".
59008         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59009
59010 2008-05-15  Eric Blake  <ebb9@byu.net>
59011
59012         Extend previous patch to cygwin 1.7.0.
59013         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59014         fast implementation in cygwin >= 1.7.0.
59015         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59016         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59017
59018 2008-05-15  Bruno Haible  <bruno@clisp.org>
59019
59020         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59021         implementation in glibc >= 2.9.
59022         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59024
59025 2008-05-15  Bruno Haible  <bruno@clisp.org>
59026
59027         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59028         (Unicode string functions): Add unilbrk/*.
59029         Reported by Karl Berry.
59030
59031 2008-05-15  Eric Blake  <ebb9@byu.net>
59032
59033         Fix violation of <stdbool.h> replacement in regex.
59034         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59035         * lib/regexec.c (re_search_internal): Likewise.
59036         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59037
59038 2008-05-15  Jim Meyering  <meyering@redhat.com>
59039
59040         avoid distracting test output when git or cvs is not found
59041         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59042         * tests/test-vc-list-files-git.sh: Likewise.
59043
59044 2008-05-15  Eric Blake  <ebb9@byu.net>
59045
59046         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59047         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59048         glibc version.
59049         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59050         * doc/posix-functions/strstr.texi (strstr): Likewise.
59051         * lib/str-two-way.h (MAX): Sychronize with glibc.
59052
59053 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59054
59055         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59056         opr.ctx_type.
59057         (calc_first): Initialize constraint field.
59058         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59059         Fix grammar.
59060         (duplicate_node): Merge constraint field for all node types.
59061         (calc_eclosure_iter): Look at constraint field for all node types.
59062         * lib/regex_internal.c (create_cd_newstate): Don't look at
59063         opr.ctx_type.
59064
59065 2008-05-14  Bruno Haible  <bruno@clisp.org>
59066
59067         Help GCC to do better code generation.
59068         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59069         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59070         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59071         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59072         Declare with attribute 'malloc' if supported.
59073
59074 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59075
59076         use "echo STR|wc -c" rather than unportable "expr length STR"
59077         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59078         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59079
59080 2008-05-14  Jim Meyering  <meyering@redhat.com>
59081
59082         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59083         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59084         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59085         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59086         via Collin Lasse.
59087
59088 2008-05-14  Eric Blake  <ebb9@byu.net>
59089
59090         Avoid quadratic growth in gl_LIBSOURCES.
59091         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59092         Suggested by Bruno Haible.
59093
59094         Test xmemdup0.
59095         * modules/xmemdup0-tests: New file.
59096         * tests/test-xmemdup0.c: Likewise.
59097
59098 2008-05-13  Eric Blake  <ebb9@byu.net>
59099
59100         Split xmemdup0 into its own module.
59101         * modules/xmemdup0: New file.
59102         * lib/xmemdup0.h: Likewise.
59103         * lib/xmemdup0.c: Likewise.
59104         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59105         * lib/xalloc.h (xmemdup0): Remove.
59106         * lib/xmalloc.c (xmemdup0): Likewise.
59107
59108 2008-05-13  Eric Blake  <ebb9@byu.net>
59109             Bruno Haible  <bruno@clisp.org>
59110
59111         Reduce number of forks required during autoconf.
59112         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59113         and gl_LIBSOURCES_DIR.
59114         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59115         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59116         m4_syscmd per file.
59117         <m4_foreach_w>: Move...
59118         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59119
59120 2008-05-13  Eric Blake  <ebb9@byu.net>
59121
59122         * gnulib-tool: Fix various comment typos.
59123
59124 2008-05-12  Bruno Haible  <bruno@clisp.org>
59125
59126         Tailor the linebreaking algorithm.
59127         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59128
59129 2008-05-12  Bruno Haible  <bruno@clisp.org>
59130
59131         Update to Unicode 5.0.0.
59132         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59133         LBP_JV, LBP_JT. Redistribute values.
59134         (unilbrk_table): Change size.
59135         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59136         Unicode TR#14 rev. 22.
59137         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59138         LBP_JV, LBP_JT. Redistribute values.
59139         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59140         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59141         Update.
59142         * lib/unilbrk/lbrkprop1.h: Regenerated.
59143         * lib/unilbrk/lbrkprop2.h: Regenerated.
59144         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59145         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59146         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59147         Likewise.
59148         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59149         Likewise.
59150         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59151         result.
59152         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59153         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59154         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59155         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59156         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59157         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59158
59159 2008-05-11  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59162
59163 2008-05-11  Bruno Haible  <bruno@clisp.org>
59164
59165         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59166         * modules/unilbrk/gen-lbrk: New file.
59167
59168 2008-05-11  Bruno Haible  <bruno@clisp.org>
59169
59170         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59171         * m4/sha512.m4 (gl_SHA512): Likewise.
59172
59173 2008-05-11  Jim Meyering  <meyering@redhat.com>
59174
59175         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59176         * modules/crypto/sha256: New file.
59177         * modules/crypto/sha512: Likewise.
59178         * lib/sha256.c: Likewise.
59179         * lib/sha256.h: Likewise.
59180         * lib/sha512.c: Likewise.
59181         * lib/sha512.h: Likewise.
59182         * lib/u64.h: Likewise.
59183         * m4/sha256.m4: Likewise.
59184         * m4/sha512.m4: Likewise.
59185         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59186
59187 2008-05-10  Bruno Haible  <bruno@clisp.org>
59188
59189         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59190         (Input/Output <stdio.h>): Add xprintf.
59191         (Signal handling <signal.h>): Add strsignal.
59192         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59193         (Core language properties): Add func.
59194         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59195         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59196         strings.
59197         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59198         (Input/output): New section.
59199         (File system functions): Add openat-die, stat-macros.
59200         (Networking functions): Add sockets.
59201         (Unicode string functions): Add unictype/*.
59202         (Support for building libraries and executables): Add gperf.
59203         (Support for building documentation): Add agpl-3.0.
59204         (Misc): Add nocrash.
59205
59206 2008-05-10  Bruno Haible  <bruno@clisp.org>
59207
59208         * modules/unictype/gen-ctype: New file.
59209
59210 2008-05-10  Jim Meyering  <meyering@redhat.com>
59211
59212         Make chdir-safer.c more efficient on a system with no symlinks.
59213         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59214         also if ELOOP is zero.  Suggested by Bruno Haible.
59215
59216         Make chdir-safer.c slightly safer.
59217         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59218         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59219
59220         Avoid compile failure on systems without ELOOP (like mingw).
59221         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59222         Reported by Bruno Haible.
59223
59224 2008-05-10  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59227         (is_utf8_encoding): Use a case-insensitive comparison.
59228         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59229         streq.
59230
59231 2008-05-10  Bruno Haible  <bruno@clisp.org>
59232
59233         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59234         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59235         * lib/unilbrk/ulc-common.h (iconv_string_length,
59236         iconv_string_keeping_offsets): Remove declarations.
59237         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59238         Don't include <iconv.h>, streq.h, xsize.h.
59239         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59240         conversion.
59241         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59242         <iconv.h>, streq.h, xsize.h.
59243         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59244         conversion.
59245         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59246         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59247         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59248         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59249
59250 2008-05-10  Bruno Haible  <bruno@clisp.org>
59251
59252         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59253         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59254
59255         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59256         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59257
59258         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59259         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59260
59261         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59262         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59263
59264         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59265         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59266
59267         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59268         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59269
59270         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59271         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59272
59273         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59274         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59275
59276 2008-05-10  Bruno Haible  <bruno@clisp.org>
59277
59278         Split up 'linebreak' module.
59279         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59280         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59281         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59282         modifications.
59283         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59284         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59285         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59286         lib/linebreak.c.
59287         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59288         lib/linebreak.c.
59289         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59290         lib/linebreak.c.
59291         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59292         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59293         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59294         lib/linebreak.c.
59295         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59296         lib/linebreak.c.
59297         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59298         lib/linebreak.c.
59299         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59300         lib/linebreak.c.
59301         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59302         lib/linebreak.c.
59303         * modules/unilbrk/base: New file.
59304         * modules/unilbrk/tables: New file.
59305         * modules/unilbrk/u8-possible-linebreaks: New file.
59306         * modules/unilbrk/u16-possible-linebreaks: New file.
59307         * modules/unilbrk/u32-possible-linebreaks: New file.
59308         * modules/unilbrk/ulc-common: New file.
59309         * modules/unilbrk/ulc-possible-linebreaks: New file.
59310         * modules/unilbrk/u8-width-linebreaks: New file.
59311         * modules/unilbrk/u16-width-linebreaks: New file.
59312         * modules/unilbrk/u32-width-linebreaks: New file.
59313         * modules/unilbrk/ulc-width-linebreaks: New file.
59314         * lib/linebreak.h: Remove file.
59315         * lib/linebreak.c: Remove file.
59316         * m4/linebreak.m4: Remove file.
59317         * modules/linebreak: Remove file.
59318         * NEWS: Mention the changes.
59319
59320 2008-05-09  Eric Blake  <ebb9@byu.net>
59321
59322         Add xmemdup0.
59323         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59324         implementation.
59325         * lib/xmalloc.c (xmemdup0): New C implementation.
59326
59327 2008-05-08  Bruno Haible  <bruno@clisp.org>
59328
59329         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59330
59331 2008-05-07  Eric Blake  <ebb9@byu.net>
59332
59333         Support cross-compilation of <wctype.h>.
59334         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59335         AC_CACHE_CHECK.
59336
59337 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59338
59339         * build-aux/vc-list-files: Add support for bzr.
59340
59341 2008-05-03  Jim Meyering  <meyering@redhat.com>
59342
59343         avoid failed assertion with tight malloc
59344         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59345
59346 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59347
59348         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59349         are needed from arpa/inet.h.
59350         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59351         Reported by Bruno Haible.
59352
59353 2008-05-02  Jim Meyering  <meyering@redhat.com>
59354
59355         avoid compilation error on FreeBSD 6
59356         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59357
59358 2008-05-01  Jim Meyering  <meyering@redhat.com>
59359
59360         useless-if-before-free: correct --help's exit status description
59361         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59362         for one or more matches, etc.  Reported by Bruno Haible.
59363
59364         vc-list-files: make the stand-alone gnulib test work
59365         * modules/vc-list-files-tests (configure.ac):
59366         Define and AC_SUBST abs_aux_dir.
59367         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59368         $(abs_top_srcdir) to each script and having each of them
59369         duplicate the work of setting PATH, set PATH here, using
59370         the new variable, abs_aux_dir instead.
59371         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59372         * tests/test-vc-list-files-git.sh: Likewise.
59373         Reported by Bruno Haible.
59374
59375 2008-05-01  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59378         reallocation. Rename 'done' to 'found_delimiter'.
59379
59380 2008-05-01  Jim Meyering  <meyering@redhat.com>
59381
59382         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59383         * build-aux/vc-list-files: Use `...`, not $(...).
59384
59385 2008-04-30  Jim Meyering  <meyering@redhat.com>
59386
59387         add tests for vc-list-files
59388         * modules/vc-list-files-tests: New module.
59389         * tests/test-vc-list-files-cvs.sh: New file.
59390         * tests/test-vc-list-files-git.sh: New file.
59391
59392         avoid a warning from gcc
59393         * lib/getndelim2.c (IF_LINT): Define.
59394         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59395
59396         vc-list-files: work properly with build-aux/cvsu, too
59397         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59398         to all cvs-based clauses.
59399
59400         vc-list-files: work properly in the CVS+awk case, too
59401         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59402
59403         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59404         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59405         take more than one file argument, so .  Add quotes, just in case $dir
59406         ever contains a shell meta-character.  Prompted by Soren Hansen in
59407         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59408
59409 2008-04-29  Eric Blake  <ebb9@byu.net>
59410
59411         Optimize getndelim2 to use block operations when possible.
59412         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59413         freadseek, and memchr2.
59414         * lib/getndelim2.c (getndelim2): Use them for block reads.
59415
59416 2008-04-29  Bruno Haible  <bruno@clisp.org>
59417
59418         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59419         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59420         * modules/inet_ntop (Depends-on): Add extensions.
59421         * modules/inet_pton (Depends-on): Likewise.
59422         Reported by Simon Josefsson.
59423
59424 2008-04-29  Jim Meyering  <meyering@redhat.com>
59425
59426         When the is more than one match in a block, match all of them.
59427         * build-aux/useless-if-before-free: Iterate through each block
59428         until there are no more matches.
59429
59430         Fix broken useless-if-before-free script.
59431         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59432         the expression to match cast of argument to free-like function.
59433
59434 2008-04-29  Eric Blake  <ebb9@byu.net>
59435
59436         Use new header.
59437         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59438
59439 2008-04-29  Jim Meyering  <meyering@redhat.com>
59440
59441         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59442         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59443         by gnulib to exist and to declare e.g., inet_ntop.
59444         Don't include "inet_ntop.h", now removed.
59445
59446         * m4/arpa_inet_h.m4: Remove trailing blanks.
59447
59448 2008-04-29  Eric Blake  <ebb9@byu.net>
59449
59450         Silence valgrind on safe reads beyond potential array bounds.
59451         * lib/rawmemchr.valgrind: New file.
59452         * lib/strchrnul.valgrind: Likewise.
59453         * modules/rawmemchr (Files): Distribute new file.
59454         * modules/strchrnul (Files): Likewise.
59455         Suggested by Bruno Haible.
59456
59457 2008-04-29  Bruno Haible  <bruno@clisp.org>
59458
59459         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59460         (inet_ntop, inet_pton): Change portability warning's wording.
59461         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59462         Invoke gl_CHECK_NEXT_HEADERS.
59463         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59464         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59465         set ARPA_INET_H.
59466         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59467         * modules/arpa_inet (Description): No longer only for systems that
59468         lack it.
59469         (Depends-on): Add include_next.
59470         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59471         HAVE_ARPA_INET_H.
59472
59473 2008-04-29  Jim Meyering  <meyering@redhat.com>
59474
59475         * modules/mkdir (License): Re-license as LGPLv2+.
59476
59477 2008-04-29  Bruno Haible  <bruno@clisp.org>
59478
59479         * modules/rawmemchr (Maintainer): Set to Eric.
59480         * modules/strchrnul (Maintainer): Likewise.
59481
59482 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59483
59484         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59485         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59486
59487         * modules/arpa_inet (arpa/inet.h): Use them.
59488
59489 2008-04-28  Eric Blake  <ebb9@byu.net>
59490
59491         Test getndelim2.
59492         * modules/getndelim2-tests: New file.
59493         * tests/test-getndelim2.c: Likewise.
59494         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59495         stream.
59496         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59497
59498         * MODULES.html.sh: Document new module.
59499
59500 2008-04-20  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/c-stack.c (die): Use raise.
59503         * modules/c-stack (Depends-on): Add raise.
59504
59505 2008-04-28  Bruno Haible  <bruno@clisp.org>
59506
59507         Expect rpmatch to be declared.
59508         * lib/yesno.c (rpmatch): Remove declaration.
59509
59510         Declare rpmatch.
59511         * lib/stdlib.in.h (rpmatch): New declaration.
59512         * lib/rpmatch.c: Include <stdlib.h> first.
59513         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59514         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59516         HAVE_RPMATCH.
59517         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59519         (Include): Set to <stdlib.h>.
59520         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59521         HAVE_RPMATCH.
59522         * NEWS: Document the change.
59523
59524 2008-04-28  Bruno Haible  <bruno@clisp.org>
59525
59526         Change rpmatch to use nl_langinfo when appropriate.
59527         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59528         (N_): New macro.
59529         (localized_pattern): New function/macro.
59530         (try): Remove match, nomatch arguments. Copy the pattern into safe
59531         memory before caching it.
59532         (rpmatch): Use localized_pattern. Add translator comments.
59533         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59534         Suggested by Eric Blake.
59535         * modules/rpmatch (Depends-on): Add stdbool.
59536
59537 2008-04-28  Eric Blake  <ebb9@byu.net>
59538
59539         Add rawmemchr module, matching glibc.
59540         * modules/string (Makefile.am): New indicator.
59541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59542         * lib/string.in.h (rawmemchr): Declare when appropriate.
59543         * modules/rawmemchr: New file.
59544         * m4/rawmemchr.m4: Likewise.
59545         * lib/rawmemchr.c: Likewise.
59546         * modules/rawmemchr-tests: Likewise.
59547         * tests/test-rawmemchr.c: Likewise.
59548         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59549         module.
59550         * modules/strchrnul (Depends-on): Add rawmemchr.
59551         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59552
59553         Whitespace cleanup.
59554         * tests/test-strchrnul.c: Reindent.
59555         * lib/strchrnul.c: Likewise.
59556
59557         Optimize and test strchrnul.
59558         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59559         * modules/strchrnul-tests: New file.
59560         * tests/test-strchrnul.c: Likewise.
59561
59562         Remove intprops dependency.
59563         * modules/memchr (Depends-on): Remove intprops.
59564         * modules/memrchr (Depends-on): Likewise.
59565         * modules/memchr2 (Depends-on): Likewise.
59566         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59567         * lib/memrchr.c (__memrchr): Likewise.
59568         * lib/memrchr2.c (memchr2): Likewise.
59569         Reported by Simon Josefsson.
59570
59571 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59572
59573         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59574         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59575
59576 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59577
59578         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59579
59580         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59581
59582         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59583
59584         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59585         declarations.
59586         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59587
59588         * m4/inet_pton.m4: Don't check for header files.
59589
59590         * m4/inet_ntop.m4: Don't check for header files.
59591
59592 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59593
59594         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59595         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59596         trigger for cygwin).
59597         Reported by Bruno Haible  <bruno@clisp.org>.
59598
59599 2008-04-28  Bruno Haible  <bruno@clisp.org>
59600
59601         * doc/posix-functions/strdup.texi: Mention mingw problem.
59602
59603 2008-04-27  Bruno Haible  <bruno@clisp.org>
59604
59605         * modules/stat-time-tests (Depends-on): Add sleep.
59606         * tests/test-stat-time.c (force_unlink): New function.
59607         (cleanup): Use it.
59608         (test_mtime): Remove the ctime related tests.
59609         (test_ctime): New function, containing the ctime related tests.
59610         (main): Call test_ctime, except on native Windows platforms.
59611
59612 2008-04-27  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/rpmatch.c (rpmatch): Add some comments.
59615         Reported by James Youngman <jay@gnu.org>.
59616
59617 2008-04-27  Bruno Haible  <bruno@clisp.org>
59618
59619         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59620         quiet NaNs.
59621
59622 2008-04-27  Bruno Haible  <bruno@clisp.org>
59623
59624         Make test-yesno.sh work on mingw.
59625         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59626         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59627         (main): Set stdin to binary mode.
59628         * modules/yesno-tests (Depends-on): Add binary-io.
59629
59630 2008-04-27  Bruno Haible  <bruno@clisp.org>
59631
59632         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59633         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59634         argument that lie outside the IEEE 854 domain.
59635         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59636         (gl_ISFINITE): Use it.
59637         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59638
59639 2008-04-27  Bruno Haible  <bruno@clisp.org>
59640
59641         Allow local renaming in config.h.
59642         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59643
59644 2008-04-27  Bruno Haible  <bruno@clisp.org>
59645
59646         * lib/memchr.c (__memchr): Change type of 'i'.
59647         * lib/memchr2.c (memchr2): Likewise.
59648
59649 2008-04-26  Eric Blake  <ebb9@byu.net>
59650         and Bruno Haible  <bruno@clisp.org>
59651
59652         Optimize and test memrchr.
59653         * modules/memrchr (Depends-on): Add intprops.
59654         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59655         * modules/memrchr-tests: New file.
59656         * tests/test-memrchr.c: New file.
59657
59658 2008-04-26  Bruno Haible  <bruno@clisp.org>
59659
59660         Add tentative support for DragonFly BSD.
59661         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59662         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59663         fp.
59664         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59665         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59666         * lib/fpurge.c (fpurge): Likewise.
59667         * lib/freadable.c (freaadable): Likewise.
59668         * lib/freadahead.c (freadahead): Likewise.
59669         * lib/freading.c (freading): Likewise.
59670         * lib/freadptr.c (freadptr): Likewise.
59671         * lib/freadseek.c (freadptrinc): Likewise.
59672         * lib/fseeko.c (fseeko): Likewise.
59673         * lib/fseterr.c (fseterr): Likewise.
59674         * lib/fwritable.c (fwritable): Likewise.
59675         * lib/fwriting.c (fwriting): Likewise.
59676
59677 2008-04-26  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/stdio-impl.h: New file.
59680         * lib/fbufmode.c: Include stdio-impl.h.
59681         (fbufmode): Use fp_, remove redundant #defines.
59682         * lib/fflush.c: Include stdio-impl.h.
59683         (clear_ungetc_buffer): Remove redundant #defines.
59684         * lib/fpurge.c: Include stdio-impl.h.
59685         (fpurge): Remove redundant #defines.
59686         * lib/freadable.c: Include stdio-impl.h.
59687         (freadable): Remove redundant #defines.
59688         * lib/freadahead.c: Include stdio-impl.h.
59689         (freadahead): Remove redundant #defines.
59690         * lib/freading.c: Include stdio-impl.h.
59691         (freading): Remove redundant #defines.
59692         * lib/freadptr.c: Include stdio-impl.h.
59693         (freadptr): Remove redundant #defines.
59694         * lib/freadseek.c: Include stdio-impl.h.
59695         (freadptrinc): Remove redundant #defines.
59696         * lib/fseeko.c: Include stdio-impl.h.
59697         (rpl_fseeko): Remove redundant #defines.
59698         * lib/fseterr.c: Include stdio-impl.h.
59699         (fseterr): Remove redundant #defines.
59700         * lib/fwritable.c: Include stdio-impl.h.
59701         (fwritable: Remove redundant #defines.
59702         * lib/fwriting.c: Include stdio-impl.h.
59703         (fwriting): Remove redundant #defines.
59704         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59705         * modules/fflush (Files): Likewise.
59706         * modules/fpurge (Files): Likewise.
59707         * modules/freadable (Files): Likewise.
59708         * modules/freadahead (Files): Likewise.
59709         * modules/freading (Files): Likewise.
59710         * modules/freadptr (Files): Likewise.
59711         * modules/freadseek (Files): Likewise.
59712         * modules/fseeko (Files): Likewise.
59713         * modules/fseterr (Files): Likewise.
59714         * modules/fwritable (Files): Likewise.
59715         * modules/fwriting (Files): Likewise.
59716
59717 2008-04-26  Bruno Haible  <bruno@clisp.org>
59718
59719         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59720         restore_seek_optimization, update_fpos_cache): New functions, extracted
59721         from rpl_fflush.
59722         (rpl_fflush): Use them.
59723         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59724         (gl_REPLACE_FFLUSH): Use it.
59725
59726 2008-04-26  Bruno Haible  <bruno@clisp.org>
59727
59728         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59729         on Solaris.
59730         * tests/test-xstrtoimax.sh: Likewise.
59731         * tests/test-xstrtoumax.sh: Likewise.
59732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59733
59734 2008-04-26  Bruno Haible  <bruno@clisp.org>
59735
59736         * modules/memchr-tests: New file.
59737         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59738
59739 2008-04-26  Eric Blake  <ebb9@byu.net>
59740             Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/memchr.c: Include intprops.h.
59743         (__memchr): Optimize parallel detection of matching bytes. Rename local
59744         variables. Add explanatory comments.
59745
59746 2008-04-26  Bruno Haible  <bruno@clisp.org>
59747
59748         Fix module 'memchr', broken since 2000-10-28.
59749         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59750
59751 2008-04-26  Bruno Haible  <bruno@clisp.org>
59752
59753         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59754         comments.
59755
59756 2008-04-25  Eric Blake  <ebb9@byu.net>
59757
59758         Use native fstatat on cygwin 1.7.0.
59759         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59760         first.
59761
59762 2008-04-23  Eric Blake  <ebb9@byu.net>
59763
59764         Improve memchr2 performance.
59765         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59766         NUL bytes.
59767         * modules/memchr2 (Depends-on): Use intprops.h.
59768
59769 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59770
59771         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59772         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59773         <blp@cs.stanford.edu>.
59774
59775 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59776
59777         * lib/arpa_inet.in.h: New file.
59778
59779         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59780         (Makefile.am): Sed in substitute header file.
59781
59782         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59783         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59784
59785         * modules/inet_ntop (configure.ac): Use
59786         gl_ARPA_INET_MODULE_INDICATOR.
59787
59788         * modules/inet_pton (configure.ac): Use
59789         gl_ARPA_INET_MODULE_INDICATOR.
59790
59791 2008-04-22  Jim Meyering  <meyering@redhat.com>
59792
59793         * modules/verify (License): Re-license as LGPLv2+.
59794
59795 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59796
59797         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59798         parameter to void* as per POSIX standard (MinGW uses char*).
59799
59800 2008-04-21  Bruno Haible  <bruno@clisp.org>
59801
59802         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59803         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59804         Define to replacements if REPLACE_ISWCNTRL is 1.
59805         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59806         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59807         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59808         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59809         what it fixes.
59810         * doc/posix-functions/iswalpha.texi: Likewise.
59811         * doc/posix-functions/iswblank.texi: Likewise.
59812         * doc/posix-functions/iswcntrl.texi: Likewise.
59813         * doc/posix-functions/iswdigit.texi: Likewise.
59814         * doc/posix-functions/iswgraph.texi: Likewise.
59815         * doc/posix-functions/iswlower.texi: Likewise.
59816         * doc/posix-functions/iswprint.texi: Likewise.
59817         * doc/posix-functions/iswpunct.texi: Likewise.
59818         * doc/posix-functions/iswspace.texi: Likewise.
59819         * doc/posix-functions/iswupper.texi: Likewise.
59820         * doc/posix-functions/iswxdigit.texi: Likewise.
59821         Reported by Alain Guibert.
59822
59823 2008-04-21  Bruno Haible  <bruno@clisp.org>
59824
59825         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59826         Patch by Alain Guibert.
59827
59828 2008-04-21  Bruno Haible  <bruno@clisp.org>
59829
59830         Fix test failures on mingw.
59831         * tests/test-xstrtol.c (print_no_progname): New function.
59832         (main): Install it in error_print_progname hook.
59833         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59834         * tests/test-xstrtoimax.sh: Likewise.
59835         * tests/test-xstrtoumax.sh: Likewise.
59836
59837 2008-04-21  Bruno Haible  <bruno@clisp.org>
59838
59839         Fix test failure on mingw.
59840         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59841
59842 2008-04-21  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59845         Actually assign a value.
59846
59847 2008-04-20  Bruno Haible  <bruno@clisp.org>
59848
59849         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59850         take 2.
59851         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59852         'canonicalize-lgpl' module is also used.
59853         * lib/canonicalize-lgpl.c: Undo last change.
59854         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59855
59856 2008-04-20  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59859         config.h. Provide _mkdir based fallback for mingw.
59860         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59861         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59862         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59863         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59864         rather than defining mkdir in config.h.
59865         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59866         (gl_SYS_STAT_H_DEFAULTS): New macro.
59867         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59868         HAVE_IO_H any more.
59869         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59870         HAVE_DECL_MKDIR and HAVE_IO_H.
59871
59872 2008-04-20  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/isapipe.c: Port to native Windows platforms.
59875
59876 2008-04-20  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59879
59880 2008-04-21  Eric Blake  <ebb9@byu.net>
59881
59882         Work around preprocessors that don't handle UINTMAX_MAX.
59883         * lib/memchr2.c (memchr2): Avoid embedded #if.
59884         Reported by Alain Guibert, fix suggested by Bruno Haible.
59885
59886 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59887
59888         * doc/posix-functions/strftime.texi (strftime): Explain better
59889         Windows incompatibility.  Suggested by Micah Cowan
59890         <micah@cowan.name>.
59891
59892 2008-04-20  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59895         unistr/u8-mblen.
59896
59897 2008-04-20  Bruno Haible  <bruno@clisp.org>
59898
59899         Fix test failure on platforms with non-GNU iconv.
59900         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59901         (U_TO_U8): Use it, rather than u16_to_u8.
59902         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59903         units at the end of the input string.
59904         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59905
59906 2008-04-20  Bruno Haible  <bruno@clisp.org>
59907
59908         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59909         when the resulting length is 0.
59910         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59911
59912 2008-04-20  Bruno Haible  <bruno@clisp.org>
59913
59914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59915         works.
59916         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59917
59918 2008-04-20  Bruno Haible  <bruno@clisp.org>
59919
59920         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59921         * modules/tsearch-tests (configure.ac): Test for initstate function.
59922
59923 2008-04-20  Bruno Haible  <bruno@clisp.org>
59924
59925         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59926         for nlink_t if missing.
59927         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59928
59929 2008-04-19  Bruno Haible  <bruno@clisp.org>
59930
59931         Work around snprintf bug on Linux libc5.
59932         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59934         gl_SNPRINTF_SIZE1.
59935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59936         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59937         that test failed.
59938         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59939         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59940         * modules/snprintf (Files): Add m4/printf.m4.
59941         * modules/vsnprintf (Files): Likewise.
59942         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59943         * doc/posix-functions/vsnprintf.texi: Likewise.
59944
59945 2008-04-19  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59948         from 0.0058 to less than 10^-7.
59949
59950 2008-04-19  Bruno Haible  <bruno@clisp.org>
59951
59952         Fix rounding when a precision is given.
59953         * lib/vasnprintf.c (is_borderline): New function.
59954         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59955         9...9x.
59956         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59957         %e, %g.
59958         * tests/test-vasprintf-posix.c (test_function): Likewise.
59959         * tests/test-snprintf-posix.h (test_function): Likewise.
59960         * tests/test-sprintf-posix.h (test_function): Likewise.
59961         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59962         * tests/test-printf-posix.h (test_function): Likewise.
59963         * tests/test-printf-posix.output: Update.
59964         Reported by John Darrington <john@darrington.wattle.id.au> via
59965         Ben Pfaff <blp@cs.stanford.edu>.
59966
59967 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59968
59969         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59970         Suggested by Bruno Haible <bruno@clisp.org>.
59971
59972 2008-04-17  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59975         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59976         implementation.
59977         Patch by Bruce Merry <bmerry@gmail.com>.
59978
59979 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59980
59981         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59982         doesn't work under Windows.
59983
59984 2008-04-16  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59987         New macros.
59988         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59989         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59990         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59991         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59992         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59993         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59994         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59995         macros.
59996         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59997         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59998         Northern Sotho, Uighur.
59999
60000 2008-04-16  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60003         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60004         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60005         Reported by Daniel Bergström <daniel@octocode.com>.
60006
60007 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60008             Bruno Haible  <bruno@clisp.org>
60009
60010         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60011         function.
60012         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60013         New functions, mostly extracted from gl_locale_name_default.
60014         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60015
60016 2008-04-16  Eric Blake  <ebb9@byu.net>
60017
60018         Adjust strtod detection to catch glibc 2.7 bug.
60019         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60020         Reported by John Gatewood Ham.
60021
60022 2008-04-16  Bruno Haible  <bruno@clisp.org>
60023
60024         Add tentative support for Linux libc5.
60025         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60026         * lib/fpurge.c (fpurge): Likewise.
60027         * lib/freadable.c (freadable): Likewise.
60028         * lib/freadahead.c (freadahead): Likewise.
60029         * lib/freading.c (freading): Likewise.
60030         * lib/freadptr.c (freadptr): Likewise.
60031         * lib/freadseek.c (freadptrinc): Likewise.
60032         * lib/fseeko.c (rpl_fseeko): Likewise.
60033         * lib/fseterr.c (fseterr): Likewise.
60034         * lib/fwritable.c (fwritable): Likewise.
60035         * lib/fwriting.c (fwriting): Likewise.
60036         Reported by Alain Guibert <alguibert+bts@free.fr>.
60037
60038 2008-04-15  Bruno Haible  <bruno@clisp.org>
60039
60040         * modules/mathl (configure.ac): Define module indicator.
60041
60042 2008-04-15  Bruno Haible  <bruno@clisp.org>
60043
60044         * lib/logl.c (logl): Remove unused variables.
60045
60046 2008-04-15  Bruno Haible  <bruno@clisp.org>
60047
60048         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60049         fails.
60050
60051 2008-04-15  Bruno Haible  <bruno@clisp.org>
60052
60053         * lib/trim.c (trim2): Fix argument of isspace() macro.
60054
60055 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60056
60057         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60058         to 0.
60059         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60060
60061 2008-04-14  Bruno Haible  <bruno@clisp.org>
60062
60063         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60064         AC_LANG_PROGRAM argument.
60065         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60066         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60068         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60069         * m4/math_h.m4 (gl_MATH_H): Likewise.
60070         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60072         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60073         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60074         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60075         * m4/regex.m4 (gl_REGEX): Likewise.
60076         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60077         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60079         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60080         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60081         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60084
60085 2008-04-14  Jim Meyering  <meyering@redhat.com>
60086
60087         test-strtod: fix typos: s/abs/fabs/
60088         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60089
60090 2008-04-13  Bruno Haible  <bruno@clisp.org>
60091
60092         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60093         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60094         module is also used and while not building the reloc-wrapper.
60095
60096 2008-04-13  Bruno Haible  <bruno@clisp.org>
60097
60098         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60099
60100 2008-04-13  Bruno Haible  <bruno@clisp.org>
60101
60102         Fix AIX compilation failure introduced on 2008-04-02.
60103         * tests/test-frexp.c (exp): Undefine before redefining.
60104         * tests/test-frexpl.c (exp): Likewise.
60105
60106 2008-04-13  Bruno Haible  <bruno@clisp.org>
60107
60108         Work around a HP-UX stdio bug.
60109         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60110         * tests/test-ftello.c (main): Likewise.
60111         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60112         * doc/posix-functions/ftello.texi: Likewise.
60113
60114 2008-04-13  Bruno Haible  <bruno@clisp.org>
60115
60116         Make test-signbit pass on HP-UX/hppa.
60117         * tests/test-signbit.c (minus_zerol): New variable.
60118         (test_signbitl): Use it.
60119
60120 2008-04-13  Bruno Haible  <bruno@clisp.org>
60121
60122         Make truncl work on OSF/1 4.0.
60123         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60124         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60125         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60127         HAVE_DECL_TRUNCL.
60128         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60129         HAVE_DECL_TRUNCL.
60130         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60131
60132 2008-04-13  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60135
60136 2008-04-13  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60139         expression, so as to avoid HP-UX 11 cc compiler bug.
60140
60141 2008-04-13  Bruno Haible  <bruno@clisp.org>
60142
60143         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60144
60145 2008-04-13  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/git-merge-changelog.c: Remove empty declaration outside of
60148         functions.
60149
60150 2008-04-13  Bruno Haible  <bruno@clisp.org>
60151
60152         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60153
60154 2008-04-13  Bruno Haible  <bruno@clisp.org>
60155
60156         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60157         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60159         also if it exists but lacks definitions of the SHUT_* macros.
60160         * modules/sys_socket (Description): Update.
60161         Reported by Elbert Pol <e.pol@chello.nl>.
60162
60163 2008-04-13  Bruno Haible  <bruno@clisp.org>
60164
60165         * lib/localcharset.c (OS2): Don't redefine if already defined.
60166         Reported by Elbert Pol <e.pol@chello.nl>.
60167
60168 2008-04-13  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/binary-io.h [__EMX__]: Include <io.h>.
60171         Reported by Elbert Pol <e.pol@chello.nl>.
60172
60173 2008-04-12  Bruno Haible  <bruno@clisp.org>
60174
60175         * lib/fpucw.h: Enable the definitions also for x86_64.
60176         Needed for NetBSD/x86_64.
60177         Reported by Thomas Klausner <tk@giga.or.at>.
60178
60179 2008-04-12  Bruno Haible  <bruno@clisp.org>
60180
60181         * tests/test-strtod.c: Include isnand.h.
60182         (main): Use isnand instead of isnan.
60183         Reported by Jim Meyering.
60184
60185 2008-04-12  Bruno Haible  <bruno@clisp.org>
60186
60187         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60189
60190 2008-04-12  Jim Meyering  <meyering@redhat.com>
60191
60192         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60193
60194 2008-04-12  Bruno Haible  <bruno@clisp.org>
60195
60196         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60197         Reported by Elbert Pol <e.pol@chello.nl>.
60198
60199 2008-04-12  Eric Blake  <ebb9@byu.net>
60200
60201         Work around Solaris 10 math.h bug.
60202         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60203         (gl_MATH_H_DEFAULTS): Set up default.
60204         * modules/math (Makefile.am): Replace new indicators.
60205         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60206         * tests/test-math.c (main): Test this.
60207         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60208         * doc/posix-headers/math.texi (math.h): Mention bug.
60209         Reported by Nelson H. F. Beebe and Jim Meyering.
60210
60211 2008-04-11  Bruno Haible  <bruno@clisp.org>
60212
60213         Adapt to future versions of Apple GCC.
60214         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60215         Reported by Peter O'Gorman <peter@pogma.com>.
60216
60217 2008-04-11  Bruno Haible  <bruno@clisp.org>
60218
60219         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60220
60221 2008-04-11  Bruno Haible  <bruno@clisp.org>
60222
60223         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60224
60225         * modules/getaddrinfo-tests (Makefile.am): Define
60226         test_getaddrinfo_LDADD.
60227
60228 2008-04-11  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60231         (init): Fix syntax error.
60232         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60233         is declared.
60234
60235 2008-04-11  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60238         * modules/glob (Depends-on): Add stdbool.
60239
60240 2008-04-11  Bruno Haible  <bruno@clisp.org>
60241
60242         * lib/trim.c: Include <string.h>.
60243
60244 2008-04-11  Eric Blake  <ebb9@byu.net>
60245
60246         Avoid compile failure on OS/2.
60247         * lib/regex_internal.h (internal_function): Disable optimization
60248         on OS/2 (__EMX__), where it caused compiler error.
60249         Reported by Elbert Pol.
60250
60251 2008-04-11  Bruno Haible  <bruno@clisp.org>
60252
60253         Flush the standard error stream before aborting. Needed on mingw.
60254         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60255         * tests/test-array_list.c (ASSERT): Likewise.
60256         * tests/test-array_oset.c (ASSERT): Likewise.
60257         * tests/test-avltree_list.c (ASSERT): Likewise.
60258         * tests/test-avltree_oset.c (ASSERT): Likewise.
60259         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60260         * tests/test-binary-io.c (ASSERT): Likewise.
60261         * tests/test-byteswap.c (ASSERT): Likewise.
60262         * tests/test-c-ctype.c (ASSERT): Likewise.
60263         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60264         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60265         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60266         * tests/test-c-strstr.c (ASSERT): Likewise.
60267         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60268         * tests/test-canonicalize.c (ASSERT): Likewise.
60269         * tests/test-carray_list.c (ASSERT): Likewise.
60270         * tests/test-ceilf1.c (ASSERT): Likewise.
60271         * tests/test-ceilf2.c (ASSERT): Likewise.
60272         * tests/test-ceill.c (ASSERT): Likewise.
60273         * tests/test-count-one-bits.c (ASSERT): Likewise.
60274         * tests/test-fbufmode.c (ASSERT): Likewise.
60275         * tests/test-fflush2.c (ASSERT): Likewise.
60276         * tests/test-floorf1.c (ASSERT): Likewise.
60277         * tests/test-floorf2.c (ASSERT): Likewise.
60278         * tests/test-floorl.c (ASSERT): Likewise.
60279         * tests/test-fopen.c (ASSERT): Likewise.
60280         * tests/test-fpending.c (ASSERT): Likewise.
60281         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60282         * tests/test-fpurge.c (ASSERT): Likewise.
60283         * tests/test-freadable.c (ASSERT): Likewise.
60284         * tests/test-freadahead.c (ASSERT): Likewise.
60285         * tests/test-freading.c (ASSERT): Likewise.
60286         * tests/test-freadptr.c (ASSERT): Likewise.
60287         * tests/test-freadptr2.c (ASSERT): Likewise.
60288         * tests/test-freadseek.c (ASSERT): Likewise.
60289         * tests/test-freopen.c (ASSERT): Likewise.
60290         * tests/test-frexp.c (ASSERT): Likewise.
60291         * tests/test-frexpl.c (ASSERT): Likewise.
60292         * tests/test-fseek.c (ASSERT): Likewise.
60293         * tests/test-fseeko.c (ASSERT): Likewise.
60294         * tests/test-fstrcmp.c (ASSERT): Likewise.
60295         * tests/test-ftell.c (ASSERT): Likewise.
60296         * tests/test-ftello.c (ASSERT): Likewise.
60297         * tests/test-func.c (ASSERT): Likewise.
60298         * tests/test-fwritable.c (ASSERT): Likewise.
60299         * tests/test-fwriting.c (ASSERT): Likewise.
60300         * tests/test-getdelim.c (ASSERT): Likewise.
60301         * tests/test-getline.c (ASSERT): Likewise.
60302         * tests/test-i-ring.c (ASSERT): Likewise.
60303         * tests/test-iconv-utf.c (ASSERT): Likewise.
60304         * tests/test-iconv.c (ASSERT): Likewise.
60305         * tests/test-isfinite.c (ASSERT): Likewise.
60306         * tests/test-isnand.c (ASSERT): Likewise.
60307         * tests/test-isnanf.c (ASSERT): Likewise.
60308         * tests/test-isnanl.h (ASSERT): Likewise.
60309         * tests/test-ldexpl.c (ASSERT): Likewise.
60310         * tests/test-linked_list.c (ASSERT): Likewise.
60311         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60312         * tests/test-localename.c (ASSERT): Likewise.
60313         * tests/test-lseek.c (ASSERT): Likewise.
60314         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60315         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60316         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60317         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60318         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60319         * tests/test-mbschr.c (ASSERT): Likewise.
60320         * tests/test-mbscspn.c (ASSERT): Likewise.
60321         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60322         * tests/test-mbspbrk.c (ASSERT): Likewise.
60323         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60324         * tests/test-mbsrchr.c (ASSERT): Likewise.
60325         * tests/test-mbsspn.c (ASSERT): Likewise.
60326         * tests/test-mbsstr1.c (ASSERT): Likewise.
60327         * tests/test-mbsstr2.c (ASSERT): Likewise.
60328         * tests/test-mbsstr3.c (ASSERT): Likewise.
60329         * tests/test-memchr2.c (ASSERT): Likewise.
60330         * tests/test-memmem.c (ASSERT): Likewise.
60331         * tests/test-open.c (ASSERT): Likewise.
60332         * tests/test-printf-frexp.c (ASSERT): Likewise.
60333         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60334         * tests/test-printf-posix.c (ASSERT): Likewise.
60335         * tests/test-quotearg.c (ASSERT): Likewise.
60336         * tests/test-rbtree_list.c (ASSERT): Likewise.
60337         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60338         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60339         * tests/test-round1.c (ASSERT): Likewise.
60340         * tests/test-roundf1.c (ASSERT): Likewise.
60341         * tests/test-roundl.c (ASSERT): Likewise.
60342         * tests/test-signbit.c (ASSERT): Likewise.
60343         * tests/test-sleep.c (ASSERT): Likewise.
60344         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60345         * tests/test-snprintf.c (ASSERT): Likewise.
60346         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60347         * tests/test-stat-time.c (ASSERT): Likewise.
60348         * tests/test-strcasestr.c (ASSERT): Likewise.
60349         * tests/test-strerror.c (ASSERT): Likewise.
60350         * tests/test-striconv.c (ASSERT): Likewise.
60351         * tests/test-striconveh.c (ASSERT): Likewise.
60352         * tests/test-striconveha.c (ASSERT): Likewise.
60353         * tests/test-strsignal.c (ASSERT): Likewise.
60354         * tests/test-strstr.c (ASSERT): Likewise.
60355         * tests/test-strtod.c (ASSERT): Likewise.
60356         * tests/test-trunc1.c (ASSERT): Likewise.
60357         * tests/test-trunc2.c (ASSERT): Likewise.
60358         * tests/test-truncf1.c (ASSERT): Likewise.
60359         * tests/test-truncf2.c (ASSERT): Likewise.
60360         * tests/test-truncl.c (ASSERT): Likewise.
60361         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60362         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60363         * tests/test-vasnprintf.c (ASSERT): Likewise.
60364         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60365         * tests/test-vasprintf.c (ASSERT): Likewise.
60366         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60367         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60368         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60369         * tests/test-vsnprintf.c (ASSERT): Likewise.
60370         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60371         * tests/test-wcwidth.c (ASSERT): Likewise.
60372         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60373         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60374         * tests/test-xvasprintf.c (ASSERT): Likewise.
60375         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60376         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60377         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60378         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60379         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60380         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60381         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60382         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60383         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60384         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60385         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60386         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60387         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60388         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60389         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60390         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60391         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60392         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60393         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60394         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60395         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60396         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60397         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60398         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60399         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60400         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60401         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60402         * tests/unictype/test-combining.c (ASSERT): Likewise.
60403         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60404         * tests/unictype/test-digit.c (ASSERT): Likewise.
60405         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60406         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60407         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60408         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60409         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60410         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60411         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60412         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60413         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60414         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60415         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60416         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60417         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60418         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60419         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60420         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60421         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60422         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60423         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60424         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60425         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60426         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60427         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60428         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60429         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60430         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60431         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60432         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60433         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60434         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60435         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60436         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60437         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60438         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60439         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60440         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60441         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60442         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60443         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60444         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60445         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60446         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60447         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60448         Reported by Eric Blake.
60449
60450 2008-04-11  Bruno Haible  <bruno@clisp.org>
60451
60452         * lib/wchar.in.h: Tweak comment.
60453
60454 2008-04-11  Bruno Haible  <bruno@clisp.org>
60455
60456         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60457         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60458         gl_COMMON.
60459         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60460
60461 2008-04-11  Bruno Haible  <bruno@clisp.org>
60462
60463         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60464
60465 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60466
60467         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60468         of attempting to use non-existing /dev/*random.  Based on patch
60469         from Adam Strzelecki <ono@java.pl> in
60470         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60471
60472 2008-04-08  Bruno Haible  <bruno@clisp.org>
60473
60474         Add tentative support for emx+gcc.
60475         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60476         * lib/fpurge.c (fpurge): Likewise.
60477         * lib/freadable.c (freadable): Likewise.
60478         * lib/freadahead.c (freadahead): Likewise.
60479         * lib/freading.c (freading): Likewise.
60480         * lib/freadptr.c (freadptr): Likewise.
60481         * lib/freadseek.c (freadptrinc): Likewise.
60482         * lib/fseeko.c (rpl_fseeko): Likewise.
60483         * lib/fseterr.c (fseterr): Likewise.
60484         * lib/fwritable.c (fwritable): Likewise.
60485         * lib/fwriting.c (fwriting): Likewise.
60486         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60487
60488 2008-04-09  Eric Blake  <ebb9@byu.net>
60489
60490         Avoid some autoconf warnings.
60491         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60492         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60493         * m4/afs.m4 (gl_AFS): Likewise.
60494         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60495         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60497         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60498         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60499         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60500         (AC_CHECK_DECLS_ONCE): Likewise.
60501         Rename file...
60502         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60503         gnulib-tool requires autoconf 2.59 or better.
60504         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60505
60506 2008-04-08  Eric Blake  <ebb9@byu.net>
60507
60508         Use 'git describe --match' if present (added in git 1.5.5).
60509         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60510         if possible.
60511
60512 2008-04-08  Bruno Haible  <bruno@clisp.org>
60513
60514         Add tentative support for OpenServer.
60515         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60516         _ptr, _cnt.
60517         * lib/fpurge.c (fpurge): Likewise.
60518         * lib/freadable.c (freadable): Likewise.
60519         * lib/freadahead.c (freadahead): Likewise.
60520         * lib/freading.c (freading): Likewise.
60521         * lib/freadptr.c (freadptr): Likewise.
60522         * lib/freadseek.c (freadptrinc): Likewise.
60523         * lib/fseeko.c (rpl_fseeko): Likewise.
60524         * lib/fseterr.c (fseterr): Likewise.
60525         * lib/fwritable.c (fwritable): Likewise.
60526         * lib/fwriting.c (fwriting): Likewise.
60527         Reported by Roger Cornelius <rac@tenzing.org> and
60528         Brian K. White <brian@aljex.com>.
60529
60530 2008-04-06  Jim Meyering  <meyering@redhat.com>
60531
60532         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60533
60534 2008-04-06  Bruno Haible  <bruno@clisp.org>
60535
60536         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60537         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60538         * tests/test-printf-posix.sh: Likewise.
60539         * tests/test-vfprintf-posix.sh: Likewise.
60540         * tests/test-vprintf-posix.sh: Likewise.
60541         * tests/test-xprintf-posix.sh: Likewise.
60542
60543 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60544
60545         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60546         hide error from 'ls', needed on OS/2.
60547         Report by Elbert Pol <elbert.pol@gmail.com>.
60548
60549 2008-04-04  Eric Blake  <ebb9@byu.net>
60550
60551         Make test-fseeko.c failures meaningful.
60552         * tests/test-fseeko.c: Print line number on failure.
60553         * tests/test-fseek.c: Likewise.
60554         Reported by Nelson H. F. Beebe.
60555
60556         Improve strtod bug detection check.
60557         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60558         required for Solaris 10.
60559         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60560
60561 2008-04-04  Bruno Haible  <bruno@clisp.org>
60562
60563         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60564         by m4/setenv.m4.
60565
60566 2008-04-03  Eric Blake  <ebb9@byu.net>
60567
60568         Ensure sane .version contents.
60569         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60570         version string.
60571         * build-aux/git-version-gen: Improve documentation.
60572
60573         Make GNU make output nicer.
60574         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60575         MAKECMDGOALS to enforce message for all command line targets.  Set
60576         srcdir for use in maint.mk.
60577
60578         Another maintainer tweak.
60579         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60580         a target that regenerates version.
60581
60582 2008-04-03  Jim Meyering  <meyering@redhat.com>
60583
60584         vc-list-files: don't cause coreutils "make po-check" failure
60585         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60586
60587 2008-04-03  Eric Blake  <ebb9@byu.net>
60588
60589         Allow VPATH usage of vc-list-files.
60590         * build-aux/vc-list-files (scriptversion): Add timestamp.
60591         (options): Add --help, --version, -C.
60592         (CVS): Support installed cvsu.
60593
60594 2008-04-02  Bruno Haible  <bruno@clisp.org>
60595
60596         Avoid some "statement with no effect" warnings from gcc.
60597         * tests/test-wctype.c (main): Explicitly ignore unused values.
60598         Reported by Jim Meyering.
60599
60600 2008-04-02  Jim Meyering  <meyering@redhat.com>
60601
60602         Avoid some warnings from "gcc -Wshadow".
60603         * tests/test-frexp.c (exp): Define to a different identifier.
60604         * tests/test-frexpl.c (exp): Likewise.
60605
60606 2008-04-03  Jim Meyering  <meyering@redhat.com>
60607
60608         bootstrap: remove dangling *.[ch] symlinks from lib
60609         * build-aux/bootstrap [dangling symlink removal]: Move find's
60610         -depth option to precede all others, to avoid a warning.
60611         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60612
60613 2008-04-02  Bruno Haible  <bruno@clisp.org>
60614
60615         Avoid some warnings from "gcc -Wshadow".
60616         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60617         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60618         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60619         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60620         Reported by Jim Meyering.
60621
60622 2008-04-01  Bruno Haible  <bruno@clisp.org>
60623
60624         Fix test to work on IRIX 6.5 with cc.
60625         * tests/test-math.c (numeric_equal): New function.
60626         (main): Use it.
60627
60628 2008-04-01  Bruno Haible  <bruno@clisp.org>
60629
60630         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60631
60632 2008-04-01  Bruno Haible  <bruno@clisp.org>
60633
60634         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60635         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60636         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60637         (Depends-on): Remove math.
60638
60639         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60640         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60641         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60642         (Depends-on): Remove math.
60643
60644         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60645         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60646         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60647         (Depends-on): Remove math.
60648         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60649         (Depends-on): Remove math.
60650
60651         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60652         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60653         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60654         (Depends-on): Remove math.
60655         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60656         (Depends-on): Remove math.
60657
60658         * tests/test-round1.c: Include nan.h.
60659         (main): Use NaNd instead of NAN.
60660         * modules/round-tests (Files): Add tests/nan.h.
60661
60662         * tests/test-trunc1.c: Include nan.h.
60663         (main): Use NaNd instead of NAN.
60664         * modules/trunc-tests (Files): Add tests/nan.h.
60665
60666         * tests/test-roundf1.c: Include nan.h.
60667         (main): Use NaNf instead of NAN.
60668         * modules/roundf-tests (Files): Add tests/nan.h.
60669
60670         * tests/test-truncf1.c: Include nan.h.
60671         (main): Use NaNf instead of NAN.
60672         * modules/truncf-tests (Files): Add tests/nan.h.
60673
60674         * tests/test-ceilf1.c: Include nan.h.
60675         (main): Use NaNf instead of NAN.
60676         * modules/ceilf-tests (Files): Add tests/nan.h.
60677
60678         * tests/test-floorf1.c: Include nan.h.
60679         (main): Use NaNf instead of NAN.
60680         * modules/floorf-tests (Files): Add tests/nan.h.
60681
60682         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60683         (main): Use NaNf instead of NAN.
60684         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60685
60686         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60687         (main): Use NaNd instead of NAN.
60688         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60689
60690         * tests/test-frexp.c: Include nan.h.
60691         (main): Use NaNd instead of NAN.
60692         * modules/frexp-tests (Files): Add tests/nan.h.
60693
60694         * lib/isnan.c: Don't include <math.h>.
60695         (FUNC): Don't use NAN macro.
60696         * modules/isnand-nolibm (Depends-on): Remove math.
60697         * modules/isnanf-nolibm (Depends-on): Remove math.
60698         * modules/isnanl (Depends-on): Remove math.
60699         * modules/isnanl-nolibm (Depends-on): Remove math.
60700
60701         * tests/nan.h: New file.
60702
60703 2008-04-01  Eric Blake  <ebb9@byu.net>
60704
60705         Fix typos.
60706         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60707         values to be the right type.
60708
60709         For now, cater to gnulib strtod inaccuracies.
60710         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60711         fractional results.  While not as nice from a QoI perspective, it
60712         is a quicker patch than correctly implementing decimal to binary
60713         rounding.
60714
60715 2008-03-31  Eric Blake  <ebb9@byu.net>
60716
60717         Guarantee a definition of NAN.
60718         * lib/math.in.h (NAN): Define if missing.
60719         * tests/test-math.c (main): Test it.
60720         * doc/posix-headers/math.texi (math.h): Document this.
60721         * lib/isnan.c (rpl_isnand): Use it.
60722         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60723         * tests/test-floorf1.c (NaN): Likewise.
60724         * tests/test-frexp.c (NaN): Likewise.
60725         * tests/test-isnand.c (NaN): Likewise.
60726         * tests/test-isnanf.c (NaN): Likewise.
60727         * tests/test-round1.c (NaN): Likewise.
60728         * tests/test-roundf1.c (NaN): Likewise.
60729         * tests/test-snprintf-posix.h (NaN): Likewise.
60730         * tests/test-sprintf-posix.h (NaN): Likewise.
60731         * tests/test-trunc1.c (NaN): Likewise.
60732         * tests/test-truncf1.c (NaN): Likewise.
60733         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60734         * tests/test-vasprintf-posix.c (NaN): Likewise.
60735         * modules/isnand-nolibm (Depends-on): Add math.
60736         * modules/isnanf-nolibm (Depends-on): Likewise.
60737         * modules/isnanl (Depends-on): Likewise.
60738         * modules/isnanl-nolibm (Depends-on): Likewise.
60739         * modules/snprintf-posix-tests (Depends-on): Likewise.
60740         * modules/sprintf-posix-tests (Depends-on): Likewise.
60741         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60742         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60743         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60744         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60745
60746 2008-03-31  Bruno Haible  <bruno@clisp.org>
60747
60748         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60749         * doc/posix-functions/strtod.texi: Likewise.
60750
60751 2008-03-31  Bruno Haible  <bruno@clisp.org>
60752
60753         * tests/test-strtod.c (main): Don't use C99 syntax.
60754
60755 2008-03-31  Bruno Haible  <bruno@clisp.org>
60756
60757         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60758         Reported by Eric Blake.
60759
60760 2008-03-31  Jim Meyering  <meyering@redhat.com>
60761
60762         Don't compare actual signbit return values.
60763         * tests/test-strtod.c (main): Rather, compare only their
60764         zero/non-zero nature.
60765
60766 2008-03-31  Eric Blake  <ebb9@byu.net>
60767
60768         More strtod documentation.
60769         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60770         failures as distinct bugs.
60771
60772 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60773
60774         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60775         Problem reported by Erik Benada in
60776         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60777
60778 2008-03-30  Bruno Haible  <bruno@clisp.org>
60779
60780         * tests/test-strtod.c: Add comments about which assertion fails on which
60781         platform.
60782         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60783
60784 2008-03-30  Eric Blake  <ebb9@byu.net>
60785
60786         Test signbit behavior on zeros.
60787         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60788         (test_signbitd, test_signbitl): Likewise.
60789
60790         More strtod touchups.
60791         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60792         sign of negative underflow, for now.  Use .5, not .1.
60793         * doc/posix-functions/strtod.texi (strtod): Mention these
60794         limitations.
60795         Reported by Jim Meyering.
60796
60797 2008-03-30  Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60800         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60801
60802 2008-03-30  Bruno Haible  <bruno@clisp.org>
60803
60804         Avoid failure when attempting to return empty iconv results on some
60805         platforms.
60806         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60807         allocation, don't report ENOMEM when the resulting string is empty.
60808
60809 2008-03-30  Bruno Haible  <bruno@clisp.org>
60810
60811         Fix buffer overrun.
60812         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60813         Don't consider the width for tmp_length. Check count against tmp_length
60814         before doing the padding. Ensure enough allocation during padding.
60815
60816 2008-03-30  Eric Blake  <ebb9@byu.net>
60817
60818         strtod touchups.
60819         * lib/strtod.c (strtod): Avoid compiler warnings.
60820         Reported by Jim Meyering.
60821
60822 2008-03-30  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60825         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60826         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60827         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60828         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60829         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60830         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60831         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60832
60833         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60834         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60835         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60836         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60837         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60838         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60839         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60840         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60841
60842         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60843         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60844         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60845         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60846         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60847         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60848         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60849         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60850
60851         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60852         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60853
60854         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60855         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60856
60857         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60858         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60859
60860         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60862         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60863
60864         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60866         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60867
60868         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60870         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60871
60872         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60874         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60875
60876         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60877         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60879         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60880         (Depends-on): Add EOVERFLOW.
60881         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60882         (Depends-on): Add EOVERFLOW.
60883         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60884         (Depends-on): Add EOVERFLOW.
60885         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60886         (Depends-on): Add EOVERFLOW.
60887         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60888         (Depends-on): Add EOVERFLOW.
60889         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60890         (Depends-on): Add EOVERFLOW.
60891         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60892         (Depends-on): Add EOVERFLOW.
60893         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60894         (Depends-on): Add EOVERFLOW.
60895
60896         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60898         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60899
60900         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60902         * modules/snprintf (Depends-on): Add EOVERFLOW.
60903
60904         * lib/poll.c (EOVERFLOW): Remove fallback.
60905         * modules/poll (Depends-on): Add EOVERFLOW.
60906
60907         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60908         * modules/getugroups (Depends-on): Add EOVERFLOW.
60909
60910         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60911         * modules/getdelim (Depends-on): Add EOVERFLOW.
60912
60913         * lib/ftell.c (EOVERFLOW): Remove fallback.
60914         * modules/ftell (Depends-on): Add EOVERFLOW.
60915
60916         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60918         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60919
60920         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60921
60922         * modules/EOVERFLOW-tests: New file.
60923         * tests/test-EOVERFLOW.c: New file.
60924
60925         * modules/EOVERFLOW: New file.
60926         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60927
60928 2008-03-30  Bruno Haible  <bruno@clisp.org>
60929
60930         Fix bug introduced on 2007-06-10.
60931         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60932         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60933
60934 2008-03-30  Bruno Haible  <bruno@clisp.org>
60935
60936         Improve freadseek's efficiency after ungetc.
60937         * lib/freadseek.c: Include freadahead.h.
60938         (freadptrinc): New function, extracted from freadseek.
60939         (freadseek): Use it in a loop. Use freadahead to determine the number
60940         of loop iterations.
60941         * modules/freadseek (Depends-on): Add freadahead.
60942         (configure.ac): Require AC_C_INLINE.
60943
60944 2008-03-30  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/freadseek.c (freadseek): Don't ignore the return value of
60947         freadptr.
60948
60949 2008-03-29  Eric Blake  <ebb9@byu.net>
60950
60951         Add hex float support.
60952         * modules/strtod (Depends-on): Add c-ctype.
60953         (Link): Mention POW_LIB.
60954         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60955         whitespace between 'e' and exponent.
60956         * tests/test-strtod.c (main): Enable hex float tests.
60957         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60958         now provides.
60959
60960         Document various strtod bugs, with some fixes.
60961         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60962         "-0x", "inf", "nan", and hex constants.
60963         * doc/posix-functions/atof.texi (atof): Likewise.
60964         * modules/stdlib (Makefile.am): Support strtod.
60965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60966         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60967         detect additional strtod bugs.
60968         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60969         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60970         bool where appropriate.  Parse 'inf' and 'nan'.
60971         * tests/test-strtod.c: New file.
60972         * modules/strtod (Depends-on): Add stdbool, stdlib.
60973         (configure.ac): Turn on module indicator.
60974         * modules/strtod-tests: New module.
60975
60976 2008-03-29  Eric Blake  <ebb9@byu.net>
60977
60978         Fix ftell on mingw.
60979         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60980         * modules/ftell-tests (Depends-on): Add binary-io.
60981         * modules/ftello-tests (Depends-on): Likewise.
60982         * tests/test-ftell.c (main): Enhance test to cover behavior after
60983         ungetc.  Enforce binary mode.
60984         * tests/test-ftello.c (main): Likewise.
60985
60986         Pass test-freadseek on cygwin.
60987         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60988         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60989         ungetc buffer.
60990
60991         * tests/test-fflush2.c (main): Fix typo.
60992
60993 2008-03-29  Bruno Haible  <bruno@clisp.org>
60994
60995         * tests/test-fflush2.c (main): Temporarily disable the contents of
60996         this test.
60997         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60998         Reported by Eric Blake.
60999
61000 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61001
61002         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61003         (GC_SHA224_DIGEST_SIZE): Add.
61004
61005         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61006         (gc_hash_digest_length): Likewise.
61007         (gc_hash_buffer): Likewise.
61008
61009 2008-03-25  Bruno Haible  <bruno@clisp.org>
61010
61011         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61012         detail which gettext release to use.
61013         Reported by Simon Josefsson.
61014
61015 2008-03-26  Jim Meyering  <meyering@redhat.com>
61016
61017         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61018         * modules/gnumakefile (clean-GNUmakefile): Also, use
61019         test ... && ... || : syntax rather than if-then ... fi.
61020
61021         gnumakefile: Don't double-quote-expand $(VPATH) value.
61022         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61023
61024 2008-03-24  Eric Blake  <ebb9@byu.net>
61025
61026         Alter GNUmakefile to install into top directory.
61027         * modules/maintainer-makefile: Split, and add dependency...
61028         * modules/gnumakefile: to this new module.
61029         * build-aux/GNUmakefile: Move...
61030         * top/GNUmakefile: ...here.
61031         * build-aux/maint.mk: Move...
61032         * top/maint.mk: ...here.
61033         * MODULES.html.sh (Support for maintaining...): Document new
61034         module.
61035
61036 2008-03-23  Bruno Haible  <bruno@clisp.org>
61037
61038         * gnulib-tool: New options --vc-files, --no-vc-files.
61039         (func_usage): Document them.
61040         (vc_files): New variable.
61041         (func_import): Consider vc_files.
61042         (func_create_testdir): Set vc_files to empty.
61043         Suggested by Jim Meyering and Karl Berry.
61044
61045 2008-03-23  Bruno Haible  <bruno@clisp.org>
61046
61047         Fix regex compilation error on HP-UX 11.
61048         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61049         * modules/regex (Files): Add m4/mbstate_t.m4.
61050         Reported by Ton Voon <ton.voon@altinity.com>.
61051
61052 2008-03-23  Bruno Haible  <bruno@clisp.org>
61053
61054         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61055
61056 2008-03-23  Eric Blake  <ebb9@byu.net>
61057             Bruno Haible  <bruno@clisp.org>
61058
61059         Install files from top/ in the destination directory.
61060         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61061         augmentation also for the files from top/.
61062         (func_import, func_create_testdir): Rewrite file names:
61063         top/filename -> filename.
61064
61065 2008-03-23  Bruno Haible  <bruno@clisp.org>
61066
61067         Tweak "gnulib --version" output.
61068         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61069
61070 2008-03-23  Bruno Haible  <bruno@clisp.org>
61071
61072         Tweak "gnulib --version" output.
61073         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61074         rather than contents of ChangeLog, when possible.
61075
61076 2008-03-21  Eric Blake  <ebb9@byu.net>
61077
61078         More --version tweaks.
61079         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61080         date of last ChangeLog entry.
61081
61082 2008-03-21  Jim Meyering  <meyering@redhat.com>
61083
61084         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61085
61086 2008-03-20  Eric Blake  <ebb9@byu.net>
61087
61088         VPATH fix.
61089         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61090
61091 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61092
61093         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61094         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61095
61096 2008-03-20  Eric Blake  <ebb9@byu.net>
61097
61098         Sync GNUmakefile with coreutils.
61099         * build-aux/GNUmakefile (have-Makefile): Rename...
61100         (_have-Makefile): ...to this, for namespace consideration.
61101         (GNUmakefile.cfg): Include, if present.
61102         (_autoreconf): Define a default.
61103         (_is-dist-target): New rule for rebuilds to pick up intra-release
61104         version.
61105         (maint-cfg.mk): Rename...
61106         (cfg.mk): ...to this.
61107
61108 2008-03-18  Jim Meyering  <meyering@redhat.com>
61109
61110         New script and module: mktempd
61111         * MODULES.html.sh (maint+release support): Add mktempd.
61112         * build-aux/mktempd: New file.
61113         * modules/mktempd: New file.
61114
61115 2008-03-15  Jim Meyering  <meyering@redhat.com>
61116
61117         Undo last change.
61118         * lib/sha1.c, lib/md5.c: 63 != ~63.
61119         Reported by Andreas Schwab.
61120
61121         sha1.c, md5.c: Hoist a redundant expression.
61122         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61123         "ctx->buflen" only once, before calling *_process_block.
61124         * lib/md5.c (md5_process_bytes): Likewise.
61125
61126 2008-03-14  Eric Blake  <ebb9@byu.net>
61127
61128         Bump copyright year in files generated by gnulib-tool.
61129         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61130         gnulib-tool, rather than hard-coding it.
61131
61132         Fix 'gnulib-tool --version' output to work with git.
61133         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61134         (startup): ...here.
61135         (func_version): Use it to invoke git-version-gen, rather than
61136         relying on CVS keyword expansion.  Modernize wording.
61137         (cvsdatestamp, last_checkin_date, version): Kill unused
61138         variables.
61139
61140 2008-03-12  Jim Meyering  <meyering@redhat.com>
61141
61142         Recognize optional cast of the argument to free.
61143         * build-aux/useless-if-before-free: Update regexps.
61144
61145         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61146
61147 2008-03-11  Bruno Haible  <bruno@clisp.org>
61148
61149         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61150         by a single package.
61151         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61152         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61153         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61154         Reported by Sam Steingold <sds@gnu.org>.
61155
61156 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61157
61158         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61159         repositories.
61160
61161 2008-03-11  Bruno Haible  <bruno@clisp.org>
61162
61163         Avoid conflicts between local macro definitions.
61164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61165         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61166
61167 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61168             Bruno Haible  <bruno@clisp.org>
61169
61170         Make va_copy work with some version of xlc on AIX 5.1.
61171         * lib/stdarg.in.h: New file.
61172         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61173         On AIX, use a <stdarg.h> file substitute.
61174         * modules/stdarg (Files): Add lib/stdarg.in.h.
61175         (Depends-on): Add include_next.
61176         (Makefile.am): Build a stdarg.h substitute if requested.
61177         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61178
61179 2008-03-10  Bruno Haible  <bruno@clisp.org>
61180
61181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61183         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61184
61185 2008-03-10  Bruno Haible  <bruno@clisp.org>
61186
61187         * modules/stdlib (Depends-on): Add include_next, remove
61188         absolute-header.
61189
61190 2008-03-09  Bruno Haible  <bruno@clisp.org>
61191
61192         * lib/freadahead.h (freadahead): Document more precisely.
61193         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61194         the sum of both buffer sizes.
61195         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61196         * NEWS: Document the change.
61197
61198 2008-03-09  Bruno Haible  <bruno@clisp.org>
61199
61200         Extend freadptr to return also the buffer size.
61201         * lib/freadptr.h (freadptr): Add sizep argument.
61202         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61203         (freadptr): Add sizep argument. Determine buffer size like freadahead
61204         does.
61205         * tests/test-freadptr.c: Don't include freadahead.h.
61206         (main): Adapt for new calling convention of freadptr.
61207         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61208         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61209         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61210         tests/test-freadptr2.sh.
61211         (Depends): Remove freadahead.
61212         (TESTS): Add test-freadptr2.sh.
61213         (check_PROGRAMS): Add test-freadptr2.
61214
61215 2008-03-09  Bruno Haible  <bruno@clisp.org>
61216
61217         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61218         Report and solution by Simon Josefsson.
61219
61220 2008-03-06  Bruno Haible  <bruno@clisp.org>
61221
61222         Make fflush after ungetc work on BSD platforms.
61223         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61224         * tests/test-fflush2.c: New file.
61225         * tests/test-fflush2.sh: New file.
61226         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61227         tests/test-fflush2.c.
61228         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61229         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61230
61231 2008-03-06  Eric Blake  <ebb9@byu.net>
61232
61233         Likewise for ftello.
61234         * modules/ftello (Dependencies): Add extensions.
61235         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61236
61237 2008-03-06  Bruno Haible  <bruno@clisp.org>
61238
61239         * modules/fseeko (Dependencies): Add extensions.
61240         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61241         Needed on glibc systems.
61242
61243 2008-03-06  Bruno Haible  <bruno@clisp.org>
61244
61245         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61246         email address.
61247         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61248
61249 2008-03-06  Bruno Haible  <bruno@clisp.org>
61250
61251         * users.txt: Add libgnupdf.
61252
61253 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61254
61255         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61256         (Header File Substitutes, Function Substitutes,
61257         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61258         (Build robot for gnulib): Fix typo.
61259
61260 2008-03-06  Bruno Haible  <bruno@clisp.org>
61261
61262         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61263         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61264
61265 2008-03-06  Bruno Haible  <bruno@clisp.org>
61266
61267         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61268         * doc/gnulib.texi: Include it.
61269
61270 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61271
61272         * modules/func (License): Change license to unlimited; there was
61273         no LGPL parts in the module anyway.
61274
61275 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61276
61277         * modules/__func__: Renamed to modules/func.
61278         * modules/__func__-tests: Renamed to modules/func-tests.
61279         * tests/test-__func__.c: Renamed to tests/test-func.c.
61280         * m4/__func__.m4: Renamed to m4/func.m4.
61281         * doc/gnulib.texi (__func__): Section renamed to func.
61282         Suggested by Eric Blake <ebb9@byu.net>.
61283
61284 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61285
61286         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61287         about __func__.  Make example self-contained.  Suggested by Eric
61288         Blake <ebb9@byu.net>.
61289
61290         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61291         Suggested by Eric Blake <ebb9@byu.net>.
61292
61293 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61294
61295         * modules/__func__: New file.
61296         * modules/__func__-tests: New file.
61297         * tests/test-__func__.c: New file.
61298         * m4/__func__.m4: New file.
61299         * doc/gnulib.texi (__func__): Document __func__ module.
61300
61301 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61302
61303         * modules/byteswap (License): Re-license as LGPLv2+.
61304
61305 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61306
61307         * doc/Makefile: Add pdf target.
61308
61309 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61310
61311         * modules/inline (License): Use 'unlimited', since there are only
61312         *.m4 files in this module.
61313
61314 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61315             Bruno Haible  <bruno@clisp.org>
61316
61317         Add support for HP C 7.1 on OpenVMS 8.3.
61318         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61319
61320 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61321
61322         Update VMS specifics.
61323         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61324
61325 2008-03-02  Jim Meyering  <meyering@redhat.com>
61326
61327         Remove the last dependency on the "free" module.
61328         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61329         Reported by Bob Proulx.
61330
61331         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61332
61333         Remove useless "if" tests before free.  Deprecate "free" module.
61334         * doc/posix-functions/free.texi: Mention that this
61335         module is no longer useful.
61336         * modules/free (Notice): Say this module is obsolete.
61337         * modules/readutmp (Depends-on): Remove free.
61338         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61339         * lib/putenv.c (putenv): Likewise.
61340         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61341         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61342         * tests/test-c-strcasestr.c (main): Likewise.
61343         * tests/test-c-strstr.c (main): Likewise.
61344         * tests/test-mbscasestr1.c (main): Likewise.
61345         * tests/test-mbscasestr2.c (main): Likewise.
61346         * tests/test-mbsstr1.c (main): Likewise.
61347         * tests/test-mbsstr2.c (main): Likewise.
61348         * tests/test-memmem.c (main): Likewise.
61349         * tests/test-strcasestr.c (main): Likewise.
61350         * tests/test-striconv.c (main): Likewise.
61351         * tests/test-striconveh.c (main): Likewise.
61352         * tests/test-striconveha.c (main): Likewise.
61353         * tests/test-strstr.c (main): Likewise.
61354
61355         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61356
61357         bootstrap: sync from coreutils again
61358         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61359
61360 2008-03-01  Jim Meyering  <meyering@redhat.com>
61361
61362         bootstrap: sync from coreutils
61363         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61364         also when the target doesn't exist.
61365
61366 2008-03-01  Eric Blake  <ebb9@byu.net>
61367
61368         Fix bugs in last patch.
61369         * lib/memchr2.c (memchr2): Fix typo.
61370         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61371         extension.
61372         Reported by Bruce Korb.
61373
61374         New module 'memchr2'.
61375         * modules/memchr2: New file.
61376         * modules/memchr2-tests: Likewise.
61377         * lib/memchr2.h: Likewise.
61378         * lib/memchr2.c: Likewise, based on memchr.c.
61379         * tests/test-memchr2.c: New test.
61380         * MODULES.html.sh (String handling): Add memchr2.
61381
61382 2008-02-29  Bruno Haible  <bruno@clisp.org>
61383
61384         * modules/freadseek-tests: New file.
61385         * tests/test-freadseek.sh: New file.
61386         * tests/test-freadseek.c: New file.
61387
61388         New module 'freadseek'.
61389         * modules/freadseek: New file.
61390         * lib/freadseek.h: New file.
61391         * lib/freadseek.c: New file.
61392         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61393
61394 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61395
61396         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61397         wydawca.
61398
61399         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61400         program_invocation_name and program_invocation_short_name are
61401         present.
61402
61403 2008-02-28  Bruno Haible  <bruno@clisp.org>
61404
61405         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61406         * tests/test-freadptr.sh: Also test non-seekable stdin.
61407
61408 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61409
61410         * build-aux/bootstrap (source_base, m4_base)
61411         (doc_base, tests_base): New variables.
61412         (gnulib_tool_options): Do not hardcode base directories, use
61413         the above variables instead.
61414
61415 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61416
61417         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61418
61419 2008-02-28  Bruno Haible  <bruno@clisp.org>
61420
61421         * modules/freadptr-tests: New file.
61422         * tests/test-freadptr.sh: New file.
61423         * tests/test-freadptr.c: New file.
61424
61425         New module 'freadptr'.
61426         * modules/freadptr: New file.
61427         * lib/freadptr.h: New file.
61428         * lib/freadptr.c: New file.
61429         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61430
61431 2008-02-26  Karl Berry  <karl@freefriends.org>
61432
61433         Sync from Libtool:
61434         * libltdl/argz.c (argz_add, argz_count): New functions.
61435         * libltdl/argz.in.h: Declare them.
61436         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61437
61438 2008-02-22  Bruno Haible  <bruno@clisp.org>
61439
61440         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61441         is a pointer type.  Needed for HP-UX 10.
61442         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61443         * doc/posix-functions/gmtime_r.texi: Likewise.
61444         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61445
61446 2008-02-24  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/environ-tests: New file.
61449         * tests/test-environ.c: New file.
61450
61451         New module 'environ'.
61452         * modules/environ: New file.
61453         * lib/unistd.in.h (environ): New declaration.
61454         * m4/environ.m4: New file.
61455         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61456         after use.
61457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61458         HAVE_DECL_ENVIRON.
61459         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61460         HAVE_DECL_ENVIRON.
61461         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61462         wrong claim that 'environ' is missing on some systems.
61463         * modules/execute (Depends-on): Add environ.
61464         * lib/execute.c (environ): Remove fallback declaration.
61465         * modules/pipe (Depends-on): Add environ.
61466         * lib/pipe.c (environ): Remove fallback declaration.
61467         * modules/setenv (Depends-on): Add environ.
61468         * lib/setenv.c (environ): Remove fallback declaration.
61469         * modules/unsetenv (Depends-on): Add environ.
61470         * lib/unsetenv.c (environ): Remove fallback declaration.
61471         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61472         m4/environ.m4.
61473         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61474         (gl_PREREQ_UNSETENV): Likewise.
61475
61476 2008-02-24  Bruno Haible  <bruno@clisp.org>
61477
61478         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61479
61480 2008-02-20  Bob Proulx  <bob@proulx.com>
61481
61482         Enable use of older two part flavor 'git describe'.
61483         * build-aux/git-version-gen: If using the older two part flavor of
61484         git version then recreate the third part now present in the
61485         newer three part flavor of git describe.
61486
61487 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61488
61489         * lib/fts.c (fts_build): Typo correction to comment.
61490
61491 2008-02-17  Bruno Haible  <bruno@clisp.org>
61492
61493         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61494         generating no-op conflicts.
61495
61496 2008-02-17  Bruno Haible  <bruno@clisp.org>
61497
61498         Speed up by 10%.
61499         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61500         result_entries, rather than an index-based loop.
61501
61502 2008-02-17  Bruno Haible  <bruno@clisp.org>
61503
61504         Speed up by 25%.
61505         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61506         'hashcode_cached'.
61507         (entry_create): New function.
61508         (entry_hashcode): Use the cached hashcode if possible.
61509         (read_changelog_file, try_split_merged_entry): Use entry_create.
61510
61511 2008-02-17  Bruno Haible  <bruno@clisp.org>
61512
61513         Speed up from O(n^2) to O(n) for long ChangeLog files.
61514         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61515         (read_changelog_file): Change implementation of entries_reversed list
61516         to rbtreehash.
61517         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61518
61519 2008-02-17  Bruno Haible  <bruno@clisp.org>
61520
61521         New option --split-merged-entry.
61522         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61523         (find_paragraph_end, try_split_merged_entry): New functions.
61524         (long_options): Add option --split-merged-entry.
61525         (usage): Document option --split-merged-entry.
61526         (main): Implement option --split-merged-entry.
61527         Reported by Eric Blake.
61528
61529 2008-02-17  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/git-merge-changelog.c: Include c-strstr.h.
61532         (main): Support the "git pull --rebase" situation.
61533         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61534         Reported by Eric Blake.
61535
61536 2008-02-16  Eric Blake  <ebb9@byu.net>
61537
61538         Avoid doubling \ in common case of "c-maybe" quoting style.
61539         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61540         eliding outer quotes.
61541         * lib/quotearg.h: Document this.
61542         * tests/test-quotearg.c (result_strings, inputs, results_g)
61543         (flag_results, locale_results): Test it by adding a new string to
61544         each test group.
61545         (compare_strings): Test new string.
61546
61547 2008-02-13  Eric Blake  <ebb9@byu.net>
61548
61549         Avoid trigraph quoting in default output.
61550         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61551         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61552         unless explicitly requested.
61553         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61554
61555 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61556
61557         Don't rely on signed integer overflowing to negative value.
61558         * lib/getugroups.c (getugroups): Include <limits.h>.
61559         Instead, compare against INT_MAX, and increment only if the test passes.
61560
61561 2008-02-13  Jim Meyering  <meyering@redhat.com>
61562         and Eric Blake  <ebb9@byu.net>
61563
61564         Avoid shadowing warning and compile errors on Linux.
61565         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61566         forwarding macros on Linux.
61567         (dcgettext): Define a stub, for Linux.
61568         (results_g, main): Avoid warnings.
61569
61570 2008-02-12  Eric Blake  <ebb9@byu.net>
61571
61572         Silence warning in last patch.
61573         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61574
61575         Quotearg part 4: add tests, fix c-maybe colon quoting.
61576         * lib/quotearg.h: Improve documentation.
61577         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61578         escapes when adding outer quotes.  When quoting trigraphs, use
61579         valid C notation.  When quoting NUL, omit extra characters if next
61580         character is not digit.  Alter prototype.
61581         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61582         callers.
61583         * modules/quotearg-tests: New module.
61584         * tests/test-quotearg.c: New test.
61585
61586 2008-02-07  Eric Blake  <ebb9@byu.net>
61587
61588         Quotearg part 3: add flag to control outer quote elision.
61589         * lib/quotearg.h (c_maybe_quoting_style): New style.
61590         (enum quoting_flags): Better documentation of flags.
61591         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61592         c-maybe style.
61593         (quotearg_buffer_restyled): Handle new flag to elide outer
61594         quotes.
61595
61596         Quotearg part 2: add flag that can control NUL elision.
61597         * lib/quotearg.h (set_quoting_flags): New prototype.
61598         * lib/quotearg.c (struct quoting_options): Add flag field.
61599         (set_quoting_flags): New function.
61600         (quotearg_buffer_restyled): Add flags parameter.
61601         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61602         (quotearg_n_options): Set the flag, since length cannot be
61603         returned.
61604         (quoting_options_from_style): Default flags correctly.
61605
61606         Quotearg part 1: more wrappers, restore quotearg_char state.
61607         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61608         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61609         (quotearg_colon_mem): New wrappers.
61610         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61611         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61612         functions.
61613         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61614         (quotearg_colon_mem): New functions.
61615
61616 2008-02-11  Bruno Haible  <bruno@clisp.org>
61617
61618         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61619         library in the current directory: it does not work with parallel make.
61620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61621
61622 2008-02-11  Bruno Haible  <bruno@clisp.org>
61623
61624         * .gitattributes: New file.
61625
61626 2008-02-11  Jim Meyering  <meyering@redhat.com>
61627
61628         useless-if-before-free: Fix reversed exit values.
61629         * build-aux/useless-if-before-free: Use correct values
61630         for EXIT_MATCH and EXIT_NO_MATCH.
61631
61632         * build-aux/useless-if-before-free: Close stdout carefully.
61633
61634 2008-02-10  Bruno Haible  <bruno@clisp.org>
61635
61636         New module 'git-merge-changelog'.
61637         * modules/git-merge-changelog: New file.
61638         * lib/git-merge-changelog.c: New file.
61639
61640 2008-02-10  Jim Meyering  <meyering@redhat.com>
61641
61642         useless-if-before-free: New option: --list (-l).
61643
61644         useless-if-before-free: Don't exit immediately upon open failure.
61645         * build-aux/useless-if-before-free: Exit 2 for errors.
61646         Upon failure to open a file, don't exit immediately.
61647         Rather, just warn and continue with any remaining files.
61648
61649 2008-02-10  Bruno Haible  <bruno@clisp.org>
61650
61651         New abstract list operation 'node_set_value'.
61652         * lib/gl_list.h (gl_list_node_set_value): New function.
61653         (struct gl_list_implementation): New field node_set_value.
61654         * lib/gl_list.c (gl_list_node_set_value): New function.
61655         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61656         (gl_array_list_implementation): Update.
61657         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61658         (gl_carray_list_implementation): Update.
61659         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61660         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61661         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61662         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61663         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61664         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61665         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61666         Update.
61667         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61668         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61669         (gl_sublist_list_implementation): Update.
61670
61671 2008-02-10  Bruno Haible  <bruno@clisp.org>
61672
61673         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61674         Needed when ELEMENT is #defined to 'some_type *'.
61675
61676 2008-02-10  Jim Meyering  <meyering@redhat.com>
61677
61678         New script and module: useless-if-before-free
61679         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61680         * build-aux/useless-if-before-free: New file.
61681         * modules/useless-if-before-free: New file.
61682
61683         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61684
61685         xstrtol_error: Fix typo.
61686         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61687         s/exit_failure/exit_status/.
61688
61689 2008-02-09  Jim Meyering  <meyering@redhat.com>
61690
61691         New script and module: gitlog-to-changelog
61692         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61693         * modules/gitlog-to-changelog: New file.
61694         * build-aux/gitlog-to-changelog: New file.
61695
61696 2008-02-08  Jim Meyering  <meyering@redhat.com>
61697
61698         Avoid two "parameter unused" warnings.
61699         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61700         Mark "st" as used.
61701
61702         Use "git COMMAND", not "git-COMMAND".
61703         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61704         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61705         * build-aux/git-version-gen: Use "git status", not "git-status".
61706
61707 2008-02-07  Bruno Haible  <bruno@clisp.org>
61708
61709         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61710         Avoids a crash on Windows Vista.
61711         Reported by Adam Strzelecki <ono@java.pl> via
61712         Simon Josefsson <simon@josefsson.org>.
61713
61714 2008-02-06  Bruno Haible  <bruno@clisp.org>
61715
61716         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61717         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61718         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61720         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61721         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61722         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61723         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61725         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61726         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61728         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61730         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61731         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61732         left-adjust flag.
61733         * tests/test-snprintf-posix.h (test_function): Likewise.
61734         * tests/test-sprintf-posix.h (test_function): Likewise.
61735         * tests/test-vasprintf-posix.c (test_function): Likewise.
61736         * doc/posix-functions/fprintf.texi: Update.
61737         * doc/posix-functions/printf.texi: Update.
61738         * doc/posix-functions/snprintf.texi: Update.
61739         * doc/posix-functions/sprintf.texi: Update.
61740         * doc/posix-functions/vfprintf.texi: Update.
61741         * doc/posix-functions/vprintf.texi: Update.
61742         * doc/posix-functions/vsnprintf.texi: Update.
61743         * doc/posix-functions/vsprintf.texi: Update.
61744         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61745
61746 2008-02-06  Bruno Haible  <bruno@clisp.org>
61747
61748         Fix bug introduced on 2008-01-26.
61749         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61750
61751 2008-02-06  Bruno Haible  <bruno@clisp.org>
61752
61753         Fix bug introduced on 2007-06-10.
61754         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61755         !NEED_PRINTF_FLAG_ZERO.
61756
61757 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61758
61759         getloadavg: use libperfstat on AIX5
61760         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61761
61762 2008-02-03  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/diffseq.h: Add comments about required #includes.
61765         Reported by Michael Biggs <gnulib@doubleplum.net>.
61766
61767 2008-02-01  Bruno Haible  <bruno@clisp.org>
61768
61769         * users.txt: Add gnuit.
61770
61771 2008-01-31  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/md4.c (set_uint32): Mark as inline.
61774         * lib/md5.c (set_uint32): Likewise.
61775         * lib/sha1.c (set_uint32): Likewise.
61776         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61777         * m4/md5.m4 (gl_MD5): Likewise.
61778         * m4/sha1.m4 (gl_SHA1): Likewise.
61779
61780 2008-01-31  Jim Meyering  <meyering@redhat.com>
61781
61782         Use "sizeof VAR", rather than a literal "4".
61783         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61784         * lib/md4.c (md4_read_ctx): Likewise.
61785         * lib/sha1.c (sha1_read_ctx): Likewise.
61786
61787 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61788
61789         * tests/test-sha1.c: New file, based on test-md5.c.
61790
61791         * modules/crypto/sha1-tests: New file.
61792
61793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61794
61795         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61796
61797 2008-01-31  Jim Meyering  <meyering@redhat.com>
61798
61799         Prefer "sizeof v" over the equivalent "4".
61800         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61801         * lib/md5.c (set_uint32): Likewise.
61802         * lib/sha1.c (set_uint32): Likewise.
61803
61804 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61805
61806         * lib/sha1.c (set_uint32): Mark function as static.
61807
61808 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61809
61810         md2: clarify comments to say that alignment is not required.
61811         * lib/md2.h: Remove warning about alignment in comment.
61812         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61813         never been required.
61814
61815 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61816
61817         md4: adapt alignment constraint fix from sha1.
61818         * lib/md4.c (set_uint32): New function, from sha1.c
61819         (md4_read_ctx): Use it.
61820         (md4_finish_ctx): Doc fix.
61821         * lib/md4.h: Doc fix.
61822
61823 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61824
61825         md5: adapt alignment constraint fix from sha1.
61826         * lib/md5.c (set_uint32): New function, from sha1.c
61827         (md5_read_ctx): Use it.
61828         (md5_finish_ctx): Doc fix.
61829         * lib/md5.h: Doc fix.
61830
61831 2008-01-30  Peter Palfrader  <weasel@debian.org>
61832
61833         sha1: remove the result buffer alignment constraint
61834         * lib/sha1.c (set_uint32): New function.
61835         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61836         constraint.
61837         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61838         * lib/sha1.h: Likewise.
61839
61840 2008-01-30  Andreas Schwab  <schwab@suse.de>
61841             Bruno Haible  <bruno@clisp.org>
61842
61843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61844         correct definition of LDBL_MIN_EXP.
61845
61846 2008-01-30  Karl Berry  <karl@gnu.org>
61847
61848         * config/srclist-update: try to preserve x bit on updates.
61849         * config/srclistvars.sh: update for karl.
61850
61851 2008-01-29  Jim Meyering  <meyering@redhat.com>
61852
61853         vasnprintf.c: Avoid warning about unused label
61854         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61855         "overflow" label definition and associated code with the
61856         same cpp condition that guards the sole use of that label.
61857
61858 2008-01-26  Bruno Haible  <bruno@clisp.org>
61859
61860         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61861         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61862         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61863         * lib/isnanl-nolibm.h (isnanl): Likewise.
61864         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61865
61866 2008-01-26  Bruno Haible  <bruno@clisp.org>
61867
61868         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61869         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61870
61871 2008-01-26  Bruno Haible  <bruno@clisp.org>
61872
61873         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61874         GCC >= 4.0 built-in.
61875         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61876
61877 2008-01-26  Bruno Haible  <bruno@clisp.org>
61878
61879         Rename isnan, applicable to 'double' only, to isnand.
61880         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61881         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61882         (configure.ac): Update.
61883         (Include): Replace "isnan.h" with "isnand.h".
61884         * m4/isnand.m4: Renamed from m4/isnan.m4.
61885         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61886         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61887         instead of isnan.c.
61888         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61889         instead of HAVE_ISNAN_IN_LIBC.
61890         (isnand): Renamed from isnan.
61891         * lib/isnand.c: New file.
61892         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61893         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61894         (Makefile.am): Update.
61895         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61896         Include isnand.h instead of isnan.h.
61897         (main): Test isnand instead of isnan.
61898         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61899         isnan-nolibm.
61900         * modules/frexp (Depends-on): Likewise.
61901         * modules/frexp-tests (Depends-on): Likewise.
61902         * modules/frexp-nolibm (Depends-on): Likewise.
61903         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61904         * modules/isfinite (Depends-on): Likewise.
61905         * modules/round-tests (Depends-on): Likewise.
61906         * modules/signbit (Depends-on): Likewise.
61907         * modules/signbit-tests (Depends-on): Likewise.
61908         * modules/snprintf-posix (Depends-on): Likewise.
61909         * modules/sprintf-posix (Depends-on): Likewise.
61910         * modules/trunc-tests (Depends-on): Likewise.
61911         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61918         * modules/vasnprintf-posix (Depends-on): Likewise.
61919         * modules/vasprintf-posix (Depends-on): Likewise.
61920         * modules/vfprintf-posix (Depends-on): Likewise.
61921         * modules/vsnprintf-posix (Depends-on): Likewise.
61922         * modules/vsprintf-posix (Depends-on): Likewise.
61923         * lib/frexp.c: Include isnand.h instead of isnan.h.
61924         (ISNAN): Set to isnand instead of isnan.
61925         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61926         (gl_isfinited): Use isnand instead of isnan.
61927         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61928         (gl_signbitd): Use isnand instead of isnan.
61929         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61930         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61931         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61932         (main): Use isnand instead of isnan.
61933         * tests/test-round1.c: Include isnand.h.
61934         (main): Use isnand instead of isnan.
61935         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61936         (ISNAN): Set to isnand instead of isnan.
61937         * tests/test-trunc1.c: Include isnand.h.
61938         (main): Use isnand instead of isnan.
61939         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61940         (equal): Use isnand instead of isnan.
61941         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61942         isnand-nolibm.
61943         * NEWS: Mention the change.
61944
61945 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61946             Bruno Haible  <bruno@clisp.org>
61947
61948         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61949         the GCC builtins for signbits are present and set
61950         REPLACE_SIGNBIT_USING_GCC if so.
61951         * lib/math.in.h (signbit): Define using GCC builtins if
61952         REPLACE_SIGNBIT_USING_GCC is set.
61953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61954         REPLACE_SIGNBIT_USING_GCC.
61955         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61956
61957 2008-01-25  Jim Meyering  <meyering@redhat.com>
61958
61959         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61960         * lib/poll.c: Include <config.h>, not "config.h".
61961         * tests/test-getaddrinfo.c: Likewise.
61962
61963 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61964
61965         * modules/sockets-tests: New file.
61966
61967 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61968
61969         * modules/sockets: New module, can be used to call WSA_Startup and
61970         WSA_Cleanup when needed.
61971
61972         * lib/sockets.h, lib/sockets.c: New files.
61973
61974         * m4/sockets.m4: New file.
61975
61976         * tests/test-sockets.c: New file.
61977
61978 2008-01-19  Bruno Haible  <bruno@clisp.org>
61979
61980         * doc/posix-headers: Renamed from doc/headers.
61981         * doc/posix-functions: Renamed from doc/functions.
61982         * doc/gnulib.texi: Update.
61983
61984 2008-01-19  Bruno Haible  <bruno@clisp.org>
61985
61986         * doc/glibc-functions/strcasestr.texi: Include contents of
61987         doc/functions/strcasestr.texi, fixing the list of platforms.
61988         * doc/functions/strcasestr.texi: Remove file.
61989
61990 2008-01-19  Bruno Haible  <bruno@clisp.org>
61991
61992         * doc/glibc-functions/memmem.texi: Include contents of
61993         doc/functions/memmem.texi.
61994         * doc/functions/memmem.texi: Remove file.
61995
61996 2008-01-18  Bruno Haible  <bruno@clisp.org>
61997
61998         * doc/glibc-functions/*.texi: New files.
61999         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62000         to use the new files.
62001
62002 2008-01-17  Bruno Haible  <bruno@clisp.org>
62003
62004         * tests/test-gethostname.c (main): Fix printf statement.
62005
62006 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62007
62008         * modules/gethostname-tests: New file.
62009
62010         * tests/test-gethostname.c: New file.
62011
62012 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62013
62014         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62015         used by the UNAME case.  Reported by Bruno Haible
62016         <bruno@clisp.org>.
62017
62018 2008-01-17  Eric Blake  <ebb9@byu.net>
62019
62020         Convert c-strcasestr to be more efficient.
62021         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62022         (Depends-on): Add c-strcase, remove malloca, strnlen.
62023         * tests/test-c-strcasestr.c (main): Enhance test.
62024         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62025
62026 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62027
62028         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62029         Use it in creating po/Makevars.
62030
62031 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62032
62033         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62034         Applications that requires it should initialize libgcrypt
62035         manually.
62036
62037 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62038
62039         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62040
62041 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         Fix problem with getdate on mingw32 reported by Simon Josefsson
62044         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62045         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62046         tzname", when deciding whether to declare tzname.
62047         * lib/strftime.c (tzname): Likewise.
62048
62049 2008-01-15  Bruno Haible  <bruno@clisp.org>
62050
62051         Work around a MacOS X 10.5 bug in frexpl().
62052         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62053         * doc/functions/frexpl.texi: Document the bug.
62054         Reported by Elias Pipping <pipping@gentoo.org>.
62055
62056 2008-01-14  Eric Blake  <ebb9@byu.net>
62057
62058         Touch up previous patch.
62059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62060         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62061
62062         Convert strcasestr module to use Two-Way algorithm.
62063         * modules/strcasestr-simple: New module, based on the old
62064         strcasestr, but with Two-Way rather than KMP.
62065         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62066         * lib/string.in.h (rpl_strcasestr): Declare.
62067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62068         performance.
62069         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62070         * modules/string (Makefile.am): Support strcasestr.
62071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62072         * modules/strcasestr-tests (Depends-on): Check for alarm.
62073         * tests/test-strcasestr.c: Augment test.
62074         * lib/str-two-way.h: Clean up stray macro.
62075         * NEWS: Document new module.
62076         * MODULES.html.sh (string handling): Likewise.
62077         * doc/functions/strcasestr.texi: New file.
62078         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62079         here, since it is not a POSIX function.
62080
62081 2008-01-14  Colin Watson  <cjwatson@debian.org>
62082             Bruno Haible  <bruno@clisp.org>
62083
62084         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62085         works fine; if not, set REPLACE_STRSIGNAL.
62086         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62088         REPLACE_STRSIGNAL.
62089         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62090         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62091         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62092
62093 2008-01-14  Bruno Haible  <bruno@clisp.org>
62094
62095         * modules/strsignal (Include): Change to <string.h>.
62096
62097 2008-01-14  Colin Watson  <cjwatson@debian.org>
62098
62099         * modules/argp (Notice): Add a notice recommending to change
62100         XGETTEXT_OPTIONS.
62101         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62102
62103 2008-01-13  Colin Watson  <cjwatson@debian.org>
62104
62105         * modules/strsignal-tests: New file.
62106         * tests/test-strsignal.c: New file.
62107
62108         * lib/strsignal.c: New file, from glibc with modifications.
62109         * lib/siglist.h: New file, from glibc with modifications.
62110         * lib/string.in.h (strsignal): New declaration.
62111         * m4/strsignal.m4: New file.
62112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62113         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62114         * modules/strsignal: New file.
62115         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62116         HAVE_DECL_STRSIGNAL.
62117
62118 2008-01-13  Bruno Haible  <bruno@clisp.org>
62119
62120         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62121         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62122         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62124
62125 2008-01-13  Bruno Haible  <bruno@clisp.org>
62126
62127         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62128         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62129         * lib/argp.h (__attribute__): Likewise.
62130         * lib/c-stack.c (__attribute__): Likewise.
62131         * lib/error.h (__attribute__): Likewise.
62132         * lib/fts.c (__attribute__): Likewise.
62133         * lib/openat.h (__attribute__): Likewise.
62134         * lib/stdio.in.h (__attribute__): Likewise.
62135         * lib/string.in.h (__attribute__): Likewise.
62136         * lib/utimens.c (__attribute__): Likewise.
62137         * lib/vasnprintf.h (__attribute__): Likewise.
62138         * lib/xalloc.h (__attribute__): Likewise.
62139         * lib/xprintf.h (__attribute__): Likewise.
62140         * lib/xstrtol.h (__attribute__): Likewise.
62141         * lib/xvasprintf.h (__attribute__): Likewise.
62142
62143 2008-01-12  Bruno Haible  <bruno@clisp.org>
62144
62145         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62146         * doc/glibc-headers/a.out.texi: New file.
62147         * doc/glibc-headers/aliases.texi: New file.
62148         * doc/glibc-headers/alloca.texi: New file.
62149         * doc/glibc-headers/ar.texi: New file.
62150         * doc/glibc-headers/argp.texi: New file.
62151         * doc/glibc-headers/argz.texi: New file.
62152         * doc/glibc-headers/byteswap.texi: New file.
62153         * doc/glibc-headers/crypt.texi: New file.
62154         * doc/glibc-headers/endian.texi: New file.
62155         * doc/glibc-headers/envz.texi: New file.
62156         * doc/glibc-headers/err.texi: New file.
62157         * doc/glibc-headers/error.texi: New file.
62158         * doc/glibc-headers/execinfo.texi: New file.
62159         * doc/glibc-headers/fpu_control.texi: New file.
62160         * doc/glibc-headers/fstab.texi: New file.
62161         * doc/glibc-headers/fts.texi: New file.
62162         * doc/glibc-headers/getopt.texi: New file.
62163         * doc/glibc-headers/ieee754.texi: New file.
62164         * doc/glibc-headers/ifaddrs.texi: New file.
62165         * doc/glibc-headers/libintl.texi: New file.
62166         * doc/glibc-headers/mcheck.texi: New file.
62167         * doc/glibc-headers/mntent.texi: New file.
62168         * doc/glibc-headers/obstack.texi: New file.
62169         * doc/glibc-headers/paths.texi: New file.
62170         * doc/glibc-headers/printf.texi: New file.
62171         * doc/glibc-headers/pty.texi: New file.
62172         * doc/glibc-headers/resolv.texi: New file.
62173         * doc/glibc-headers/shadow.texi: New file.
62174         * doc/glibc-headers/sysexits.texi: New file.
62175         * doc/glibc-headers/ttyent.texi: New file.
62176
62177 2008-01-12  Jim Meyering  <meyering@redhat.com>
62178
62179         announce-gen: emit Gnulib's git-based version string.
62180         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62181         New option --gnulib-version=V, where V is expected to be
62182         the output of running git describe in the gnulib directory.
62183         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62184         not useful, and plan to stop publishing an xdelta file with each
62185         coreutils release.
62186
62187         * build-aux/announce-gen: Also check for lzma-compressed files.
62188
62189 2008-01-11  Bruno Haible  <bruno@clisp.org>
62190
62191         * tests/test-memmem.c (main): Increase maximum allowed time.
62192         * tests/test-strstr.c (main): Likewise.
62193
62194 2008-01-11  Bruno Haible  <bruno@clisp.org>
62195
62196         * doc/functions/memmem.texi: Add more precisions about platforms.
62197         * doc/functions/strstr.texi: Likewise.
62198
62199 2008-01-10  Eric Blake  <ebb9@byu.net>
62200
62201         * m4/strstr.m4: Delete cruft from copy-n-paste.
62202         Reported by Bruno Haible.
62203
62204 2008-01-10  Bruno Haible  <bruno@clisp.org>
62205
62206         Make c-strstr rely on strstr.
62207         * lib/c-strstr.c: Don't include str-kmp.h.
62208         (c_strstr): Define in terms of strstr.
62209         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62210         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62211
62212 2008-01-10  Bruno Haible  <bruno@clisp.org>
62213
62214         * doc/gnulib.texi (String Functions in C Locale): New section.
62215         * doc/c-ctype.texi: New file.
62216         * doc/c-strcase.texi: New file.
62217         * doc/c-strcaseeq.texi: New file.
62218         * doc/c-strcasestr.texi: New file.
62219         * doc/c-strstr.texi: New file.
62220         * doc/c-strtod.texi: New file.
62221         * doc/c-strtold.texi: New file.
62222
62223 2008-01-10  Eric Blake  <ebb9@byu.net>
62224
62225         * lib/relocatable.h: Fix a comment.
62226
62227 2008-01-10  Eric Blake  <ebb9@byu.net>
62228
62229         Share two-way algorithm.
62230         * lib/str-two-way.h: New file, merged from...
62231         * lib/memmem.c: ...here...
62232         * lib/strstr.c: ...and here.
62233         * modules/memmem (Files): Use it.
62234         * modules/strstr (Files): Likewise.
62235
62236         Avoid quadratic strstr implementations.
62237         * lib/strstr.c: New file.
62238         * m4/strstr.m4: Likewise.
62239         * modules/strstr: Likewise.
62240         * modules/strstr-tests: Likewise.
62241         * tests/test-strstr.c: Likewise.
62242         * lib/string.in.h (rpl_strstr): Declare.
62243         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62245         * modules/string (Makefile.am): Likewise.
62246         * MODULES.html.sh (string handling): Mention new module.
62247         * doc/functions/strstr.texi (strstr): Document the bug.
62248
62249 2008-01-10  Bruno Haible  <bruno@clisp.org>
62250
62251         * lib/relocatable.h (relocate): State whether result is freshly
62252         allocated or not.
62253         * lib/relocatable.c (relocate): Return a freshly allocated string
62254         instead of a pointer to a privately held string.
62255         Reported by Sylvain Beucler <beuc@gnu.org>.
62256
62257 2008-01-10  Colin Watson  <cjwatson@debian.org>
62258
62259         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62260         s/S_ISNLK/S_ISLNK/.
62261
62262 2008-01-09  Bruno Haible  <bruno@clisp.org>
62263
62264         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62265         and other files.
62266         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62267         if it's only a guess.
62268         * modules/memmem: Simplify by depending on memmem-simple.
62269
62270 2008-01-09  Bruno Haible  <bruno@clisp.org>
62271
62272         Work around OpenBSD 4.0 tdelete() bug.
62273         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62274         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62275         macros and don't redefine the enum values.
62276         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62277         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62278         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62279
62280 2008-01-09  Bruno Haible  <bruno@clisp.org>
62281
62282         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62283         (main): Don't perform the tests if setlocale did not install a UTF-8
62284         locale. Needed on OpenBSD 4.0.
62285         * modules/wcwidth-tests (Depends-on): Add localcharset.
62286
62287 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62288
62289         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62290         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62291         * NEWS: announce this.
62292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62293
62294 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62295         and Eric Blake  <ebb9@byu.net>
62296
62297         Add memmem-simple module.
62298         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62299         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62300         * modules/memmem-simple: New file.
62301         * modules/memmem (Description): Tweak.
62302         * MODULES.html.sh (string handling): Mention new module.
62303         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62304         addressed by memmem-simple.
62305         * NEWS: Document the difference.
62306
62307 2008-01-09  Eric Blake  <ebb9@byu.net>
62308
62309         Give gcc some memmem optimization hints.
62310         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62311         (strcasestr): Declare as pure.
62312         * modules/memmem (Maintainer): Claim my implementation.
62313
62314 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62315
62316         Support AIX 6.1 and higher.
62317         * build-aux/config.libpath: Likewise.
62318         * build-aux/config.rpath: Likewise.
62319
62320 2008-01-08  Jim Meyering  <meyering@redhat.com>
62321             Bruno Haible  <bruno@clisp.org>
62322
62323         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62324         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62325         Reported by Peter Fales in
62326         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62327
62328 2008-01-08  Bruno Haible  <bruno@clisp.org>
62329
62330         * modules/unictype/category-of (Depends-on): Add
62331         unictype/category-none.
62332         * modules/unictype/category-and-tests (Depends-on): Add
62333         unictype/category-{L,N,Lu,Nd}.
62334         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62335         * modules/unictype/category-or-tests (Depends-on): Add
62336         unictype/category-{L,N}.
62337         * modules/unictype/category-name-tests (Depends-on): Add
62338         unictype/category-{Z,Nl}.
62339         Reported by Simon Josefsson.
62340
62341 2008-01-08  Bruno Haible  <bruno@clisp.org>
62342
62343         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62344         convention better.
62345         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62346         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62347         Reported by Peter Miller <millerp@canb.auug.org.au>.
62348
62349 2008-01-08  Eric Blake  <ebb9@byu.net>
62350
62351         Rewrite memmem to guarantee linear complexity without malloc.
62352         * lib/memmem.c (memmem): Use Two-Way rather than
62353         Knuth-Morris-Pratt, to allow O(1) space usage.
62354         (critical_factorization, two_way_short_needle)
62355         (two_way_long_needle): New functions.
62356         (knuth_morris_pratt): Delete.
62357         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62358         Add stdint.
62359         * tests/test-memmem.c (main): Add tests for periodic needle and
62360         sublinear performance.
62361         * doc/functions/memmem.texi (memmem): Document other deficiencies
62362         in cygwin and older glibc.
62363
62364 2008-01-08  Bruno Haible  <bruno@clisp.org>
62365
62366         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62367         augmentation.
62368
62369 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62370
62371         Add a configure time option: --disable-acl.
62372         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62373         AC_ARG_ENABLE(acl).
62374
62375 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62376
62377         * tests/test-localename.c: Don't include obsolete "setenv.h".
62378
62379         * modules/localename-tests (Depends-on): Need unsetenv.
62380
62381 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62382
62383         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62384
62385 2008-01-06  Colin Watson  <cjwatson@debian.org>
62386
62387         * users.txt: Add man-db.
62388
62389 2008-01-07  Bruno Haible  <bruno@clisp.org>
62390
62391         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62392         previous section name.
62393
62394 2008-01-07  Bruno Haible  <bruno@clisp.org>
62395
62396         * lib/progname.c (set_program_name): Don't strip off a leading
62397         "lt-" prefix outside a .libs directory.
62398         Suggested by Paul Eggert.
62399
62400 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62401             Bruno Haible  <bruno@clisp.org>
62402
62403         Improve memory cleanup in 'relocatable' module.
62404         * lib/relocatable.h (compute_curr_prefix): Change return type to
62405         'char *'.
62406         * lib/relocatable.c (compute_curr_prefix): Change return type to
62407         'char *'. Free curr_installdir after use.
62408         (relocate): Free curr_prefix_better after use.
62409         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62410
62411 2008-01-01  Bruno Haible  <bruno@clisp.org>
62412
62413         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62414         failure on older glibc systems.
62415         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62416
62417 2008-01-05  Eric Blake  <ebb9@byu.net>
62418
62419         Avoid quadratic system memmem.
62420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62421         Reported by Ralf Wildenhues.
62422
62423         Fix memmem test for mingw.
62424         * modules/memmem-tests (configure.ac): Check for alarm.
62425         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62426         it.
62427         * doc/functions/memmem.texi: New file.
62428         * doc/gnulib.texi (Function Substitutes): Add memmem.
62429         Reported by Bruno Haible.
62430
62431 2008-01-04  Bruno Haible  <bruno@clisp.org>
62432
62433         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62434         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62435         gl_HEADER_STRING_H_DEFAULTS.
62436
62437 2008-01-04  Eric Blake  <ebb9@byu.net>
62438
62439         Shorten duration of memmem test.
62440         * tests/test-memmem.c (main): Use alarm to declare failure if test
62441         is taking too long.
62442         Reported by Ralf Wildenhues.
62443
62444 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62445
62446         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62447         string, needed by strerror.
62448
62449 2008-01-03  Colin Watson  <cjwatson@debian.org>
62450             Bruno Haible  <bruno@clisp.org>
62451
62452         * doc/gnulib-tool.texi (Localization): New section.
62453
62454 2008-01-02  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62457         variables to 'unsigned char *' type.
62458         Reported by Paul Eggert.
62459
62460 2008-01-02  Jim Meyering  <jim@meyering.net>
62461
62462         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62463
62464 2007-12-31  Jim Meyering  <jim@meyering.net>
62465
62466         Avoid use of private FTS type name.
62467         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62468
62469 2007-12-30  Karl Berry  <karl@gnu.org>
62470
62471         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62472         work around defect in Texinfo and/or the standalone Info browser.
62473
62474 2007-12-30  Bruno Haible  <bruno@clisp.org>
62475
62476         Unify 5 copies of the KMP code.
62477         * lib/str-kmp.h: New file.
62478         * lib/c-strcasestr.c: Include str-kmp.h.
62479         (knuth_morris_pratt): Remove function.
62480         (c_strcasestr): Update.
62481         * lib/c-strstr.c: Include str-kmp.h.
62482         (knuth_morris_pratt): Remove function.
62483         (c_strcasestr): Update.
62484         * lib/mbscasestr.c: Include str-kmp.h.
62485         (knuth_morris_pratt_unibyte): Remove function.
62486         * lib/mbsstr.c: Include str-kmp.h.
62487         (knuth_morris_pratt_unibyte): Remove function.
62488         * lib/strcasestr.c: Include str-kmp.h.
62489         (knuth_morris_pratt): Remove function.
62490         (strcasestr): Update.
62491         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62492         * modules/c-strstr (Files): Likewise.
62493         * modules/mbscasestr (Files): Likewise.
62494         * modules/mbsstr (Files): Likewise.
62495         * modules/strcasestr (Files): Likewise.
62496         Suggested by Paul Eggert.
62497
62498 2007-12-30  Bruno Haible  <bruno@clisp.org>
62499
62500         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62501         defined.
62502
62503 2007-12-30  Bruno Haible  <bruno@clisp.org>
62504
62505         * lib/xmalloca.h: Include xalloc.h.
62506         (xnmalloca): New macro.
62507
62508 2007-12-30  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/malloca.h (nmalloca): New macro.
62511         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62512         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62513         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62514         knuth_morris_pratt_multibyte): Likewise.
62515         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62516         knuth_morris_pratt_multibyte): Likewise.
62517         * lib/memmem.c (knuth_morris_pratt): Likewise.
62518         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62519
62520 2007-12-25  Bruno Haible  <bruno@clisp.org>
62521
62522         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62523         * lib/glob.c: Don't include openat.h.
62524         (link_exists2_p): Add back the code that deals with the
62525         !GLOB_ALTDIRFUNC case.
62526         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62527         let it do the filename concatenation.
62528         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62529         * modules/glob (Depends-on): Remove openat.
62530
62531 2007-12-31  Bruno Haible  <bruno@clisp.org>
62532
62533         * modules/dirfd (License): Change to LGPLv2+.
62534         Approved by Jim Meyering.
62535
62536 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62537
62538         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62539         when multiplying M by sizeof (size_t).
62540
62541 2007-12-10  Martin Lambers  <marlam@marlam.de>
62542
62543         Override getpagesize on mingw.
62544         * lib/getpagesize.c: New file.
62545         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62546         * modules/getpagesize (Files): Add lib/getpagesize.c.
62547         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62549         REPLACE_GETPAGESIZE.
62550         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62551
62552 2007-12-25  Bruno Haible  <bruno@clisp.org>
62553
62554         * modules/localcharset (Notice): New field.
62555         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62556         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62557
62558 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62559             Bruno Haible  <bruno@clisp.org>
62560
62561         Avoid using the syntax symbol() in formatted documentation.
62562         * MODULES.html.sh (func_module): When replacing symbol() with a
62563         hyperlink, remove the parentheses. Show an error if some remain.
62564         Recognize and render the '...' syntax.
62565         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62566         Rework. Add paragraph about GCC's inlining.
62567         * doc/alloca.texi: Likewise.
62568         * doc/error.texi: Remove parentheses from symbol reference.
62569         * doc/gnulib-intro.texi: Likewise.
62570         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62571         * modules/fnmatch (Description): Reword to say "the ... function".
62572         * modules/full-read (Description): Likewise.
62573         * modules/full-write (Description): Likewise.
62574         * modules/safe-read (Description): Likewise.
62575         * modules/safe-write (Description): Likewise.
62576         * modules/strchrnul (Description): Likewise.
62577         * modules/trim (Description): Likewise.
62578         * modules/error (Description): Remove parentheses from symbol
62579         references.
62580         * modules/verror (Description): Likewise.
62581         Reported by Karl Berry.
62582
62583 2007-12-25  Bruno Haible  <bruno@clisp.org>
62584
62585         Fixup after 2007-10-16 commit.
62586         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62587
62588 2007-12-24  Bruno Haible  <bruno@clisp.org>
62589
62590         Make --enable-relocatable work with DESTDIR.
62591         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62592         to compute installdir from destprog.
62593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62594         also set the RELOC_DESTDIR variable.
62595         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62596
62597 2007-12-24  Bruno Haible  <bruno@clisp.org>
62598
62599         Fix link error due to xalloc_die().
62600         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62601         of xreadlink.
62602         * lib/relocwrapper.c: Update comments.
62603         * build-aux/install-reloc: Remove xreadlink.c from file list.
62604         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62605         xreadlink.c.
62606         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62607
62608 2007-12-24  Bruno Haible  <bruno@clisp.org>
62609
62610         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62611         * lib/setenv.h: Remove file.
62612         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62613         lib/setenv.h.
62614         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62615         (Depends-on): Add stdlib.
62616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62617         gl_FUNC_UNSETENV.
62618         (Include): Replace setenv.h with <stdlib.h>.
62619         * modules/unsetenv: New file.
62620         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62621         * lib/unsetenv.c: Include <stdlib.h> first.
62622         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62623         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62624         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62625         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62626         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62627         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62629         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62630         * doc/functions/unsetenv.texi: Update.
62631         * modules/xsetenv (Depends-on): Add unsetenv.
62632         * modules/getdate (Depends-on): Likewise.
62633         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62634         * lib/xsetenv.c: Don't include setenv.h.
62635         * lib/getdate.y: Likewise.
62636         * lib/relocwrapper.c: Likewise.
62637         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62638         (Depends-on): Add stdlib.
62639         * NEWS: Mention the changes.
62640         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62641
62642 2007-12-23  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62645         indentation.
62646
62647 2007-12-23  Bruno Haible  <bruno@clisp.org>
62648
62649         * lib/c-strcasestr.c: Add more comments.
62650         * lib/c-strstr.c: Likewise.
62651         * lib/mbscasestr.c: Likewise.
62652         * lib/mbsstr.c: Likewise.
62653         * lib/strcasestr.c: Likewise.
62654         * lib/memmem.c: Likewise.
62655
62656 2007-12-23  Bruno Haible  <bruno@clisp.org>
62657
62658         * tests/test-memmem.c: Include <string.h> first.
62659
62660 2007-12-22  Bruno Haible  <bruno@clisp.org>
62661
62662         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62663         the contents of $testsbase.
62664         Reported by Ralf Wildenhues.
62665
62666 2007-12-22  Bruno Haible  <bruno@clisp.org>
62667
62668         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62669         two variables local_ldadd_before, local_ldadd_last.
62670
62671 2007-12-20  Eric Blake  <ebb9@byu.net>
62672
62673         Work around circular library issue when cross-compiling.
62674         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62675         that progname.o does not need to pull in rpl_memcmp.
62676
62677 2007-12-19  Eric Blake  <ebb9@byu.net>
62678
62679         Fix memmem to avoid O(n^2) worst-case complexity.
62680         * lib/memmem.c (knuth_morris_pratt): New function.
62681         (memmem): Use it if first few naive iterations fail.
62682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62683         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62684         * modules/memchr (License): Likewise.
62685         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62686         malloca.
62687         * tests/test-memmem.c: Rewrite, borrowing ideas from
62688         test-mbsstr1.c; the old version wouldn't even compile!
62689         * modules/memmem-tests: New file.
62690         * lib/string.in.h (rpl_memmem): Add declaration.
62691         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62693         REPLACE_MEMMEM.
62694
62695 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62696
62697         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62698         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62699         before any system include files, and undef after them all.  This
62700         should fix a problem on VMS reported by John E. Malmberg in
62701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62702
62703 2007-12-17  Eric Blake  <ebb9@byu.net>
62704
62705         Revert addition of verify, for BSD/OS.
62706         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62707         can't handle large files, for the sake of obsolete platforms.
62708         * modules/fseeko (Depends-on): Remove verify.
62709         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62710         * doc/functions/ftello.texi (ftello): Likewise.
62711         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62712         Reported by Larry Jones.
62713
62714 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62715
62716         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62717         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62718
62719 2007-12-17  Jim Meyering  <meyering@redhat.com>
62720
62721         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62722         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62723         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62724         * modules/getcwd (Depends-on): Add openat.
62725         Reported by Petr Salinger.
62726
62727 2007-12-17  Bruno Haible  <bruno@clisp.org>
62728
62729         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62730         avoid a segmentation fault of the configure test on x86_64 systems.
62731
62732 2007-12-15  Jim Meyering  <meyering@redhat.com>
62733
62734         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62735
62736 2007-12-13  Eric Blake  <ebb9@byu.net>
62737
62738         Another fseek test.
62739         * tests/test-fseek.c (main): Also test ungetc handling.
62740         * tests/test-fseeko.c (main): Likewise.
62741         * modules/fseeko (Depends-on): Add verify.
62742         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62743         large.
62744         Reported by Larry Jones.
62745
62746         Fix fseeko on mingw.
62747         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62748         seek.
62749
62750         Beef up fseek tests.
62751         * tests/test-fseek.c (main): Also test eof handling.
62752         * tests/test-fseeko.c (main): Likewise.
62753         Reported by Larry Jones.
62754
62755 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62756
62757         Fix fseeko on BSD-based platforms.
62758         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62759         successful seek.
62760
62761 2007-12-12  Eric Blake  <ebb9@byu.net>
62762
62763         Allow circular dependency of separate libtests.a
62764         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62765         when use_libtests.
62766
62767 2007-12-11  Eric Blake  <ebb9@byu.net>
62768
62769         Fix bug with -0.0L in previous patch.
62770         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62771         * tests/test-isnan.c (main): Also test on zeroes.
62772         * tests/test-isnanf.c (main): Likewise.
62773         * tests/test-isnanl.h (main): Likewise.
62774
62775         Detect pseudo-denormals on x86 even when cross-compiling.
62776         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62777         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62778         invalid bit patterns that happen to satisfy ==.
62779
62780         Avoid link failures with separate libtests.a.
62781         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62782         last, to satisfy circular dependencies.
62783
62784 2007-12-11  Eric Blake  <ebb9@byu.net>
62785         and Bruno Haible  <bruno@clisp.org>
62786
62787         Fix OpenBSD 4.0 <float.h> handling of long double.
62788         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62789         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62790         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62791
62792 2007-12-11  Jim Meyering  <meyering@redhat.com>
62793
62794         * users.txt: Add libvirt.
62795
62796         Support versions of autoconf prior to 2.59c.
62797         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62798         if it is not already defined.
62799
62800 2007-12-09  Bruno Haible  <bruno@clisp.org>
62801
62802         Let 'gnulib-tool --import' collect sources needed for the tests in
62803         tests/ rather than in lib/.
62804         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62805         argument. If true, add rules to generate libtests.a, and put libtests.a
62806         into $(LDADD). Consider source files in subdirectories and set
62807         uses_subdirs.
62808         (func_emit_initmacro_start, func_emit_initmacro_end,
62809         func_emit_initmacro_done): Pass all arguments explicitly.
62810         (func_import): Determine two module lists main_modules,
62811         testsrelated_modules. Determine use_libtests. Determine two variables
62812         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62813         instead of just sed_transform_lib_file. Determine two variables
62814         main_files and testsrelated_files. Compute 'files' as the union of
62815         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62816         func_add_or_update. In the generated gnulib-comp.m4, collect the
62817         object files for tests/ in different variables than those for lib/.
62818         Substitute LIBTESTS_LIBDEPS.
62819         (func_create_testdir): Combine the uses_subdirs results from
62820         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62821
62822 2007-12-09  Bruno Haible  <bruno@clisp.org>
62823
62824         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62825         the build-aux directory.
62826
62827 2007-12-09  Bruno Haible  <bruno@clisp.org>
62828
62829         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62830         introduced on 2006-09-09.
62831
62832 2007-12-07  Jim Meyering  <meyering@redhat.com>
62833
62834         Let these macros work also with autoconf-2.59.
62835         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62836         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62838
62839 2007-12-06  Jim Meyering  <meyering@redhat.com>
62840
62841         Avoid a configure-time syntax error in gl_FUNC_ACL.
62842         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62843         function in each branch, before testing the cache variable.
62844
62845 2007-12-04  Eric Blake  <ebb9@byu.net>
62846
62847         Make scripts executable.
62848         * build-aux/config.guess: Add execute permissions.
62849         * build-aux/config.sub: Likewise.
62850         * build-aux/gendocs.sh: Likewise.
62851
62852         Fix frexp on mingw.
62853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62854         cross-compiling.
62855         * doc/functions/frexp.texi (frexp): Document the bug.
62856
62857         Make cygwin fseeko check more reliable.
62858         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62859         version numbers, rather than unrelated feature check.
62860         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62861         * doc/functions/ftello.texi (ftello): Likewise.
62862         Reported by Bruno Haible.
62863
62864         * m4/strerror.m4: Bump version number.
62865
62866 2007-12-03  Bruno Haible  <bruno@clisp.org>
62867
62868         * doc/functions/mprotect.texi: Mention the mingw problem.
62869
62870 2007-12-03  Eric Blake  <ebb9@byu.net>
62871
62872         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62873         REPLACE_STRERROR is initialized before this macro.
62874
62875 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62876
62877         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62878         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62879         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62880         put -lsec in even for programs other than 'ls'.  This fixes a problem
62881         for gettext reported by Bruno Haible in
62882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62883         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62884         Add support for Solaris 10.  This isn't efficient, but should get the
62885         job done for now.
62886
62887 2007-12-03  James Youngman  <jay@gnu.org>
62888
62889         * doc/regexprops-generic.texi: change "an close-group" to "a
62890         close-group" and "illegal" to "not allowed".
62891
62892 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62893
62894         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62895         pr_byname.h. Needed for the rare case when the maintainer has done
62896         "make maintainer-clean" in the source directory and then attempts a
62897         build outside the source directory.
62898         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62899         scripts_byname.h.
62900
62901 2007-12-02  Martin Lambers <marlam@marlam.de>
62902             Bruno Haible  <bruno@clisp.org>
62903
62904         * lib/getpagesize.h: Remove file.
62905         * lib/unistd.in.h: Include declaration of getpagesize here.
62906         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62907         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62908         HAVE_SYS_PARAM_H.
62909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62910         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62911         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62912         (Depends-on): Add unistd.
62913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62914         (Include): Use <unistd.h> instead of getpagesize.h.
62915         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62916         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62917         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62918         gl_GETPAGESIZE invocation, already handled by module dependency.
62919         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62920
62921 2007-12-02  Bruno Haible  <bruno@clisp.org>
62922
62923         * modules/strings-tests: New file.
62924         * tests/test-strings.c: New file.
62925
62926         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62927         * lib/strings.in.h: New file.
62928         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62929         * m4/strings_h.m4: New file.
62930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62931         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62932         * modules/strings: New file.
62933         * modules/string (Makefile.am): Update.
62934         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62935         Reported by Karl Berry.
62936
62937 2007-12-01  Eric Blake  <ebb9@byu.net>
62938
62939         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62940         accommodate fix in cygwin 1.5.25.
62941
62942 2007-12-01  Jim Meyering  <meyering@redhat.com>
62943
62944         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62945         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62946         that would inhibit utf8-optimization of a regexp containing line-
62947         or buffer-anchors, e.g., `^', `$'.
62948
62949 2007-11-30  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62952         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62953         glthread_recursive_lock_init.
62954         * lib/lock.c (glthread_recursive_lock_init)
62955         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62956         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62957
62958 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62959
62960         New function qset_acl, like set_acl but with syscall semantics.
62961         * lib/acl.h (qset_acl): New decl.
62962         * lib/acl.c (qset_acl): New function.
62963         (set_acl): Use new function.  Use more-consistent diagnostics.
62964
62965 2007-11-28  Jim Meyering  <meyering@redhat.com>
62966
62967         * modules/physmem (License): Change from GPL to LGPLv2+.
62968
62969 2007-11-26  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62972         'long double' type has excess precision.
62973         Reported by Jim Meyering in
62974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62975
62976 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62977
62978         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62979         Sync from <http://gnu.org/licenses>.
62980         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62981         with license text from same location.
62982         * doc/maintain.texi, doc/standards.texi:  Sync from
62983         <http://savannah.gnu.org/projects/gnustandards>.
62984
62985 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62986         and Jim Meyering  <meyering@redhat.com>
62987
62988         Adjust getdate' grammar to accept a slightly more regular language.
62989         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62990         Before, the former was rejected.
62991         * lib/getdate.y (digits_to_date_time): New function, factored
62992         out of ...
62993         (number): ...here.  Just call digits_to_date_time.
62994         (hybrid): New non-terminal to handle an <unsigned number,
62995         signed relative offset> sequence consistently.
62996
62997 2007-11-18  Jim Meyering  <meyering@redhat.com>
62998
62999         Pull my changes from coreutils:
63000         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63001         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63002         use of $gnulib_tool_option_extras, so that it's separated from the
63003         preceding argument.
63004
63005         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63006         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63007         parent destination directories before copying a file into place.
63008
63009 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63010
63011         bootstrap: work also with 4-argument variant of AC_INIT
63012         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63013
63014 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63015
63016         Port test-getaddrinfo to Solaris.
63017         Problem reported by Bruno Haible in
63018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63019         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63020         explanation of setting 'hints'.
63021         Don't reject an implementation merely because it returns EAI_SERVICE.
63022         (EAI_SERVICE): Define to 0 if not defined.
63023
63024 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63025
63026         The license of gnu-make and posix-shell is now "GPLed build tool".
63027         * modules/gnu-make (License): Likewise.
63028         * modules/posix-shell (License): Likewise.
63029
63030         New module posix-shell, for determining a POSIX shell
63031         or perhaps something that is close enough to a POSIX shell.
63032         * m4/posix-shell.m4: New file.
63033         * modules/posix-shell: New file.
63034
63035         * MODULES.html.sh: Mention new module.
63036
63037         New module gnu-make, for determining whether we're using GNU Make.
63038         * m4/gnu-make.m4: New file.
63039         * modules/gnu-make: New file.
63040         * MODULES.html.sh: Mention new module.
63041
63042 2007-11-14  Jim Meyering  <meyering@redhat.com>
63043
63044         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63045         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63046         use this macro to create a function _definition_.
63047         Remove useless "#undef ARGMATCH_DIE".
63048
63049 2007-11-14  Bruno Haible  <bruno@clisp.org>
63050
63051         * lib/config.charset: Update for OpenBSD 4.1.
63052         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63053
63054 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         Document 64-bit #if problems in stdint.texi.
63057         * doc/headers/stdint.texi (stdint.h): Mention problems with
63058         64-bit-#if, and how to work around them.
63059
63060         Don't insist on 'long long int' support in the preprocessor.  It
63061         breaks too many things.  For example, PRIdMAX still uses a 'long
63062         long int' format with the latest Sun compiler, even though
63063         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63064         preprocessor problem.  This causes the latest coreutils to dump
63065         core on Solaris 10 sparc with the Sun C compiler.
63066         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63067         the troublesome expressions at configure-time, not at #if-time.
63068         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63069         preprocessor.
63070         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63071         compile-time C checks, done at 'configure'-time.
63072         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63073         * modules/inttypes (Makefile): Substitute the new symbols that
63074         gl_INTTYPES_H now generates.
63075         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63076
63077 2007-11-12  Bruno Haible  <bruno@clisp.org>
63078
63079         Tests for Unicode character classification functions.
63080
63081         * modules/unictype/bidicategory-byname-tests: New file.
63082         * modules/unictype/bidicategory-name-tests: New file.
63083         * modules/unictype/bidicategory-of-tests: New file.
63084         * modules/unictype/bidicategory-test-tests: New file.
63085         * modules/unictype/block-list-tests: New file.
63086         * modules/unictype/block-of-tests: New file.
63087         * modules/unictype/block-test-tests: New file.
63088         * modules/unictype/category-C-tests: New file.
63089         * modules/unictype/category-Cc-tests: New file.
63090         * modules/unictype/category-Cf-tests: New file.
63091         * modules/unictype/category-Cn-tests: New file.
63092         * modules/unictype/category-Co-tests: New file.
63093         * modules/unictype/category-Cs-tests: New file.
63094         * modules/unictype/category-L-tests: New file.
63095         * modules/unictype/category-Ll-tests: New file.
63096         * modules/unictype/category-Lm-tests: New file.
63097         * modules/unictype/category-Lo-tests: New file.
63098         * modules/unictype/category-Lt-tests: New file.
63099         * modules/unictype/category-Lu-tests: New file.
63100         * modules/unictype/category-M-tests: New file.
63101         * modules/unictype/category-Mc-tests: New file.
63102         * modules/unictype/category-Me-tests: New file.
63103         * modules/unictype/category-Mn-tests: New file.
63104         * modules/unictype/category-N-tests: New file.
63105         * modules/unictype/category-Nd-tests: New file.
63106         * modules/unictype/category-Nl-tests: New file.
63107         * modules/unictype/category-No-tests: New file.
63108         * modules/unictype/category-P-tests: New file.
63109         * modules/unictype/category-Pc-tests: New file.
63110         * modules/unictype/category-Pd-tests: New file.
63111         * modules/unictype/category-Pe-tests: New file.
63112         * modules/unictype/category-Pf-tests: New file.
63113         * modules/unictype/category-Pi-tests: New file.
63114         * modules/unictype/category-Po-tests: New file.
63115         * modules/unictype/category-Ps-tests: New file.
63116         * modules/unictype/category-S-tests: New file.
63117         * modules/unictype/category-Sc-tests: New file.
63118         * modules/unictype/category-Sk-tests: New file.
63119         * modules/unictype/category-Sm-tests: New file.
63120         * modules/unictype/category-So-tests: New file.
63121         * modules/unictype/category-Z-tests: New file.
63122         * modules/unictype/category-Zl-tests: New file.
63123         * modules/unictype/category-Zp-tests: New file.
63124         * modules/unictype/category-Zs-tests: New file.
63125         * modules/unictype/category-and-not-tests: New file.
63126         * modules/unictype/category-and-tests: New file.
63127         * modules/unictype/category-byname-tests: New file.
63128         * modules/unictype/category-name-tests: New file.
63129         * modules/unictype/category-none-tests: New file.
63130         * modules/unictype/category-of-tests: New file.
63131         * modules/unictype/category-or-tests: New file.
63132         * modules/unictype/category-test-withtable-tests: New file.
63133         * modules/unictype/combining-class-tests: New file.
63134         * modules/unictype/ctype-alnum-tests: New file.
63135         * modules/unictype/ctype-alpha-tests: New file.
63136         * modules/unictype/ctype-blank-tests: New file.
63137         * modules/unictype/ctype-cntrl-tests: New file.
63138         * modules/unictype/ctype-digit-tests: New file.
63139         * modules/unictype/ctype-graph-tests: New file.
63140         * modules/unictype/ctype-lower-tests: New file.
63141         * modules/unictype/ctype-print-tests: New file.
63142         * modules/unictype/ctype-punct-tests: New file.
63143         * modules/unictype/ctype-space-tests: New file.
63144         * modules/unictype/ctype-upper-tests: New file.
63145         * modules/unictype/ctype-xdigit-tests: New file.
63146         * modules/unictype/decimal-digit-tests: New file.
63147         * modules/unictype/digit-tests: New file.
63148         * modules/unictype/mirror-tests: New file.
63149         * modules/unictype/numeric-tests: New file.
63150         * modules/unictype/property-alphabetic-tests: New file.
63151         * modules/unictype/property-ascii-hex-digit-tests: New file.
63152         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63153         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63154         * modules/unictype/property-bidi-block-separator-tests: New file.
63155         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63156         * modules/unictype/property-bidi-common-separator-tests: New file.
63157         * modules/unictype/property-bidi-control-tests: New file.
63158         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63159         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63160         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63161         * modules/unictype/property-bidi-european-digit-tests: New file.
63162         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63163         * modules/unictype/property-bidi-left-to-right-tests: New file.
63164         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63165         * modules/unictype/property-bidi-other-neutral-tests: New file.
63166         * modules/unictype/property-bidi-pdf-tests: New file.
63167         * modules/unictype/property-bidi-segment-separator-tests: New file.
63168         * modules/unictype/property-bidi-whitespace-tests: New file.
63169         * modules/unictype/property-byname-tests: New file.
63170         * modules/unictype/property-combining-tests: New file.
63171         * modules/unictype/property-composite-tests: New file.
63172         * modules/unictype/property-currency-symbol-tests: New file.
63173         * modules/unictype/property-dash-tests: New file.
63174         * modules/unictype/property-decimal-digit-tests: New file.
63175         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63176         * modules/unictype/property-deprecated-tests: New file.
63177         * modules/unictype/property-diacritic-tests: New file.
63178         * modules/unictype/property-extender-tests: New file.
63179         * modules/unictype/property-format-control-tests: New file.
63180         * modules/unictype/property-grapheme-base-tests: New file.
63181         * modules/unictype/property-grapheme-extend-tests: New file.
63182         * modules/unictype/property-grapheme-link-tests: New file.
63183         * modules/unictype/property-hex-digit-tests: New file.
63184         * modules/unictype/property-hyphen-tests: New file.
63185         * modules/unictype/property-id-continue-tests: New file.
63186         * modules/unictype/property-id-start-tests: New file.
63187         * modules/unictype/property-ideographic-tests: New file.
63188         * modules/unictype/property-ids-binary-operator-tests: New file.
63189         * modules/unictype/property-ids-trinary-operator-tests: New file.
63190         * modules/unictype/property-ignorable-control-tests: New file.
63191         * modules/unictype/property-iso-control-tests: New file.
63192         * modules/unictype/property-join-control-tests: New file.
63193         * modules/unictype/property-left-of-pair-tests: New file.
63194         * modules/unictype/property-line-separator-tests: New file.
63195         * modules/unictype/property-logical-order-exception-tests: New file.
63196         * modules/unictype/property-lowercase-tests: New file.
63197         * modules/unictype/property-math-tests: New file.
63198         * modules/unictype/property-non-break-tests: New file.
63199         * modules/unictype/property-not-a-character-tests: New file.
63200         * modules/unictype/property-numeric-tests: New file.
63201         * modules/unictype/property-other-alphabetic-tests: New file.
63202         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63203         * modules/unictype/property-other-grapheme-extend-tests: New file.
63204         * modules/unictype/property-other-id-continue-tests: New file.
63205         * modules/unictype/property-other-id-start-tests: New file.
63206         * modules/unictype/property-other-lowercase-tests: New file.
63207         * modules/unictype/property-other-math-tests: New file.
63208         * modules/unictype/property-other-uppercase-tests: New file.
63209         * modules/unictype/property-paired-punctuation-tests: New file.
63210         * modules/unictype/property-paragraph-separator-tests: New file.
63211         * modules/unictype/property-pattern-syntax-tests: New file.
63212         * modules/unictype/property-pattern-white-space-tests: New file.
63213         * modules/unictype/property-private-use-tests: New file.
63214         * modules/unictype/property-punctuation-tests: New file.
63215         * modules/unictype/property-quotation-mark-tests: New file.
63216         * modules/unictype/property-radical-tests: New file.
63217         * modules/unictype/property-sentence-terminal-tests: New file.
63218         * modules/unictype/property-soft-dotted-tests: New file.
63219         * modules/unictype/property-space-tests: New file.
63220         * modules/unictype/property-terminal-punctuation-tests: New file.
63221         * modules/unictype/property-test-tests: New file.
63222         * modules/unictype/property-titlecase-tests: New file.
63223         * modules/unictype/property-unassigned-code-value-tests: New file.
63224         * modules/unictype/property-unified-ideograph-tests: New file.
63225         * modules/unictype/property-uppercase-tests: New file.
63226         * modules/unictype/property-variation-selector-tests: New file.
63227         * modules/unictype/property-white-space-tests: New file.
63228         * modules/unictype/property-xid-continue-tests: New file.
63229         * modules/unictype/property-xid-start-tests: New file.
63230         * modules/unictype/property-zero-width-tests: New file.
63231         * modules/unictype/scripts-tests: New file.
63232         * modules/unictype/syntax-c-ident-tests: New file.
63233         * modules/unictype/syntax-c-whitespace-tests: New file.
63234         * modules/unictype/syntax-java-ident-tests: New file.
63235         * modules/unictype/syntax-java-whitespace-tests: New file.
63236         * tests/unictype/test-bidi_byname.c: New file.
63237         * tests/unictype/test-bidi_name.c: New file.
63238         * tests/unictype/test-bidi_of.c: New file.
63239         * tests/unictype/test-bidi_test.c: New file.
63240         * tests/unictype/test-block_list.c: New file.
63241         * tests/unictype/test-block_of.c: New file.
63242         * tests/unictype/test-block_test.c: New file.
63243         * tests/unictype/test-categ_and.c: New file.
63244         * tests/unictype/test-categ_and_not.c: New file.
63245         * tests/unictype/test-categ_byname.c: New file.
63246         * tests/unictype/test-categ_name.c: New file.
63247         * tests/unictype/test-categ_none.c: New file.
63248         * tests/unictype/test-categ_of.c: New file.
63249         * tests/unictype/test-categ_or.c: New file.
63250         * tests/unictype/test-categ_test_withtable.c: New file.
63251         * tests/unictype/test-combining.c: New file.
63252         * tests/unictype/test-decdigit.c: New file.
63253         * tests/unictype/test-digit.c: New file.
63254         * tests/unictype/test-mirror.c: New file.
63255         * tests/unictype/test-numeric.c: New file.
63256         * tests/unictype/test-pr_byname.c: New file.
63257         * tests/unictype/test-pr_test.c: New file.
63258         * tests/unictype/test-predicate-part1.h: New file.
63259         * tests/unictype/test-predicate-part2.h: New file.
63260         * tests/unictype/test-scripts.c: New file.
63261         * tests/unictype/test-sy_c_ident.c: New file.
63262         * tests/unictype/test-sy_java_ident.c: New file.
63263
63264         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63265         for Unicode 5.0.0.
63266         * tests/unictype/test-categ_Cc.c: Likewise.
63267         * tests/unictype/test-categ_Cf.c: Likewise.
63268         * tests/unictype/test-categ_Cn.c: Likewise.
63269         * tests/unictype/test-categ_Co.c: Likewise.
63270         * tests/unictype/test-categ_Cs.c: Likewise.
63271         * tests/unictype/test-categ_L.c: Likewise.
63272         * tests/unictype/test-categ_Ll.c: Likewise.
63273         * tests/unictype/test-categ_Lm.c: Likewise.
63274         * tests/unictype/test-categ_Lo.c: Likewise.
63275         * tests/unictype/test-categ_Lt.c: Likewise.
63276         * tests/unictype/test-categ_Lu.c: Likewise.
63277         * tests/unictype/test-categ_M.c: Likewise.
63278         * tests/unictype/test-categ_Mc.c: Likewise.
63279         * tests/unictype/test-categ_Me.c: Likewise.
63280         * tests/unictype/test-categ_Mn.c: Likewise.
63281         * tests/unictype/test-categ_N.c: Likewise.
63282         * tests/unictype/test-categ_Nd.c: Likewise.
63283         * tests/unictype/test-categ_Nl.c: Likewise.
63284         * tests/unictype/test-categ_No.c: Likewise.
63285         * tests/unictype/test-categ_P.c: Likewise.
63286         * tests/unictype/test-categ_Pc.c: Likewise.
63287         * tests/unictype/test-categ_Pd.c: Likewise.
63288         * tests/unictype/test-categ_Pe.c: Likewise.
63289         * tests/unictype/test-categ_Pf.c: Likewise.
63290         * tests/unictype/test-categ_Pi.c: Likewise.
63291         * tests/unictype/test-categ_Po.c: Likewise.
63292         * tests/unictype/test-categ_Ps.c: Likewise.
63293         * tests/unictype/test-categ_S.c: Likewise.
63294         * tests/unictype/test-categ_Sc.c: Likewise.
63295         * tests/unictype/test-categ_Sk.c: Likewise.
63296         * tests/unictype/test-categ_Sm.c: Likewise.
63297         * tests/unictype/test-categ_So.c: Likewise.
63298         * tests/unictype/test-categ_Z.c: Likewise.
63299         * tests/unictype/test-categ_Zl.c: Likewise.
63300         * tests/unictype/test-categ_Zp.c: Likewise.
63301         * tests/unictype/test-categ_Zs.c: Likewise.
63302         * tests/unictype/test-ctype_alnum.c: Likewise.
63303         * tests/unictype/test-ctype_alpha.c: Likewise.
63304         * tests/unictype/test-ctype_blank.c: Likewise.
63305         * tests/unictype/test-ctype_cntrl.c: Likewise.
63306         * tests/unictype/test-ctype_digit.c: Likewise.
63307         * tests/unictype/test-ctype_graph.c: Likewise.
63308         * tests/unictype/test-ctype_lower.c: Likewise.
63309         * tests/unictype/test-ctype_print.c: Likewise.
63310         * tests/unictype/test-ctype_punct.c: Likewise.
63311         * tests/unictype/test-ctype_space.c: Likewise.
63312         * tests/unictype/test-ctype_upper.c: Likewise.
63313         * tests/unictype/test-ctype_xdigit.c: Likewise.
63314         * tests/unictype/test-decdigit.h: Likewise.
63315         * tests/unictype/test-digit.h: Likewise.
63316         * tests/unictype/test-numeric.h: Likewise.
63317         * tests/unictype/test-pr_alphabetic.c: Likewise.
63318         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63319         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63320         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63321         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63322         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63323         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63324         * tests/unictype/test-pr_bidi_control.c: Likewise.
63325         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63326         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63327         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63328         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63329         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63330         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63331         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63332         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63333         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63334         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63335         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63336         * tests/unictype/test-pr_combining.c: Likewise.
63337         * tests/unictype/test-pr_composite.c: Likewise.
63338         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63339         * tests/unictype/test-pr_dash.c: Likewise.
63340         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63341         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63342         * tests/unictype/test-pr_deprecated.c: Likewise.
63343         * tests/unictype/test-pr_diacritic.c: Likewise.
63344         * tests/unictype/test-pr_extender.c: Likewise.
63345         * tests/unictype/test-pr_format_control.c: Likewise.
63346         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63347         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63348         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63349         * tests/unictype/test-pr_hex_digit.c: Likewise.
63350         * tests/unictype/test-pr_hyphen.c: Likewise.
63351         * tests/unictype/test-pr_id_continue.c: Likewise.
63352         * tests/unictype/test-pr_id_start.c: Likewise.
63353         * tests/unictype/test-pr_ideographic.c: Likewise.
63354         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63355         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63356         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63357         * tests/unictype/test-pr_iso_control.c: Likewise.
63358         * tests/unictype/test-pr_join_control.c: Likewise.
63359         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63360         * tests/unictype/test-pr_line_separator.c: Likewise.
63361         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63362         * tests/unictype/test-pr_lowercase.c: Likewise.
63363         * tests/unictype/test-pr_math.c: Likewise.
63364         * tests/unictype/test-pr_non_break.c: Likewise.
63365         * tests/unictype/test-pr_not_a_character.c: Likewise.
63366         * tests/unictype/test-pr_numeric.c: Likewise.
63367         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63368         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63369         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63370         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63371         * tests/unictype/test-pr_other_id_start.c: Likewise.
63372         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63373         * tests/unictype/test-pr_other_math.c: Likewise.
63374         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63375         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63376         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63377         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63378         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63379         * tests/unictype/test-pr_private_use.c: Likewise.
63380         * tests/unictype/test-pr_punctuation.c: Likewise.
63381         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63382         * tests/unictype/test-pr_radical.c: Likewise.
63383         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63384         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63385         * tests/unictype/test-pr_space.c: Likewise.
63386         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63387         * tests/unictype/test-pr_titlecase.c: Likewise.
63388         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63389         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63390         * tests/unictype/test-pr_uppercase.c: Likewise.
63391         * tests/unictype/test-pr_variation_selector.c: Likewise.
63392         * tests/unictype/test-pr_white_space.c: Likewise.
63393         * tests/unictype/test-pr_xid_continue.c: Likewise.
63394         * tests/unictype/test-pr_xid_start.c: Likewise.
63395         * tests/unictype/test-pr_zero_width.c: Likewise.
63396         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63397         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63398
63399 2007-11-12  Bruno Haible  <bruno@clisp.org>
63400
63401         Unicode character classification functions.
63402         * lib/unictype.h: New file.
63403         * modules/unictype/base: New file.
63404         * modules/unictype/category-L: New file.
63405         * modules/unictype/category-Lu: New file.
63406         * modules/unictype/category-Ll: New file.
63407         * modules/unictype/category-Lt: New file.
63408         * modules/unictype/category-Lm: New file.
63409         * modules/unictype/category-Lo: New file.
63410         * modules/unictype/category-M: New file.
63411         * modules/unictype/category-Mn: New file.
63412         * modules/unictype/category-Mc: New file.
63413         * modules/unictype/category-Me: New file.
63414         * modules/unictype/category-N: New file.
63415         * modules/unictype/category-Nd: New file.
63416         * modules/unictype/category-Nl: New file.
63417         * modules/unictype/category-No: New file.
63418         * modules/unictype/category-P: New file.
63419         * modules/unictype/category-Pc: New file.
63420         * modules/unictype/category-Pd: New file.
63421         * modules/unictype/category-Ps: New file.
63422         * modules/unictype/category-Pe: New file.
63423         * modules/unictype/category-Pi: New file.
63424         * modules/unictype/category-Pf: New file.
63425         * modules/unictype/category-Po: New file.
63426         * modules/unictype/category-S: New file.
63427         * modules/unictype/category-Sm: New file.
63428         * modules/unictype/category-Sc: New file.
63429         * modules/unictype/category-Sk: New file.
63430         * modules/unictype/category-So: New file.
63431         * modules/unictype/category-Z: New file.
63432         * modules/unictype/category-Zs: New file.
63433         * modules/unictype/category-Zl: New file.
63434         * modules/unictype/category-Zp: New file.
63435         * modules/unictype/category-C: New file.
63436         * modules/unictype/category-Cc: New file.
63437         * modules/unictype/category-Cf: New file.
63438         * modules/unictype/category-Cs: New file.
63439         * modules/unictype/category-Co: New file.
63440         * modules/unictype/category-Cn: New file.
63441         * modules/unictype/category-or: New file.
63442         * modules/unictype/category-of: New file.
63443         * modules/unictype/category-test: New file.
63444         * modules/unictype/category-test-withtable: New file.
63445         * modules/unictype/category-byname: New file.
63446         * modules/unictype/category-none: New file.
63447         * modules/unictype/category-and: New file.
63448         * modules/unictype/category-and-not: New file.
63449         * modules/unictype/category-name: New file.
63450         * modules/unictype/combining-class: New file.
63451         * modules/unictype/category-all: New file.
63452         * modules/unictype/bidicategory-all: New file.
63453         * modules/unictype/bidicategory-byname: New file.
63454         * modules/unictype/bidicategory-name: New file.
63455         * modules/unictype/bidicategory-of: New file.
63456         * modules/unictype/bidicategory-test: New file.
63457         * modules/unictype/decimal-digit: New file.
63458         * modules/unictype/digit: New file.
63459         * modules/unictype/numeric: New file.
63460         * modules/unictype/mirror: New file.
63461         * modules/unictype/property-white-space: New file.
63462         * modules/unictype/property-alphabetic: New file.
63463         * modules/unictype/property-other-alphabetic: New file.
63464         * modules/unictype/property-not-a-character: New file.
63465         * modules/unictype/property-default-ignorable-code-point: New file.
63466         * modules/unictype/property-other-default-ignorable-code-point: New
63467         file.
63468         * modules/unictype/property-deprecated: New file.
63469         * modules/unictype/property-logical-order-exception: New file.
63470         * modules/unictype/property-variation-selector: New file.
63471         * modules/unictype/property-private-use: New file.
63472         * modules/unictype/property-unassigned-code-value: New file.
63473         * modules/unictype/property-uppercase: New file.
63474         * modules/unictype/property-other-uppercase: New file.
63475         * modules/unictype/property-lowercase: New file.
63476         * modules/unictype/property-other-lowercase: New file.
63477         * modules/unictype/property-titlecase: New file.
63478         * modules/unictype/property-soft-dotted: New file.
63479         * modules/unictype/property-id-start: New file.
63480         * modules/unictype/property-other-id-start: New file.
63481         * modules/unictype/property-id-continue: New file.
63482         * modules/unictype/property-other-id-continue: New file.
63483         * modules/unictype/property-xid-start: New file.
63484         * modules/unictype/property-xid-continue: New file.
63485         * modules/unictype/property-pattern-white-space: New file.
63486         * modules/unictype/property-pattern-syntax: New file.
63487         * modules/unictype/property-join-control: New file.
63488         * modules/unictype/property-grapheme-base: New file.
63489         * modules/unictype/property-grapheme-extend: New file.
63490         * modules/unictype/property-other-grapheme-extend: New file.
63491         * modules/unictype/property-grapheme-link: New file.
63492         * modules/unictype/property-bidi-control: New file.
63493         * modules/unictype/property-bidi-left-to-right: New file.
63494         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63495         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63496         * modules/unictype/property-bidi-european-digit: New file.
63497         * modules/unictype/property-bidi-eur-num-separator: New file.
63498         * modules/unictype/property-bidi-eur-num-terminator: New file.
63499         * modules/unictype/property-bidi-arabic-digit: New file.
63500         * modules/unictype/property-bidi-common-separator: New file.
63501         * modules/unictype/property-bidi-block-separator: New file.
63502         * modules/unictype/property-bidi-segment-separator: New file.
63503         * modules/unictype/property-bidi-whitespace: New file.
63504         * modules/unictype/property-bidi-non-spacing-mark: New file.
63505         * modules/unictype/property-bidi-boundary-neutral: New file.
63506         * modules/unictype/property-bidi-pdf: New file.
63507         * modules/unictype/property-bidi-embedding-or-override: New file.
63508         * modules/unictype/property-bidi-other-neutral: New file.
63509         * modules/unictype/property-hex-digit: New file.
63510         * modules/unictype/property-ascii-hex-digit: New file.
63511         * modules/unictype/property-ideographic: New file.
63512         * modules/unictype/property-unified-ideograph: New file.
63513         * modules/unictype/property-radical: New file.
63514         * modules/unictype/property-ids-binary-operator: New file.
63515         * modules/unictype/property-ids-trinary-operator: New file.
63516         * modules/unictype/property-zero-width: New file.
63517         * modules/unictype/property-space: New file.
63518         * modules/unictype/property-non-break: New file.
63519         * modules/unictype/property-iso-control: New file.
63520         * modules/unictype/property-format-control: New file.
63521         * modules/unictype/property-dash: New file.
63522         * modules/unictype/property-hyphen: New file.
63523         * modules/unictype/property-punctuation: New file.
63524         * modules/unictype/property-line-separator: New file.
63525         * modules/unictype/property-paragraph-separator: New file.
63526         * modules/unictype/property-quotation-mark: New file.
63527         * modules/unictype/property-sentence-terminal: New file.
63528         * modules/unictype/property-terminal-punctuation: New file.
63529         * modules/unictype/property-currency-symbol: New file.
63530         * modules/unictype/property-math: New file.
63531         * modules/unictype/property-other-math: New file.
63532         * modules/unictype/property-paired-punctuation: New file.
63533         * modules/unictype/property-left-of-pair: New file.
63534         * modules/unictype/property-combining: New file.
63535         * modules/unictype/property-composite: New file.
63536         * modules/unictype/property-decimal-digit: New file.
63537         * modules/unictype/property-numeric: New file.
63538         * modules/unictype/property-diacritic: New file.
63539         * modules/unictype/property-extender: New file.
63540         * modules/unictype/property-ignorable-control: New file.
63541         * modules/unictype/property-test: New file.
63542         * modules/unictype/property-byname: New file.
63543         * modules/unictype/property-all: New file.
63544         * modules/unictype/scripts: New file.
63545         * modules/unictype/scripts-all: New file.
63546         * modules/unictype/block-of: New file.
63547         * modules/unictype/block-test: New file.
63548         * modules/unictype/block-list: New file.
63549         * modules/unictype/block-all: New file.
63550         * modules/unictype/syntax-c-whitespace: New file.
63551         * modules/unictype/syntax-java-whitespace: New file.
63552         * modules/unictype/syntax-c-ident: New file.
63553         * modules/unictype/syntax-java-ident: New file.
63554         * modules/unictype/ctype-alnum: New file.
63555         * modules/unictype/ctype-alpha: New file.
63556         * modules/unictype/ctype-cntrl: New file.
63557         * modules/unictype/ctype-digit: New file.
63558         * modules/unictype/ctype-graph: New file.
63559         * modules/unictype/ctype-lower: New file.
63560         * modules/unictype/ctype-print: New file.
63561         * modules/unictype/ctype-punct: New file.
63562         * modules/unictype/ctype-space: New file.
63563         * modules/unictype/ctype-upper: New file.
63564         * modules/unictype/ctype-xdigit: New file.
63565         * modules/unictype/ctype-blank: New file.
63566         * lib/unictype/bidi_byname.c: New file.
63567         * lib/unictype/bidi_name.c: New file.
63568         * lib/unictype/bidi_of.c: New file.
63569         * lib/unictype/bidi_test.c: New file.
63570         * lib/unictype/bitmap.h: New file.
63571         * lib/unictype/block_test.c: New file.
63572         * lib/unictype/blocks.c: New file.
63573         * lib/unictype/categ_C.c: New file.
63574         * lib/unictype/categ_Cc.c: New file.
63575         * lib/unictype/categ_Cf.c: New file.
63576         * lib/unictype/categ_Cn.c: New file.
63577         * lib/unictype/categ_Co.c: New file.
63578         * lib/unictype/categ_Cs.c: New file.
63579         * lib/unictype/categ_L.c: New file.
63580         * lib/unictype/categ_Ll.c: New file.
63581         * lib/unictype/categ_Lm.c: New file.
63582         * lib/unictype/categ_Lo.c: New file.
63583         * lib/unictype/categ_Lt.c: New file.
63584         * lib/unictype/categ_Lu.c: New file.
63585         * lib/unictype/categ_M.c: New file.
63586         * lib/unictype/categ_Mc.c: New file.
63587         * lib/unictype/categ_Me.c: New file.
63588         * lib/unictype/categ_Mn.c: New file.
63589         * lib/unictype/categ_N.c: New file.
63590         * lib/unictype/categ_Nd.c: New file.
63591         * lib/unictype/categ_Nl.c: New file.
63592         * lib/unictype/categ_No.c: New file.
63593         * lib/unictype/categ_P.c: New file.
63594         * lib/unictype/categ_Pc.c: New file.
63595         * lib/unictype/categ_Pd.c: New file.
63596         * lib/unictype/categ_Pe.c: New file.
63597         * lib/unictype/categ_Pf.c: New file.
63598         * lib/unictype/categ_Pi.c: New file.
63599         * lib/unictype/categ_Po.c: New file.
63600         * lib/unictype/categ_Ps.c: New file.
63601         * lib/unictype/categ_S.c: New file.
63602         * lib/unictype/categ_Sc.c: New file.
63603         * lib/unictype/categ_Sk.c: New file.
63604         * lib/unictype/categ_Sm.c: New file.
63605         * lib/unictype/categ_So.c: New file.
63606         * lib/unictype/categ_Z.c: New file.
63607         * lib/unictype/categ_Zl.c: New file.
63608         * lib/unictype/categ_Zp.c: New file.
63609         * lib/unictype/categ_Zs.c: New file.
63610         * lib/unictype/categ_and.c: New file.
63611         * lib/unictype/categ_and_not.c: New file.
63612         * lib/unictype/categ_byname.c: New file.
63613         * lib/unictype/categ_name.c: New file.
63614         * lib/unictype/categ_none.c: New file.
63615         * lib/unictype/categ_of.c: New file.
63616         * lib/unictype/categ_or.c: New file.
63617         * lib/unictype/categ_test.c: New file.
63618         * lib/unictype/combining.c: New file.
63619         * lib/unictype/ctype_alnum.c: New file.
63620         * lib/unictype/ctype_alpha.c: New file.
63621         * lib/unictype/ctype_blank.c: New file.
63622         * lib/unictype/ctype_cntrl.c: New file.
63623         * lib/unictype/ctype_digit.c: New file.
63624         * lib/unictype/ctype_graph.c: New file.
63625         * lib/unictype/ctype_lower.c: New file.
63626         * lib/unictype/ctype_print.c: New file.
63627         * lib/unictype/ctype_punct.c: New file.
63628         * lib/unictype/ctype_space.c: New file.
63629         * lib/unictype/ctype_upper.c: New file.
63630         * lib/unictype/ctype_xdigit.c: New file.
63631         * lib/unictype/decdigit.c: New file.
63632         * lib/unictype/digit.c: New file.
63633         * lib/unictype/identsyntaxmap.h: New file.
63634         * lib/unictype/mirror.c: New file.
63635         * lib/unictype/numeric.c: New file.
63636         * lib/unictype/pr_alphabetic.c: New file.
63637         * lib/unictype/pr_ascii_hex_digit.c: New file.
63638         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63639         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63640         * lib/unictype/pr_bidi_block_separator.c: New file.
63641         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63642         * lib/unictype/pr_bidi_common_separator.c: New file.
63643         * lib/unictype/pr_bidi_control.c: New file.
63644         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63645         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63646         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63647         * lib/unictype/pr_bidi_european_digit.c: New file.
63648         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63649         * lib/unictype/pr_bidi_left_to_right.c: New file.
63650         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63651         * lib/unictype/pr_bidi_other_neutral.c: New file.
63652         * lib/unictype/pr_bidi_pdf.c: New file.
63653         * lib/unictype/pr_bidi_segment_separator.c: New file.
63654         * lib/unictype/pr_bidi_whitespace.c: New file.
63655         * lib/unictype/pr_byname.c: New file.
63656         * lib/unictype/pr_byname.gperf: New file.
63657         * lib/unictype/pr_combining.c: New file.
63658         * lib/unictype/pr_composite.c: New file.
63659         * lib/unictype/pr_currency_symbol.c: New file.
63660         * lib/unictype/pr_dash.c: New file.
63661         * lib/unictype/pr_decimal_digit.c: New file.
63662         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63663         * lib/unictype/pr_deprecated.c: New file.
63664         * lib/unictype/pr_diacritic.c: New file.
63665         * lib/unictype/pr_extender.c: New file.
63666         * lib/unictype/pr_format_control.c: New file.
63667         * lib/unictype/pr_grapheme_base.c: New file.
63668         * lib/unictype/pr_grapheme_extend.c: New file.
63669         * lib/unictype/pr_grapheme_link.c: New file.
63670         * lib/unictype/pr_hex_digit.c: New file.
63671         * lib/unictype/pr_hyphen.c: New file.
63672         * lib/unictype/pr_id_continue.c: New file.
63673         * lib/unictype/pr_id_start.c: New file.
63674         * lib/unictype/pr_ideographic.c: New file.
63675         * lib/unictype/pr_ids_binary_operator.c: New file.
63676         * lib/unictype/pr_ids_trinary_operator.c: New file.
63677         * lib/unictype/pr_ignorable_control.c: New file.
63678         * lib/unictype/pr_iso_control.c: New file.
63679         * lib/unictype/pr_join_control.c: New file.
63680         * lib/unictype/pr_left_of_pair.c: New file.
63681         * lib/unictype/pr_line_separator.c: New file.
63682         * lib/unictype/pr_logical_order_exception.c: New file.
63683         * lib/unictype/pr_lowercase.c: New file.
63684         * lib/unictype/pr_math.c: New file.
63685         * lib/unictype/pr_non_break.c: New file.
63686         * lib/unictype/pr_not_a_character.c: New file.
63687         * lib/unictype/pr_numeric.c: New file.
63688         * lib/unictype/pr_other_alphabetic.c: New file.
63689         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63690         * lib/unictype/pr_other_grapheme_extend.c: New file.
63691         * lib/unictype/pr_other_id_continue.c: New file.
63692         * lib/unictype/pr_other_id_start.c: New file.
63693         * lib/unictype/pr_other_lowercase.c: New file.
63694         * lib/unictype/pr_other_math.c: New file.
63695         * lib/unictype/pr_other_uppercase.c: New file.
63696         * lib/unictype/pr_paired_punctuation.c: New file.
63697         * lib/unictype/pr_paragraph_separator.c: New file.
63698         * lib/unictype/pr_pattern_syntax.c: New file.
63699         * lib/unictype/pr_pattern_white_space.c: New file.
63700         * lib/unictype/pr_private_use.c: New file.
63701         * lib/unictype/pr_punctuation.c: New file.
63702         * lib/unictype/pr_quotation_mark.c: New file.
63703         * lib/unictype/pr_radical.c: New file.
63704         * lib/unictype/pr_sentence_terminal.c: New file.
63705         * lib/unictype/pr_soft_dotted.c: New file.
63706         * lib/unictype/pr_space.c: New file.
63707         * lib/unictype/pr_terminal_punctuation.c: New file.
63708         * lib/unictype/pr_test.c: New file.
63709         * lib/unictype/pr_titlecase.c: New file.
63710         * lib/unictype/pr_unassigned_code_value.c: New file.
63711         * lib/unictype/pr_unified_ideograph.c: New file.
63712         * lib/unictype/pr_uppercase.c: New file.
63713         * lib/unictype/pr_variation_selector.c: New file.
63714         * lib/unictype/pr_white_space.c: New file.
63715         * lib/unictype/pr_xid_continue.c: New file.
63716         * lib/unictype/pr_xid_start.c: New file.
63717         * lib/unictype/pr_zero_width.c: New file.
63718         * lib/unictype/scripts.c: New file.
63719         * lib/unictype/sy_c_ident.c: New file.
63720         * lib/unictype/sy_c_whitespace.c: New file.
63721         * lib/unictype/sy_java_ident.c: New file.
63722         * lib/unictype/sy_java_whitespace.c: New file.
63723
63724         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63725         Unicode 5.0.0.
63726         * lib/unictype/blocks.h: Likewise.
63727         * lib/unictype/categ_C.h: Likewise.
63728         * lib/unictype/categ_Cc.h: Likewise.
63729         * lib/unictype/categ_Cf.h: Likewise.
63730         * lib/unictype/categ_Cn.h: Likewise.
63731         * lib/unictype/categ_Co.h: Likewise.
63732         * lib/unictype/categ_Cs.h: Likewise.
63733         * lib/unictype/categ_L.h: Likewise.
63734         * lib/unictype/categ_Ll.h: Likewise.
63735         * lib/unictype/categ_Lm.h: Likewise.
63736         * lib/unictype/categ_Lo.h: Likewise.
63737         * lib/unictype/categ_Lt.h: Likewise.
63738         * lib/unictype/categ_Lu.h: Likewise.
63739         * lib/unictype/categ_M.h: Likewise.
63740         * lib/unictype/categ_Mc.h: Likewise.
63741         * lib/unictype/categ_Me.h: Likewise.
63742         * lib/unictype/categ_Mn.h: Likewise.
63743         * lib/unictype/categ_N.h: Likewise.
63744         * lib/unictype/categ_Nd.h: Likewise.
63745         * lib/unictype/categ_Nl.h: Likewise.
63746         * lib/unictype/categ_No.h: Likewise.
63747         * lib/unictype/categ_P.h: Likewise.
63748         * lib/unictype/categ_Pc.h: Likewise.
63749         * lib/unictype/categ_Pd.h: Likewise.
63750         * lib/unictype/categ_Pe.h: Likewise.
63751         * lib/unictype/categ_Pf.h: Likewise.
63752         * lib/unictype/categ_Pi.h: Likewise.
63753         * lib/unictype/categ_Po.h: Likewise.
63754         * lib/unictype/categ_Ps.h: Likewise.
63755         * lib/unictype/categ_S.h: Likewise.
63756         * lib/unictype/categ_Sc.h: Likewise.
63757         * lib/unictype/categ_Sk.h: Likewise.
63758         * lib/unictype/categ_Sm.h: Likewise.
63759         * lib/unictype/categ_So.h: Likewise.
63760         * lib/unictype/categ_Z.h: Likewise.
63761         * lib/unictype/categ_Zl.h: Likewise.
63762         * lib/unictype/categ_Zp.h: Likewise.
63763         * lib/unictype/categ_Zs.h: Likewise.
63764         * lib/unictype/categ_of.h: Likewise.
63765         * lib/unictype/combining.h: Likewise.
63766         * lib/unictype/ctype_alnum.h: Likewise.
63767         * lib/unictype/ctype_alpha.h: Likewise.
63768         * lib/unictype/ctype_blank.h: Likewise.
63769         * lib/unictype/ctype_cntrl.h: Likewise.
63770         * lib/unictype/ctype_digit.h: Likewise.
63771         * lib/unictype/ctype_graph.h: Likewise.
63772         * lib/unictype/ctype_lower.h: Likewise.
63773         * lib/unictype/ctype_print.h: Likewise.
63774         * lib/unictype/ctype_punct.h: Likewise.
63775         * lib/unictype/ctype_space.h: Likewise.
63776         * lib/unictype/ctype_upper.h: Likewise.
63777         * lib/unictype/ctype_xdigit.h: Likewise.
63778         * lib/unictype/decdigit.h: Likewise.
63779         * lib/unictype/digit.h: Likewise.
63780         * lib/unictype/mirror.h: Likewise.
63781         * lib/unictype/numeric.h: Likewise.
63782         * lib/unictype/pr_alphabetic.h: Likewise.
63783         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63784         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63785         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63786         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63787         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63788         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63789         * lib/unictype/pr_bidi_control.h: Likewise.
63790         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63791         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63792         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63793         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63794         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63795         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63796         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63797         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63798         * lib/unictype/pr_bidi_pdf.h: Likewise.
63799         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63800         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63801         * lib/unictype/pr_combining.h: Likewise.
63802         * lib/unictype/pr_composite.h: Likewise.
63803         * lib/unictype/pr_currency_symbol.h: Likewise.
63804         * lib/unictype/pr_dash.h: Likewise.
63805         * lib/unictype/pr_decimal_digit.h: Likewise.
63806         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63807         * lib/unictype/pr_deprecated.h: Likewise.
63808         * lib/unictype/pr_diacritic.h: Likewise.
63809         * lib/unictype/pr_extender.h: Likewise.
63810         * lib/unictype/pr_format_control.h: Likewise.
63811         * lib/unictype/pr_grapheme_base.h: Likewise.
63812         * lib/unictype/pr_grapheme_extend.h: Likewise.
63813         * lib/unictype/pr_grapheme_link.h: Likewise.
63814         * lib/unictype/pr_hex_digit.h: Likewise.
63815         * lib/unictype/pr_hyphen.h: Likewise.
63816         * lib/unictype/pr_id_continue.h: Likewise.
63817         * lib/unictype/pr_id_start.h: Likewise.
63818         * lib/unictype/pr_ideographic.h: Likewise.
63819         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63820         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63821         * lib/unictype/pr_ignorable_control.h: Likewise.
63822         * lib/unictype/pr_iso_control.h: Likewise.
63823         * lib/unictype/pr_join_control.h: Likewise.
63824         * lib/unictype/pr_left_of_pair.h: Likewise.
63825         * lib/unictype/pr_line_separator.h: Likewise.
63826         * lib/unictype/pr_logical_order_exception.h: Likewise.
63827         * lib/unictype/pr_lowercase.h: Likewise.
63828         * lib/unictype/pr_math.h: Likewise.
63829         * lib/unictype/pr_non_break.h: Likewise.
63830         * lib/unictype/pr_not_a_character.h: Likewise.
63831         * lib/unictype/pr_numeric.h: Likewise.
63832         * lib/unictype/pr_other_alphabetic.h: Likewise.
63833         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63834         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63835         * lib/unictype/pr_other_id_continue.h: Likewise.
63836         * lib/unictype/pr_other_id_start.h: Likewise.
63837         * lib/unictype/pr_other_lowercase.h: Likewise.
63838         * lib/unictype/pr_other_math.h: Likewise.
63839         * lib/unictype/pr_other_uppercase.h: Likewise.
63840         * lib/unictype/pr_paired_punctuation.h: Likewise.
63841         * lib/unictype/pr_paragraph_separator.h: Likewise.
63842         * lib/unictype/pr_pattern_syntax.h: Likewise.
63843         * lib/unictype/pr_pattern_white_space.h: Likewise.
63844         * lib/unictype/pr_private_use.h: Likewise.
63845         * lib/unictype/pr_punctuation.h: Likewise.
63846         * lib/unictype/pr_quotation_mark.h: Likewise.
63847         * lib/unictype/pr_radical.h: Likewise.
63848         * lib/unictype/pr_sentence_terminal.h: Likewise.
63849         * lib/unictype/pr_soft_dotted.h: Likewise.
63850         * lib/unictype/pr_space.h: Likewise.
63851         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63852         * lib/unictype/pr_titlecase.h: Likewise.
63853         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63854         * lib/unictype/pr_unified_ideograph.h: Likewise.
63855         * lib/unictype/pr_uppercase.h: Likewise.
63856         * lib/unictype/pr_variation_selector.h: Likewise.
63857         * lib/unictype/pr_white_space.h: Likewise.
63858         * lib/unictype/pr_xid_continue.h: Likewise.
63859         * lib/unictype/pr_xid_start.h: Likewise.
63860         * lib/unictype/pr_zero_width.h: Likewise.
63861         * lib/unictype/scripts.h: Likewise.
63862         * lib/unictype/scripts_byname.gperf: Likewise.
63863         * lib/unictype/sy_c_ident.h: Likewise.
63864         * lib/unictype/sy_c_whitespace.h: Likewise.
63865         * lib/unictype/sy_java_ident.h: Likewise.
63866         * lib/unictype/sy_java_whitespace.h: Likewise.
63867
63868         * lib/unictype/Makefile: New file.
63869         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63870         glibc.
63871         * lib/unictype/3level.h: New file, copied from glibc.
63872         * lib/unictype/3levelbit.h: New file.
63873
63874 2007-11-11  Bruno Haible  <bruno@clisp.org>
63875
63876         * modules/gperf: New file.
63877         * modules/iconv_open (Depends-on): Add it.
63878         (Makefile.am): Remove the GPERF definition.
63879
63880 2007-11-11  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63883         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63884
63885 2007-11-11  Bruno Haible  <bruno@clisp.org>
63886
63887         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63888         (usage): Remove function.
63889
63890 2007-11-11  Bruno Haible  <bruno@clisp.org>
63891
63892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63893         gl_FUNC_CEILF_LIBS.
63894         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63895         gl_FUNC_CEIL_LIBS.
63896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63897         gl_FUNC_CEILL_LIBS.
63898         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63899         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63900         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63901
63902 2007-11-11  Bruno Haible  <bruno@clisp.org>
63903
63904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63905         roundf were declared but do not exist on functions.
63906         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63907         roundl were declared but do not exist on functions.
63908         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63909         HAVE_FLOORL_AND_CEILL, respectively.
63910         Needed for Sun C on Solaris 10.
63911
63912 2007-11-11  Bruno Haible  <bruno@clisp.org>
63913
63914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63915         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63916         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63917         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63919         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63920         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63921         HAVE_DECL_ROUNDF.
63922         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63923         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63925         of HAVE_DECL_ROUND*.
63926         * modules/math (Makefile.am): Update.
63927
63928 2007-11-10  Bruno Haible  <bruno@clisp.org>
63929
63930         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63931         ptrdiff_t as m4/intl.m4.
63932
63933 2007-11-10  Jim Meyering  <meyering@redhat.com>
63934
63935         Avoid link failure for the argmatch test.
63936         * tests/test-argmatch.c (usage): Define function to avoid a link
63937         failure: argmatch_die requires a usage function.
63938
63939 2007-11-09  Bruno Haible  <bruno@clisp.org>
63940
63941         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63942         * doc/functions/vsnprintf.texi: Likewise.
63943         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63944         with a size argument < 2.
63945
63946 2007-11-09  Bruno Haible  <bruno@clisp.org>
63947
63948         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63949         buffer. Fixes an inefficiency introduced on 2007-11-03.
63950
63951 2007-11-09  Bruno Haible  <bruno@clisp.org>
63952
63953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63954         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63955
63956 2007-11-08  Jim Meyering  <meyering@redhat.com>
63957
63958         Change cache variable name prefix "jm_" to "gl_" everywhere.
63959         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63960         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63961         * m4/uptime.m4: s/gl_/jm_/
63962
63963 2007-11-07  Bruno Haible  <bruno@clisp.org>
63964
63965         Update to GNU gettext 0.17.
63966         * m4/intl.m4: Update to GNU gettext 0.17.
63967         * m4/po.m4: Likewise.
63968         * modules/gettext (Files): Remove m4/ulonglong.m4.
63969         (configure.ac): Require gettext infrastructure from version 0.17.
63970
63971 2007-11-06  Bruno Haible  <bruno@clisp.org>
63972
63973         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63974         symbolic values are not defined in a public header.
63975         * lib/freadable.c (freadable) [QNX]: Likewise.
63976         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63977         * lib/freading.c (freading) [QNX]: Likewise.
63978         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63979         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63980         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63981         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63982         Reported by Alain Magloire.
63983
63984         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63985
63986 2007-11-05  Bruno Haible  <bruno@clisp.org>
63987
63988         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63989         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63990         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63991         Reported by Eric Blake.
63992
63993 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63994             Bruno Haible  <bruno@clisp.org>
63995
63996         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63997         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63998         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63999         (malloc): Undefine also before including <stdlib.h>.
64000         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64001         Needed on OSF/1 4.0.
64002
64003 2007-11-05  Jim Meyering  <meyering@redhat.com>
64004
64005         git-version-gen: sync from coreutils.
64006         * build-aux/git-version-gen: Add comments.
64007         Change the first '-' to '.' in the snapshot version string,
64008         e.g., 6.9-377-08144 -> 6.9.377-08144
64009         Remove first parameter.
64010         Don't declare a version "-dirty" merely because a time
64011         stamp has changed.
64012
64013 2007-11-04  Bruno Haible  <bruno@clisp.org>
64014
64015         * lib/lock.h: Protect all macro definitions containing an 'if'
64016         statement through a "do { ... } while (0)".
64017         * lib/tls.h: Likewise.
64018
64019 2007-11-04  Bruno Haible  <bruno@clisp.org>
64020
64021         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64022
64023 2007-11-04  Bruno Haible  <bruno@clisp.org>
64024
64025         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64026         * modules/fprintf-posix (Depends-on): Add nocrash.
64027         * modules/snprintf-posix (Depends-on): Likewise.
64028         * modules/sprintf-posix (Depends-on): Likewise.
64029         * modules/vasnprintf-posix (Depends-on): Likewise.
64030         * modules/vasprintf-posix (Depends-on): Likewise.
64031         * modules/vfprintf-posix (Depends-on): Likewise.
64032         * modules/vsnprintf-posix (Depends-on): Likewise.
64033         * modules/vsprintf-posix (Depends-on): Likewise.
64034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64036         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64040         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64041
64042 2007-11-04  Bruno Haible  <bruno@clisp.org>
64043
64044         * modules/nocrash: New file.
64045         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64046         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64047
64048 2007-11-04  Bruno Haible  <bruno@clisp.org>
64049
64050         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64051         precision handling.
64052         * tests/test-vasprintf-posix.c (test_function): Likewise.
64053         * tests/test-snprintf-posix.h (test_function): Likewise.
64054         * tests/test-sprintf-posix.h (test_function): Likewise.
64055
64056         Fix *printf behaviour for large precisions on mingw and BeOS.
64057         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64058         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64060         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64062         gl_PRINTF_PRECISION and test its result. Invoke
64063         gl_PREREQ_VASNPRINTF_PRECISION.
64064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64071         * doc/functions/fprintf.texi: Update.
64072         * doc/functions/printf.texi: Update.
64073         * doc/functions/snprintf.texi: Update.
64074         * doc/functions/sprintf.texi: Update.
64075         * doc/functions/vfprintf.texi: Update.
64076         * doc/functions/vprintf.texi: Update.
64077         * doc/functions/vsnprintf.texi: Update.
64078         * doc/functions/vsprintf.texi: Update.
64079
64080 2007-11-04  Bruno Haible  <bruno@clisp.org>
64081
64082         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64083
64084 2007-11-04  Bruno Haible  <bruno@clisp.org>
64085
64086         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64087         Reported by Sylvain Beucler <beuc@gnu.org>.
64088
64089 2007-11-03  Bruno Haible  <bruno@clisp.org>
64090
64091         * tests/test-fprintf-posix2.sh: New file.
64092         * tests/test-fprintf-posix2.c: New file.
64093         * modules/fprintf-posix-tests (Files): Add them.
64094         (TESTS): Add test-fprintf-posix2.sh.
64095         (configure.ac): Check for getrlimit and setrlimit.
64096         (check_PROGRAMS): Add test-fprintf-posix2.
64097
64098         * tests/test-printf-posix2.sh: New file.
64099         * tests/test-printf-posix2.c: New file.
64100         * modules/printf-posix-tests (Files): Add them.
64101         (TESTS): Add test-printf-posix2.sh.
64102         (configure.ac): Check for getrlimit and setrlimit.
64103         (check_PROGRAMS): Add test-printf-posix2.
64104
64105         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64106         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64107         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64108         (decode_double): New function, copied from decode_long_double.
64109         (scale10_round_decimal_decoded): New function, extracted from
64110         scale10_round_decimal_long_double.
64111         (scale10_round_decimal_long_double): Use it.
64112         (scale10_round_decimal_double): New function.
64113         (floorlog10): New function.
64114         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64116         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64117         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64118         gl_PRINTF_ENOMEM and test its result. Invoke
64119         gl_PREREQ_VASNPRINTF_ENOMEM.
64120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64122         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64127         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64128         * modules/snprintf-posix (Depends-on): Likewise.
64129         * modules/sprintf-posix (Depends-on): Likewise.
64130         * modules/vasnprintf-posix (Depends-on): Likewise.
64131         * modules/vasprintf-posix (Depends-on): Likewise.
64132         * modules/vfprintf-posix (Depends-on): Likewise.
64133         * modules/vsnprintf-posix (Depends-on): Likewise.
64134         * modules/vsprintf-posix (Depends-on): Likewise.
64135         * doc/functions/fprintf.texi: Update.
64136         * doc/functions/printf.texi: Update.
64137         * doc/functions/snprintf.texi: Update.
64138         * doc/functions/sprintf.texi: Update.
64139         * doc/functions/vfprintf.texi: Update.
64140         * doc/functions/vprintf.texi: Update.
64141         * doc/functions/vsnprintf.texi: Update.
64142         * doc/functions/vsprintf.texi: Update.
64143
64144 2007-11-03  Bruno Haible  <bruno@clisp.org>
64145
64146         * modules/frexp-nolibm-tests: New file.
64147
64148         * modules/frexp-nolibm: New file.
64149         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64150
64151 2007-11-03  Bruno Haible  <bruno@clisp.org>
64152
64153         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64154         value is C99 compliant.
64155         Needed for OSF/1 5.1.
64156
64157 2007-11-03  Bruno Haible  <bruno@clisp.org>
64158
64159         Fix out-of-memory handling of vasnprintf.
64160         * lib/printf-parse.c: Include <errno.h>.
64161         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64162         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64163         is already set.
64164
64165 2007-11-02  Eric Blake  <ebb9@byu.net>
64166
64167         Fix tests on cygwin.
64168         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64169
64170 2007-11-01  Bruno Haible  <bruno@clisp.org>
64171
64172         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64173         warning.
64174         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64175         needed for POSIX compatibility.
64176
64177 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64178
64179         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64180         for compatibility with GNU.
64181
64182 2007-11-01  Bruno Haible  <bruno@clisp.org>
64183
64184         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64185         (putenv): Renamed from rpl_putenv. Change argument type from
64186         'const char *' to 'char *'.
64187         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64188         of defining putenv in config.h, just set REPLACE_PUTENV.
64189         * modules/putenv (Depends-on): Add stdlib.
64190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64191         (Include): Use <stdlib.h>.
64192         * lib/stdlib.in.h (putenv): New declaration.
64193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64194         REPLACE_PUTENV.
64195         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64196         REPLACE_PUTENV.
64197         Needed for MacOS X 10.5.0.
64198         Reported by Peter O'Gorman <peter@pogma.com>.
64199
64200 2007-11-01  Jim Meyering  <meyering@redhat.com>
64201
64202         Treat an empty date string exactly like "0".
64203         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64204         if the remaining date string (to be parsed) is empty, use "0".
64205         Reported by Mischa Molhoek and discussed in this thread:
64206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64207
64208 2007-10-31  Bruno Haible  <bruno@clisp.org>
64209
64210         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64211         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64212         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64213         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64214         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64215         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64216
64217 2007-10-31  Bruno Haible  <bruno@clisp.org>
64218
64219         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64220         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64221         (AC_TYPE_LONG_LONG_INT): Use it.
64222         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64223         it as well.
64224         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64225         to m4/longlong.m4.
64226         * modules/stdint (Files): Remove m4/ulonglong.m4.
64227         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64228         m4/ulonglong.m4.
64229         * modules/strtoumax (Files): Likewise.
64230
64231 2007-10-30  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/xvasprintf-posix: New file.
64234         Suggested by Eric Blake.
64235
64236 2007-10-30  Bruno Haible  <bruno@clisp.org>
64237
64238         * modules/xprintf-posix-tests: New file.
64239         * tests/test-xprintf-posix.sh: New file.
64240         * tests/test-xprintf-posix.c: New file.
64241         * tests/test-xfprintf-posix.c: New file.
64242
64243         * modules/xprintf-posix: New file.
64244
64245 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64246
64247         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64248         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64249         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64250
64251 2007-10-29  Bruno Haible  <bruno@clisp.org>
64252
64253         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64254         contain the special marker '_cv_'.
64255         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64256         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64258         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64259         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64260         Reported by Ralf Wildenhues.
64261
64262 2007-10-29  Bruno Haible  <bruno@clisp.org>
64263
64264         * gnulib-tool (func_import): When --lgpl is not specified, set
64265         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64266         GPLv3.
64267         Reported by Simon Josefsson.
64268
64269 2007-10-28  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64272         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64273         HAVE_DECL_ISFINITE.
64274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64275         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64276         HAVE_DECL_ISFINITE.
64277
64278 2007-10-28  Bruno Haible  <bruno@clisp.org>
64279
64280         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64281         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64282
64283 2007-10-28  Bruno Haible  <bruno@clisp.org>
64284
64285         Fix link errors with Sun C 5.0 on Solaris 10.
64286         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64287         function is declared but not present in the compiler's libm.
64288         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64289         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64290         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64291         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64292         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64293         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64294         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64296         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64297         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64298         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64299         HAVE_DECL_FLOORL.
64300
64301 2007-10-28  Bruno Haible  <bruno@clisp.org>
64302
64303         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64304         gl_FUNC_FLOORL. Cache the result.
64305         (gl_FUNC_FLOORL): Use it.
64306         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64307         gl_FUNC_CEILL. Cache the result.
64308         (gl_FUNC_CEILL): Use it.
64309
64310         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64311         gl_FUNC_FLOOR. Cache the result.
64312         (gl_FUNC_FLOOR): Use it.
64313         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64314         gl_FUNC_CEIL. Cache the result.
64315         (gl_FUNC_CEIL): Use it.
64316
64317         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64318         gl_FUNC_FLOORF. Cache the result.
64319         (gl_FUNC_FLOORF): Use it.
64320         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64321         gl_FUNC_CEILF. Cache the result.
64322         (gl_FUNC_CEILF): Use it.
64323
64324 2007-10-28  Bruno Haible  <bruno@clisp.org>
64325
64326         * gnulib-tool: Allow specifying the LGPL version number through
64327         --lgpl=2 or --lgpl=3.
64328         (func_usage): Document --lgpl with argument.
64329         Handle --lgpl=... arguments.
64330         (func_import): Recognize also gl_LGPL calls with an argument. When
64331         --lgpl=2 is used and the module's license is just LGPL, report an
64332         error. Set sed_transform_lib_file according to the lgpl variable. In
64333         the generated files, use --lgpl or gl_LGPL invocations with argument,
64334         if necessary.
64335         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64336         an LGPv2+ license.
64337         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64338         gl_LGPL macro.
64339
64340 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64341             Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64344         (u16_uctomb_aux): Likewise.
64345         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64346         !HAVE_INLINE.
64347         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64348
64349 2007-10-28  Bruno Haible  <bruno@clisp.org>
64350
64351         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64352         Invoke AM_GETTEXT_OPTION if it exists.
64353         * modules/vasprintf: Likewise.
64354         * modules/verror: Likewise.
64355         * modules/xprintf: Likewise.
64356         * modules/xvasprintf: Likewise.
64357
64358 2007-10-27  Ben Pfaff  <blp@gnu.org>
64359
64360         * lib/math.in.h: Define isfinite macro and prototypes for
64361         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64362         implementations.
64363         * m4/math_h.m4: New substitutions for isfinite module.
64364         * lib/isfinite.c: New file.
64365         * m4/isfinite.m4: New file.
64366         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64367         * modules/isfinite: New file.
64368         * modules/isfinite-tests: New file.
64369         * tests/tests-isfinite.c: New file.
64370         * doc/functions/isfinite.texi: Mention isfinite module.
64371         * MODULES.html.sh: Mention new module.
64372
64373 2007-10-27  Ben Pfaff  <blp@gnu.org>
64374
64375         Ralf Wildenhues reported that Tru64 4.0D declares the round
64376         functions but does not have definitions.
64377         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64378         cannot be found in any library, set the output variable to
64379         "missing" instead of "".
64380         * m4/round.m4: Also use our substitute if we cannot find round in
64381         any library, even if it is declared.
64382         * m4/roundf.m4: Likewise for roundf.
64383         * m4/roundl.m4: Likewise for roundl.
64384         * lib/math.in.h: Undefine roundf, round, roundl before defining
64385         their replacements, to allow for hypothetical systems where these
64386         may be defined as macros but not available in libraries.
64387
64388 2007-10-27  Bruno Haible  <bruno@clisp.org>
64389
64390         * doc/gnulib.texi: Invoke @firstparagraphindent.
64391         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64392         changes in gnulib.
64393         (Source changes): New section.
64394
64395 2007-10-26  Bruno Haible  <bruno@clisp.org>
64396
64397         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64398         borrowed from autoconf.
64399
64400 2007-10-26  Bruno Haible  <bruno@clisp.org>
64401
64402         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64403         strerror returned the empty string. Needed on HP-UX 11.00.
64404
64405 2007-10-24  Micah Cowan  <micah@cowan.name>
64406
64407         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64408         * build-aux/bootstrap: Remove support for now-unnecessary option,
64409         --cvs-user, and envvars CVS_USER, CVS_RSH.
64410
64411 2007-10-24  Jim Meyering  <meyering@redhat.com>
64412
64413         Avoid diagnostics from sha1sum when there is no cached checksum.
64414         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64415         if the po.s1 file hasn't been created yet.
64416
64417         * build-aux/bootstrap: Sync from coreutils:
64418         2007-10-24  Jim Meyering  <meyering@redhat.com>
64419         Get gnulib from the git repository, not from an obsolete cvs one.
64420         * build-aux/bootstrap: Suggestion from Micah Cowan.
64421         2007-10-04  Jim Meyering  <jim@meyering.net>
64422         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64423         (update_po_files): Work also when there are no .po files in po/.
64424
64425 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64426
64427         * README: Append ".git" to git and cg examples.
64428         Problem reported by Benoit Sigoure.
64429
64430 2007-10-23  Micah Cowan  <micah@cowan.name>
64431
64432         * users.txt: Add wget.
64433
64434 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64435
64436         Fix linking of some unistdio tests on FreeBSD.
64437         * modules/unistdio/u16-vsnprintf-tests
64438         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64439         * modules/unistdio/u16-vsprintf-tests
64440         (test_u16_vsnprintf1_LDADD): Likewise.
64441         * modules/unistdio/u32-vsnprintf-tests
64442         (test_u32_vsnprintf1_LDADD): Likewise.
64443         * modules/unistdio/u32-vsprintf-tests
64444         (test_u32_vsprintf1_LDADD): Likewise.
64445         * modules/unistdio/u8-vsnprintf-tests
64446         (test_u8_vsnprintf1_LDADD): Likewise.
64447         * modules/unistdio/u8-vsprintf-tests
64448         (test_u8_vsprintf1_LDADD): Likewise.
64449         * modules/unistdio/ulc-vsnprintf-tests
64450         (test_ulc_vsnprintf1_LDADD): Likewise.
64451         * modules/unistdio/ulc-vsprintf-tests
64452         (test_ulc_vsprintf1_LDADD): Likewise.
64453
64454         Fix linking of some uniconv tests on FreeBSD.
64455         * modules/uniconv/u16-conv-from-enc-tests
64456         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64457         * modules/uniconv/u16-conv-to-enc-tests
64458         (test_u16_conv_to_enc_LDADD): Likewise.
64459         * modules/uniconv/u16-strconv-from-enc-tests
64460         (test_u16_strconv_from_enc_LDADD): Likewise.
64461         * modules/uniconv/u16-strconv-to-enc-tests
64462         (test_u16_strconv_to_enc_LDADD): Likewise.
64463         * modules/uniconv/u32-conv-from-enc-tests
64464         (test_u32_conv_from_enc_LDADD): Likewise.
64465         * modules/uniconv/u32-conv-to-enc-tests
64466         (test_u32_conv_to_enc_LDADD): Likewise.
64467         * modules/uniconv/u32-strconv-from-enc-tests
64468         (test_u32_strconv_from_enc_LDADD): Likewise.
64469         * modules/uniconv/u32-strconv-to-enc-tests
64470         (test_u32_strconv_to_enc_LDADD): Likewise.
64471         * modules/uniconv/u8-conv-from-enc-tests
64472         (test_u8_conv_from_enc_LDADD): Likewise.
64473         * modules/uniconv/u8-conv-to-enc-tests
64474         (test_u8_conv_to_enc_LDADD): Likewise.
64475         * modules/uniconv/u8-strconv-from-enc-tests
64476         (test_u8_strconv_from_enc_LDADD): Likewise.
64477         * modules/uniconv/u8-strconv-to-enc-tests
64478         (test_u8_strconv_to_enc_LDADD): Likewise.
64479
64480 2007-10-22  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64483         size.
64484
64485 2007-10-22  Eric Blake  <ebb9@byu.net>
64486
64487         Tweak x*printf documentation.
64488         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64489         variable name and comments.
64490         Suggested by Bruno Haible.
64491
64492 2007-10-22  Bruno Haible  <bruno@clisp.org>
64493
64494         * lib/acl.c (copy_acl): Fix file name in comment.
64495
64496 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64497
64498         Fix Tru64 problem with stdbool.h.
64499         * lib/stdbool.in.h (false, true):
64500         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64501         Don't declare as an enum in this situation; it runs afoul of Tru64.
64502         Problem reported by Steven M. Schweda in
64503         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64504
64505 2007-10-22  Eric Blake  <ebb9@byu.net>
64506
64507         Also wrap vf?printf.
64508         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64509         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64510         (xvprintf, xvfprintf): New functions.
64511
64512 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64513
64514         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64515         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64516
64517         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64518         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64519
64520 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64523         by Bruno Haible.
64524
64525 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64526
64527         * lib/getloadavg.c
64528         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64529         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64530
64531         * tests/test-i-ring.c: Work for C89.
64532
64533 2007-10-22  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64536         -1u, in preprocessor expression, so that we don't test for the bug
64537         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64539
64540 2007-10-22  Eric Blake  <ebb9@byu.net>
64541
64542         * tests/test-yesno.sh: Silence stderr during test.
64543
64544 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64545
64546         * modules/crypto/gc-camellia: New file.
64547
64548         * m4/gc-camellia.m4: New file.
64549
64550         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64551
64552         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64553
64554 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64555
64556         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64557         --help to stdout.  Reported by sms@antinode.org (Steven
64558         M. Schweda).
64559
64560 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64561
64562         * users.txt: Fix link to libksba.
64563
64564 2007-10-21  Ben Pfaff  <blp@gnu.org>
64565
64566         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64567         round.c roundf implementation that depends on floorf and ceilf to
64568         be tested unconditionally.
64569
64570 2007-10-21  Ben Pfaff  <blp@gnu.org>
64571
64572         * m4/check-libm-func.m4: Removed.
64573         * m4/check-math-lib.m4: New file.
64574         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64575         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64576         definition and lack of AC_LIBOBJ([roundf]).
64577         * m4/roundl.m4: Ditto, and similarly for roundl.
64578         * modules/round: Reference new m4 file.
64579         * modules/roundf: Ditto.
64580         * modules/roundl: Ditto.
64581         * tests/test-round2.c (main): Use ROUND instead of round.
64582         Bug report from Bruno Haible.
64583
64584 2007-10-21  Bruno Haible  <bruno@clisp.org>
64585
64586         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64587         context.
64588
64589 2007-10-21  Bruno Haible  <bruno@clisp.org>
64590
64591         * tests/test-wcwidth.c (main): Allow negative result for some control
64592         characters.
64593
64594         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64595         Needed on OSF/1 5.1.
64596
64597 2007-10-21  Bruno Haible  <bruno@clisp.org>
64598
64599         * tests/test-floorf1.c: Include isnanf.h.
64600         (main): Use isnanf() instead of isnan().
64601         * tests/test-ceilf1.c: Include isnanf.h.
64602         (main): Use isnanf() instead of isnan().
64603         * tests/test-truncf1.c: Include isnanf.h.
64604         (main): Use isnanf() instead of isnan().
64605         * tests/test-roundf1.c: Include isnanf.h.
64606         (main): Use isnanf() instead of isnan().
64607
64608 2007-10-21  Eric Blake  <ebb9@byu.net>
64609
64610         * users.txt: Update URL for m4.
64611
64612 2007-10-21  Bruno Haible  <bruno@clisp.org>
64613
64614         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64615
64616 2007-10-21  Bruno Haible  <bruno@clisp.org>
64617
64618         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64619         Git's management files if the CVS files are not present.
64620
64621 2007-10-20  Bruno Haible  <bruno@clisp.org>
64622
64623         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64624         gcc-3.4.x.
64625
64626 2007-10-20  Ben Pfaff  <blp@gnu.org>
64627
64628         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64629         implementations.
64630         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64631         * lib/round.c: New file.
64632         * lib/roundf.c: New file.
64633         * lib/roundl.c: New file.
64634         * m4/round.m4: New file.
64635         * m4/roundf.m4: New file.
64636         * m4/roundl.m4: New file.
64637         * m4/check-libm-func-m4: New file.
64638         * modules/math: Replace round, roundf, roundl related @VARS@ in
64639         math.in.h.
64640         * modules/round: New file.
64641         * modules/round-tests: New file.
64642         * modules/roundf: New file.
64643         * modules/roundf-tests: New file.
64644         * modules/roundl: New file.
64645         * modules/roundl-tests: New file.
64646         * tests/test-round1.c: New file.
64647         * tests/test-round2.c: New file.
64648         * tests/test-roundf1.c: New file.
64649         * tests/test-roundf2.c: New file.
64650         * tests/test-roundl.c: New file.
64651         * doc/functions/round.texi: Mention round module.
64652         * doc/functions/roundf.texi: Mention roundf module.
64653         * doc/functions/roundl.texi: Mention roundl module.
64654         * MODULES.html.sh: Mention new modules.
64655         Thanks to Bruno Haible for suggestions.
64656
64657 2007-10-20  Jim Meyering  <meyering@redhat.com>
64658
64659         * lib/xprintf.c: Include <config.h> unconditionally.
64660
64661         Change xprintf's license to GPL.
64662         * modules/xprintf (License): s/LGPL/GPL/, since this module
64663         depends on modules (exit and exitfail) which are GPL.
64664         Suggestion from Bruno Haible.
64665
64666         xprintf fixes.
64667         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64668         Use a clearer diagnostic.
64669         Patch from Bruno Haible.
64670
64671 2007-10-20  Bruno Haible  <bruno@clisp.org>
64672
64673         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64674         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64676
64677 2007-10-20  Bruno Haible  <bruno@clisp.org>
64678
64679         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64680         precision in the comparison result > x - 1 or similar.
64681         * tests/test-ceilf2.c (correct_result_p): Likewise.
64682         * tests/test-truncf2.c (correct_result_p): Likewise.
64683         * tests/test-trunc2.c (correct_result_p): Likewise.
64684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64685
64686 2007-10-20  Bruno Haible  <bruno@clisp.org>
64687
64688         * modules/ceil: New file.
64689         * m4/ceil.m4: New file.
64690         * doc/functions/ceil.texi: Mention the 'ceil' module.
64691
64692 2007-10-20  Bruno Haible  <bruno@clisp.org>
64693
64694         * modules/floor: New file.
64695         * m4/floor.m4: New file.
64696         * doc/functions/floor.texi: Mention the 'floor' module.
64697
64698 2007-10-20  Bruno Haible  <bruno@clisp.org>
64699
64700         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64701         of %a.
64702         * modules/floorf-tests (Depends-on): Likewise.
64703         * modules/truncf-tests (Depends-on): Likewise.
64704         * modules/trunc-tests (Depends-on): Likewise.
64705         Reported by Ben Pfaff.
64706
64707 2007-10-19  Jim Meyering  <meyering@redhat.com>
64708
64709         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64710         Don't bother testing specific errno values.  Just test ferror.
64711
64712         New module: xprintf
64713         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64714
64715 2007-10-19  Bruno Haible  <bruno@clisp.org>
64716
64717         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64718         syntax.
64719         * modules/javaexec (Makefile.am): Likewise.
64720         * modules/relocatable-prog (Makefile.am): Likewise.
64721         Suggested by Jim Meyering.
64722
64723 2007-10-18  Bruno Haible  <bruno@clisp.org>
64724
64725         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64726         Reported by Jim Meyering.
64727
64728 2007-10-18  Eric Blake  <ebb9@byu.net>
64729
64730         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64731
64732 2007-10-18  Bruno Haible  <bruno@clisp.org>
64733
64734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64735         the format string into writable memory. Needed in Fortify conditions.
64736
64737 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64738             Bruno Haible  <bruno@clisp.org>
64739
64740         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64741         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64742         * modules/trim (Depends-on): Add mbchar.
64743         (configure.ac): Add gl_FUNC_MBRTOWC.
64744         (Makefile.am): Augment lib_SOURCES.
64745
64746 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         Modify glob.c to use fstatat and dirfd, to simplify it.
64749         Suggested by Eric Blake.
64750         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64751         Don't include <stdbool.h>; not used.
64752         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64753         (link_exists_p): Simplify implementation, since we can now assume
64754         dirfd and fstatat.
64755         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64756
64757 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64758
64759         * gnulib-tool (func_get_dependencies): Fix sed script to
64760         match only tests.
64761
64762 2007-10-17  Bruno Haible  <bruno@clisp.org>
64763
64764         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64765         allow locale names without encoding suffix.
64766         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64767         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64768
64769 2007-10-16  Bruno Haible  <bruno@clisp.org>
64770
64771         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64772         * lib/getgroups.c (getgroups): Likewise.
64773         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64774
64775 2007-10-16  Bruno Haible  <bruno@clisp.org>
64776
64777         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64778         * modules/malloc-posix (License): Likewise.
64779         * modules/realloc-posix (License): Likewise.
64780         * modules/calloc-posix (License): Likewise.
64781         * modules/intprops (License): Change from GPL to LGPL, with
64782         Paul Eggert's approval.
64783
64784 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         Merge glibc changes into lib/glob.c.
64787
64788         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64789         2007-10-15 04:59:03 UTC.  Here are the changes:
64790
64791         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64792
64793         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64794
64795         * lib/glob.c: Add some branch prediction throughout.
64796
64797         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64798
64799         [BZ #5103]
64800         * lib/glob.c (glob): Recognize patterns starting \/.
64801
64802         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64803
64804         [BZ #3996]
64805         * lib/glob.c (attribute_hidden): Define if not defined.
64806         (glob): Unescape dirname, filename or username when needed and not
64807         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64808         is NULL.  Handle unescaped [ in pattern without closing ].
64809         Don't pass GLOB_CHECK down to recursive glob for directories.
64810         (__glob_pattern_type): New function.
64811         (__glob_pattern_p): Implement using __glob_pattern_type.
64812         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64813         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64814         Remove unreachable code.
64815
64816         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64817
64818         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64819         explain why there are no leaks.
64820
64821         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64822
64823         [BZ #3253]
64824         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64825         time, rather allocate increasingly bigger arrays of pointers, if
64826         possible with alloca, if too large with malloc.
64827
64828 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64829
64830         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64831         Problem reported by H.Merijn Brand in
64832         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64833         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64834         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64835
64836 2007-10-15  Bruno Haible  <bruno@clisp.org>
64837
64838         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64839         with explicit rpl_ prefix.
64840         * lib/fopen.c (fopen): Likewise.
64841         * lib/freopen.c (freopen): Likewise.
64842         * lib/iconv.c (iconv): Likewise.
64843         * lib/iconv_close.c (iconv_close): Likewise.
64844
64845 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64846
64847         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64848
64849 2007-10-15  Bruno Haible  <bruno@clisp.org>
64850
64851         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64852         <stddef.h> instead of <stdlib.h> since we only need NULL.
64853         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64854
64855 2007-10-15  Bruno Haible  <bruno@clisp.org>
64856
64857         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64858         Replace paragraph talking about LIBOBJS.
64859         Reported by Colin Watson <cjwatson@debian.org>.
64860
64861 2007-10-15  Bruno Haible  <bruno@clisp.org>
64862
64863         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64864         <stdlib.h> before using NULL.
64865
64866 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64867
64868         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64869         Reported by Albert Chin <china@thewrittenword.com>.
64870
64871 2007-10-14  Bruno Haible  <bruno@clisp.org>
64872
64873         * modules/iconv_open-utf-tests: New file.
64874         * tests/test-iconv-utf.c: New file.
64875
64876         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64877         * modules/iconv_open-utf: New file.
64878         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64879         (iconv, iconv_close): New declarations.
64880         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64881         be defined.
64882         (iconv_open): Add special handling of conversion between UTF-8 and
64883         UTF-{16,32}{BE,LE}.
64884         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64885         * lib/iconv_close.c: New file.
64886         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64887         gl_FUNC_ICONV_OPEN.
64888         (gl_FUNC_ICONV_OPEN): Use it.
64889         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64890         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64891         and REPLACE_ICONV_UTF.
64892         * modules/iconv_open (Depends-on): Add c-strcase.
64893         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64894         ICONV_CONST.
64895         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64896
64897 2007-10-13  Albert Chin  <china@thewrittenword.com>
64898             Bruno Haible  <bruno@clisp.org>
64899
64900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64901         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64902
64903 2007-10-13  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64906         defined, use the ISO C99 inline semantics.
64907         * lib/argp.h (ARGP_EI): Likewise.
64908
64909 2007-10-13  Bruno Haible  <bruno@clisp.org>
64910
64911         Handle 'inline' change in gcc 4.3.0.
64912         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64913         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64914         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64915         argp_fmtstream_point): Disable 'extern' declaration if the function
64916         definition is going to be provided inline.
64917         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64918         semantics, not the ISO C99 inline semantics.
64919         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64920         'extern' declaration if the function definition is going to be provided
64921         inline.
64922         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64923         the GNU C inline semantics, not the ISO C99 inline semantics. With
64924         GCC 4.2, avoid a warning.
64925
64926 2007-10-13  Bruno Haible  <bruno@clisp.org>
64927
64928         * lib/freading.h (freading): Enable the use of __freading for
64929         glibc >= 2.7.
64930         * lib/freading.c (freading): Likewise.
64931
64932 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64933
64934         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64935         "warning: C99 inline functions are not supported; using GNU89".
64936
64937 2007-10-12  Bruno Haible  <bruno@clisp.org>
64938
64939         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64940         of 2.
64941         * tests/test-ceilf2.c: New file.
64942         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64943
64944         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64945         * modules/ceilf-tests: Update.
64946
64947 2007-10-12  Bruno Haible  <bruno@clisp.org>
64948
64949         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64950         of 2.
64951         * tests/test-floorf2.c: New file.
64952         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64953
64954         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64955         * modules/floorf-tests: Update.
64956
64957 2007-10-12  Bruno Haible  <bruno@clisp.org>
64958
64959         * tests/test-trunc2.c: New file.
64960         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64961
64962         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64963         * modules/trunc-tests: Update.
64964
64965 2007-10-12  Bruno Haible  <bruno@clisp.org>
64966
64967         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64968         of 2.
64969         * tests/test-truncf2.c: New file.
64970         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64971
64972         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64973         * modules/truncf-tests: Update.
64974
64975 2007-10-11  Eric Blake  <ebb9@byu.net>
64976
64977         Don't claim strerror is broken on Interix.
64978         * doc/functions/strerror.texi (strerror): Known broken systems are
64979         now Solaris 8, and not Interix.
64980         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64981         Interix on cross-compile.
64982         Reported by Martin Koeppe in
64983         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64984
64985 2007-10-11  Bruno Haible  <bruno@clisp.org>
64986
64987         * modules/i-ring-tests: New file.
64988         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64989         instead of assert.
64990
64991 2007-10-11  Bruno Haible  <bruno@clisp.org>
64992
64993         * modules/filenamecat-tests: New file.
64994         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64995         * lib/filenamecat.c: Remove test code.
64996
64997 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65000
65001         * lib/strerror.c: Include <string.h> always, to test interface,
65002         and to remove the need for the dummy.
65003         Include intprops.h to compute width instead of doing it ourselves
65004         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65005         (strerror): Define it to return NULL if there's no system strerror.
65006         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65007         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65008         ancient pre-strerror Unix systems well any more.  Saying "unknown
65009         system error" is enough.
65010         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65011         simpler strerror.c implementation.
65012         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65013         Simplify the tests to reflect the simpler strerror implementation.
65014         * modules/strerror (Depends-on): Add intprops.
65015
65016 2007-10-09  Eric Blake  <ebb9@byu.net>
65017
65018         Silence test-fpending.
65019         * modules/fpending-tests (Files): Add wrapper script.
65020         * tests/test-fpending.sh: New file.
65021
65022 2007-10-09  Bruno Haible  <bruno@clisp.org>
65023
65024         * MODULES.html.sh (func_module): Don't create a hyperlink for
65025         function names like 'printf_frexp'.
65026         (Misc): Add crc, memxor.
65027         (Characteristics of floating types): New section.
65028         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65029         isnanf-nolibm, signbit, trunc, truncf, truncl.
65030         (Enhancements for ISO C 99 functions): New subsection Input/output.
65031         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65032         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65033         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65034         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65035         (Enhancements for POSIX:2001 functions): Add chdir-long.
65036         (File system functions): Add areadlink, chdir-safer, read-file.
65037         Remove cycle-check.
65038         (File system as inode set): New section.
65039         (Date and time): Add gethrxtime.
65040         (Multithreading): Add openmp.
65041         (Internationalization functions): Add localename.
65042         (Unicode string functions): Add unistr/u*-mbsnlen.
65043         (Support for maintaining and releasing projects): Add git-version-gen.
65044         (Lone files): Remove directories.
65045
65046 2007-10-08  Ben Pfaff  <blp@gnu.org>
65047
65048         * lib/xmalloca.h: Fix typo in comment.
65049
65050 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65051
65052         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65053         when avoiding problems with integer overflow.  Use a portable test
65054         instead.
65055
65056 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65057
65058         * modules/dummy (License): Change to LGPLv2+.
65059         * modules/float (License): Likewise
65060         * modules/realloc (License): Likewise
65061         * modules/stdlib (License): Likewise
65062
65063 2007-10-07  Bruno Haible  <bruno@clisp.org>
65064
65065         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65066         * floor.c (TWO_MANT_DIG): Likewise.
65067         * ceil.c (TWO_MANT_DIG): Likewise.
65068         Reported by Ben Pfaff.
65069
65070 2007-10-07  Bruno Haible  <bruno@clisp.org>
65071
65072         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65073         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65074         * lib/frexp.c (FUNC): Likewise.
65075         * lib/printf-frexp.h (printf_frexp): Likewise.
65076         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65077         * lib/printf-frexp.c (FUNC): Likewise.
65078         Suggested by Jim Meyering.
65079
65080 2007-10-07  Jim Meyering  <meyering@redhat.com>
65081
65082         Make xnanosleep's integer overflow test more robust.
65083         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65084         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65085
65086 2007-10-07  Bruno Haible  <bruno@clisp.org>
65087
65088         * NEWS: Mention the license change.
65089
65090         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65091         abbreviations in the modules files.
65092
65093         Change copyright notice from GPLv2+ to GPLv3+.
65094         * README: Change copyright notice.
65095         * MODULES.html.sh: Likewise.
65096         * build-aux/bootstrap.conf: Likewise.
65097         * build-aux/config.libpath: Likewise.
65098         * build-aux/csharpcomp.sh.in: Likewise.
65099         * build-aux/csharpexec.sh.in: Likewise.
65100         * build-aux/install-reloc: Likewise.
65101         * build-aux/javacomp.sh.in: Likewise.
65102         * build-aux/javaexec.sh.in: Likewise.
65103         * build-aux/ldd.sh.in: Likewise.
65104         * build-aux/reloc-ldflags: Likewise.
65105         * build-aux/relocatable.sh.in: Likewise.
65106         * build-aux/x-to-1.in: Likewise.
65107         * check-module: Likewise.
65108         * config/srclistvars.sh: Likewise.
65109         * gnulib-tool: Likewise.
65110         * lib/acl-internal.h: Likewise.
65111         * lib/acl.c: Likewise.
65112         * lib/acl.h: Likewise.
65113         * lib/acl_entries.c: Likewise.
65114         * lib/areadlink-with-size.c: Likewise.
65115         * lib/areadlink.c: Likewise.
65116         * lib/areadlink.h: Likewise.
65117         * lib/argmatch.c: Likewise.
65118         * lib/argmatch.h: Likewise.
65119         * lib/argp-ba.c: Likewise.
65120         * lib/argp-eexst.c: Likewise.
65121         * lib/argp-fmtstream.c: Likewise.
65122         * lib/argp-fmtstream.h: Likewise.
65123         * lib/argp-fs-xinl.c: Likewise.
65124         * lib/argp-help.c: Likewise.
65125         * lib/argp-namefrob.h: Likewise.
65126         * lib/argp-parse.c: Likewise.
65127         * lib/argp-pin.c: Likewise.
65128         * lib/argp-pv.c: Likewise.
65129         * lib/argp-pvh.c: Likewise.
65130         * lib/argp-xinl.c: Likewise.
65131         * lib/argp.h: Likewise.
65132         * lib/at-func.c: Likewise.
65133         * lib/atanl.c: Likewise.
65134         * lib/backupfile.c: Likewise.
65135         * lib/backupfile.h: Likewise.
65136         * lib/basename.c: Likewise.
65137         * lib/binary-io.h: Likewise.
65138         * lib/byteswap.in.h: Likewise.
65139         * lib/c-stack.c: Likewise.
65140         * lib/c-stack.h: Likewise.
65141         * lib/c-strcasestr.c: Likewise.
65142         * lib/c-strcasestr.h: Likewise.
65143         * lib/c-strstr.c: Likewise.
65144         * lib/c-strstr.h: Likewise.
65145         * lib/c-strtod.c: Likewise.
65146         * lib/calloc.c: Likewise.
65147         * lib/canon-host.c: Likewise.
65148         * lib/canon-host.h: Likewise.
65149         * lib/canonicalize-lgpl.c: Likewise.
65150         * lib/canonicalize.c: Likewise.
65151         * lib/canonicalize.h: Likewise.
65152         * lib/ceil.c: Likewise.
65153         * lib/ceilf.c: Likewise.
65154         * lib/ceill.c: Likewise.
65155         * lib/chdir-long.c: Likewise.
65156         * lib/chdir-long.h: Likewise.
65157         * lib/chdir-safer.c: Likewise.
65158         * lib/chdir-safer.h: Likewise.
65159         * lib/chown.c: Likewise.
65160         * lib/classpath.c: Likewise.
65161         * lib/classpath.h: Likewise.
65162         * lib/clean-temp.c: Likewise.
65163         * lib/clean-temp.h: Likewise.
65164         * lib/cloexec.c: Likewise.
65165         * lib/close-stream.c: Likewise.
65166         * lib/closein.c: Likewise.
65167         * lib/closein.h: Likewise.
65168         * lib/closeout.c: Likewise.
65169         * lib/closeout.h: Likewise.
65170         * lib/concat-filename.c: Likewise.
65171         * lib/copy-file.c: Likewise.
65172         * lib/copy-file.h: Likewise.
65173         * lib/count-one-bits.h: Likewise.
65174         * lib/crc.c: Likewise.
65175         * lib/crc.h: Likewise.
65176         * lib/creat-safer.c: Likewise.
65177         * lib/csharpcomp.c: Likewise.
65178         * lib/csharpcomp.h: Likewise.
65179         * lib/csharpexec.c: Likewise.
65180         * lib/csharpexec.h: Likewise.
65181         * lib/cycle-check.c: Likewise.
65182         * lib/cycle-check.h: Likewise.
65183         * lib/diacrit.c: Likewise.
65184         * lib/diacrit.h: Likewise.
65185         * lib/diffseq.h: Likewise.
65186         * lib/dirchownmod.c: Likewise.
65187         * lib/dirent.in.h: Likewise.
65188         * lib/dirfd.c: Likewise.
65189         * lib/dirfd.h: Likewise.
65190         * lib/dirname.c: Likewise.
65191         * lib/dirname.h: Likewise.
65192         * lib/dummy.c: Likewise.
65193         * lib/dup-safer.c: Likewise.
65194         * lib/dup2.c: Likewise.
65195         * lib/eealloc.h: Likewise.
65196         * lib/error.c: Likewise.
65197         * lib/error.h: Likewise.
65198         * lib/euidaccess.c: Likewise.
65199         * lib/exclude.c: Likewise.
65200         * lib/exclude.h: Likewise.
65201         * lib/execute.c: Likewise.
65202         * lib/execute.h: Likewise.
65203         * lib/exitfail.c: Likewise.
65204         * lib/exitfail.h: Likewise.
65205         * lib/expl.c: Likewise.
65206         * lib/fatal-signal.c: Likewise.
65207         * lib/fatal-signal.h: Likewise.
65208         * lib/fbufmode.c: Likewise.
65209         * lib/fbufmode.h: Likewise.
65210         * lib/fchdir.c: Likewise.
65211         * lib/fchmodat.c: Likewise.
65212         * lib/fchownat.c: Likewise.
65213         * lib/fcntl--.h: Likewise.
65214         * lib/fcntl-safer.h: Likewise.
65215         * lib/fcntl.in.h: Likewise.
65216         * lib/fd-safer.c: Likewise.
65217         * lib/fflush.c: Likewise.
65218         * lib/file-has-acl.c: Likewise.
65219         * lib/file-set.c: Likewise.
65220         * lib/file-type.c: Likewise.
65221         * lib/file-type.h: Likewise.
65222         * lib/fileblocks.c: Likewise.
65223         * lib/filemode.c: Likewise.
65224         * lib/filemode.h: Likewise.
65225         * lib/filename.h: Likewise.
65226         * lib/filenamecat.c: Likewise.
65227         * lib/filenamecat.h: Likewise.
65228         * lib/findprog.c: Likewise.
65229         * lib/findprog.h: Likewise.
65230         * lib/float.in.h: Likewise.
65231         * lib/floor.c: Likewise.
65232         * lib/floorf.c: Likewise.
65233         * lib/floorl.c: Likewise.
65234         * lib/fopen-safer.c: Likewise.
65235         * lib/fopen.c: Likewise.
65236         * lib/fpending.c: Likewise.
65237         * lib/fpending.h: Likewise.
65238         * lib/fprintf.c: Likewise.
65239         * lib/fprintftime.h: Likewise.
65240         * lib/fpucw.h: Likewise.
65241         * lib/fpurge.c: Likewise.
65242         * lib/fpurge.h: Likewise.
65243         * lib/freadable.c: Likewise.
65244         * lib/freadable.h: Likewise.
65245         * lib/freadahead.c: Likewise.
65246         * lib/freadahead.h: Likewise.
65247         * lib/freading.c: Likewise.
65248         * lib/freading.h: Likewise.
65249         * lib/free.c: Likewise.
65250         * lib/freopen.c: Likewise.
65251         * lib/frexp.c: Likewise.
65252         * lib/frexpl.c: Likewise.
65253         * lib/fseek.c: Likewise.
65254         * lib/fseterr.c: Likewise.
65255         * lib/fseterr.h: Likewise.
65256         * lib/fstatat.c: Likewise.
65257         * lib/fstrcmp.c: Likewise.
65258         * lib/fstrcmp.h: Likewise.
65259         * lib/fsusage.c: Likewise.
65260         * lib/fsusage.h: Likewise.
65261         * lib/ftell.c: Likewise.
65262         * lib/ftello.c: Likewise.
65263         * lib/fts-cycle.c: Likewise.
65264         * lib/fts.c: Likewise.
65265         * lib/fts_.h: Likewise.
65266         * lib/full-read.c: Likewise.
65267         * lib/full-read.h: Likewise.
65268         * lib/full-write.c: Likewise.
65269         * lib/full-write.h: Likewise.
65270         * lib/fwritable.c: Likewise.
65271         * lib/fwritable.h: Likewise.
65272         * lib/fwriteerror.c: Likewise.
65273         * lib/fwriteerror.h: Likewise.
65274         * lib/fwriting.c: Likewise.
65275         * lib/fwriting.h: Likewise.
65276         * lib/gcd.c: Likewise.
65277         * lib/gcd.h: Likewise.
65278         * lib/getcwd.c: Likewise.
65279         * lib/getdate.h: Likewise.
65280         * lib/getdate.y: Likewise.
65281         * lib/getdomainname.c: Likewise.
65282         * lib/getdomainname.h: Likewise.
65283         * lib/getgroups.c: Likewise.
65284         * lib/gethostname.c: Likewise.
65285         * lib/gethrxtime.c: Likewise.
65286         * lib/gethrxtime.h: Likewise.
65287         * lib/getloadavg.c: Likewise.
65288         * lib/getndelim2.c: Likewise.
65289         * lib/getndelim2.h: Likewise.
65290         * lib/getnline.c: Likewise.
65291         * lib/getnline.h: Likewise.
65292         * lib/getopt.c: Likewise.
65293         * lib/getopt.in.h: Likewise.
65294         * lib/getopt1.c: Likewise.
65295         * lib/getopt_int.h: Likewise.
65296         * lib/getpagesize.h: Likewise.
65297         * lib/getsubopt.c: Likewise.
65298         * lib/gettime.c: Likewise.
65299         * lib/getugroups.c: Likewise.
65300         * lib/getugroups.h: Likewise.
65301         * lib/getusershell.c: Likewise.
65302         * lib/gl_anyavltree_list1.h: Likewise.
65303         * lib/gl_anyavltree_list2.h: Likewise.
65304         * lib/gl_anyhash_list1.h: Likewise.
65305         * lib/gl_anyhash_list2.h: Likewise.
65306         * lib/gl_anylinked_list1.h: Likewise.
65307         * lib/gl_anylinked_list2.h: Likewise.
65308         * lib/gl_anyrbtree_list1.h: Likewise.
65309         * lib/gl_anyrbtree_list2.h: Likewise.
65310         * lib/gl_anytree_list1.h: Likewise.
65311         * lib/gl_anytree_list2.h: Likewise.
65312         * lib/gl_anytree_oset.h: Likewise.
65313         * lib/gl_anytreehash_list1.h: Likewise.
65314         * lib/gl_anytreehash_list2.h: Likewise.
65315         * lib/gl_array_list.c: Likewise.
65316         * lib/gl_array_list.h: Likewise.
65317         * lib/gl_array_oset.c: Likewise.
65318         * lib/gl_array_oset.h: Likewise.
65319         * lib/gl_avltree_list.c: Likewise.
65320         * lib/gl_avltree_list.h: Likewise.
65321         * lib/gl_avltree_oset.c: Likewise.
65322         * lib/gl_avltree_oset.h: Likewise.
65323         * lib/gl_avltreehash_list.c: Likewise.
65324         * lib/gl_avltreehash_list.h: Likewise.
65325         * lib/gl_carray_list.c: Likewise.
65326         * lib/gl_carray_list.h: Likewise.
65327         * lib/gl_linked_list.c: Likewise.
65328         * lib/gl_linked_list.h: Likewise.
65329         * lib/gl_linkedhash_list.c: Likewise.
65330         * lib/gl_linkedhash_list.h: Likewise.
65331         * lib/gl_list.c: Likewise.
65332         * lib/gl_list.h: Likewise.
65333         * lib/gl_oset.c: Likewise.
65334         * lib/gl_oset.h: Likewise.
65335         * lib/gl_rbtree_list.c: Likewise.
65336         * lib/gl_rbtree_list.h: Likewise.
65337         * lib/gl_rbtree_oset.c: Likewise.
65338         * lib/gl_rbtree_oset.h: Likewise.
65339         * lib/gl_rbtreehash_list.c: Likewise.
65340         * lib/gl_rbtreehash_list.h: Likewise.
65341         * lib/gl_sublist.c: Likewise.
65342         * lib/gl_sublist.h: Likewise.
65343         * lib/group-member.c: Likewise.
65344         * lib/group-member.h: Likewise.
65345         * lib/hard-locale.c: Likewise.
65346         * lib/hard-locale.h: Likewise.
65347         * lib/hash-pjw.c: Likewise.
65348         * lib/hash-pjw.h: Likewise.
65349         * lib/hash-triple.c: Likewise.
65350         * lib/hash.c: Likewise.
65351         * lib/hash.h: Likewise.
65352         * lib/human.c: Likewise.
65353         * lib/human.h: Likewise.
65354         * lib/i-ring.c: Likewise.
65355         * lib/i-ring.h: Likewise.
65356         * lib/idcache.c: Likewise.
65357         * lib/imaxabs.c: Likewise.
65358         * lib/imaxdiv.c: Likewise.
65359         * lib/inet_pton.c: Likewise.
65360         * lib/inet_pton.h: Likewise.
65361         * lib/intprops.h: Likewise.
65362         * lib/inttostr.c: Likewise.
65363         * lib/inttostr.h: Likewise.
65364         * lib/inttypes.in.h: Likewise.
65365         * lib/isapipe.c: Likewise.
65366         * lib/isdir.c: Likewise.
65367         * lib/isnan.c: Likewise.
65368         * lib/isnan.h: Likewise.
65369         * lib/isnanf.c: Likewise.
65370         * lib/isnanf.h: Likewise.
65371         * lib/isnanl-nolibm.h: Likewise.
65372         * lib/isnanl.c: Likewise.
65373         * lib/isnanl.h: Likewise.
65374         * lib/javacomp.c: Likewise.
65375         * lib/javacomp.h: Likewise.
65376         * lib/javaexec.c: Likewise.
65377         * lib/javaexec.h: Likewise.
65378         * lib/javaversion.c: Likewise.
65379         * lib/javaversion.h: Likewise.
65380         * lib/javaversion.java: Likewise.
65381         * lib/lbrkprop.h: Likewise.
65382         * lib/lchmod.h: Likewise.
65383         * lib/lchown.c: Likewise.
65384         * lib/ldexpl.c: Likewise.
65385         * lib/linebreak.c: Likewise.
65386         * lib/linebreak.h: Likewise.
65387         * lib/linebuffer.c: Likewise.
65388         * lib/linebuffer.h: Likewise.
65389         * lib/locale.in.h: Likewise.
65390         * lib/logl.c: Likewise.
65391         * lib/long-options.c: Likewise.
65392         * lib/long-options.h: Likewise.
65393         * lib/lstat.c: Likewise.
65394         * lib/lstat.h: Likewise.
65395         * lib/math.in.h: Likewise.
65396         * lib/mbchar.c: Likewise.
65397         * lib/mbchar.h: Likewise.
65398         * lib/mbfile.h: Likewise.
65399         * lib/mbiter.h: Likewise.
65400         * lib/mbscasecmp.c: Likewise.
65401         * lib/mbscasestr.c: Likewise.
65402         * lib/mbschr.c: Likewise.
65403         * lib/mbscspn.c: Likewise.
65404         * lib/mbslen.c: Likewise.
65405         * lib/mbsncasecmp.c: Likewise.
65406         * lib/mbsnlen.c: Likewise.
65407         * lib/mbspbrk.c: Likewise.
65408         * lib/mbspcasecmp.c: Likewise.
65409         * lib/mbsrchr.c: Likewise.
65410         * lib/mbssep.c: Likewise.
65411         * lib/mbsspn.c: Likewise.
65412         * lib/mbsstr.c: Likewise.
65413         * lib/mbstok_r.c: Likewise.
65414         * lib/mbswidth.c: Likewise.
65415         * lib/mbswidth.h: Likewise.
65416         * lib/mbuiter.h: Likewise.
65417         * lib/memcasecmp.c: Likewise.
65418         * lib/memcasecmp.h: Likewise.
65419         * lib/memchr.c: Likewise.
65420         * lib/memcmp.c: Likewise.
65421         * lib/memcoll.c: Likewise.
65422         * lib/memcoll.h: Likewise.
65423         * lib/memcpy.c: Likewise.
65424         * lib/memrchr.c: Likewise.
65425         * lib/mkancesdirs.c: Likewise.
65426         * lib/mkdir-p.c: Likewise.
65427         * lib/mkdir-p.h: Likewise.
65428         * lib/mkdir.c: Likewise.
65429         * lib/mkdirat.c: Likewise.
65430         * lib/mkdtemp.c: Likewise.
65431         * lib/mkstemp-safer.c: Likewise.
65432         * lib/mkstemp.c: Likewise.
65433         * lib/modechange.c: Likewise.
65434         * lib/modechange.h: Likewise.
65435         * lib/mountlist.c: Likewise.
65436         * lib/mountlist.h: Likewise.
65437         * lib/mpsort.c: Likewise.
65438         * lib/nanosleep.c: Likewise.
65439         * lib/obstack.c: Likewise.
65440         * lib/obstack.h: Likewise.
65441         * lib/open-safer.c: Likewise.
65442         * lib/open.c: Likewise.
65443         * lib/openat-die.c: Likewise.
65444         * lib/openat-priv.h: Likewise.
65445         * lib/openat-proc.c: Likewise.
65446         * lib/openat.c: Likewise.
65447         * lib/openat.h: Likewise.
65448         * lib/pagealign_alloc.c: Likewise.
65449         * lib/pagealign_alloc.h: Likewise.
65450         * lib/physmem.c: Likewise.
65451         * lib/physmem.h: Likewise.
65452         * lib/pipe-safer.c: Likewise.
65453         * lib/pipe.c: Likewise.
65454         * lib/pipe.h: Likewise.
65455         * lib/posixtm.c: Likewise.
65456         * lib/posixtm.h: Likewise.
65457         * lib/posixver.c: Likewise.
65458         * lib/printf-frexp.c: Likewise.
65459         * lib/printf-frexp.h: Likewise.
65460         * lib/printf-frexpl.c: Likewise.
65461         * lib/printf-frexpl.h: Likewise.
65462         * lib/printf.c: Likewise.
65463         * lib/progname.c: Likewise.
65464         * lib/progname.h: Likewise.
65465         * lib/progreloc.c: Likewise.
65466         * lib/putenv.c: Likewise.
65467         * lib/quote.c: Likewise.
65468         * lib/quote.h: Likewise.
65469         * lib/quotearg.c: Likewise.
65470         * lib/quotearg.h: Likewise.
65471         * lib/raise.c: Likewise.
65472         * lib/readline.c: Likewise.
65473         * lib/readline.h: Likewise.
65474         * lib/readlink.c: Likewise.
65475         * lib/readtokens.c: Likewise.
65476         * lib/readtokens.h: Likewise.
65477         * lib/readtokens0.c: Likewise.
65478         * lib/readtokens0.h: Likewise.
65479         * lib/readutmp.c: Likewise.
65480         * lib/readutmp.h: Likewise.
65481         * lib/realloc.c: Likewise.
65482         * lib/relocwrapper.c: Likewise.
65483         * lib/rename-dest-slash.c: Likewise.
65484         * lib/rename.c: Likewise.
65485         * lib/rmdir.c: Likewise.
65486         * lib/rpmatch.c: Likewise.
65487         * lib/safe-read.c: Likewise.
65488         * lib/safe-read.h: Likewise.
65489         * lib/safe-write.c: Likewise.
65490         * lib/safe-write.h: Likewise.
65491         * lib/same-inode.h: Likewise.
65492         * lib/same.c: Likewise.
65493         * lib/same.h: Likewise.
65494         * lib/save-cwd.c: Likewise.
65495         * lib/save-cwd.h: Likewise.
65496         * lib/savedir.c: Likewise.
65497         * lib/savedir.h: Likewise.
65498         * lib/savewd.c: Likewise.
65499         * lib/savewd.h: Likewise.
65500         * lib/search.in.h: Likewise.
65501         * lib/setenv.c: Likewise.
65502         * lib/setenv.h: Likewise.
65503         * lib/settime.c: Likewise.
65504         * lib/sh-quote.c: Likewise.
65505         * lib/sh-quote.h: Likewise.
65506         * lib/sig2str.c: Likewise.
65507         * lib/sig2str.h: Likewise.
65508         * lib/signal.in.h: Likewise.
65509         * lib/signbitd.c: Likewise.
65510         * lib/signbitf.c: Likewise.
65511         * lib/signbitl.c: Likewise.
65512         * lib/sigprocmask.c: Likewise.
65513         * lib/sincosl.c: Likewise.
65514         * lib/sleep.c: Likewise.
65515         * lib/sprintf.c: Likewise.
65516         * lib/sqrtl.c: Likewise.
65517         * lib/stat-time.h: Likewise.
65518         * lib/stdio--.h: Likewise.
65519         * lib/stdio-safer.h: Likewise.
65520         * lib/stdlib--.h: Likewise.
65521         * lib/stdlib-safer.h: Likewise.
65522         * lib/stdlib.in.h: Likewise.
65523         * lib/stpcpy.c: Likewise.
65524         * lib/stpncpy.c: Likewise.
65525         * lib/strchrnul.c: Likewise.
65526         * lib/strcspn.c: Likewise.
65527         * lib/strerror.c: Likewise.
65528         * lib/strftime.c: Likewise.
65529         * lib/strftime.h: Likewise.
65530         * lib/striconveh.c: Likewise.
65531         * lib/striconveh.h: Likewise.
65532         * lib/striconveha.c: Likewise.
65533         * lib/striconveha.h: Likewise.
65534         * lib/stripslash.c: Likewise.
65535         * lib/strnlen1.c: Likewise.
65536         * lib/strnlen1.h: Likewise.
65537         * lib/strtod.c: Likewise.
65538         * lib/strtoimax.c: Likewise.
65539         * lib/strtok_r.c: Likewise.
65540         * lib/strtol.c: Likewise.
65541         * lib/strtoll.c: Likewise.
65542         * lib/strtoul.c: Likewise.
65543         * lib/strtoull.c: Likewise.
65544         * lib/sysexits.in.h: Likewise.
65545         * lib/tempname.c: Likewise.
65546         * lib/tempname.h: Likewise.
65547         * lib/timespec.h: Likewise.
65548         * lib/tls.c: Likewise.
65549         * lib/tls.h: Likewise.
65550         * lib/tmpdir.c: Likewise.
65551         * lib/tmpdir.h: Likewise.
65552         * lib/tmpfile-safer.c: Likewise.
65553         * lib/tmpfile.c: Likewise.
65554         * lib/trigl.c: Likewise.
65555         * lib/trigl.h: Likewise.
65556         * lib/trim.c: Likewise.
65557         * lib/trim.h: Likewise.
65558         * lib/trunc.c: Likewise.
65559         * lib/truncf.c: Likewise.
65560         * lib/truncl.c: Likewise.
65561         * lib/tsearch.c: Likewise.
65562         * lib/unicodeio.c: Likewise.
65563         * lib/unicodeio.h: Likewise.
65564         * lib/unistd--.h: Likewise.
65565         * lib/unistd-safer.h: Likewise.
65566         * lib/unistdio/ulc-fprintf.c: Likewise.
65567         * lib/unistdio/ulc-vfprintf.c: Likewise.
65568         * lib/unlinkdir.c: Likewise.
65569         * lib/unlinkdir.h: Likewise.
65570         * lib/unlocked-io.h: Likewise.
65571         * lib/unsetenv.c: Likewise.
65572         * lib/userspec.c: Likewise.
65573         * lib/utime.c: Likewise.
65574         * lib/utimecmp.c: Likewise.
65575         * lib/utimecmp.h: Likewise.
65576         * lib/utimens.c: Likewise.
65577         * lib/verify.h: Likewise.
65578         * lib/verror.c: Likewise.
65579         * lib/verror.h: Likewise.
65580         * lib/version-etc-fsf.c: Likewise.
65581         * lib/version-etc.c: Likewise.
65582         * lib/version-etc.h: Likewise.
65583         * lib/vfprintf.c: Likewise.
65584         * lib/vprintf.c: Likewise.
65585         * lib/vsprintf.c: Likewise.
65586         * lib/w32spawn.h: Likewise.
65587         * lib/wait-process.c: Likewise.
65588         * lib/wait-process.h: Likewise.
65589         * lib/wcwidth.c: Likewise.
65590         * lib/write-any-file.c: Likewise.
65591         * lib/xalloc-die.c: Likewise.
65592         * lib/xalloc.h: Likewise.
65593         * lib/xasprintf.c: Likewise.
65594         * lib/xgetcwd.c: Likewise.
65595         * lib/xgetcwd.h: Likewise.
65596         * lib/xgetdomainname.c: Likewise.
65597         * lib/xgetdomainname.h: Likewise.
65598         * lib/xgethostname.c: Likewise.
65599         * lib/xmalloc.c: Likewise.
65600         * lib/xmalloca.c: Likewise.
65601         * lib/xmalloca.h: Likewise.
65602         * lib/xmemcoll.c: Likewise.
65603         * lib/xnanosleep.c: Likewise.
65604         * lib/xreadlink.c: Likewise.
65605         * lib/xreadlink.h: Likewise.
65606         * lib/xsetenv.c: Likewise.
65607         * lib/xsetenv.h: Likewise.
65608         * lib/xstriconv.c: Likewise.
65609         * lib/xstriconv.h: Likewise.
65610         * lib/xstrndup.c: Likewise.
65611         * lib/xstrndup.h: Likewise.
65612         * lib/xstrtod.c: Likewise.
65613         * lib/xstrtod.h: Likewise.
65614         * lib/xstrtol-error.c: Likewise.
65615         * lib/xstrtol.c: Likewise.
65616         * lib/xstrtol.h: Likewise.
65617         * lib/xtime.h: Likewise.
65618         * lib/xvasprintf.c: Likewise.
65619         * lib/xvasprintf.h: Likewise.
65620         * lib/yesno.c: Likewise.
65621         * lib/yesno.h: Likewise.
65622         * posix-modules: Likewise.
65623         * tests/test-alloca-opt.c: Likewise.
65624         * tests/test-arcfour.c: Likewise.
65625         * tests/test-arctwo.c: Likewise.
65626         * tests/test-argmatch.c: Likewise.
65627         * tests/test-argp-2.sh: Likewise.
65628         * tests/test-argp.c: Likewise.
65629         * tests/test-arpa_inet.c: Likewise.
65630         * tests/test-array_list.c: Likewise.
65631         * tests/test-array_oset.c: Likewise.
65632         * tests/test-atexit.c: Likewise.
65633         * tests/test-avltree_list.c: Likewise.
65634         * tests/test-avltree_oset.c: Likewise.
65635         * tests/test-avltreehash_list.c: Likewise.
65636         * tests/test-base64.c: Likewise.
65637         * tests/test-binary-io.c: Likewise.
65638         * tests/test-byteswap.c: Likewise.
65639         * tests/test-c-ctype.c: Likewise.
65640         * tests/test-c-strcasecmp.c: Likewise.
65641         * tests/test-c-strcasestr.c: Likewise.
65642         * tests/test-c-strncasecmp.c: Likewise.
65643         * tests/test-c-strstr.c: Likewise.
65644         * tests/test-canonicalize-lgpl.c: Likewise.
65645         * tests/test-canonicalize.c: Likewise.
65646         * tests/test-carray_list.c: Likewise.
65647         * tests/test-ceilf.c: Likewise.
65648         * tests/test-ceill.c: Likewise.
65649         * tests/test-count-one-bits.c: Likewise.
65650         * tests/test-crc.c: Likewise.
65651         * tests/test-dirname.c: Likewise.
65652         * tests/test-fbufmode.c: Likewise.
65653         * tests/test-fcntl.c: Likewise.
65654         * tests/test-fflush.c: Likewise.
65655         * tests/test-floorf.c: Likewise.
65656         * tests/test-floorl.c: Likewise.
65657         * tests/test-fopen.c: Likewise.
65658         * tests/test-fprintf-posix.c: Likewise.
65659         * tests/test-fprintf-posix.h: Likewise.
65660         * tests/test-fpurge.c: Likewise.
65661         * tests/test-freadable.c: Likewise.
65662         * tests/test-freadahead.c: Likewise.
65663         * tests/test-freading.c: Likewise.
65664         * tests/test-freopen.c: Likewise.
65665         * tests/test-frexp.c: Likewise.
65666         * tests/test-frexpl.c: Likewise.
65667         * tests/test-fseek.c: Likewise.
65668         * tests/test-fseeko.c: Likewise.
65669         * tests/test-fseterr.c: Likewise.
65670         * tests/test-fstrcmp.c: Likewise.
65671         * tests/test-ftell.c: Likewise.
65672         * tests/test-ftello.c: Likewise.
65673         * tests/test-fwritable.c: Likewise.
65674         * tests/test-fwriting.c: Likewise.
65675         * tests/test-getaddrinfo.c: Likewise.
65676         * tests/test-getpass.c: Likewise.
65677         * tests/test-gettimeofday.c: Likewise.
65678         * tests/test-hmac-md5.c: Likewise.
65679         * tests/test-hmac-sha1.c: Likewise.
65680         * tests/test-iconv.c: Likewise.
65681         * tests/test-iconvme.c: Likewise.
65682         * tests/test-inttypes.c: Likewise.
65683         * tests/test-isnan.c: Likewise.
65684         * tests/test-isnanf.c: Likewise.
65685         * tests/test-isnanl-nolibm.c: Likewise.
65686         * tests/test-isnanl.c: Likewise.
65687         * tests/test-isnanl.h: Likewise.
65688         * tests/test-ldexpl.c: Likewise.
65689         * tests/test-linked_list.c: Likewise.
65690         * tests/test-linkedhash_list.c: Likewise.
65691         * tests/test-locale.c: Likewise.
65692         * tests/test-localename.c: Likewise.
65693         * tests/test-lock.c: Likewise.
65694         * tests/test-lseek.c: Likewise.
65695         * tests/test-malloca.c: Likewise.
65696         * tests/test-math.c: Likewise.
65697         * tests/test-mbscasecmp.c: Likewise.
65698         * tests/test-mbscasestr1.c: Likewise.
65699         * tests/test-mbscasestr2.c: Likewise.
65700         * tests/test-mbscasestr3.c: Likewise.
65701         * tests/test-mbscasestr4.c: Likewise.
65702         * tests/test-mbschr.c: Likewise.
65703         * tests/test-mbscspn.c: Likewise.
65704         * tests/test-mbsncasecmp.c: Likewise.
65705         * tests/test-mbspbrk.c: Likewise.
65706         * tests/test-mbspcasecmp.c: Likewise.
65707         * tests/test-mbsrchr.c: Likewise.
65708         * tests/test-mbsspn.c: Likewise.
65709         * tests/test-mbsstr1.c: Likewise.
65710         * tests/test-mbsstr2.c: Likewise.
65711         * tests/test-mbsstr3.c: Likewise.
65712         * tests/test-md5.c: Likewise.
65713         * tests/test-memmem.c: Likewise.
65714         * tests/test-netinet_in.c: Likewise.
65715         * tests/test-open.c: Likewise.
65716         * tests/test-printf-frexp.c: Likewise.
65717         * tests/test-printf-frexpl.c: Likewise.
65718         * tests/test-printf-posix.c: Likewise.
65719         * tests/test-printf-posix.h: Likewise.
65720         * tests/test-rbtree_list.c: Likewise.
65721         * tests/test-rbtree_oset.c: Likewise.
65722         * tests/test-rbtreehash_list.c: Likewise.
65723         * tests/test-read-file.c: Likewise.
65724         * tests/test-rijndael.c: Likewise.
65725         * tests/test-search.c: Likewise.
65726         * tests/test-signbit.c: Likewise.
65727         * tests/test-sleep.c: Likewise.
65728         * tests/test-snprintf-posix.c: Likewise.
65729         * tests/test-snprintf-posix.h: Likewise.
65730         * tests/test-snprintf.c: Likewise.
65731         * tests/test-sprintf-posix.c: Likewise.
65732         * tests/test-sprintf-posix.h: Likewise.
65733         * tests/test-stat-time.c: Likewise.
65734         * tests/test-stdbool.c: Likewise.
65735         * tests/test-stdint.c: Likewise.
65736         * tests/test-stdio.c: Likewise.
65737         * tests/test-stdlib.c: Likewise.
65738         * tests/test-stpncpy.c: Likewise.
65739         * tests/test-strcasestr.c: Likewise.
65740         * tests/test-striconv.c: Likewise.
65741         * tests/test-striconveh.c: Likewise.
65742         * tests/test-striconveha.c: Likewise.
65743         * tests/test-string.c: Likewise.
65744         * tests/test-sys_select.c: Likewise.
65745         * tests/test-sys_socket.c: Likewise.
65746         * tests/test-sys_stat.c: Likewise.
65747         * tests/test-sys_time.c: Likewise.
65748         * tests/test-sysexits.c: Likewise.
65749         * tests/test-time.c: Likewise.
65750         * tests/test-tls.c: Likewise.
65751         * tests/test-trunc.c: Likewise.
65752         * tests/test-truncf.c: Likewise.
65753         * tests/test-truncl.c: Likewise.
65754         * tests/test-unistd.c: Likewise.
65755         * tests/test-vasnprintf-posix.c: Likewise.
65756         * tests/test-vasnprintf-posix2.c: Likewise.
65757         * tests/test-vasnprintf.c: Likewise.
65758         * tests/test-vasprintf-posix.c: Likewise.
65759         * tests/test-vasprintf.c: Likewise.
65760         * tests/test-verify.c: Likewise.
65761         * tests/test-vfprintf-posix.c: Likewise.
65762         * tests/test-vprintf-posix.c: Likewise.
65763         * tests/test-vsnprintf-posix.c: Likewise.
65764         * tests/test-vsnprintf.c: Likewise.
65765         * tests/test-vsprintf-posix.c: Likewise.
65766         * tests/test-wchar.c: Likewise.
65767         * tests/test-wctype.c: Likewise.
65768         * tests/test-wcwidth.c: Likewise.
65769         * tests/test-xstrtol.c: Likewise.
65770         * tests/test-xvasprintf.c: Likewise.
65771         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65772         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65773         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65774         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65775         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65776         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65777         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65778         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65779         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65780         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65781         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65782         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65783         * tests/uniname/test-uninames.c: Likewise.
65784         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65785         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65786         * tests/unistdio/test-u16-printf1.h: Likewise.
65787         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65788         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65789         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65790         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65791         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65792         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65793         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65794         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65795         * tests/unistdio/test-u32-printf1.h: Likewise.
65796         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65797         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65798         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65799         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65800         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65801         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65802         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65803         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65804         * tests/unistdio/test-u8-printf1.h: Likewise.
65805         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65806         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65807         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65808         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65809         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65810         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65811         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65812         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65813         * tests/unistdio/test-ulc-printf1.h: Likewise.
65814         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65815         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65816         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65817         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65818         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65819         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65820         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65821         * tests/uniwidth/test-u16-width.c: Likewise.
65822         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65823         * tests/uniwidth/test-u32-width.c: Likewise.
65824         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65825         * tests/uniwidth/test-u8-width.c: Likewise.
65826         * tests/uniwidth/test-uc_width.c: Likewise.
65827         * config/srclist-update: Likewise.
65828         (fixlicense): Update to GPLv3+.
65829
65830         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65831         * tests/test-tsearch.c: Change copyright notice.
65832
65833         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65834         * lib/c-strcaseeq.h: Change copyright notice.
65835         * lib/streq.h: Likewise.
65836         * lib/uniconv.h: Likewise.
65837         * lib/uniconv/u-conv-from-enc.h: Likewise.
65838         * lib/uniconv/u-conv-to-enc.h: Likewise.
65839         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65840         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65841         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65842         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65843         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65844         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65845         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65846         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65847         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65848         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65849         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65850         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65851         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65852         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65853         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65854         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65855         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65856         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65857         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65858         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65859         * lib/uniname.h: Likewise.
65860         * lib/uniname/uniname.c: Likewise.
65861         * lib/unistdio.h: Likewise.
65862         * lib/unistdio/u-asnprintf.h: Likewise.
65863         * lib/unistdio/u-asprintf.h: Likewise.
65864         * lib/unistdio/u-printf-args.c: Likewise.
65865         * lib/unistdio/u-printf-args.h: Likewise.
65866         * lib/unistdio/u-printf-parse.h: Likewise.
65867         * lib/unistdio/u-snprintf.h: Likewise.
65868         * lib/unistdio/u-sprintf.h: Likewise.
65869         * lib/unistdio/u-vasprintf.h: Likewise.
65870         * lib/unistdio/u-vsnprintf.h: Likewise.
65871         * lib/unistdio/u-vsprintf.h: Likewise.
65872         * lib/unistdio/u16-asnprintf.c: Likewise.
65873         * lib/unistdio/u16-asprintf.c: Likewise.
65874         * lib/unistdio/u16-printf-parse.c: Likewise.
65875         * lib/unistdio/u16-snprintf.c: Likewise.
65876         * lib/unistdio/u16-sprintf.c: Likewise.
65877         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65878         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65879         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65880         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65881         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65882         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65883         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65884         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65885         * lib/unistdio/u16-vasnprintf.c: Likewise.
65886         * lib/unistdio/u16-vasprintf.c: Likewise.
65887         * lib/unistdio/u16-vsnprintf.c: Likewise.
65888         * lib/unistdio/u16-vsprintf.c: Likewise.
65889         * lib/unistdio/u32-asnprintf.c: Likewise.
65890         * lib/unistdio/u32-asprintf.c: Likewise.
65891         * lib/unistdio/u32-printf-parse.c: Likewise.
65892         * lib/unistdio/u32-snprintf.c: Likewise.
65893         * lib/unistdio/u32-sprintf.c: Likewise.
65894         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65895         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65896         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65897         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65898         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65899         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65900         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65901         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65902         * lib/unistdio/u32-vasnprintf.c: Likewise.
65903         * lib/unistdio/u32-vasprintf.c: Likewise.
65904         * lib/unistdio/u32-vsnprintf.c: Likewise.
65905         * lib/unistdio/u32-vsprintf.c: Likewise.
65906         * lib/unistdio/u8-asnprintf.c: Likewise.
65907         * lib/unistdio/u8-asprintf.c: Likewise.
65908         * lib/unistdio/u8-printf-parse.c: Likewise.
65909         * lib/unistdio/u8-snprintf.c: Likewise.
65910         * lib/unistdio/u8-sprintf.c: Likewise.
65911         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65912         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65913         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65914         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65915         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65916         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65917         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65918         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65919         * lib/unistdio/u8-vasnprintf.c: Likewise.
65920         * lib/unistdio/u8-vasprintf.c: Likewise.
65921         * lib/unistdio/u8-vsnprintf.c: Likewise.
65922         * lib/unistdio/u8-vsprintf.c: Likewise.
65923         * lib/unistdio/ulc-asnprintf.c: Likewise.
65924         * lib/unistdio/ulc-asprintf.c: Likewise.
65925         * lib/unistdio/ulc-printf-parse.c: Likewise.
65926         * lib/unistdio/ulc-snprintf.c: Likewise.
65927         * lib/unistdio/ulc-sprintf.c: Likewise.
65928         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65929         * lib/unistdio/ulc-vasprintf.c: Likewise.
65930         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65931         * lib/unistdio/ulc-vsprintf.c: Likewise.
65932         * lib/unistr.h: Likewise.
65933         * lib/unistr/u-cpy-alloc.h: Likewise.
65934         * lib/unistr/u-cpy.h: Likewise.
65935         * lib/unistr/u-endswith.h: Likewise.
65936         * lib/unistr/u-move.h: Likewise.
65937         * lib/unistr/u-set.h: Likewise.
65938         * lib/unistr/u-startswith.h: Likewise.
65939         * lib/unistr/u-stpcpy.h: Likewise.
65940         * lib/unistr/u-stpncpy.h: Likewise.
65941         * lib/unistr/u-strcat.h: Likewise.
65942         * lib/unistr/u-strcpy.h: Likewise.
65943         * lib/unistr/u-strcspn.h: Likewise.
65944         * lib/unistr/u-strdup.h: Likewise.
65945         * lib/unistr/u-strlen.h: Likewise.
65946         * lib/unistr/u-strncat.h: Likewise.
65947         * lib/unistr/u-strncpy.h: Likewise.
65948         * lib/unistr/u-strnlen.h: Likewise.
65949         * lib/unistr/u-strpbrk.h: Likewise.
65950         * lib/unistr/u-strspn.h: Likewise.
65951         * lib/unistr/u-strstr.h: Likewise.
65952         * lib/unistr/u-strtok.h: Likewise.
65953         * lib/unistr/u16-check.c: Likewise.
65954         * lib/unistr/u16-chr.c: Likewise.
65955         * lib/unistr/u16-cmp.c: Likewise.
65956         * lib/unistr/u16-cpy-alloc.c: Likewise.
65957         * lib/unistr/u16-cpy.c: Likewise.
65958         * lib/unistr/u16-endswith.c: Likewise.
65959         * lib/unistr/u16-mblen.c: Likewise.
65960         * lib/unistr/u16-mbsnlen.c: Likewise.
65961         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65962         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65963         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65964         * lib/unistr/u16-mbtouc.c: Likewise.
65965         * lib/unistr/u16-mbtoucr.c: Likewise.
65966         * lib/unistr/u16-move.c: Likewise.
65967         * lib/unistr/u16-next.c: Likewise.
65968         * lib/unistr/u16-prev.c: Likewise.
65969         * lib/unistr/u16-set.c: Likewise.
65970         * lib/unistr/u16-startswith.c: Likewise.
65971         * lib/unistr/u16-stpcpy.c: Likewise.
65972         * lib/unistr/u16-stpncpy.c: Likewise.
65973         * lib/unistr/u16-strcat.c: Likewise.
65974         * lib/unistr/u16-strchr.c: Likewise.
65975         * lib/unistr/u16-strcmp.c: Likewise.
65976         * lib/unistr/u16-strcpy.c: Likewise.
65977         * lib/unistr/u16-strcspn.c: Likewise.
65978         * lib/unistr/u16-strdup.c: Likewise.
65979         * lib/unistr/u16-strlen.c: Likewise.
65980         * lib/unistr/u16-strmblen.c: Likewise.
65981         * lib/unistr/u16-strmbtouc.c: Likewise.
65982         * lib/unistr/u16-strncat.c: Likewise.
65983         * lib/unistr/u16-strncmp.c: Likewise.
65984         * lib/unistr/u16-strncpy.c: Likewise.
65985         * lib/unistr/u16-strnlen.c: Likewise.
65986         * lib/unistr/u16-strpbrk.c: Likewise.
65987         * lib/unistr/u16-strrchr.c: Likewise.
65988         * lib/unistr/u16-strspn.c: Likewise.
65989         * lib/unistr/u16-strstr.c: Likewise.
65990         * lib/unistr/u16-strtok.c: Likewise.
65991         * lib/unistr/u16-to-u32.c: Likewise.
65992         * lib/unistr/u16-to-u8.c: Likewise.
65993         * lib/unistr/u16-uctomb-aux.c: Likewise.
65994         * lib/unistr/u16-uctomb.c: Likewise.
65995         * lib/unistr/u32-check.c: Likewise.
65996         * lib/unistr/u32-chr.c: Likewise.
65997         * lib/unistr/u32-cmp.c: Likewise.
65998         * lib/unistr/u32-cpy-alloc.c: Likewise.
65999         * lib/unistr/u32-cpy.c: Likewise.
66000         * lib/unistr/u32-endswith.c: Likewise.
66001         * lib/unistr/u32-mblen.c: Likewise.
66002         * lib/unistr/u32-mbsnlen.c: Likewise.
66003         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66004         * lib/unistr/u32-mbtouc.c: Likewise.
66005         * lib/unistr/u32-mbtoucr.c: Likewise.
66006         * lib/unistr/u32-move.c: Likewise.
66007         * lib/unistr/u32-next.c: Likewise.
66008         * lib/unistr/u32-prev.c: Likewise.
66009         * lib/unistr/u32-set.c: Likewise.
66010         * lib/unistr/u32-startswith.c: Likewise.
66011         * lib/unistr/u32-stpcpy.c: Likewise.
66012         * lib/unistr/u32-stpncpy.c: Likewise.
66013         * lib/unistr/u32-strcat.c: Likewise.
66014         * lib/unistr/u32-strchr.c: Likewise.
66015         * lib/unistr/u32-strcmp.c: Likewise.
66016         * lib/unistr/u32-strcpy.c: Likewise.
66017         * lib/unistr/u32-strcspn.c: Likewise.
66018         * lib/unistr/u32-strdup.c: Likewise.
66019         * lib/unistr/u32-strlen.c: Likewise.
66020         * lib/unistr/u32-strmblen.c: Likewise.
66021         * lib/unistr/u32-strmbtouc.c: Likewise.
66022         * lib/unistr/u32-strncat.c: Likewise.
66023         * lib/unistr/u32-strncmp.c: Likewise.
66024         * lib/unistr/u32-strncpy.c: Likewise.
66025         * lib/unistr/u32-strnlen.c: Likewise.
66026         * lib/unistr/u32-strpbrk.c: Likewise.
66027         * lib/unistr/u32-strrchr.c: Likewise.
66028         * lib/unistr/u32-strspn.c: Likewise.
66029         * lib/unistr/u32-strstr.c: Likewise.
66030         * lib/unistr/u32-strtok.c: Likewise.
66031         * lib/unistr/u32-to-u16.c: Likewise.
66032         * lib/unistr/u32-to-u8.c: Likewise.
66033         * lib/unistr/u32-uctomb.c: Likewise.
66034         * lib/unistr/u8-check.c: Likewise.
66035         * lib/unistr/u8-chr.c: Likewise.
66036         * lib/unistr/u8-cmp.c: Likewise.
66037         * lib/unistr/u8-cpy-alloc.c: Likewise.
66038         * lib/unistr/u8-cpy.c: Likewise.
66039         * lib/unistr/u8-endswith.c: Likewise.
66040         * lib/unistr/u8-mblen.c: Likewise.
66041         * lib/unistr/u8-mbsnlen.c: Likewise.
66042         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66043         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66044         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66045         * lib/unistr/u8-mbtouc.c: Likewise.
66046         * lib/unistr/u8-mbtoucr.c: Likewise.
66047         * lib/unistr/u8-move.c: Likewise.
66048         * lib/unistr/u8-next.c: Likewise.
66049         * lib/unistr/u8-prev.c: Likewise.
66050         * lib/unistr/u8-set.c: Likewise.
66051         * lib/unistr/u8-startswith.c: Likewise.
66052         * lib/unistr/u8-stpcpy.c: Likewise.
66053         * lib/unistr/u8-stpncpy.c: Likewise.
66054         * lib/unistr/u8-strcat.c: Likewise.
66055         * lib/unistr/u8-strchr.c: Likewise.
66056         * lib/unistr/u8-strcmp.c: Likewise.
66057         * lib/unistr/u8-strcpy.c: Likewise.
66058         * lib/unistr/u8-strcspn.c: Likewise.
66059         * lib/unistr/u8-strdup.c: Likewise.
66060         * lib/unistr/u8-strlen.c: Likewise.
66061         * lib/unistr/u8-strmblen.c: Likewise.
66062         * lib/unistr/u8-strmbtouc.c: Likewise.
66063         * lib/unistr/u8-strncat.c: Likewise.
66064         * lib/unistr/u8-strncmp.c: Likewise.
66065         * lib/unistr/u8-strncpy.c: Likewise.
66066         * lib/unistr/u8-strnlen.c: Likewise.
66067         * lib/unistr/u8-strpbrk.c: Likewise.
66068         * lib/unistr/u8-strrchr.c: Likewise.
66069         * lib/unistr/u8-strspn.c: Likewise.
66070         * lib/unistr/u8-strstr.c: Likewise.
66071         * lib/unistr/u8-strtok.c: Likewise.
66072         * lib/unistr/u8-to-u16.c: Likewise.
66073         * lib/unistr/u8-to-u32.c: Likewise.
66074         * lib/unistr/u8-uctomb-aux.c: Likewise.
66075         * lib/unistr/u8-uctomb.c: Likewise.
66076         * lib/unitypes.h: Likewise.
66077         * lib/uniwidth.h: Likewise.
66078         * lib/uniwidth/cjk.h: Likewise.
66079         * lib/uniwidth/u16-strwidth.c: Likewise.
66080         * lib/uniwidth/u16-width.c: Likewise.
66081         * lib/uniwidth/u32-strwidth.c: Likewise.
66082         * lib/uniwidth/u32-width.c: Likewise.
66083         * lib/uniwidth/u8-strwidth.c: Likewise.
66084         * lib/uniwidth/u8-width.c: Likewise.
66085         * lib/uniwidth/width.c: Likewise.
66086
66087 2007-10-07  Bruno Haible  <bruno@clisp.org>
66088
66089         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66090         The file is still under LGPL (see modules/inttypes).
66091
66092 2007-10-06  Bruno Haible  <bruno@clisp.org>
66093
66094         * modules/trunc (Dependencies): Add 'extensions'.
66095         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66096         Reported by Ben Pfaff <blp@gnu.org>.
66097
66098 2007-10-06  Bruno Haible  <bruno@clisp.org>
66099
66100         * modules/freopen-tests: New file.
66101         * tests/test-freopen.c: New file.
66102
66103         * modules/fopen-tests: New file.
66104         * tests/test-fopen.c: New file.
66105
66106         * modules/fopen: New file.
66107         * lib/fopen.c: New file.
66108         * m4/fopen.m4: New file.
66109         * modules/freopen: New file.
66110         * lib/freopen.c: New file.
66111         * m4/freopen.m4: New file.
66112         * lib/stdio.in.h (fopen, freopen): New declarations.
66113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66114         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66115         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66116         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66117         * doc/functions/fopen.texi: Mention the 'fopen' module.
66118         * doc/functions/freopen.texi: Mention the 'freopen' module.
66119
66120 2007-10-06  Bruno Haible  <bruno@clisp.org>
66121
66122         * modules/open-tests: New file.
66123         * tests/test-open.c: New file.
66124
66125         * modules/open: New file.
66126         * lib/open.c: New file.
66127         * m4/open.m4: New file.
66128         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66129         lib/open.c does.
66130         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66131         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66132         macros.
66133         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66134         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66135         REPLACE_OPEN.
66136         * doc/functions/open.texi: Mention the 'open' module.
66137
66138 2007-10-04  Bruno Haible  <bruno@clisp.org>
66139
66140         * modules/ceill-tests: New file.
66141         * tests/test-ceill.c: New file.
66142
66143         * modules/ceill: New file.
66144         * lib/ceill.c: Replace entire file.
66145         * m4/ceill.m4: New file.
66146         * lib/math.in.h (ceill): Replace declaration.
66147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66148         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66149         * doc/functions/ceill.texi: Mention the 'ceill' module.
66150         * modules/mathl (Files): Remove lib/ceill.c.
66151         (Depends-on): Add ceill.
66152
66153 2007-10-04  Bruno Haible  <bruno@clisp.org>
66154
66155         * modules/ceilf-tests: New file.
66156         * tests/test-ceilf.c: New file.
66157
66158         * modules/ceilf: New file.
66159         * lib/ceil.c: New file.
66160         * lib/ceilf.c: New file.
66161         * m4/ceilf.m4: New file.
66162         * lib/math.in.h (ceilf): New declaration.
66163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66164         HAVE_DECL_CEILF.
66165         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66166         HAVE_DECL_CEILF.
66167         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66168
66169 2007-10-04  Bruno Haible  <bruno@clisp.org>
66170
66171         * modules/floorl-tests: New file.
66172         * tests/test-floorl.c: New file.
66173
66174         * modules/floorl: New file.
66175         * lib/floorl.c: Replace entire file.
66176         * m4/floorl.m4: New file.
66177         * lib/math.in.h (floorl): Replace declaration.
66178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66179         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66180         * doc/functions/floorl.texi: Mention the 'floorl' module.
66181         * modules/mathl (Files): Remove lib/floorl.c.
66182         (Depends-on): Add floorl.
66183
66184 2007-10-04  Bruno Haible  <bruno@clisp.org>
66185
66186         * modules/floorf-tests: New file.
66187         * tests/test-floorf.c: New file.
66188
66189         * modules/floorf: New file.
66190         * lib/floor.c: New file.
66191         * lib/floorf.c: New file.
66192         * m4/floorf.m4: New file.
66193         * lib/math.in.h (floorf): New declaration.
66194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66195         HAVE_DECL_FLOORF.
66196         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66197         HAVE_DECL_FLOORF.
66198         * doc/functions/floorf.texi: Mention the 'floorf' module.
66199
66200 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66201             Bruno Haible  <bruno@clisp.org>
66202
66203         Advertise for the Git server instead of the CVS server.
66204         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66205         repository instead of the CVS one.
66206         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66207         about all VCS systems generically.
66208         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66209
66210 2007-10-04  Bruno Haible  <bruno@clisp.org>
66211
66212         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66213         means.
66214         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66215
66216 2007-10-04  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/truncl-tests: New file.
66219         * tests/test-truncl.c: New file.
66220
66221         * modules/truncl: New file.
66222         * lib/truncl.c: New file.
66223         * m4/truncl.m4: New file.
66224         * lib/math.in.h (truncl): New declaration.
66225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66226         HAVE_DECL_TRUNCL.
66227         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66228         HAVE_DECL_TRUNCL.
66229         * doc/functions/truncl.texi: Mention the 'truncl' module.
66230
66231 2007-10-04  Bruno Haible  <bruno@clisp.org>
66232
66233         * modules/truncf-tests: New file.
66234         * tests/test-truncf.c: New file.
66235
66236         * modules/truncf: New file.
66237         * lib/trunc.c: Make paramerizable through USE_* macros.
66238         * lib/truncf.c: New file.
66239         * m4/truncf.m4: New file.
66240         * lib/math.in.h (truncf): New declaration.
66241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66242         HAVE_DECL_TRUNCF.
66243         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66244         HAVE_DECL_TRUNCF.
66245         * doc/functions/truncf.texi: Mention the 'truncf' module.
66246
66247 2007-10-03  Bruno Haible  <bruno@clisp.org>
66248
66249         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66250         augmentation also for tests modules.
66251         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66252         * modules/atexit-tests (Makefile.am): Likewise.
66253         * modules/binary-io-tests (Makefile.am): Likewise.
66254         * modules/c-strcase-tests (Makefile.am): Likewise.
66255         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66256         * modules/canonicalize-tests (Makefile.am): Likewise.
66257         * modules/closein-tests (Makefile.am): Likewise.
66258         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66259         * modules/freadahead-tests (Makefile.am): Likewise.
66260         * modules/fseek-tests (Makefile.am): Likewise.
66261         * modules/fseeko-tests (Makefile.am): Likewise.
66262         * modules/ftell-tests (Makefile.am): Likewise.
66263         * modules/ftello-tests (Makefile.am): Likewise.
66264         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66265         * modules/isnanl-tests (Makefile.am): Likewise.
66266         * modules/lseek-tests (Makefile.am): Likewise.
66267         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66268         * modules/mbscasestr-tests (Makefile.am): Likewise.
66269         * modules/mbschr-tests (Makefile.am): Likewise.
66270         * modules/mbscspn-tests (Makefile.am): Likewise.
66271         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66272         * modules/mbspbrk-tests (Makefile.am): Likewise.
66273         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66274         * modules/mbsrchr-tests (Makefile.am): Likewise.
66275         * modules/mbsspn-tests (Makefile.am): Likewise.
66276         * modules/mbsstr-tests (Makefile.am): Likewise.
66277         * modules/printf-posix-tests (Makefile.am): Likewise.
66278         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66279         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66280         * modules/tsearch-tests (Makefile.am): Likewise.
66281         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66282         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66283         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66284         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66285         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66286         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66287         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66288         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66289         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66290         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66291         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66292         * modules/xstrtol-tests (Makefile.am): Likewise.
66293         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66294         * modules/yesno-tests (Makefile.am): Likewise.
66295
66296 2007-10-03  Bruno Haible  <bruno@clisp.org>
66297
66298         * modules/trunc-tests: New file.
66299         * tests/test-trunc.c: New file.
66300
66301         * modules/trunc: New file.
66302         * lib/trunc.c: New file.
66303         * m4/trunc.m4: New file.
66304         * lib/math.in.h (trunc): New declaration.
66305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66306         HAVE_DECL_TRUNC.
66307         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66308         HAVE_DECL_TRUNC.
66309         * doc/functions/trunc.texi: Mention the 'trunc' module.
66310
66311 2007-10-03  Bruno Haible  <bruno@clisp.org>
66312
66313         * tests/test-fpending.c: New file, mostly copied
66314         from coreutils/lib/t-fpending.c.
66315         * modules/fpending-tests: New file.
66316
66317 2007-10-03  Bruno Haible  <bruno@clisp.org>
66318
66319         Port the stdio extensions to QNX (untested).
66320         * lib/fseterr.c (fseterr): Add support for QNX.
66321         * lib/fbufmode.c (fbufmode): Likewise.
66322         * lib/freadable.c (freadable): Likewise.
66323         * lib/fwritable.c (fwritable): Likewise.
66324         * lib/freading.c (freading): Likewise.
66325         * lib/fwriting.c (fwriting): Likewise.
66326         * lib/freadahead.c (freadahed): Likewise.
66327         * lib/fpurge.c (fpurge): Likewise.
66328         * lib/fseeko.c (rpl_fseeko): Likewise.
66329
66330 2007-10-03  Bruno Haible  <bruno@clisp.org>
66331             Jim Meyering  <jim@meyering.net>
66332             Eric Blake  <ebb9@byu.net>
66333
66334         * doc/relocatable.texi: Use @command instead of @program.
66335
66336 2007-10-02  Jim Meyering  <jim@meyering.net>
66337
66338         Perform one more "_.h" -> ".in.h" substitution.
66339         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66340         instead of unistd_.h here, too.
66341
66342 2007-10-01  Bruno Haible  <bruno@clisp.org>
66343
66344         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66345         Needed for the alloca-opt module.
66346
66347 2007-09-30  Bruno Haible  <bruno@clisp.org>
66348
66349         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66350         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66351         alloca_.h.
66352         * lib/argz.in.h: Renamed from lib/argz_.h.
66353         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66354         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66355         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66356         byteswap_.h.
66357         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66358         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66359         dirent_.h.
66360         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66361         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66362         fcntl_.h.
66363         * lib/float.in.h: Renamed from lib/float_.h.
66364         * modules/float (Files, Makefile.am): Use float.in.h instead of
66365         float_.h.
66366         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66367         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66368         fnmatch_.h.
66369         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66370         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66371         getopt_.h.
66372         * lib/glob.in.h: Renamed from lib/glob_.h.
66373         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66374         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66375         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66376         iconv_.h.
66377         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66378         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66379         inttypes_.h.
66380         * lib/locale.in.h: Renamed from lib/locale_.h.
66381         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66382         locale_.h.
66383         * lib/math.in.h: Renamed from lib/math_.h.
66384         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66385         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66386         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66387         of netinet_in_.h. Add dependency.
66388         * lib/poll.in.h: Renamed from lib/poll_.h.
66389         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66390         * lib/search.in.h: Renamed from lib/search_.h.
66391         * modules/search (Files, Makefile.am): Use search.in.h instead of
66392         search_.h.
66393         * lib/signal.in.h: Renamed from lib/signal_.h.
66394         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66395         _signal.h.
66396         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66397         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66398         stdbool_.h.
66399         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66400         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66401         stdint_.h.
66402         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66403         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66404         stdio_.h.
66405         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66406         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66407         stdlib_.h.
66408         * lib/string.in.h: Renamed from lib/string_.h.
66409         * modules/string (Files, Makefile.am): Use string.in.h instead of
66410         string_.h.
66411         * doc/gnulib-tool.texi (Initial import): Update.
66412         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66413         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66414         of sys_select_.h. Add dependency.
66415         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66416         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66417         of sys_socket_.h.
66418         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66419         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66420         sys_stat_.h.
66421         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66422         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66423         sys_time_.h.
66424         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66425         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66426         sysexits_.h.
66427         * lib/time.in.h: Renamed from lib/time_.h.
66428         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66429         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66430         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66431         unistd_.h.
66432         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66433         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66434         wchar_.h.
66435         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66436         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66437         wctype_.h.
66438         * build-aux/bootstrap (slurp): Update.
66439         * lib/.cppi-disable: Update.
66440
66441 2007-09-30  Bruno Haible  <bruno@clisp.org>
66442
66443         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66444         Needed on BeOS.
66445
66446 2007-09-30  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66449
66450 2007-09-29  Bruno Haible  <bruno@clisp.org>
66451
66452         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66453
66454 2007-09-29  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66457         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66458         * build-aux/install-reloc: Compile also areadlink.c.
66459         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66460
66461 2007-09-29  Bruno Haible  <bruno@clisp.org>
66462
66463         * gnulib-tool (func_emit_initmacro_done): Indentation.
66464
66465 2007-09-29  Bruno Haible  <bruno@clisp.org>
66466
66467         * README: Add CVS checkout update instructions.
66468         Info from Bob Proulx <bob@proulx.com>.
66469
66470 2007-09-28  Eric Blake  <ebb9@byu.net>
66471
66472         Provide move-if-change.
66473         * build-aux/move-if-change: New file, based on best practice
66474         rather than any canonical upstream location.
66475
66476 2007-09-28  Jim Meyering  <jim@meyering.net>
66477
66478         Fix canonicalize loop-detection corner case.
66479         Do not attempt to stat the symlink values stored via seen_triple.
66480         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66481         on linux-2.6.18, (but not 2.6.22).
66482         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66483         triple_compare.  The former compares dev,ino,filename, while the latter
66484         would actually stat dirname(filename) when dev and ino were equal.
66485         * lib/hash-triple.c: Install <string.h>.
66486         (STREQ): Define.
66487         (triple_compare_ino_str): New function.
66488         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66489
66490 2007-09-28  Eric Blake  <ebb9@byu.net>
66491
66492         Enforce that AC_REPLACE_FUNCS files exist.
66493         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66494         override check for typos.
66495
66496         Fix test-closein on Solaris 10.
66497         * tests/test-closein.c (main): Don't assume stdin can be inherited
66498         closed on all systems.
66499         * tests/test-closein.sh: Likewise.
66500         Reported by Piotr Tarnowski.
66501
66502 2007-09-28  Jim Meyering  <jim@meyering.net>
66503
66504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66505
66506 2007-09-27  Jim Meyering  <jim@meyering.net>
66507
66508         canonicalize: Avoid a false-positive cycle failure.
66509         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66510         Sort.  Remove cycle-check.
66511         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66512         not cycle-check.h.
66513         (seen_triple): New function.
66514         (canonicalize_filename_mode): Use it instead of cycle-check.
66515         * tests/test-canonicalize.c: Add a test for this bug.
66516         * tests/test-canonicalize.sh: Set up and run the test.
66517
66518         New module, file-set, from coreutils.
66519         * modules/file-set: Define it.
66520         * lib/file-set.c, lib/file-set.h: Implement.
66521
66522         New module, hash-triple, from coreutils.
66523         * modules/hash-triple: Define it.
66524         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66525
66526 2007-09-25  Eric Blake  <ebb9@byu.net>
66527
66528         Fix strerror on Interix.
66529         * lib/string_.h (strerror): Declare replacement.
66530         * doc/functions/strerror.texi (strerror): Document the Interix
66531         shortcoming.
66532         * modules/string (Makefile.am): Support new hooks.
66533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66534         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66535         gl_FUNC_STRERROR_SEPARATE.
66536         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66537         * lib/strerror.c (rpl_strerror): Provide replacement.
66538         * modules/strerror (Depends-on): Add string.
66539         (configure.ac): Detect use of module.
66540         * tests/test-strerror.c: New file.
66541         * modules/strerror-tests: New test module.
66542         * modules/argp (Depends-on): Add strerror.
66543         * modules/error (Depends-on): Likewise.
66544         Reported by Martin Koeppe.
66545
66546 2007-09-24  Bruno Haible  <bruno@clisp.org>
66547
66548         * README: Update git instructions.
66549
66550 2007-09-24  Eric Blake  <ebb9@byu.net>
66551
66552         Revert fpending breakage from 2007-09-08.
66553         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66554         __fpending.c.
66555
66556 2007-09-24  Jim Meyering  <jim@meyering.net>
66557
66558         filenamecat.c: Add a test.
66559         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66560         showing how the function works when DIR is the empty string.
66561
66562 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66563
66564         * tests/test-canonicalize.sh: Turn on executable bit.
66565
66566 2007-09-19  Eric Blake  <ebb9@byu.net>
66567
66568         * README: Update CVS instructions.
66569
66570 2007-09-18  Bruno Haible  <bruno@clisp.org>
66571
66572         * modules/areadlink: New file.
66573         * lib/areadlink.h (areadlink): New declaration.
66574         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66575
66576 2007-09-17  Jim Meyering  <jim@meyering.net>
66577
66578         * lib/savewd.c (ESTALE) [!defined]: Define.
66579         Reported to be required on Interix by Martin Koeppe.
66580
66581 2007-09-17  Bruno Haible  <bruno@clisp.org>
66582
66583         * gnulib-tool (func_version): Use $version.
66584
66585 2007-09-16  Bruno Haible  <bruno@clisp.org>
66586
66587         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66588         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66589         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66590         Reported by Greg Schafer <gschafer@zip.com.au>.
66591
66592 2007-09-15  Bruno Haible  <bruno@clisp.org>
66593
66594         * gnulib-tool (sed): Try a little harder to make bash understand the
66595         alias.
66596         Reported by Bruce Korb <bruce.korb@gmail.com>.
66597
66598 2007-09-13  Eric Blake  <ebb9@byu.net>
66599
66600         * ChangeLog: Remove conflict markers.
66601
66602 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66603
66604         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66605         Reported by Bruno Haible <bruno@clisp.org>.
66606
66607 2007-09-12  Bruno Haible  <bruno@clisp.org>
66608
66609         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66610         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66611         is not defined.
66612
66613 2007-09-12  Eric Blake  <ebb9@byu.net>
66614
66615         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66617         Autoconf definition.
66618         * modules/euidaccess (Depends-on): Add extensions, for
66619         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66620         * modules/fnmatch (Depends-on): Likewise.
66621         * modules/getaddrinfo (Depends-on): Likewise.
66622         * modules/getdelim (Depends-on): Likewise.
66623         * modules/getline (Depends-on): Likewise.
66624         * modules/getsubopt (Depends-on): Likewise.
66625         * modules/gettext (Depends-on): Likewise.
66626         * modules/group-member (Depends-on): Likewise.
66627         * modules/mbchar (Depends-on): Likewise.
66628         * modules/memmem (Depends-on): Likewise.
66629         * modules/mempcpy (Depends-on): Likewise.
66630         * modules/memrchr (Depends-on): Likewise.
66631         * modules/pagealign_alloc (Depends-on): Likewise.
66632         * modules/readutmp (Depends-on): Likewise.
66633         * modules/stpcpy (Depends-on): Likewise.
66634         * modules/stpncpy (Depends-on): Likewise.
66635         * modules/strchrnul (Depends-on): Likewise.
66636         * modules/strndup (Depends-on): Likewise.
66637         * modules/strsep (Depends-on): Likewise.
66638         * modules/strverscmp (Depends-on): Likewise.
66639         * modules/vasprintf (Depends-on): Likewise.
66640         * modules/wcwidth (Depends-on): Likewise.
66641         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66642         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66643         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66645         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66646         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66647         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66649         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66650         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66652         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66654         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66655         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66656         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66657         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66658         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66659         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66660         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66661         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66662         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66663         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66664         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66665         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66667         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66668         so that lock.m4 can be used in gettext without extensions module.
66669
66670 2007-09-11  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/isc-posix.m4: Remove file.
66673         Suggested by Eric Blake.
66674
66675 2007-09-11  Eric Blake  <ebb9@byu.net>
66676
66677         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66678
66679 2007-09-10  Bruno Haible  <bruno@clisp.org>
66680
66681         * posix-modules: Fix typo in error message.
66682         Reported by Matt <mkraai@beckman.com>.
66683
66684 2007-09-09  Bruno Haible  <bruno@clisp.org>
66685
66686         * doc/functions/getdelim.texi: Update list of platforms lacking the
66687         function.
66688         * doc/functions/getline.texi: Likewise.
66689
66690 2007-09-09  Jim Meyering  <jim@meyering.net>
66691
66692         * lib/hash.c (hash_initialize): Detect calloc failure.
66693         Reported by Bruno Haible.
66694
66695 2007-09-09  Bruno Haible  <bruno@clisp.org>
66696
66697         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66698         malloc or realloc fails.
66699
66700 2007-09-09  Bruno Haible  <bruno@clisp.org>
66701
66702         * modules/getcwd (Depends-on): Add malloc-posix.
66703         * modules/glob (Depends-on): Likewise.
66704         * modules/putenv (Depends-on): Likewise.
66705         * modules/strdup (Depends-on): Likewise.
66706         * modules/getdelim (Depends-on): Add realloc-posix.
66707         * modules/read-file (Depends-on): Likewise.
66708
66709 2007-09-09  Bruno Haible  <bruno@clisp.org>
66710
66711         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66712         (gl_FUNC_MALLOC_POSIX): Require it.
66713         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66714         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66715         * modules/realloc (Files): Add m4/malloc.m4.
66716         * modules/calloc (Files): Likewise.
66717
66718 2007-09-09  Bruno Haible  <bruno@clisp.org>
66719
66720         * modules/malloc-posix: New file.
66721         * modules/malloc (Depends-on): Add malloc-posix.
66722         * lib/malloc.c: Include errno.h.
66723         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66724         and a POSIX-compatible malloc into a single function. Set ENOMEM
66725         when returning NULL.
66726         * m4/malloc.m4: New file.
66727         * doc/functions/malloc.texi: Mention the malloc-posix module.
66728         * lib/stdlib_.h (malloc): New declaration.
66729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66730         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66731         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66732         and HAVE_MALLOC_POSIX.
66733
66734 2007-09-09  Bruno Haible  <bruno@clisp.org>
66735
66736         * modules/realloc-posix: New file.
66737         * modules/realloc (Depends-on): Add realloc-posix.
66738         * lib/realloc.c: Include errno.h.
66739         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66740         and a POSIX-compatible realloc into a single function. Set ENOMEM
66741         when returning NULL.
66742         * m4/realloc.m4: New file.
66743         * doc/functions/realloc.texi: Mention the realloc-posix module.
66744         * lib/stdlib_.h (realloc): New declaration.
66745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66746         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66747         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66748         and HAVE_REALLOC_POSIX.
66749
66750 2007-09-09  Bruno Haible  <bruno@clisp.org>
66751
66752         * modules/calloc-posix: New file.
66753         * modules/calloc (Depends-on): Add calloc-posix.
66754         * lib/calloc.c: Include errno.h.
66755         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66756         and a POSIX-compatible calloc into a single function. Set ENOMEM
66757         when returning NULL.
66758         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66759         * doc/functions/calloc.texi: Mention the calloc-posix module.
66760         * lib/stdlib_.h (calloc): New declaration.
66761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66762         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66763         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66764         and HAVE_CALLOC_POSIX.
66765
66766 2007-09-09  Bruno Haible  <bruno@clisp.org>
66767
66768         Allow for modules to show an arbitrary notice.
66769         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66770         * gnulib-tool: New option --extract-notice.
66771         (func_usage): Document it.
66772         (sed_extract_prog): Update.
66773         (func_get_notice): New function.
66774         (func_modules_notice): New function.
66775         (func_import, func_create_testdir): Invoke it.
66776         Suggested by Jim Meyering.
66777
66778 2007-09-09  Bruno Haible  <bruno@clisp.org>
66779
66780         * gnulib-tool: New options --verbose, --quiet.
66781         (func_usage): Document them.
66782         (verbose): New variable.
66783         (func_execute_command): New function.
66784         (func_import): Don't show the module list and the file list if
66785         $verbose < 0.
66786         (func_create_testdir): Likewise. Use func_execute_command.
66787         (func_create_megatestdir): Use func_execute_command.
66788
66789 2007-09-08  Bruno Haible  <bruno@clisp.org>
66790
66791         * gnulib-tool (func_import): Prefer rsync over wget when available,
66792         for fetching the PO files.
66793
66794 2007-09-08  Bruno Haible  <bruno@clisp.org>
66795
66796         * posix-modules: New file. Portions copied from gnulib-tool.
66797         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66798
66799 2007-09-08  Jim Meyering  <jim@meyering.net>
66800
66801         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66802         * lib/fpending.h: Rename from __fpending.h.
66803         * lib/fpending.c: Rename from __fpending.c.
66804         Include "fpending.h", not "__fpending.h".
66805         * lib/__fpending.h, lib/__fpending.c: Remove files.
66806         * modules/fpending (Files): Reflect new file names.
66807         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66808
66809 2007-09-08  Bruno Haible  <bruno@clisp.org>
66810
66811         * m4/inttypes-h.m4: Remove stub file.
66812
66813 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66814
66815         * doc/headers/stdint.texi: Discuss #include_next issue.
66816
66817 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66820
66821 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66822
66823         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66824         in variable name.
66825
66826 2007-09-03  Jim Meyering  <jim@meyering.net>
66827
66828         New module: git-version-gen.
66829         * modules/git-version-gen: New file.
66830
66831         Import changes from coreutils for bootstrap script.
66832
66833         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66834
66835         bootstrap: uses rsync to download the .po files
66836         * build-aux/bootstrap (po_download_command_format): New global.
66837         (download_po_files): Use rsync.
66838         (update_po_files): Don't remove .po files after download,
66839         so future rsync runs can take advantage of the copies.
66840
66841         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66842
66843         Solve the unnecessary-.po-file-regeneration problem once and for all.
66844         * build-aux/bootstrap (download_po_files): New function, renamed from
66845         get_translations.  Now, downloads, but doesn't update LINGUAS.
66846         (update_po_files): New function.
66847
66848         bootstrap: Ignore more.
66849         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66850         uniwidth to e.g., lib/.gitignore.
66851         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66852
66853         * build-aux/bootstrap: New setting: vc_ignore.
66854         (insert_sorted_if_absent): Create $file if absent.
66855         Adapt to new, possibly empty, list: $vc_ignore.
66856
66857         bootstrap: generate more ignorable names
66858         * build-aux/bootstrap (slurp): When generating ignorable names,
66859         also map .sin to .sed, .gperf to .c, and .y to .c.
66860
66861 2007-09-03  Jim Meyering  <jim@meyering.net>
66862
66863         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66864         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66865
66866 2007-09-02  Bruno Haible  <bruno@clisp.org>
66867
66868         Fix mis-recognition of 'mcs' on QNX 6.
66869         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66870         output contains the string "Mono".
66871         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66872         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66873
66874 2007-09-01  Bruno Haible  <bruno@clisp.org>
66875
66876         Fix collision between uniwidth/* and linebreak modules.
66877         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66878         u32_width): Remove declarations.
66879         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66880         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66881         streq3, streq2, streq1, streq0): Remove functions.
66882         (STREQ): Remove macro.
66883         (is_cjk_encoding): Remove function.
66884         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66885         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66886         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66887         * NEWS: Document the change.
66888
66889 2007-09-01  Bruno Haible  <bruno@clisp.org>
66890
66891         * lib/streq.h: Add double-inclusion guard.
66892
66893 2007-09-01  Karl Berry  <karl@gnu.org>
66894
66895         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66896
66897 2007-08-28  Jim Meyering  <jim@meyering.net>
66898
66899         Rename mreadlink_with_size to areadlink_with_size.
66900         * NEWS: Document the change.
66901         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66902         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66903         * lib/mreadlink.h: Rename this to...
66904         * lib/areadlink.h: ...this.
66905         * modules/mreadlink-with-size: Rename this to...
66906         * modules/areadlink-with-size: ...this.
66907         * lib/canonicalize.c: Reflect the renaming.
66908         * modules/canonicalize: Likewise.
66909
66910 2007-08-26  Bruno Haible  <bruno@clisp.org>
66911
66912         * gnulib-tool (func_import): When deciding which files to remove,
66913         consider also dangling symbolic links.
66914         Reported by Eric Blake.
66915
66916 2007-08-26  Bruno Haible  <bruno@clisp.org>
66917
66918         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66919
66920 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66921
66922         * lib/readline.c: Don't include getline.h, the prototype is now
66923         found in stdio.h.
66924
66925 2007-08-23  Jim Meyering  <jim@meyering.net>
66926
66927         Getdelim touchup.
66928         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66929         around the funlockfile call, since funlockfile never sets errno.
66930         Don't set errno upon failed realloc.
66931
66932 2007-08-22  Eric Blake  <ebb9@byu.net>
66933
66934         Getline touchups.
66935         * lib/getdelim.c (getdelim): Revert regression that required *n to
66936         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66938         getdelim, rather than whether implementation is missing.
66939         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66940         * lib/stdio_.h (getline): Also declare if replacement is
66941         required.
66942         * doc/functions/getdelim.texi: New file.
66943         * doc/functions/getline.texi: Likewise.
66944         * doc/gnulib.texi (Function Substitutes): Add new files.
66945         Reported by Bruno Haible.
66946
66947 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66948
66949         * users.txt: Add Guile.
66950
66951 2007-08-22  Eric Blake  <ebb9@byu.net>
66952
66953         * tests/test-getdelim.c (main): Use remove, not unlink.
66954         * tests/test-getline.c (main): Likewise.
66955
66956         Move getline and getdelim into stdio.h, per POSIX 200x.
66957         * modules/getline (Files): Remove getline.h.
66958         (Depends-on): Add stdio.
66959         (configure.ac): Add module indicator.
66960         * modules/getdelim (Files): Remove getdelim.h.
66961         (Depends-on): Add stdio.
66962         (configure.ac): Add module indicator.
66963         * modules/stdio (Makefile.am): Work with new indicators.
66964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66966         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66967         * lib/getdelim.h: Delete.
66968         * lib/getline.h: Delete.
66969         * lib/stdio_.h (getdelim, getline): Declare.
66970         * modules/getdelim-tests: New module.
66971         * modules/getline-tests: Likewise.
66972         * tests/test-getdelim.c: New file.
66973         * tests/test-getline.c: Likewise.
66974         * NEWS: Document the change.
66975         * lib/getline.c: Update choice of header.
66976         * lib/csharpcomp.c: Likewise.
66977         * lib/getpass.c: Likewise.
66978         * lib/javacomp.c: Likewise.
66979         * lib/javaversion.c: Likewise.
66980         * lib/yesno.c: Likewise.
66981         * lib/getdelim.c: Likewise.
66982         (getdelim): Set errno on failure, and avoid memory leak.
66983
66984 2007-08-19  Bruno Haible  <bruno@clisp.org>
66985
66986         * modules/closein (Depends-on): Add freadahead.
66987         * lib/closein.c: Include freadahead.h.
66988         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66989         is zero.
66990
66991 2007-08-19  Bruno Haible  <bruno@clisp.org>
66992
66993         * modules/freadahead-tests: New file.
66994         * tests/test-freadahead.sh: New file.
66995         * tests/test-freadahead.c: New file.
66996
66997         * modules/freadahead: New file.
66998         * lib/freadahead.h: New file.
66999         * lib/freadahead.c: New file.
67000         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67001         fbufmode, fpurge, freadable, fwritable.
67002
67003 2007-08-19  Eric Blake  <ebb9@byu.net>
67004
67005         Test yesno in combination with closein.
67006         * lib/yesno.c (yesno): Document use of stdin.
67007         * modules/yesno-tests (Files): New module.
67008         * tests/test-yesno.c (main): New file.
67009         * tests/test-yesno.sh: Likewise.
67010
67011 2007-08-19  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67014         * lib/fseeko.c (rpl_fseeko): Likewise.
67015         * lib/fseterr.c (fseterr): Likewise.
67016
67017 2007-08-19  Bruno Haible  <bruno@clisp.org>
67018
67019         * tests/test-lseek.c (main): Disable a test for BeOS.
67020         * doc/functions/lseek.texi: Document the BeOS bug.
67021
67022 2007-08-19  Bruno Haible  <bruno@clisp.org>
67023             Eric Blake  <ebb9@byu.net>
67024
67025         * lib/lseek.c: Include <sys/stat.h>.
67026         (rpl_lseek): Add workaround code also for Unix platforms.
67027         Needed for BeOS.
67028         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67029         * doc/functions/lseek.texi: Document BeOS definiency.
67030
67031 2007-08-18  Bruno Haible  <bruno@clisp.org>
67032
67033         * modules/fstrcmp-tests: New file.
67034         * tests/test-fstrcmp.c: New file.
67035
67036 2007-08-18  Bruno Haible  <bruno@clisp.org>
67037
67038         * modules/fstrcmp: New file, from GNU gettext with modifications.
67039         * lib/fstrcmp.h: New file, from GNU gettext.
67040         * lib/fstrcmp.c: New file, from GNU gettext.
67041         * MODULES.html.sh (String handling): Add fstrcmp.
67042
67043 2007-08-18  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67046         'bool'.
67047         (diag, compareseq): Remove const from the ctxt argument.
67048         (USE_HEURISTIC): Undefine at the end.
67049
67050 2007-08-18  Jim Meyering  <jim@meyering.net>
67051
67052         New file: lib/idcache.h
67053         * NEWS: Mention the addition.
67054         * modules/idcache (Files): Add lib/idcache.h
67055         * lib/idcache.c: Include "idcache.h".
67056         Don't include <sys/types.h>.
67057         Add a FIXME comment.
67058         Move file-scoped "static" declarations to the top.
67059         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67060
67061 2007-08-17  Bruno Haible  <bruno@clisp.org>
67062         and Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         * MODULES.html.sh: Add diffseq.
67065         * modules/diffseq: New file.
67066         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67067         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67068
67069 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67070
67071         Import changes from coreutils for bootstrap script.
67072
67073         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67074
67075         * build-aux/bootstrap (slurp): Work even in environments where
67076         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67077         current code does not slurp files whose names start with ".", and
67078         this looks like it might be a troublesome area.
67079
67080         2007-07-11  Jim Meyering  <jim@meyering.net>
67081
67082         If there's a GPL vN copyright comment, require that N == 3.
67083
67084         2007-07-08  Jim Meyering  <jim@meyering.net>
67085
67086         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67087         * build-aux/bootstrap (mam_template): Move definition out of loop.
67088
67089         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67090
67091         * build-aux/bootstrap (symlink_to_dir): Rename function from
67092         symlink_to_gnulib.  Add a directory parameter.  Update all
67093         callers.
67094         (cp_mark_as_generated): Also check for -- and link to -- files in
67095         gl/.
67096
67097         2007-07-08  Jim Meyering  <jim@meyering.net>
67098
67099         Adapt to deeper hierarchy in gnulib.
67100         * build-aux/bootstrap (symlink_to_dir): If the destination
67101         directory doesn't exist, create it. This is required at least for
67102         "lib/uniwidth/cjk.h".
67103
67104         2007-05-15  Jim Meyering  <jim@meyering.net>
67105
67106         * build-aux/bootstrap: Now that generated Makefile.am files
67107         are no longer under version control, they must be created at
67108         bootstrap time.
67109
67110 2007-08-14  Ben Pfaff  <blp@gnu.org>
67111
67112         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67113
67114 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67117         given the changes below.
67118         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67119         even on hosts that have padding bits beyond the supported 64.
67120
67121 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67122
67123         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67124         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67125         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67126         depends on it.
67127         (xstrtol_error): Remove.
67128         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67129         but with a different signature.
67130         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67131         * lib/xstrtol-error.c: Include exitfail.h.
67132         (xstrtol_fatal): New function, with a different signature from the
67133         old xstrtol_error, so that the caller need not worry about passing
67134         in an exit status, or about storage management of the option argument.
67135         (xstrtol_error): Now a static function.  Redo signature to
67136         implement xstrtol_fatal.  Output the correct number of hyphens in
67137         front of the option so that the caller need not worry about
67138         storage management.
67139         (N_): New macro.
67140         (_): Remove; not used now.
67141         * modules/xstrtol: Depend on getopt.
67142         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67143         of old STRTOL_FATAL_ERROR macro.
67144         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67145         of test program.
67146         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67147         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67148
67149 2007-08-08  Eric Blake  <ebb9@byu.net>
67150
67151         * lib/xstrtol-error.c: Add missing include.
67152
67153         Move xstrtol messages into gnulib domain, when --pobase is used.
67154         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67155         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67156         * modules/xstrtol (Files): Distribute new file.
67157         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67158         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67159         * tests/test-xstrtol.c: ...into new file.
67160         * tests/test-xstrtoul.c: Also test xstrtoul.
67161         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67162         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67163         * tests/test-xstrtol.sh: Drive the tests.
67164         * tests/test-xstrtoimax.sh: Likewise.
67165         * tests/test-xstrtoumax.sh: Likewise.
67166         * modules/xstrtol-tests: New module.
67167         * modules/xstrtoimax-tests: Likewise.
67168         * modules/xstrtoumax-tests: Likewise.
67169
67170 2007-08-08  Jim Meyering  <jim@meyering.net>
67171
67172         New function: mfile_name_concat.
67173         * lib/filenamecat.c (mfile_name_concat): New function, just like
67174         file_name_concat, but return NULL upon failure rather than exiting
67175         with a diagnostic.
67176         * lib/filenamecat.h: Declare it.
67177
67178 2007-08-07  Bruno Haible  <bruno@clisp.org>
67179
67180         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67181         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67182         warning from gcc.
67183         Reported by Eric Blake.
67184
67185 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67186
67187         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67188         * modules/crypto/arcfour (License): Likewise.
67189         * modules/crypto/des-tests (License): Likewise.
67190         * modules/crypto/gc-arctwo-tests (License): Likewise.
67191         * modules/crypto/gc-des-tests (License): Likewise.
67192         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67193         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67194         * modules/crypto/gc-md2-tests (License): Likewise.
67195         * modules/crypto/gc-md4-tests (License): Likewise.
67196         * modules/crypto/gc-md5-tests (License): Likewise.
67197         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67198         * modules/crypto/gc-rijndael-tests (License): Likewise.
67199         * modules/crypto/gc-sha1-tests (License): Likewise.
67200         * modules/crypto/gc-tests (License): Likewise.
67201         * modules/crypto/hmac-md5 (License): Likewise.
67202         * modules/crypto/hmac-sha1 (License): Likewise.
67203         * modules/crypto/md2-tests (License): Likewise.
67204         * modules/crypto/md4-tests (License): Likewise.
67205         * modules/crypto/md5 (License): Likewise.
67206         * modules/crypto/rijndael (License): Likewise.
67207         * modules/crypto/sha1 (License): Likewise.
67208         * modules/memxor (License): Likewise.
67209
67210 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67211         and Bruno Haible  <bruno@clisp.org>
67212
67213         * NEWS: Describe interface changes to human, xstrtol.
67214         * lib/human.h: Include <xstrtol.h>.
67215         (human_options): Return enum strtol_error, not int.  Remove
67216         bool arg; take int * instead.
67217         * lib/human.c: Don't include "gettext.h".
67218         (_): Remove; no longer used.
67219         Don't include <xstrtol.h>, since human.h does it.
67220         (human_options): Adjust to abovementioned interface changes.
67221         Do not report error to stderr; that's now the caller's
67222         responsibility.
67223         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67224         interface change.
67225         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67226         Str, Argument_type_string.  All uses changed.  Put " argument"
67227         in diagnostics to make them clearer.  Change wording of suffix
67228         message for clarity.
67229         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67230         Argument_type_string.
67231         (STRTOL_FATAL_WARN): Remove; no longer used.
67232         * modules/human (Depends-on): Remove gettext-h.
67233
67234 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67235
67236         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67237
67238 2007-07-31  Bruno Haible  <bruno@clisp.org>
67239
67240         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67241         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67242         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67243
67244 2007-07-31  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67247         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67248
67249 2007-07-30  Bruno Haible  <bruno@clisp.org>
67250
67251         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67252         * modules/c-ctype (License): Likewise.
67253         * modules/c-strcase (License): Likewise.
67254         * modules/check-version (License): Likewise.
67255         * modules/iconv (License): Likewise.
67256         * modules/iconv_open (License): Likewise.
67257         * modules/read-file (License): Likewise.
67258         * modules/striconv (License): Likewise.
67259         * modules/strverscmp (License): Likewise.
67260         * modules/vasprintf (License): Likewise.
67261         * modules/crypto/des (License): Likewise.
67262         * modules/crypto/gc (License): Likewise.
67263         * modules/crypto/gc-arcfour (License): Likewise.
67264         * modules/crypto/gc-arctwo (License): Likewise.
67265         * modules/crypto/gc-des (License): Likewise.
67266         * modules/crypto/gc-hmac-md5 (License): Likewise.
67267         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67268         * modules/crypto/gc-md2 (License): Likewise.
67269         * modules/crypto/gc-md4 (License): Likewise.
67270         * modules/crypto/gc-md5 (License): Likewise.
67271         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67272         * modules/crypto/gc-random (License): Likewise.
67273         * modules/crypto/gc-rijndael (License): Likewise.
67274         * modules/crypto/gc-sha1 (License): Likewise.
67275         * modules/crypto/md2 (License): Likewise.
67276         * modules/crypto/md4 (License): Likewise.
67277
67278 2007-07-30  Jim Meyering  <jim@meyering.net>
67279
67280         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67281         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67282         it has valid stat data.  This bug would cause du not to count the
67283         sizes of inaccessible directories.
67284         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67285         in <http://bugzilla.redhat.com/250077>.
67286
67287 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67288             Bruno Haible  <bruno@clisp.org>
67289
67290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67291         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67292         #include_next, gives a diagnostic about it, but reports no error in
67293         the exit code.
67294         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67295
67296 2007-07-24  Ben Pfaff  <blp@gnu.org>
67297
67298         Improve name: "count-one-bits" is better than "popcount".
67299         * MODULES.html.sh: Update name.
67300         * lib/popcount.h: Renamed lib/count-one-bits.h.
67301         (popcount): Renamed count_one_bits.
67302         (popcountl): Renamed count_one_bits_l.
67303         (popcountll): Renamed count_one_bits_ll.
67304         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67305         * modules/popcount: Renamed module/count-one-bits.
67306         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67307         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67308
67309 2007-07-23  Ben Pfaff  <blp@gnu.org>
67310
67311         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67312         better code generation, and add U to large constants to avoid
67313         warnings, in non-GCC case.
67314         Suggested by Bruno Haible.
67315
67316 2007-07-23  Ben Pfaff  <blp@gnu.org>
67317
67318         * lib/popcount.h: Use verify_true instead of if...abort.
67319         * modules/popcount: Depend on verify module.
67320         Suggested by Jim Meyering.
67321
67322 2007-07-23  Bruno Haible  <bruno@clisp.org>
67323
67324         * gnulib-tool (func_import): Create a .cvsignore file also when the
67325         directory is not yet in CVS but the toplevel directory is. When
67326         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67327         Reported by Karl Berry.
67328
67329 2007-07-22  Ben Pfaff  <blp@gnu.org>
67330
67331         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67332         case.
67333         Suggested by Eric Blake.
67334
67335 2007-07-22  Ben Pfaff  <blp@gnu.org>
67336
67337         New module: popcount.
67338         * MODULES.html.sh: Add popcount.
67339         * modules/popcount: New file.
67340         * modules/popcount-tests: New file.
67341         * tests/test-popcount.c: New file.
67342         * lib/popcount.h: New file.
67343         * m4/popcount.m4: New file.
67344
67345 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * build-aux/announce-gen: Update to GPLv3.
67348
67349         * build-aux/config.guess: Update from config.
67350
67351 2007-07-21  Bruno Haible  <bruno@clisp.org>
67352
67353         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67354         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67355
67356 2007-07-20  Jim Meyering  <jim@meyering.net>
67357
67358         * check-module: Diagnose a self-dependency.
67359
67360 2007-07-19  Bruno Haible  <bruno@clisp.org>
67361
67362         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67363         empty.
67364         Reported by Eric Blake.
67365
67366 2007-07-18  Bruno Haible  <bruno@clisp.org>
67367
67368         * gnulib-tool: New options --po-base, --po-domain.
67369         (func_usage): Document them.
67370         (pobase, po_domain): New variables.
67371         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67372         DEFAULT_TEXT_DOMAIN.
67373         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67374         (func_import): Consider pobase and po_domain. Create a po/ directory.
67375         (func_create_testdir): Set pobase and po_domain to empty.
67376         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67377         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67378
67379 2007-07-18  Bruno Haible  <bruno@clisp.org>
67380
67381         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67382         EXTRA_DIST augmentation for files in build-aux/.
67383
67384 2007-07-16  Bruno Haible  <bruno@clisp.org>
67385
67386         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67387         * modules/getdelim (License): Likewise.
67388
67389 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67390
67391         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67392         * modules/d-type (License): Likewise.
67393         * modules/extensions (License): Likewise.
67394         * modules/fnmatch (License): Likewise.
67395         * modules/fseeko (License): Likewise.
67396         * modules/getaddrinfo (License): Likewise.
67397         * modules/getline (License): Likewise.
67398         * modules/getlogin_r (License): Likewise.
67399         * modules/getpass (License): Likewise.
67400         * modules/gettimeofday (License): Likewise.
67401         * modules/glob (License): Likewise.
67402         * modules/inet_ntop (License): Likewise.
67403         * modules/malloc (License): Likewise.
67404         * modules/malloca (License): Likewise.
67405         * modules/memmem (License): Likewise.
67406         * modules/mempcpy (License): Likewise.
67407         * modules/memset (License): Likewise.
67408         * modules/minmax (License): Likewise.
67409         * modules/mktime (License): Likewise.
67410         * modules/netinet_in (License): Likewise.
67411         * modules/pathmax (License): Likewise.
67412         * modules/poll (License): Likewise.
67413         * modules/regex (License): Likewise.
67414         * modules/snprintf (License): Likewise.
67415         * modules/stdbool (License): Likewise.
67416         * modules/stdint (License): Likewise.
67417         * modules/stdio (License): Likewise.
67418         * modules/strcase (License): Likewise.
67419         * modules/strcasestr (License): Likewise.
67420         * modules/strdup (License): Likewise.
67421         * modules/string (License): Likewise.
67422         * modules/strndup (License): Likewise.
67423         * modules/strnlen (License): Likewise.
67424         * modules/strpbrk (License): Likewise.
67425         * modules/strptime (License): Likewise.
67426         * modules/strsep (License): Likewise.
67427         * modules/sys_select (License): Likewise.
67428         * modules/sys_socket (License): Likewise.
67429         * modules/sys_stat (License): Likewise.
67430         * modules/sys_time (License): Likewise.
67431         * modules/time (License): Likewise.
67432         * modules/time_r (License): Likewise.
67433         * modules/timegm (License): Likewise.
67434         * modules/unistd (License): Likewise.
67435         * modules/vsnprintf (License): Likewise.
67436         * modules/wctype (License): Likewise.
67437
67438 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67439
67440         * modules/argz (License): LGPLv2+.
67441
67442 2007-07-15  Karl Berry  <karl@gnu.org>
67443
67444         * doc/gnulib.texi: revise node structure per new fdl.texi.
67445
67446 2007-07-14  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67449         the output file.
67450         * lib/uniname/uninames.h: Regenerated.
67451
67452 2007-07-14  Karl Berry  <karl@gnu.org>
67453
67454         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67455         omitting sectioning and index commands.
67456
67457 2007-07-13  Bruno Haible  <bruno@clisp.org>
67458
67459         New gnulib-tool option --more-symlinks.
67460         * gnulib-tool (func_usage): Document --more-symlinks.
67461         (do_copyrights): New variable.
67462         Recognize option --more-symlinks.
67463         (func_import): Don't add a copyright notice transform to
67464         sed_transform_lib_file if do_copyrights is empty.
67465
67466 2007-07-13  Bruno Haible  <bruno@clisp.org>
67467
67468         * lib/vasnprintf.c (decimal_point_char): Define also if
67469         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67470         && !NEED_PRINTF_DIRECTIVE_A.
67471         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67472         Gary V. Vaughan <gary@gnu.org>.
67473
67474 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         * lib/inttypes_.h: Undo previous change, since it was fixed
67477         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67478
67479 2007-07-13  Bruno Haible  <bruno@clisp.org>
67480
67481         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67482         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67483
67484 2007-07-13  Jim Meyering  <jim@meyering.net>
67485
67486         df: Don't fail for Tru64's "file-on-file mount".
67487         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67488         so we fall through and use statfs instead.  Details here:
67489         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67490         Reported by Albert Chin.
67491
67492 2007-07-13  Bruno Haible  <bruno@clisp.org>
67493
67494         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67495         * modules/configmake (License): Likewise.
67496         * modules/gettext (License): Likewise.
67497         * modules/gettext-h (License): Likewise.
67498         * modules/include_next (License): Likewise.
67499         * modules/link-warning (License): Likewise.
67500         * modules/localcharset (License): Likewise.
67501         * modules/localename (License): Likewise.
67502         * modules/lock (License): Likewise.
67503         * modules/relocatable-lib-lgpl (License): Likewise.
67504         * modules/size_max (License): Likewise.
67505         * modules/vasnprintf (License): Likewise.
67506         * modules/wchar (License): Likewise.
67507         * modules/xsize (License): Likewise.
67508
67509 2007-07-13  Bruno Haible  <bruno@clisp.org>
67510
67511         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67512         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67513
67514 2007-07-12  Bruno Haible  <bruno@clisp.org>
67515
67516         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67517         in the modules files.
67518
67519 2007-07-11  Karl Berry  <karl@gnu.org>
67520
67521         * MODULES.html.sh (func_module): use
67522          sed -e '\|^'"${includefile}"'$|d'
67523          instead of /.../d, to avoid errors on $includefile's containing /.
67524
67525 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67526
67527         * gnulib-tool (func_import): Avoid duplication of --avoid
67528         statements
67529         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67530         names to `_' in variable names.
67531
67532 2007-07-10  Eric Blake  <ebb9@byu.net>
67533
67534         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67535         * NEWS: Document this change.
67536
67537 2007-07-08  Bruno Haible  <bruno@clisp.org>
67538
67539         Update to Unicode 5.0.
67540         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67541         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67542         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67543         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67544         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67545         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67546         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67547         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67548         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67549         U+10A3F, U+1D242..U+1D244.
67550         (nonspacing_table_ind): Update.
67551         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67552         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67553
67554 2007-07-08  Bruno Haible  <bruno@clisp.org>
67555
67556         Update to Unicode 5.0.
67557         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67558         code transform. Extend the name index field of unicode_name_to_code and
67559         unicode_code_to_name from 16 to 24 bits.
67560         * lib/uniname/uniname.c (unicode_character_name,
67561         unicode_name_character): Add the range 0x12xxx to the code transform.
67562         * lib/uniname/uninames.h: Regenerated.
67563         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67564
67565 2007-07-07  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/wcwidth-tests: New file.
67568         * tests/test-wcwidth.c: New file.
67569
67570         Work around MacOS X wcwidth() bug.
67571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67572         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67573         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67574         original wcwidth in non-UTF-8 locales.
67575         * modules/wcwidth (Depends-on): Add localcharset, streq,
67576         uniwidth/width.
67577         * doc/functions/wcwidth.texi: Update.
67578
67579 2007-07-07  Bruno Haible  <bruno@clisp.org>
67580
67581         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67582         (wcwidth): New declaration.
67583         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67584         macros.
67585         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67586         here. Prepare for creating <wchar.h> unconditionally.
67587         * modules/wchar (Depends-on): Add link-warning.
67588         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67589         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67590         * lib/wcwidth.h: Remove file.
67591         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67592         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67593         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67594         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67595         (Include): Replace wcwidth.h with <wchar.h>.
67596         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67597         * lib/mbchar.h: Don't include wcwidth.h.
67598         * lib/mbswidth.c: Likewise.
67599         * NEWS: Mention the change.
67600
67601 2007-07-07  Bruno Haible  <bruno@clisp.org>
67602
67603         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67604         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67605         definition with an external declaration.
67606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67607         defined as a function. Remove AC_C_INLINE requirement.
67608         * modules/wcwidth (Files): Add lib/wcwidth.c.
67609         (Makefile.am): Remove redundant statement.
67610
67611 2007-07-07  Bruno Haible  <bruno@clisp.org>
67612
67613         * MODULES.html.sh (Unicode string functions): Add the new modules.
67614
67615         * tests/uniwidth/test-u32-strwidth.c: New file.
67616         * modules/uniwidth/u32-strwidth-tests: New file.
67617
67618         * lib/uniwidth/u32-strwidth.c: New file.
67619         * modules/uniwidth/u32-strwidth: New file.
67620
67621         * tests/uniwidth/test-u16-strwidth.c: New file.
67622         * modules/uniwidth/u16-strwidth-tests: New file.
67623
67624         * lib/uniwidth/u16-strwidth.c: New file.
67625         * modules/uniwidth/u16-strwidth: New file.
67626
67627         * tests/uniwidth/test-u8-strwidth.c: New file.
67628         * modules/uniwidth/u8-strwidth-tests: New file.
67629
67630         * lib/uniwidth/u8-strwidth.c: New file.
67631         * modules/uniwidth/u8-strwidth: New file.
67632
67633         * tests/uniwidth/test-u32-width.c: New file.
67634         * modules/uniwidth/u32-width-tests: New file.
67635
67636         * lib/uniwidth/u32-width.c: New file.
67637         * modules/uniwidth/u32-width: New file.
67638
67639         * tests/uniwidth/test-u16-width.c: New file.
67640         * modules/uniwidth/u16-width-tests: New file.
67641
67642         * lib/uniwidth/u16-width.c: New file.
67643         * modules/uniwidth/u16-width: New file.
67644
67645         * tests/uniwidth/test-u8-width.c: New file.
67646         * modules/uniwidth/u8-width-tests: New file.
67647
67648         * lib/uniwidth/u8-width.c: New file.
67649         * modules/uniwidth/u8-width: New file.
67650
67651         * tests/uniwidth/test-uc_width.c: New file.
67652         * modules/uniwidth/width-tests: New file.
67653
67654         * lib/uniwidth/width.c: New file, from GNU libiconv.
67655         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67656         * modules/uniwidth/width: New file.
67657
67658         * lib/uniwidth.h: New file, from GNU libiconv.
67659         * modules/uniwidth/base: New file.
67660
67661 2007-07-07  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/uniname.h: New file, from GNU gettext.
67664         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67665         * lib/uniname/uninames.h: New file, from GNU gettext.
67666         * lib/uniname/uniname.c: New file, from GNU gettext.
67667         * tests/uniname/test-uninames.sh: New file.
67668         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67669         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67670         * modules/uniname/base: New file.
67671         * modules/uniname/uniname: New file.
67672         * modules/uniname/uniname-tests: New file.
67673         * MODULES.html.sh (Unicode string functions): Add the new modules.
67674
67675 2007-07-06  Bruno Haible  <bruno@clisp.org>
67676
67677         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67678
67679 2007-07-06  Bruno Haible  <bruno@clisp.org>
67680
67681         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67682         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67683         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67684         include <sys/time.h>.
67685         Reported by Eric Blake.
67686
67687 2007-07-06  Eric Blake  <ebb9@byu.net>
67688
67689         Fix testing canonicalize on cygwin.
67690         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67691         Revert patch from 2007-06-19.
67692         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67693         canonicalize module is also in use.
67694         * tests/test-canonicalize.c: New file.
67695         * tests/test-canonicalize.sh: Likewise.
67696         * modules/canonicalize-tests: Likewise.
67697
67698 2007-07-06  Jim Meyering  <jim@meyering.net>
67699
67700         * lib/getugroups.c (getugroups): Detect getgrent failure.
67701         Adjust comment to reflect reality: this function may return -1.
67702
67703 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67704
67705         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67706         the new TP address.
67707         (usage): Fix typo
67708         (gnulib_mk): New variable.
67709
67710 2007-07-05  Jim Meyering  <jim@meyering.net>
67711
67712         Don't let endgrent clobber errno, no matter how improbable.
67713         * lib/getugroups.c (getugroups): Save and restore errno around
67714         endgrent call.
67715
67716         Close the group DB even when failing with 2^31 or more members.
67717         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67718
67719 2007-07-04  Jim Meyering  <jim@meyering.net>
67720
67721         * lib/getugroups.h: New file.
67722         * lib/getugroups.c: Include "getugroups.h".
67723         Remove uses of "register" keyword.
67724         Move local variable, "cp", down into scope where used.
67725         Give "username" parameter the "const" attribute.
67726         * modules/getugroups (Files): Add lib/getugroups.h
67727
67728 2007-07-04  Karl Berry  <karl@gnu.org>
67729
67730         * MODULES.html.sh (func_all_modules): Complete rename of
67731         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67732
67733 2007-07-02  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67736         mode, when inttypes.h comes from gnulib.
67737         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67738
67739 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67740
67741         * NEWS: Mention lgpl module name change.
67742
67743         * modules/lgpl-2.1: Renamed from lgpl.
67744
67745         * NEWS: Mention gpl module name change.
67746
67747         * modules/gpl-3.0: New file, based on gpl-2.0.
67748
67749         * modules/gpl-2.0: Renamed from gpl.
67750
67751         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67752         doc/gpl-2.0.texi.
67753
67754 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67755
67756         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67757         #define __STDC_LIMIT_MACROS temporarily while including
67758         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67759         Problem reported by Joel E. Denny in
67760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67761
67762 2007-07-01  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/unistdio.h: New file.
67765         * lib/unistdio/u-asnprintf.h: New file.
67766         * lib/unistdio/u-asprintf.h: New file.
67767         * lib/unistdio/u-printf-args.c: New file.
67768         * lib/unistdio/u-printf-args.h: New file.
67769         * lib/unistdio/u-printf-parse.h: New file.
67770         * lib/unistdio/u-snprintf.h: New file.
67771         * lib/unistdio/u-sprintf.h: New file.
67772         * lib/unistdio/u-vasprintf.h: New file.
67773         * lib/unistdio/u-vsnprintf.h: New file.
67774         * lib/unistdio/u-vsprintf.h: New file.
67775         * lib/unistdio/ulc-asnprintf.c: New file.
67776         * lib/unistdio/ulc-asprintf.c: New file.
67777         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67778         * lib/unistdio/ulc-printf-parse.c: New file.
67779         * lib/unistdio/ulc-snprintf.c: New file.
67780         * lib/unistdio/ulc-sprintf.c: New file.
67781         * lib/unistdio/ulc-vasnprintf.c: New file.
67782         * lib/unistdio/ulc-vasprintf.c: New file.
67783         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67784         * lib/unistdio/ulc-vsnprintf.c: New file.
67785         * lib/unistdio/ulc-vsprintf.c: New file.
67786         * lib/unistdio/u8-asnprintf.c: New file.
67787         * lib/unistdio/u8-asprintf.c: New file.
67788         * lib/unistdio/u8-printf-parse.c: New file.
67789         * lib/unistdio/u8-snprintf.c: New file.
67790         * lib/unistdio/u8-sprintf.c: New file.
67791         * lib/unistdio/u8-vasnprintf.c: New file.
67792         * lib/unistdio/u8-vasprintf.c: New file.
67793         * lib/unistdio/u8-vsnprintf.c: New file.
67794         * lib/unistdio/u8-vsprintf.c: New file.
67795         * lib/unistdio/u8-u8-asnprintf.c: New file.
67796         * lib/unistdio/u8-u8-asprintf.c: New file.
67797         * lib/unistdio/u8-u8-snprintf.c: New file.
67798         * lib/unistdio/u8-u8-sprintf.c: New file.
67799         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67800         * lib/unistdio/u8-u8-vasprintf.c: New file.
67801         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67802         * lib/unistdio/u8-u8-vsprintf.c: New file.
67803         * lib/unistdio/u16-asnprintf.c: New file.
67804         * lib/unistdio/u16-asprintf.c: New file.
67805         * lib/unistdio/u16-printf-parse.c: New file.
67806         * lib/unistdio/u16-snprintf.c: New file.
67807         * lib/unistdio/u16-sprintf.c: New file.
67808         * lib/unistdio/u16-vasnprintf.c: New file.
67809         * lib/unistdio/u16-vasprintf.c: New file.
67810         * lib/unistdio/u16-vsnprintf.c: New file.
67811         * lib/unistdio/u16-vsprintf.c: New file.
67812         * lib/unistdio/u16-u16-asnprintf.c: New file.
67813         * lib/unistdio/u16-u16-asprintf.c: New file.
67814         * lib/unistdio/u16-u16-snprintf.c: New file.
67815         * lib/unistdio/u16-u16-sprintf.c: New file.
67816         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67817         * lib/unistdio/u16-u16-vasprintf.c: New file.
67818         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67819         * lib/unistdio/u16-u16-vsprintf.c: New file.
67820         * lib/unistdio/u32-asnprintf.c: New file.
67821         * lib/unistdio/u32-asprintf.c: New file.
67822         * lib/unistdio/u32-printf-parse.c: New file.
67823         * lib/unistdio/u32-snprintf.c: New file.
67824         * lib/unistdio/u32-sprintf.c: New file.
67825         * lib/unistdio/u32-vasnprintf.c: New file.
67826         * lib/unistdio/u32-vasprintf.c: New file.
67827         * lib/unistdio/u32-vsnprintf.c: New file.
67828         * lib/unistdio/u32-vsprintf.c: New file.
67829         * lib/unistdio/u32-u32-asnprintf.c: New file.
67830         * lib/unistdio/u32-u32-asprintf.c: New file.
67831         * lib/unistdio/u32-u32-snprintf.c: New file.
67832         * lib/unistdio/u32-u32-sprintf.c: New file.
67833         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67834         * lib/unistdio/u32-u32-vasprintf.c: New file.
67835         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67836         * lib/unistdio/u32-u32-vsprintf.c: New file.
67837         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67838         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67839         * tests/unistdio/test-ulc-printf1.h: New file.
67840         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67841         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67842         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67843         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67844         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67845         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67846         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67847         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67848         * tests/unistdio/test-u8-asnprintf1.c: New file.
67849         * tests/unistdio/test-u8-asnprintf1.h: New file.
67850         * tests/unistdio/test-u8-printf1.h: New file.
67851         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67852         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67853         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67854         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67855         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67856         * tests/unistdio/test-u8-vasprintf1.c: New file.
67857         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67858         * tests/unistdio/test-u8-vsprintf1.c: New file.
67859         * tests/unistdio/test-u16-asnprintf1.c: New file.
67860         * tests/unistdio/test-u16-asnprintf1.h: New file.
67861         * tests/unistdio/test-u16-printf1.h: New file.
67862         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67863         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67864         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67865         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67866         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67867         * tests/unistdio/test-u16-vasprintf1.c: New file.
67868         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67869         * tests/unistdio/test-u16-vsprintf1.c: New file.
67870         * tests/unistdio/test-u32-asnprintf1.c: New file.
67871         * tests/unistdio/test-u32-asnprintf1.h: New file.
67872         * tests/unistdio/test-u32-printf1.h: New file.
67873         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67874         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67875         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67876         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67877         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67878         * tests/unistdio/test-u32-vasprintf1.c: New file.
67879         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67880         * tests/unistdio/test-u32-vsprintf1.c: New file.
67881         * modules/unistdio/base: New file.
67882         * modules/unistdio/u-printf-args: New file.
67883         * modules/unistdio/ulc-asnprintf: New file.
67884         * modules/unistdio/ulc-asprintf: New file.
67885         * modules/unistdio/ulc-fprintf: New file.
67886         * modules/unistdio/ulc-printf-parse: New file.
67887         * modules/unistdio/ulc-snprintf: New file.
67888         * modules/unistdio/ulc-sprintf: New file.
67889         * modules/unistdio/ulc-vasnprintf: New file.
67890         * modules/unistdio/ulc-vasprintf: New file.
67891         * modules/unistdio/ulc-vfprintf: New file.
67892         * modules/unistdio/ulc-vsnprintf: New file.
67893         * modules/unistdio/ulc-vsprintf: New file.
67894         * modules/unistdio/u8-asnprintf: New file.
67895         * modules/unistdio/u8-asprintf: New file.
67896         * modules/unistdio/u8-printf-parse: New file.
67897         * modules/unistdio/u8-snprintf: New file.
67898         * modules/unistdio/u8-sprintf: New file.
67899         * modules/unistdio/u8-vasnprintf: New file.
67900         * modules/unistdio/u8-vasprintf: New file.
67901         * modules/unistdio/u8-vsnprintf: New file.
67902         * modules/unistdio/u8-vsprintf: New file.
67903         * modules/unistdio/u8-u8-asnprintf: New file.
67904         * modules/unistdio/u8-u8-asprintf: New file.
67905         * modules/unistdio/u8-u8-snprintf: New file.
67906         * modules/unistdio/u8-u8-sprintf: New file.
67907         * modules/unistdio/u8-u8-vasnprintf: New file.
67908         * modules/unistdio/u8-u8-vasprintf: New file.
67909         * modules/unistdio/u8-u8-vsnprintf: New file.
67910         * modules/unistdio/u8-u8-vsprintf: New file.
67911         * modules/unistdio/u16-asnprintf: New file.
67912         * modules/unistdio/u16-asprintf: New file.
67913         * modules/unistdio/u16-printf-parse: New file.
67914         * modules/unistdio/u16-snprintf: New file.
67915         * modules/unistdio/u16-sprintf: New file.
67916         * modules/unistdio/u16-vasnprintf: New file.
67917         * modules/unistdio/u16-vasprintf: New file.
67918         * modules/unistdio/u16-vsnprintf: New file.
67919         * modules/unistdio/u16-vsprintf: New file.
67920         * modules/unistdio/u16-u16-asnprintf: New file.
67921         * modules/unistdio/u16-u16-asprintf: New file.
67922         * modules/unistdio/u16-u16-snprintf: New file.
67923         * modules/unistdio/u16-u16-sprintf: New file.
67924         * modules/unistdio/u16-u16-vasnprintf: New file.
67925         * modules/unistdio/u16-u16-vasprintf: New file.
67926         * modules/unistdio/u16-u16-vsnprintf: New file.
67927         * modules/unistdio/u16-u16-vsprintf: New file.
67928         * modules/unistdio/u32-asnprintf: New file.
67929         * modules/unistdio/u32-asprintf: New file.
67930         * modules/unistdio/u32-printf-parse: New file.
67931         * modules/unistdio/u32-snprintf: New file.
67932         * modules/unistdio/u32-sprintf: New file.
67933         * modules/unistdio/u32-vasnprintf: New file.
67934         * modules/unistdio/u32-vasprintf: New file.
67935         * modules/unistdio/u32-vsnprintf: New file.
67936         * modules/unistdio/u32-vsprintf: New file.
67937         * modules/unistdio/u32-u32-asnprintf: New file.
67938         * modules/unistdio/u32-u32-asprintf: New file.
67939         * modules/unistdio/u32-u32-snprintf: New file.
67940         * modules/unistdio/u32-u32-sprintf: New file.
67941         * modules/unistdio/u32-u32-vasnprintf: New file.
67942         * modules/unistdio/u32-u32-vasprintf: New file.
67943         * modules/unistdio/u32-u32-vsnprintf: New file.
67944         * modules/unistdio/u32-u32-vsprintf: New file.
67945         * modules/unistdio/ulc-asnprintf-tests: New file.
67946         * modules/unistdio/ulc-vasnprintf-tests: New file.
67947         * modules/unistdio/ulc-vasprintf-tests: New file.
67948         * modules/unistdio/ulc-vsnprintf-tests: New file.
67949         * modules/unistdio/ulc-vsprintf-tests: New file.
67950         * modules/unistdio/u8-asnprintf-tests: New file.
67951         * modules/unistdio/u8-vasnprintf-tests: New file.
67952         * modules/unistdio/u8-vasprintf-tests: New file.
67953         * modules/unistdio/u8-vsnprintf-tests: New file.
67954         * modules/unistdio/u8-vsprintf-tests: New file.
67955         * modules/unistdio/u16-asnprintf-tests: New file.
67956         * modules/unistdio/u16-vasnprintf-tests: New file.
67957         * modules/unistdio/u16-vasprintf-tests: New file.
67958         * modules/unistdio/u16-vsnprintf-tests: New file.
67959         * modules/unistdio/u16-vsprintf-tests: New file.
67960         * modules/unistdio/u32-asnprintf-tests: New file.
67961         * modules/unistdio/u32-vasnprintf-tests: New file.
67962         * modules/unistdio/u32-vasprintf-tests: New file.
67963         * modules/unistdio/u32-vsnprintf-tests: New file.
67964         * modules/unistdio/u32-vsprintf-tests: New file.
67965         * MODULES.html.sh (Unicode string functions): Add the new modules.
67966
67967 2007-07-01  Bruno Haible  <bruno@clisp.org>
67968
67969         * lib/sprintf.c (sprintf): Limit the available length estimation,
67970         to avoid address wraparound.
67971         * lib/vsprintf.c (vsprintf): Likewise.
67972         * modules/sprintf-posix (Dependencies): Add stdint.
67973         * modules/vsprintf-posix (Dependencies): Likewise.
67974
67975 2007-07-01  Bruno Haible  <bruno@clisp.org>
67976
67977         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67978         Windows PATH as well. Conservative double-quoting. Comments.
67979
67980 2007-07-01  Bruno Haible  <bruno@clisp.org>
67981             Eric Blake  <ebb9@byu.net>
67982             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67983
67984         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67985         empty components in $PATH, denoting '.'.
67986
67987 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67988
67989         * gnulib-tool: Fix indentation.
67990         (func_create_megatestdir): Likewise.
67991         Report by Bruno Haible.
67992
67993 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67994
67995         Sync from Automake.
67996         * build-aux/gnupload: Fix shell portability issues with for loops.
67997         Report by Karl Berry.
67998
67999 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68000
68001         * build-aux/maint.mk (POURL): Use translationproject.org.
68002
68003 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68004             Bruno Haible  <bruno@clisp.org>
68005
68006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68007         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68008         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68009         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68010         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68011
68012 2007-06-27  Bruno Haible  <bruno@clisp.org>
68013
68014         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68015         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68016
68017 2007-06-26  Karl Berry  <karl@gnu.org>
68018
68019         * MODULES.html.sh: remove xreadlink-with-size.
68020
68021 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68022
68023         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68024         method that I hope also handles the double-include problem noted
68025         by Bruno Haible in
68026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68027
68028 2007-06-23  Bruno Haible  <bruno@clisp.org>
68029
68030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68031         Don't let the 'mostlyclean' target fail if the last subdirectory could
68032         not be removed.
68033         Reported by Karl Berry.
68034
68035 2007-06-23  Bruno Haible  <bruno@clisp.org>
68036
68037         * gnulib-tool (echo): Add a speedier workaround for ksh.
68038         * tests/test-echo.sh: Likewise.
68039
68040 2007-06-23  Bruno Haible  <bruno@clisp.org>
68041
68042         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68043         * tests/test-echo.sh: Likewise.
68044
68045 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68046
68047         * gnulib-tool (IFS): Initialize early, so we don't set it to
68048         empty later.
68049         (self_abspathname): Rewrite algorithm to set it, reindent.
68050         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68051         (func_create_megatestdir): Merge some sed scripts.
68052
68053 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68054
68055         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68056         exposed by Sun Studio 11 cc on Solaris 8.
68057
68058 2007-06-22  Bruno Haible  <bruno@clisp.org>
68059
68060         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68061         backslashes.
68062         * tests/test-echo.sh: New file.
68063
68064 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68065
68066         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68067         simplify `sed_replace_build_aux' scripts, they are portable but
68068         echoing them with `echo' is not.
68069         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68070
68071 2007-06-21  Karl Berry  <karl@gnu.org>
68072
68073         * config/srclist.txt: guess we can't handle the licenses via
68074         srclist at the moment.
68075
68076 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         * MODULES.html.sh: Add include_next.
68079         * modules/include_next: New file.
68080
68081 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68082
68083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68084         INCLUDE_NEXT.
68085         (gl_CHECK_NEXT_HEADERS): New macro.
68086         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68087         the obsolescent gl_ABSOLUTE_HEADER.
68088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68089         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68090         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68091         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68092         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68093         * m4/math_h.m4 (gl_MATH_H): Likewise.
68094         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68095         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68096         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68097         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68098         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68099         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68100         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68104         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68105         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68106         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68107         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68108         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68109         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68110         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68111         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68112         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68113         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68114         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68115         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68116         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68117         * lib/float_.h: Likewise.
68118         * lib/inttypes_.h: Likewise.
68119         * lib/math_.h: Likewise.
68120         * lib/search_.h: Likewise.
68121         * lib/signal_.h: Likewise.
68122         * lib/stdint_.h: Likewise.
68123         * lib/stdio_.h: Likewise.
68124         * lib/stdlib_.h: Likewise.
68125         * lib/string_.h: Likewise.
68126         * lib/sys_stat_.h: Likewise.
68127         * lib/sys_time_.h: Likewise.
68128         * lib/time_.h: Likewise.
68129         * lib/unistd_.h: Likewise.
68130         * lib/wchar_.h: Likewise.
68131         * lib/wctype_.h: Likewise.
68132         * lib/dirent_.h: Likewise.
68133         * lib/iconv_.h: Likewise.
68134         * lib/locale_.h: Likewise.
68135         * lib/netinet_in_.h: Likewise.
68136         * lib/sys_select_.h: Likewise.
68137         * lib/sys_socket_.h: Likewise.
68138         * lib/sysexits_.h: Likewise.
68139         * modules/fcntl (Depends-on): Depend on include_next, not
68140         absolute_header.
68141         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68142         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68143         * modules/fchdir: Likewise.
68144         * modules/float: Likewise.
68145         * modules/iconv_open: Likewise.
68146         * modules/inttypes: Likewise.
68147         * modules/locale: Likewise.
68148         * modules/math: Likewise.
68149         * modules/netinet_in: Likewise.
68150         * modules/search: Likewise.
68151         * modules/signal: Likewise.
68152         * modules/stdint: Likewise.
68153         * modules/stdio: Likewise.
68154         * modules/stdlib: Likewise.
68155         * modules/string: Likewise.
68156         * modules/sys_select: Likewise.
68157         * modules/sys_socket: Likewise.
68158         * modules/sys_stat: Likewise.
68159         * modules/sys_time: Likewise.
68160         * modules/sysexits: Likewise.
68161         * modules/time: Likewise.
68162         * modules/unistd: Likewise.
68163         * modules/wchar: Likewise.
68164         * modules/wctype: Likewise.
68165         * modules/sys_stat: Change maintainer to "all".
68166         * modules/unistd: Likewise.
68167
68168 2007-06-20  Karl Berry  <karl@gnu.org>
68169
68170         * config/srclist.txt: track www changes in license files.
68171
68172 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68173
68174         * build-aux/bootstrap: Remove stray dot.
68175         Make sure build_aux settings are honored when linking
68176         gnulib_extra_files.
68177
68178 2007-06-19  Eric Blake  <ebb9@byu.net>
68179
68180         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68181         Allow compilation on cygwin.
68182
68183 2007-06-19  Jim Meyering  <jim@meyering.net>
68184
68185         xreadlink-with-size: Remove module.  No longer used.
68186         Ex-callers now use xreadlink or mreadlink-with-size.
68187         * modules/xreadlink-with-size: Remove module.
68188         * lib/xreadlink-with-size.c: Remove file.
68189         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68190         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68191         just before the function definition *is* accurate.
68192
68193         Eliminate one way canonicalize_filename_mode could exit.
68194         * lib/canonicalize.c (canonicalize_filename_mode):
68195         Use mreadlink_with_size, not xreadlink_with_size.
68196
68197 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68198
68199         Detect porting problems to FreeBSD/arm, which has time_t wider than
68200         long int.  Original problem reported for GNU diff by Xin Li in
68201         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68202         * modules/getdate (Depends-on): Add intprops, verify.
68203         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68204         is an integer type no wider than long int.
68205
68206 2007-06-18  Jim Meyering  <jim@meyering.net>
68207
68208         New module: mreadlink-with-size.
68209         * MODULES.html.sh: Add mreadlink-with-size.
68210         * modules/mreadlink-with-size: New module
68211         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68212         not xreadlink-with-size.
68213         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68214
68215 2007-06-16  Bruno Haible  <bruno@clisp.org>
68216
68217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68218         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68219         Reported by Gary V. Vaughan <gary@gnu.org>.
68220
68221 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         Revamp lchown so that it lives in unistd.h where it belongs.
68224         * lib/lchown.h: Remove.
68225         * lib/dirchownmod.c: Don't include lib/lchown.h.
68226         * lib/fchownat.c: Likewise.
68227         * lib/openat.c: Likewise.
68228         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68229         does not follow symlinks.
68230         (EOPNOTSUPP): Define if not defined.
68231         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68232         is defined to 0.
68233         (lchown): New decl.
68234         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68235         Do not check for lchown decl.
68236         Set REPLACE_LCHOWN.
68237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68238         REPLACE_LCHOWN.
68239         * modules/chown: Make it clear it follows symlinks.
68240         * modules/lchown: Make it clear it doesn't follow symlinks.
68241         (Files): Remove lib/lchown.h
68242         (Depends-on): Add unistd.
68243         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68244         (Include): Include <unistd.h>, not "lchown.h".
68245         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68246         REPLACE_LCHOWN.
68247
68248 2007-06-15  Jim Meyering  <jim@meyering.net>
68249
68250         Change license (GPL to LGPL) of fsusage and dependents.
68251         * modules/fsusage (License): Change to LGPL.
68252         * modules/full-read (License): Likewise.
68253         * modules/full-write (License): Likewise.
68254         * modules/safe-read (License): Likewise.
68255         * modules/safe-write (License): Likewise.
68256
68257 2007-06-14  Ben Pfaff  <blp@gnu.org>
68258
68259         Missing part of allocsa -> malloca transition.
68260         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68261         gl_MALLOCA.
68262
68263 2007-06-12  Bruno Haible  <bruno@clisp.org>
68264
68265         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68266         to ia64, x86_64, i386.
68267         Reported by Eric Blake.
68268
68269 2007-06-12  Bruno Haible  <bruno@clisp.org>
68270
68271         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68272         cross-compiling to x86_64.
68273
68274 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68277         glitch reported by Ralf Wildenhues in
68278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68279
68280         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68281         Vin Shelton.
68282
68283 2007-06-11  Bruno Haible  <bruno@clisp.org>
68284
68285         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68286         replacement string.
68287         Reported by Eric Blake.
68288
68289 2007-06-10  Bruno Haible  <bruno@clisp.org>
68290
68291         Prepare vasnprintf code for use with Unicode strings.
68292         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68293         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68294         TYPE_U32_STRING.
68295         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68296         a_u32_string variants.
68297         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68298         * lib/printf-args.c: Don't include config.h and the specification
68299         header if PRINTF_FETCHARGS is already defined.
68300         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68301         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68302         TYPE_U16_STRING, TYPE_U32_STRING.
68303         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68304         u16_directive, u16_directives, u32_directive, u32_directives): New
68305         types.
68306         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68307         New declarations.
68308         * lib/printf-parse.c: Don't include config.h and the specification
68309         header if PRINTF_PARSE is already defined. Eliminate the set of
68310         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68311         them now. Include c-ctype.h.
68312         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68313         directive and CHAR_T_ONLY_ASCII.
68314         * lib/vasnprintf.c: Don't include config.h and the specification header
68315         if VASNPRINTF is already defined.
68316         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68317         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68318         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68319         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68320         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68321         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68322         code accordingly.
68323         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68324         pad_ourselves also in this case, with the 'c' and 's' directives, and
68325         with a different notion of "width".
68326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68327
68328 2007-06-10  Bruno Haible  <bruno@clisp.org>
68329
68330         * modules/unistr/u32-mbsnlen: New file.
68331         * lib/unistr/u32-mbsnlen.c: New file.
68332
68333         * modules/unistr/u16-mbsnlen: New file.
68334         * lib/unistr/u16-mbsnlen.c: New file.
68335
68336         * modules/unistr/u8-mbsnlen: New file.
68337         * lib/unistr/u8-mbsnlen.c: New file.
68338
68339         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68340         declarations.
68341
68342 2007-06-10  Bruno Haible  <bruno@clisp.org>
68343
68344         * lib/string_.h (mbsnlen): New declaration.
68345         * lib/mbsnlen.c: New file.
68346         * m4/mbsnlen.m4: New file.
68347         * modules/mbsnlen: New file.
68348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68349         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68350         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68351
68352 2007-06-10  Bruno Haible  <bruno@clisp.org>
68353
68354         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68355
68356 2007-06-10  Bruno Haible  <bruno@clisp.org>
68357
68358         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68359         * lib/mbuiter.h: Likewise.
68360
68361 2007-06-10  Bruno Haible  <bruno@clisp.org>
68362
68363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68364         declaration.
68365
68366 2007-06-10  Karl Berry  <karl@gnu.org>
68367
68368         * config/srclist.txt: remove gettext entries, Bruno prefers
68369         to update individually.
68370
68371 2007-06-10  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68374         'maxlen'. Ensure only length + width bytes are allocated, not
68375         length + 1 + width.
68376
68377 2007-06-09  Bruno Haible  <bruno@clisp.org>
68378
68379         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68380         (CHAR_T): Remove macro.
68381         (VASNPRINTF): Update.
68382
68383 2007-06-09  Bruno Haible  <bruno@clisp.org>
68384
68385         * MODULES.html.sh (Unicode string functions): Add the new modules.
68386
68387         * modules/uniconv/u32-conv-to-enc: New file.
68388         * lib/uniconv/u32-conv-to-enc.c: New file.
68389         * modules/uniconv/u32-conv-to-enc-tests: New file.
68390         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68391
68392         * modules/uniconv/u16-conv-to-enc: New file.
68393         * lib/uniconv/u16-conv-to-enc.c: New file.
68394         * lib/uniconv/u-conv-to-enc.h: New file.
68395         * modules/uniconv/u16-conv-to-enc-tests: New file.
68396         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68397
68398         * modules/uniconv/u8-conv-to-enc: New file.
68399         * lib/uniconv/u8-conv-to-enc.c: New file.
68400         * modules/uniconv/u8-conv-to-enc-tests: New file.
68401         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68402
68403         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68404         u32_conv_to_encoding): New declarations.
68405
68406 2007-06-09  Bruno Haible  <bruno@clisp.org>
68407
68408         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68409
68410 2007-06-09  Bruno Haible  <bruno@clisp.org>
68411
68412         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68413         * modules/malloca: Renamed from modules/allocsa, updated.
68414         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68415         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68416         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68417         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68418         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68419         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68420         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68421         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68422         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68423         * modules/c-strcasestr (Depends-on): Update.
68424         * lib/c-strcasestr.c: Update.
68425         * modules/c-strstr (Depends-on): Update.
68426         * lib/c-strstr.c: Update.
68427         * modules/canonicalize-lgpl (Depends-on): Update.
68428         * lib/canonicalize-lgpl.c: Update.
68429         * modules/clean-temp (Depends-on): Update.
68430         * lib/clean-temp.c: Update.
68431         * modules/csharpcomp (Depends-on): Update.
68432         * lib/csharpcomp.c: Update.
68433         * modules/csharpexec (Depends-on): Update.
68434         * lib/csharpexec.c: Update.
68435         * modules/javacomp (Depends-on): Update.
68436         * lib/javacomp.c: Update.
68437         * modules/javaexec (Depends-on): Update.
68438         * lib/javaexec.c: Update.
68439         * modules/mbscasestr (Depends-on): Update.
68440         * lib/mbscasestr.c: Update.
68441         * modules/mbsstr (Depends-on): Update.
68442         * lib/mbsstr.c: Update.
68443         * modules/setenv (Depends-on): Update.
68444         * lib/setenv.c: Update.
68445         * modules/strcasestr (Depends-on): Update.
68446         * lib/strcasestr.c: Update.
68447         * modules/striconveha (Depends-on): Update.
68448         * lib/striconveha.c: Update.
68449         * modules/relocatable-prog-wrapper (Files): Update.
68450         * lib/relocwrapper.c: Update.
68451         * build-aux/install-reloc: Update.
68452         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68453
68454 2007-06-08  Bruno Haible  <bruno@clisp.org>
68455
68456         Port to uClibc.
68457         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68458         * lib/fpurge.c (fpurge): Likewise.
68459         * lib/freading.c (freading): Likewise.
68460         * lib/fseeko.c (rpl_fseeko): Likewise.
68461         * lib/fseterr.c (fseterr): Likewise.
68462         * lib/fwriting.c (fwriting): Likewise.
68463         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68464
68465 2007-06-08  Bruno Haible  <bruno@clisp.org>
68466
68467         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68468         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68469         * modules/gettext (Files): Add m4/intlmacosx.m4.
68470
68471 2007-06-07  Bruno Haible  <bruno@clisp.org>
68472
68473         * modules/localename-tests: New file.
68474         * tests/test-localename.c: New file.
68475
68476         New module 'localename'.
68477         * lib/localename.h: New file.
68478         * lib/localename.c: New file, from GNU gettext.
68479         * m4/localename.m4: New file.
68480         * modules/localename: New file.
68481
68482 2007-06-07  Bruno Haible  <bruno@clisp.org>
68483
68484         Work around the lack of <wchar.h> on some builds of uClibc.
68485         * doc/headers/wchar.texi: Update.
68486         * lib/wchar_.h: Include <wchar.h> only if it exists.
68487         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68488         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68489         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68490         doesn't exist.
68491         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68492         * modules/mbfile (Depends-on): Add wchar.
68493         * modules/mbiter (Depends-on): Likewise.
68494         * modules/mbuiter (Depends-on): Likewise.
68495         Reported by Simon Josefsson.
68496
68497 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         Work around problem reported by Steven M. Schweda in
68500         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68501         Tru64 5.1B with the Compaq compiler environment installed declares
68502         an 'isblank' function but does not define it in the C library.
68503         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68504         * lib/regex_internal.h (isblank): Likewise.
68505         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68506         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68507
68508 2007-06-05  Bruno Haible  <bruno@clisp.org>
68509
68510         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68511         ia64.
68512         * modules/printf-safe: New file.
68513         * modules/fprintf-posix (Depends-on): Add printf-safe.
68514         * modules/printf-posix (Depends-on): Likewise.
68515         * modules/snprintf-posix (Depends-on): Likewise.
68516         * modules/sprintf-posix (Depends-on): Likewise.
68517         * modules/vasnprintf-posix (Depends-on): Likewise.
68518         * modules/vasprintf-posix (Depends-on): Likewise.
68519         * modules/vfprintf-posix (Depends-on): Likewise.
68520         * modules/vprintf-posix (Depends-on): Likewise.
68521         * modules/vsnprintf-posix (Depends-on): Likewise.
68522         * modules/vsprintf-posix (Depends-on): Likewise.
68523         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68524         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68525         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68526         "no" on i386, x86_64, ia64.
68527         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68528         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68529         on i386, x86_64, ia64.
68530         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68531         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68532         on i386, x86_64, ia64.
68533         * tests/test-vasnprintf-posix.c: Include float.h.
68534         (LDBL80_WORDS): New macro.
68535         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68536         on i386, x86_64, ia64.
68537         * tests/test-vasprintf-posix.c: Include float.h.
68538         (LDBL80_WORDS): New macro.
68539         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68540         on i386, x86_64, ia64.
68541         * tests/test-snprintf-posix.c: Include float.h.
68542         * tests/test-sprintf-posix.c: Likewise.
68543         * tests/test-vsnprintf-posix.c: Likewise.
68544         * tests/test-vsprintf-posix.c: Likewise.
68545
68546 2007-06-05  Bruno Haible  <bruno@clisp.org>
68547
68548         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68549         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68550         non-IEEE numbers on i386, x86_64, ia64.
68551         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68552         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68553         * tests/test-isnanl.h: Include float.h.
68554         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68555
68556 2007-06-05  Bruno Haible  <bruno@clisp.org>
68557
68558         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68559         also the %a / %A. Handle the %a / %A code before this extra handling.
68560
68561 2007-06-05  Bruno Haible  <bruno@clisp.org>
68562
68563         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68564         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68565
68566 2007-06-05  Bruno Haible  <bruno@clisp.org>
68567
68568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68569         typo in variable name.
68570
68571 2007-06-05  Eric Blake  <ebb9@byu.net>
68572
68573         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68574         Reported by Simon Josefsson.
68575
68576 2007-06-04  Bruno Haible  <bruno@clisp.org>
68577
68578         Avoid test failures on some PowerPC platforms.
68579         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68580         Define differently for PowerPC.
68581         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68582         Reported by Gary V. Vaughan <gary@gnu.org>.
68583
68584 2007-06-02  Bruno Haible  <bruno@clisp.org>
68585
68586         Fix test-stdint failure on FreeBSD/ia64.
68587         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68588         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68589         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68590         * doc/headers/stdint.texi: Update.
68591
68592 2007-06-01  Bruno Haible  <bruno@clisp.org>
68593
68594         * tests/test-binary-io.c (main): Pass a third argument to open().
68595         Reported by Gary V. Vaughan <gary@gnu.org>.
68596
68597 2007-06-01  Bruno Haible  <bruno@clisp.org>
68598
68599         * doc/functions/frexpl.texi: Update for mingw.
68600
68601 2007-06-01  Bruno Haible  <bruno@clisp.org>
68602
68603         * tests/test-lseek.c (main): Disable test of errno for invalid third
68604         argument.
68605         * doc/functions/lseek.texi: Update.
68606         Reported by Gary V. Vaughan <gary@gnu.org>.
68607
68608 2007-05-28  Bruno Haible  <bruno@clisp.org>
68609
68610         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68611
68612 2007-05-31  Eric Blake  <ebb9@byu.net>
68613
68614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68615         cross compiling.
68616
68617 2007-05-30  Eric Blake  <ebb9@byu.net>
68618         and Bruno Haible  <bruno@clisp.org>
68619
68620         Work around mingw test failures exposed by m4-1.4.9b.
68621         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68622         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68623         moment.
68624
68625 2007-05-30  Bruno Haible  <bruno@clisp.org>
68626
68627         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68628         assuming that they are closed. Needed on HP-UX 11.
68629
68630 2007-05-29  Bruno Haible  <bruno@clisp.org>
68631
68632         Fix a problem with #include_next.
68633         * lib/dirent_.h: Split the double-inclusion guard.
68634         * lib/fcntl_.h: Likewise.
68635         * lib/float_.h: Likewise.
68636         * lib/iconv_.h: Likewise.
68637         * lib/inttypes_.h: Likewise.
68638         * lib/locale_.h: Likewise.
68639         * lib/math_.h: Likewise.
68640         * lib/netinet_in_.h: Likewise.
68641         * lib/search_.h: Likewise.
68642         * lib/signal_.h: Likewise.
68643         * lib/stdint_.h: Likewise.
68644         * lib/stdio_.h: Likewise.
68645         * lib/stdlib_.h: Likewise.
68646         * lib/string_.h: Likewise.
68647         * lib/sys_select_.h: Likewise.
68648         * lib/sys_socket_.h: Likewise.
68649         * lib/sys_stat_.h: Likewise.
68650         * lib/sys_time_.h: Likewise.
68651         * lib/sysexits_.h: Likewise.
68652         * lib/time_.h: Likewise.
68653         * lib/unistd_.h: Likewise.
68654         * lib/wchar_.h: Likewise.
68655         * lib/wctype_.h: Likewise.
68656
68657 2007-05-29  Bruno Haible  <bruno@clisp.org>
68658
68659         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68660         for the moment.
68661
68662 2007-05-29  Bruno Haible  <bruno@clisp.org>
68663
68664         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68665         invocation.
68666         Reported by Eric Blake.
68667
68668 2007-05-29  Bruno Haible  <bruno@clisp.org>
68669
68670         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68671         compiling case.
68672
68673 2007-05-29  Eric Blake  <ebb9@byu.net>
68674             Bruno Haible  <bruno@clisp.org>
68675
68676         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68677         cross compiles.
68678
68679 2007-05-28  Eric Blake  <ebb9@byu.net>
68680
68681         * modules/closein-tests (test_closein_LDADD): Support test on
68682         cygwin with libtool.
68683
68684 2007-05-28  Bruno Haible  <bruno@clisp.org>
68685
68686         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68687         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68688         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68689         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68690         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68691         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68692         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68693         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68694         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68695
68696 2007-05-28  Eric Blake  <ebb9@byu.net>
68697
68698         Unconditionally include <config.h> in unit tests.
68699         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68700         * tests/test-allocsa.c, tests/test-arcfour.c,
68701         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68702         tests/test-array_list.c, tests/test-array_oset.c,
68703         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68704         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68705         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68706         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68707         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68708         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68709         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68710         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68711         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68712         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68713         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68714         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68715         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68716         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68717         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68718         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68719         test-md5.c, test-memmem.c, test-printf-posix.c,
68720         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68721         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68722         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68723         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68724         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68725         test-vasnprintf-posix2.c, test-vasnprintf.c,
68726         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68727         test-vfprintf-posix.c, test-vprintf-posix.c,
68728         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68729         test-xvasprintf.c: Likewise.
68730
68731 2007-05-28  Bruno Haible  <bruno@clisp.org>
68732
68733         * gnulib-tool (func_import): Remember the --with-tests command-line
68734         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68735         Reported by Eric Blake.
68736
68737 2007-05-28  Bruno Haible  <bruno@clisp.org>
68738
68739         * modules/ftell-tests: New file.
68740         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68741         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68742
68743         * lib/ftell.c: New file.
68744         * modules/ftell: New file.
68745         * m4/ftell.m4: New file.
68746         * doc/functions/ftell.texi: Update.
68747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68748         REPLACE_FTELL.
68749         * lib/stdio_.h (rpl_ftell): New declaration.
68750         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68751         REPLACE_FTELL.
68752
68753 2007-05-28  Eric Blake  <ebb9@byu.net>
68754
68755         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68756
68757 2007-05-28  Bruno Haible  <bruno@clisp.org>
68758
68759         * modules/fseek-tests: New file.
68760         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68761         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68762
68763         * lib/fseek.c: New file.
68764         * modules/fseek: New file.
68765         * m4/fseek.m4: New file.
68766         * doc/functions/fseek.texi: Update.
68767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68768         REPLACE_FSEEK.
68769         * lib/stdio_.h (rpl_fseek): New declaration.
68770         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68771         REPLACE_FSEEK.
68772
68773 2007-05-28  Bruno Haible  <bruno@clisp.org>
68774
68775         * lib/stdio_.h (fflush): More comments.
68776
68777 2007-05-28  Bruno Haible  <bruno@clisp.org>
68778
68779         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68780         runtime test.
68781
68782 2007-05-28  Eric Blake  <ebb9@byu.net>
68783
68784         Improve lseek module.
68785         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68786         * lib/unistd_.h (lseek): Scale back link warning message.
68787         * tests/test-lseek.c: Beef up test.
68788         * tests/test-lseek.sh: Exercise more facets of lseek.
68789         Reported by Bruno Haible.
68790
68791 2007-05-28  Bruno Haible  <bruno@clisp.org>
68792
68793         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68794         to define.
68795
68796 2007-05-27  Bruno Haible  <bruno@clisp.org>
68797
68798         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68799
68800 2007-05-27  Bruno Haible  <bruno@clisp.org>
68801
68802         * modules/openmp: New file.
68803         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68804         Noah Misch.
68805
68806 2007-05-26  Bruno Haible  <bruno@clisp.org>
68807
68808         * modules/chdir-long (Depends-on): Add fchdir.
68809         * modules/chdir-safer (Depends-on): Likewise.
68810         * modules/fts (Depends-on): Likewise.
68811         * modules/fts-lgpl (Depends-on): Likewise.
68812         * modules/openat (Depends-on): Likewise.
68813         * modules/savewd (Depends-on): Likewise.
68814
68815 2007-05-24  Eric Blake  <ebb9@byu.net>
68816
68817         Fix lseek on mingw.
68818         * modules/lseek: New module.
68819         * m4/lseek.m4: New file.
68820         * lib/lseek.c: New file.
68821         * modules/lseek-tests: New file.
68822         * tests/test-lseek.c: New file.
68823         * tests/test-lseek.sh: New file.
68824         * MODULES.html.sh: Document lseek module.
68825         * modules/fflush (Depends-on): Add lseek, fseeko.
68826         * modules/fseeko (Depends-on): Likewise.
68827         * modules/ftello (Depends-on): Likewise.
68828         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68829         broken.
68830         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68831         broken.
68832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68833         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68834         * lib/ftello.c (rpl_ftello): Likewise.
68835         * tests/test-fseeko.c (main): Test this.
68836         * tests/test-fseeko.sh: Likewise.
68837         * tests/test-ftello.c (main): Likewise.
68838         * tests/test-ftello.sh: Likewise.
68839         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68840         implies replacing fseek.
68841         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68842         HAVE_FTELLO.
68843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68844         * modules/unistd (Makefile.am): Likewise.
68845         * lib/unistd_.h (lseek): Declare a replacement.
68846         * doc/functions/lseek.texi (lseek): Document this fix.
68847         * doc/functions/fseek.texi (fseek): Likewise.
68848         * doc/functions/ftell.texi (ftell): Likewise.
68849
68850 2007-05-24  Bruno Haible  <bruno@clisp.org>
68851
68852         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68853         in the printed representation of a NaN.
68854         * tests/test-vasprintf-posix.c (test_function): Likewise.
68855         * tests/test-snprintf-posix.h (test_function): Likewise.
68856         * tests/test-sprintf-posix.h (test_function): Likewise.
68857         Reported by Eric Blake.
68858
68859 2007-05-23  Eric Blake  <ebb9@byu.net>
68860
68861         Fix fseeko/ftello on cygwin 1.5.24.
68862         * doc/functions/fseeko.texi (fseeko): Document the fix.
68863         * doc/functions/ftello.texi (ftello): Document the fix.
68864         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68865         * doc/functions/stdout.text (stdout): New file.
68866         * doc/functions/stderr.text (stderr): New file.
68867         * doc/gnulib.texi (Function Substitutes): Use new files.
68868         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68869         prior to 1.7.0.
68870         * tests/test-ftello.c (main): Likewise for ftello.
68871         * tests/test-fseeko.sh: New file.
68872         * tests/test-ftello.sh: New file.
68873         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68874         with seekable stdin.
68875         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68877         (gl_REPLACE_FSEEKO): New macro.
68878         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68879         * modules/fseeko (Files): Distribute fseeko.c.
68880         * modules/ftello (Files): Distribute ftello.c.
68881         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68882         mode.
68883         * lib/ftello.c (rpl_ftello): New file.
68884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68885         fseeko, ftello.
68886         (gl_STDIN_LARGE_OFFSET): New macro.
68887         * modules/stdio (Makefile.am): Perform the replacement.
68888         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68889
68890 2007-05-23  Bruno Haible  <bruno@clisp.org>
68891
68892         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68893         GNULIB_POSIXCHECK is defined.
68894
68895 2007-05-21  Bruno Haible  <bruno@clisp.org>
68896
68897         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68898         Check also the output for NaN arguments. When cross-compiling, guess
68899         no on IRIX.
68900         * lib/vasnprintf.c: Update comments.
68901         * tests/test-vasnprintf-posix.c (strisnan): New function.
68902         (test_function): Use it.
68903         * tests/test-vasprintf-posix.c (strisnan): New function.
68904         (test_function): Use it.
68905         * tests/test-snprintf-posix.h (strisnan): New function.
68906         (test_function): Use it.
68907         * tests/test-sprintf-posix.h (strisnan): New function.
68908         (test_function): Use it.
68909         Reported by Eric Blake.
68910
68911 2007-05-20  Bruno Haible  <bruno@clisp.org>
68912
68913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68914         numbers that fails on BeOS.
68915         * doc/functions/frexpl.texi: Update.
68916
68917 2007-05-20  Jim Meyering  <jim@meyering.net>
68918
68919         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68920         forced upon us by glibc-2.6.
68921
68922 2007-05-20  Bruno Haible  <bruno@clisp.org>
68923
68924         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68925         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68926         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68927         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68928         NEED_PRINTF_INFINITE.
68929         (is_infinitel): New function.
68930         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68932         gl_PREREQ_VASNPRINTF_INFINITE.
68933         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68935         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68936         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68937         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68938         gl_PREREQ_VASNPRINTF_INFINITE.
68939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68946         * doc/functions/fprintf.texi: Update.
68947         * doc/functions/printf.texi: Update.
68948         * doc/functions/snprintf.texi: Update.
68949         * doc/functions/sprintf.texi: Update.
68950         * doc/functions/vfprintf.texi: Update.
68951         * doc/functions/vprintf.texi: Update.
68952         * doc/functions/vsnprintf.texi: Update.
68953         * doc/functions/vsprintf.texi: Update.
68954
68955 2007-05-20  Bruno Haible  <bruno@clisp.org>
68956
68957         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68958         was not found in libc.
68959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68960
68961 2007-05-20  Bruno Haible  <bruno@clisp.org>
68962
68963         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68964         printed as "-nan" instead of "nan".
68965         * tests/test-vasprintf-posix.c (test_function): Likewise.
68966         * tests/test-snprintf-posix.h (test_function): Likewise.
68967         * tests/test-sprintf-posix.h (test_function): Likewise.
68968         Needed for HP-UX 11.
68969
68970 2007-05-20  Jim Meyering  <jim@meyering.net>
68971
68972         Fix buggy test for the fchownat-deref bug.
68973         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68974         symlink required for the run-test.  Without it, this test would
68975         always declare that fchownat doesn't work, and client code would
68976         unnecessarily use the replacement function with fixed libc.
68977         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68978         Reported by Greg Schafer.
68979
68980 2007-05-19  Bruno Haible  <bruno@clisp.org>
68981
68982         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68983         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68984         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68985         Needed for IRIX 6.5 and Solaris 2.5.1.
68986
68987 2007-05-19  Bruno Haible  <bruno@clisp.org>
68988
68989         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68990         (test_function): Skip tests involving -0.0 on platforms where
68991         -0.0 = 0.0.
68992         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68993         (test_function): Skip tests involving -0.0 on platforms where
68994         -0.0 = 0.0.
68995         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68996         (test_function): Skip tests involving -0.0 on platforms where
68997         -0.0 = 0.0.
68998         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68999         (test_function): Skip tests involving -0.0 on platforms where
69000         -0.0 = 0.0.
69001         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69002         tests.
69003         * tests/test-printf-posix.h (test_function): Likewise.
69004         * tests/test-printf-posix.output: Remove all -0.0 related results.
69005         Needed for IRIX 6.5.
69006
69007 2007-05-19  Bruno Haible  <bruno@clisp.org>
69008
69009         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69010         printed as "nan0x7fffffff" instead of "nan".
69011         * tests/test-vasprintf-posix.c (test_function): Likewise.
69012         * tests/test-snprintf-posix.h (test_function): Likewise.
69013         * tests/test-sprintf-posix.h (test_function): Likewise.
69014         * tests/test-fprintf-posix.h (NaN): Remove macro.
69015         (test_function): Remove all NaN related tests.
69016         * tests/test-printf-posix.h (NaN): Remove macro.
69017         (test_function): Remove all NaN related tests.
69018         * tests/test-printf-posix.output: Remove all NaN related results.
69019         Needed for IRIX 6.5.
69020
69021 2007-05-19  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69025
69026 2007-05-19  Bruno Haible  <bruno@clisp.org>
69027
69028         * lib/float_.h: New file.
69029         * m4/float_h.m4: New file.
69030         * modules/float: New file.
69031         * modules/isnanl (Dependencies): Add float.
69032         * modules/isnanl-nolibm (Dependencies): Likewise.
69033         * modules/mathl (Dependencies): Likewise.
69034         * modules/printf-frexpl (Dependencies): Likewise.
69035         * modules/signbit (Dependencies): Likewise.
69036         * modules/vasnprintf (Dependencies): Likewise.
69037         * doc/headers/float.texi: Update.
69038
69039 2007-05-19  Jim Meyering  <jim@meyering.net>
69040
69041         * lib/utimens.c (gl_futimens): Rename from futimens,
69042         now that glibc-2.6 declares futimens.
69043         * lib/utimens.h: Likewise.
69044
69045 2007-05-19  Bruno Haible  <bruno@clisp.org>
69046
69047         Avoid test failures on mingw.
69048         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69049         * tests/test-printf-posix.sh: Likewise.
69050         * tests/test-vfprintf-posix.sh: Likewise.
69051         * tests/test-vprintf-posix.sh: Likewise.
69052
69053 2007-05-19  Bruno Haible  <bruno@clisp.org>
69054
69055         Fix *printf result for NaN, Inf, -0.0 on mingw.
69056         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69057         * lib/vasnprintf.c: Include math.h and isnan.h.
69058         (is_infinite_or_zero): New function.
69059         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69060         values in the %f, %F, %e, %E, %g, %G directives.
69061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69062         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69063         gl_PRINTF_INFINITE and test its result. Invoke
69064         gl_PREREQ_VASNPRINTF_INFINITE.
69065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69072         * doc/functions/fprintf.texi: Update.
69073         * doc/functions/printf.texi: Update.
69074         * doc/functions/snprintf.texi: Update.
69075         * doc/functions/sprintf.texi: Update.
69076         * doc/functions/vfprintf.texi: Update.
69077         * doc/functions/vprintf.texi: Update.
69078         * doc/functions/vsnprintf.texi: Update.
69079         * doc/functions/vsprintf.texi: Update.
69080
69081 2007-05-19  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69084         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69085         Instead of multiplying with 10^k, set extra_zeroes to k.
69086         (scale10_round_long_double): Remove function.
69087
69088 2007-05-18  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69091         introduced on 2007-05-06.
69092
69093 2007-05-18  Bruno Haible  <bruno@clisp.org>
69094
69095         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69096         %g directives.
69097         * tests/test-vasprintf-posix.c (test_function): Likewise.
69098         * tests/test-snprintf-posix.h (test_function): Likewise.
69099         * tests/test-sprintf-posix.h (test_function): Likewise.
69100
69101 2007-05-18  Bruno Haible  <bruno@clisp.org>
69102
69103         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69104         (strmatch): New function.
69105         (test_function): Test the %f directive on numbers of various exponents.
69106         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69107         (strmatch): New function.
69108         (test_function): Test the %f directive on numbers of various exponents.
69109         * tests/test-snprintf-posix.h (strmatch): New function.
69110         (test_function): Test the %f directive on numbers of various exponents.
69111         * tests/test-sprintf-posix.h (strmatch): New function.
69112         (test_function): Test the %f directive on numbers of various exponents.
69113         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69114         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69115         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69116         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69117
69118 2007-05-18  Bruno Haible  <bruno@clisp.org>
69119
69120         Add support for 'long double' number output.
69121         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69122         * lib/vasnprintf.c: Include math.h and float+.h.
69123         (mp_limb_t): New type.
69124         (GMP_LIMB_BITS): New macro.
69125         (mp_twolimb_t): New type.
69126         (GMP_TWOLIMB_BITS): New macro.
69127         (mpn_t): New type.
69128         (multiply, divide, convert_to_decimal, decode_long_double,
69129         scale10_round_long_double, scale10_round_decimal_long_double,
69130         floorlog10l): New functions.
69131         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69132         for the %f, %F, %e, %E, %g, %G directives.
69133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69135         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69136         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69144         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69145         * modules/snprintf-posix (Depends-on): Likewise.
69146         * modules/sprintf-posix (Depends-on): Likewise.
69147         * modules/vasnprintf-posix (Depends-on): Likewise.
69148         * modules/vasprintf-posix (Depends-on): Likewise.
69149         * modules/vfprintf-posix (Depends-on): Likewise.
69150         * modules/vsnprintf-posix (Depends-on): Likewise.
69151         * modules/vsprintf-posix (Depends-on): Likewise.
69152         * modules/vasnprintf (Files): Add lib/float+.h.
69153         * doc/functions/fprintf.texi: Update.
69154         * doc/functions/printf.texi: Update.
69155         * doc/functions/snprintf.texi: Update.
69156         * doc/functions/sprintf.texi: Update.
69157         * doc/functions/vfprintf.texi: Update.
69158         * doc/functions/vprintf.texi: Update.
69159         * doc/functions/vsnprintf.texi: Update.
69160         * doc/functions/vsprintf.texi: Update.
69161
69162 2007-05-18  Bruno Haible  <bruno@clisp.org>
69163
69164         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69165
69166 2007-05-18  Bruno Haible  <bruno@clisp.org>
69167
69168         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69169         for printing 64-bit integers. Needed for mingw.
69170
69171 2007-05-18  Bruno Haible  <bruno@clisp.org>
69172
69173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69174         gl_FUNC_FREXPL_WORKS.
69175         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69176
69177 2007-05-18  Bruno Haible  <bruno@clisp.org>
69178
69179         * modules/frexpl-nolibm-tests: New file.
69180
69181         * modules/frexpl-nolibm: New file.
69182         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69183
69184 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69187         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69188         GCC 4.2, which otherwise issues a lot of warnings.
69189         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69190         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69191         Likewise.
69192         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69193         * modules/iconv_open (iconv.h): Likewise.
69194         * modules/locale (locale.h): Likewise.
69195         * modules/netinet_in (netinet/in.h): Likewise.
69196         * modules/sys_select (sys_select.h): Likewise.
69197         * modules/sys_socket (sys/socket.h): Likewise.
69198         * modules/sys_stat (sys/stat.h): Likewise.
69199         * modules/sysexits (sysexits.h): Likewise.
69200         * modules/unistd (unistd.h): Likewise.
69201
69202 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69203
69204         * modules/closein-tests (Makefile.am): Distribute
69205         `test-closein.sh'.
69206
69207 2007-05-17  Bruno Haible  <bruno@clisp.org>
69208
69209         * tests/test-printf-posix.output: Renamed from
69210         tests/test-fprintf-posix.out.
69211         * modules/fprintf-posix-tests: Update.
69212         * modules/printf-posix-tests: Update.
69213         * modules/vfprintf-posix-tests: Update.
69214         * modules/vprintf-posix-tests: Update.
69215         * tests/test-fprintf-posix.sh: Update.
69216         * tests/test-printf-posix.sh: Update.
69217         * tests/test-vfprintf-posix.sh: Update.
69218         * tests/test-vprintf-posix.sh: Update.
69219         Reported by Ralf Wildenhues.
69220
69221 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69224         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69225         GCC 4.2, which otherwise issues a lot of warnings.
69226         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69227         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69228         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69229         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69230         it should no longer be needed.
69231         * lib/string_.h: Likewise.
69232         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69233         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69234         * modules/inttypes (inttypes.h): Likewise.
69235         * modules/math (math.h): Likewise.
69236         * modules/search (search.h): Likewise.
69237         * modules/signal (signal.h): Likewise.
69238         * modules/stdint (stdint.h): Likewise.
69239         * modules/stdio (stdio.h): Likewise.
69240         * modules/stdlib (stdlib.h): Likewise.
69241         * modules/string (string.h): Likewise.
69242         * modules/sys_time (sys/time.h): Likewise.
69243         * modules/time (time.h): Likewise.
69244         * modules/wchar (wchar.h): Likewise.
69245         * modules/wctype (wtype.h): Likewise.
69246
69247 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69248
69249         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69250
69251 2007-05-13  Bruno Haible  <bruno@clisp.org>
69252
69253         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69254         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69255         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69256         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69257         (gl_PREREQ_STRTOK_R): Don't require it here.
69258
69259 2007-05-13  Bruno Haible  <bruno@clisp.org>
69260
69261         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69262         when used in C++ mode.
69263
69264 2007-05-12  Bruno Haible  <bruno@clisp.org>
69265
69266         * lib/linebuffer.h: Tweak doc.
69267         * lib/linebuffer.c: Likewise.
69268
69269 2007-05-12  James Youngman  <jay@gnu.org>
69270
69271         * lib/linebuffer.c (readlinebuffer_delim): New function,
69272         like readlinebuffer, but use a caller-specified delimiter.
69273         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69274         as the delimiter.
69275         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69276
69277 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69278
69279         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69280         * modules/openat (Files): Remove openat-die.c.
69281         (Depends-on): Add openat-die.
69282         * modules/openat-die: New module.
69283
69284 2007-05-06  Bruno Haible  <bruno@clisp.org>
69285
69286         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69287         Update with info about Cygwin.
69288         * doc/functions/fprintf.texi: Update.
69289         * doc/functions/printf.texi: Update.
69290         * doc/functions/snprintf.texi: Update.
69291         * doc/functions/sprintf.texi: Update.
69292         * doc/functions/vfprintf.texi: Update.
69293         * doc/functions/vprintf.texi: Update.
69294         * doc/functions/vsnprintf.texi: Update.
69295         * doc/functions/vsprintf.texi: Update.
69296         Reported by Eric Blake.
69297
69298 2007-05-06  Bruno Haible  <bruno@clisp.org>
69299
69300         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69301         padding ourselves for the floating-point directives.
69302         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69305         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69306         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69314         * tests/test-snprintf-posix.h (test_function): Also check the width
69315         and some flags in the %f directive.
69316         * tests/test-sprintf-posix.h (test_function): Likewise.
69317         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69318         * tests/test-vasprintf-posix.c (test_function): Likewise.
69319         * doc/functions/fprintf.texi: Update.
69320         * doc/functions/printf.texi: Update.
69321         * doc/functions/snprintf.texi: Update.
69322         * doc/functions/sprintf.texi: Update.
69323         * doc/functions/vfprintf.texi: Update.
69324         * doc/functions/vprintf.texi: Update.
69325         * doc/functions/vsnprintf.texi: Update.
69326         * doc/functions/vsprintf.texi: Update.
69327
69328 2007-05-06  Bruno Haible  <bruno@clisp.org>
69329
69330         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69331         pass the ' flag character to sprintf or snprintf.
69332         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69335         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69336         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69344         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69345         flag.
69346         * tests/test-sprintf-posix.h (test_function): Likewise.
69347         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69348         * tests/test-vasprintf-posix.c (test_function): Likewise.
69349         * doc/functions/fprintf.texi: Update.
69350         * doc/functions/printf.texi: Update.
69351         * doc/functions/snprintf.texi: Update.
69352         * doc/functions/sprintf.texi: Update.
69353         * doc/functions/vfprintf.texi: Update.
69354         * doc/functions/vprintf.texi: Update.
69355         * doc/functions/vsnprintf.texi: Update.
69356         * doc/functions/vsprintf.texi: Update.
69357
69358 2007-05-01  Bruno Haible  <bruno@clisp.org>
69359
69360         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69361
69362 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69365         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69366
69367 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69370         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69372
69373 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69374
69375         * lib/argp-help.c (struct hol_entry): New member `ord'.
69376         (HOL_ENTRY_PTRCMP): Use ord for comparison
69377         (hol_sort): Initialize ord.
69378
69379 2007-05-01  Bruno Haible  <bruno@clisp.org>
69380
69381         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69382         Reported by Eric Blake.
69383         * doc/gnulib.texi (Function Substitutes): Update.
69384
69385 2007-05-01  Bruno Haible  <bruno@clisp.org>
69386
69387         * doc/functions.texi: Remove file, now redundant through
69388         doc/functions/*.texi.
69389
69390 2007-05-01  Bruno Haible  <bruno@clisp.org>
69391
69392         * modules/argp (Depends-on): Add sleep.
69393
69394 2007-05-01  Bruno Haible  <bruno@clisp.org>
69395
69396         * modules/sleep-tests: New file.
69397         * tests/test-sleep.c: New file.
69398
69399         * modules/sleep: New file.
69400         * lib/sleep.c: New file.
69401         * m4/sleep.m4: New file.
69402         * lib/unistd_.h (sleep): New declaration.
69403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69404         HAVE_SLEEP.
69405         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69406         * doc/functions/sleep.texi: Document the sleep module.
69407
69408 2007-05-01  Bruno Haible  <bruno@clisp.org>
69409
69410         * lib/sigprocmask.h: Remove file.
69411         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69412         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69413         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69414         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69415         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69416         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69417         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69418         HAVE_SIGSET_T as a shell variable.
69419         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69420         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69421         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69422         (Depends-on): Add signal. Remove verify.
69423         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69424         (Include): Mention <signal.h> instead of sigprocmask.h.
69425         * NEWS: Mention the change.
69426         * lib/fatal-signal.c: Don't include sigprocmask.h.
69427
69428 2007-05-01  Bruno Haible  <bruno@clisp.org>
69429
69430         * modules/signal: New file.
69431         * lib/signal_.h: New file.
69432         * m4/signal_h.m4: New file.
69433
69434 2007-05-01  Bruno Haible  <bruno@clisp.org>
69435
69436         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69437         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69438         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69439         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69440
69441 2007-05-01  Bruno Haible  <bruno@clisp.org>
69442
69443         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69444         configure time.
69445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69446         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69447         * modules/sys_stat (Makefile.am): Substitute their values into
69448         sys/stat.h.
69449
69450 2007-05-01  Bruno Haible  <bruno@clisp.org>
69451
69452         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69453         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69454         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69455
69456 2007-05-01  Bruno Haible  <bruno@clisp.org>
69457
69458         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69459         'assert' module here.
69460
69461 2007-05-01  Bruno Haible  <bruno@clisp.org>
69462
69463         * doc/functions/*.texi: New files.
69464         * doc/functions/google-ranking.txt: New file.
69465         * doc/gnulib.texi (Function Substitutes): New chapter.
69466         (ctime, inet_ntoa): Remove sections.
69467         * doc/ctime.texi: Remove file.
69468         * doc/inet_ntoa.texi: Remove file.
69469         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69470         dependencies.
69471         (%.info): New rule, specifying a --reference-limit.
69472
69473 2007-05-01  Bruno Haible  <bruno@clisp.org>
69474
69475         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69476
69477 2007-05-01  Bruno Haible  <bruno@clisp.org>
69478
69479         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69480         the portability of 'mkdir' to mingw systems.
69481
69482 2007-05-01  Bruno Haible  <bruno@clisp.org>
69483
69484         * doc/headers/google-ranking.txt: New file.
69485
69486 2007-04-30  Eric Blake  <ebb9@byu.net>
69487
69488         Prefer fseeko to fseek.
69489         * modules/getpass (Depends-on): Add fseeko.
69490         * lib/getpass.c (getpass): Use fseeko, not fseek.
69491
69492 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69493
69494         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69495         assumes the sorting is stable, while most qsort implementations
69496         are not.  Use argument addresses to ensure they never compare as
69497         equal.
69498
69499         * tests/test-argp-2.sh (usage-indent test): Fix output
69500         (func_compare): Restore diff options
69501         * tests/test-argp.c: Restore #include "progname.h"
69502
69503 2007-04-29  Bruno Haible  <bruno@clisp.org>
69504
69505         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69507         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69509         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69510         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69511         (TESTS, check_PROGRAMS): Add test-snprintf.
69512         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69513         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69514         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69515         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69516         assertions that fail on HP-UX, OSF/1, or IRIX.
69517         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69518
69519 2007-04-29  Bruno Haible  <bruno@clisp.org>
69520
69521         * MODULES.html.sh (posix_functions): Remove 'contents'.
69522
69523 2007-04-29  Karl Berry  <karl@gnu.org>
69524
69525         * config/srclist.txt (gendocs_template_min): new entry.
69526
69527 2007-04-29  Bruno Haible  <bruno@clisp.org>
69528
69529         Work around fpurge bug on BSD systems.
69530         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69531         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69532         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69533         fpurge to rpl_fpurge if the system already has this function.
69534         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69535         the case where the system already has this function. Correct invariants
69536         on BSD systems.
69537         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69538         BSD systems.
69539
69540 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69541
69542         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69543         proposed by Sven Verdoolaege.
69544
69545         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69546         options.
69547         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69548         (usage and help tests): Update
69549
69550 2007-04-29  Bruno Haible  <bruno@clisp.org>
69551
69552         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69553         Print more information in case of failure. Disable a test on BeOS.
69554
69555 2007-04-29  Bruno Haible  <bruno@clisp.org>
69556
69557         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69558         This helps debugging on systems on which no gdb is available.
69559
69560 2007-04-29  Bruno Haible  <bruno@clisp.org>
69561
69562         * lib/freading.h: Improve comments.
69563         * lib/fwriting.h: Likewise.
69564         * tests/test-freading.c (main): Don't check freading immediately after
69565         repositioning. Needed for glibc.
69566
69567 2007-04-29  Bruno Haible  <bruno@clisp.org>
69568
69569         * lib/freading.c (freading): Trivial simplification.
69570
69571 2007-04-28  Bruno Haible  <bruno@clisp.org>
69572
69573         * tests/test-fwriting.c (main): Also test the interaction between
69574         fflush and fwriting.
69575         * modules/fwriting-tests (Depends-on): Add fflush.
69576
69577         * tests/test-freading.c (main): Also test the interaction between
69578         fflush and freading.
69579         * modules/freading-tests (Depends-on): Add fflush.
69580
69581 2007-04-28  Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69584         fseeko and ftello.
69585         Suggested by Eric Blake.
69586
69587 2007-04-28  Jim Meyering  <jim@meyering.net>
69588
69589         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69590         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69591         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69592
69593 2007-04-27  Eric Blake  <ebb9@byu.net>
69594
69595         * doc/headers/assert.texi (assert.h): Document assert module use.
69596
69597 2007-04-27  Bruno Haible  <bruno@clisp.org>
69598
69599         * doc/headers/*.texi: New files.
69600         * doc/gnulib.texi (Header File Substitutes): New chapter.
69601         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69602         dependencies.
69603         (standards.info ,standards.html, standards.dvi): Update dependencies.
69604         (mostlyclean, clean): New targets.
69605
69606 2007-04-27  Bruno Haible  <bruno@clisp.org>
69607
69608         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69609         * modules/sysexits (Files, Makefile.am): Update.
69610
69611         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69612         * modules/sys_socket (Files, Makefile.am): Update.
69613
69614         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69615         * modules/sys_stat (Files, Makefile.am): Update.
69616
69617 2007-04-27  Eric Blake  <ebb9@byu.net>
69618
69619         * lib/freading.h: Improve comments.
69620         * lib/fwriting.h: Likewise.
69621         * lib/fflush.c: Likewise.
69622
69623         Fix closein for mingw.
69624         * modules/closein-tests: Add tests for closein.
69625         * tests/test-closein.c: New file.
69626         * tests/test-closein.sh: Likewise.
69627         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69628         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69629
69630 2007-04-27  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69633         version is < 6.
69634         * lib/math_.h [__DECC]: Likewise.
69635         * lib/stdio_.h [__DECC]: Likewise.
69636         * lib/stdlib_.h [__DECC]: Likewise.
69637         * lib/string_.h [__DECC]: Likewise.
69638         * lib/time_.h [__DECC]: Likewise.
69639         * lib/wchar_.h [__DECC]: Likewise.
69640         * lib/wctype_.h [__DECC]: Likewise.
69641
69642 2007-04-27  Bruno Haible  <bruno@clisp.org>
69643
69644         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69645
69646 2007-04-27  Bruno Haible  <bruno@clisp.org>
69647
69648         * lib/fflush.c: Add comments.
69649         * modules/fpurge-tests (Depends-on): Add fflush.
69650         * modules/freadable-tests (Depends-on): Likewise.
69651         * modules/fwritable-tests (Depends-on): Likewise.
69652
69653 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69654
69655         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69656         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69657         Report by Bruno Haible <bruno@clisp.org>.
69658
69659 2007-04-26  Eric Blake  <ebb9@byu.net>
69660
69661         Fix fflush on mingw.
69662         * modules/fflush (Depends-on): Add freading.
69663         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69664         but unread data.
69665
69666 2007-04-26  Eric Blake  <ebb9@byu.net>
69667         and Bruno Haible  <bruno@clisp.org>
69668
69669         Implement freading and fwriting.
69670         * lib/freading.c: New file.
69671         * lib/freading.h: Likewise.
69672         * m4/freading.m4: Likewise.
69673         * modules/freading: Likewise.
69674         * modules/freading-tests: Likewise.
69675         * tests/test-freading.c: Likewise.
69676         * lib/fwriting.c: New file.
69677         * lib/fwriting.h: Likewise.
69678         * m4/fwriting.m4: Likewise.
69679         * modules/fwriting: Likewise.
69680         * modules/fwriting-tests: Likewise.
69681         * tests/test-fwriting.c: Likewise.
69682         * MODULES.html.sh (File stream based Input/Output): Mention them.
69683
69684 2007-04-26  Bruno Haible  <bruno@clisp.org>
69685
69686         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69687         'long' when we assume it.
69688         Suggested by Eric Blake.
69689
69690 2007-04-26  Bruno Haible  <bruno@clisp.org>
69691
69692         Ensure fseeko, ftello are declared on glibc systems.
69693         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69694         * modules/fseeko (configure.ac-early): Likewise.
69695         * modules/ftello (configure.ac-early): Likewise.
69696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69697         AC_FUNC_FSEEKO for this.
69698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69699         (gl_CHECK_FSEEKO): Remove macro.
69700
69701 2007-04-26  Bruno Haible  <bruno@clisp.org>
69702
69703         * tests/test-fflush.c (main): Also check the ftell result after
69704         fflush and fseek/fseeko.
69705         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69706         file descriptor position cache in the stream.
69707         * lib/fseeko.c (rpl_fseeko): Likewise.
69708
69709 2007-04-26  Bruno Haible  <bruno@clisp.org>
69710
69711         * modules/fflush-tests (Depends-on): Add fseeko.
69712
69713 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69714             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69715
69716         * lib/argz_.h: ensure error_t definition is obtained in same
69717         mechanism system argz.h would have.
69718         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69719         argz facilities are known bad.  Err on the side of caution if
69720         cross-compiling.
69721
69722 2007-04-25  Eric Blake  <ebb9@byu.net>
69723
69724         * lib/fpurge.c (includes): Use stdlib.h for free.
69725         * tests/test-fflush.c (main): Also test fflush-fseeko.
69726
69727 2007-04-25  Bruno Haible  <bruno@clisp.org>
69728
69729         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69730         * lib/fseeko.c: New file.
69731         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69732         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69733         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69734         gl_FUNC_FSEEKO.
69735         (gl_FUNC_FSEEKO): Invoke it.
69736         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69737         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69738         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69739
69740 2007-04-25  Bruno Haible  <bruno@clisp.org>
69741
69742         * modules/fflush (Depends-on): Add ftello.
69743
69744 2007-04-25  Bruno Haible  <bruno@clisp.org>
69745
69746         * modules/ftello-tests: New file.
69747         * tests/test-ftello.c: New file.
69748
69749         * modules/ftello: New file.
69750         * m4/ftello.m4: New file.
69751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69752         HAVE_FTELLO.
69753         * lib/stdio_.h (ftello): New declaration.
69754         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69755         HAVE_FTELLO.
69756
69757 2007-04-25  Bruno Haible  <bruno@clisp.org>
69758
69759         * modules/fseeko-tests: New file.
69760         * tests/test-fseeko.c: New file.
69761
69762         * modules/fseeko: New file.
69763         * m4/fseeko.m4: New file.
69764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69765         HAVE_FSEEKO.
69766         * lib/stdio_.h (fseeko): New declaration.
69767         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69768         HAVE_FSEEKO.
69769
69770 2007-04-25  Bruno Haible  <bruno@clisp.org>
69771
69772         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69773
69774 2007-04-25  Bruno Haible  <bruno@clisp.org>
69775
69776         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69777         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69778         * tests/test-unistd.c: Likewise.
69779         * tests/test-fcntl.c: Likewise.
69780
69781 2007-04-23  Eric Blake  <ebb9@byu.net>
69782
69783         * lib/fflush.c: Fix missing include.
69784         Reported by Bruno Haible.
69785
69786 2007-04-23  Bruno Haible  <bruno@clisp.org>
69787
69788         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69789         Reported by Eric Blake.
69790
69791 2007-04-23  Bruno Haible  <bruno@clisp.org>
69792
69793         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69794
69795 2007-04-23  Bruno Haible  <bruno@clisp.org>
69796
69797         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69798
69799 2007-04-23  Bruno Haible  <bruno@clisp.org>
69800
69801         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69802         Needed on HP-UX 11.
69803
69804 2007-04-16  Eric Blake  <ebb9@byu.net>
69805
69806         Make fflush rely on fpurge.
69807         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69808         open coding all variants.
69809         * modules/fflush (Depends-on): Add fpurge and unistd.
69810         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69811         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69812
69813         Fix --with-tests compilation on cygwin.
69814         * modules/argmatch-tests (Makefile.am): List gnulib library first
69815         in LDADD.
69816         * modules/argp-tests (Makefile.am): Likewise.
69817         * modules/array-list-tests (Makefile.am): Likewise.
69818         * modules/array-oset-tests (Makefile.am): Likewise.
69819         * modules/avltree-list-tests (Makefile.am): Likewise.
69820         * modules/avltree-oset-tests (Makefile.am): Likewise.
69821         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69822         * modules/carray-list-tests (Makefile.am): Likewise.
69823         * modules/dirname-tests (Makefile.am): Likewise.
69824         * modules/frexp-tests (Makefile.am): Likewise.
69825         * modules/isnanl-tests (Makefile.am): Likewise.
69826         * modules/linked-list-tests (Makefile.am): Likewise.
69827         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69828         * modules/lock-tests (Makefile.am): Likewise.
69829         * modules/rbtree-list-tests (Makefile.am): Likewise.
69830         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69831         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69832         * modules/tls-tests (Makefile.am): Likewise.
69833         * modules/tsearch-tests (Makefile.am): Likewise.
69834         * modules/xvasprintf-tests (Makefile.am): Likewise.
69835
69836         Fix fpurge for cygwin.
69837         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69838         value.
69839         * modules/fpurge-tests (Depends-on): Clean up trash.
69840
69841 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69842
69843         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69844
69845         * m4/autobuild.m4: Re-indent.
69846
69847 2007-04-13  Bruno Haible  <bruno@clisp.org>
69848
69849         * modules/fpurge-tests: New file.
69850         * tests/test-fpurge.c: New file.
69851
69852         * modules/fpurge: New file.
69853         * lib/fpurge.h: New file.
69854         * lib/fpurge.c: New file.
69855         * m4/fpurge.m4: New file.
69856
69857 2007-04-13  Bruno Haible  <bruno@clisp.org>
69858
69859         * modules/fbufmode-tests: New file.
69860         * tests/test-fbufmode.c: New file.
69861
69862         * modules/fbufmode: New file.
69863         * lib/fbufmode.h: New file.
69864         * lib/fbufmode.c: New file.
69865         * m4/fbufmode.m4: New file.
69866
69867 2007-04-13  Bruno Haible  <bruno@clisp.org>
69868
69869         * modules/fwritable-tests: New file.
69870         * tests/test-fwritable.c: New file.
69871
69872         * modules/fwritable: New file.
69873         * lib/fwritable.h: New file.
69874         * lib/fwritable.c: New file.
69875         * m4/fwritable.m4: New file.
69876
69877 2007-04-13  Bruno Haible  <bruno@clisp.org>
69878
69879         * modules/freadable-tests: New file.
69880         * tests/test-freadable.c: New file.
69881
69882         * modules/freadable: New file.
69883         * lib/freadable.h: New file.
69884         * lib/freadable.c: New file.
69885         * m4/freadable.m4: New file.
69886
69887 2007-04-13  Bruno Haible  <bruno@clisp.org>
69888
69889         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69890         MOSTLYCLEANFILES.
69891
69892 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69895         gzip bootstrap.conf to avoid dragging in i18n machinery.
69896         (gnulib_tool_option): Use it.
69897
69898 2007-04-13  Bruno Haible  <bruno@clisp.org>
69899
69900         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69901         %F directives.
69902         * tests/test-vasprintf-posix.c (test_function): Likewise.
69903         * tests/test-snprintf-posix.h (test_function): Likewise.
69904         * tests/test-sprintf-posix.h (test_function): Likewise.
69905         * tests/test-fprintf-posix.h (test_function): Likewise.
69906         * tests/test-printf-posix.h (test_function): Likewise.
69907         * tests/test-fprintf-posix.out: Likewise.
69908
69909 2007-04-13  Bruno Haible  <bruno@clisp.org>
69910
69911         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69912         * modules/tls-tests (configure.ac): Likewise.
69913         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69914
69915 2007-04-13  Bruno Haible  <bruno@clisp.org>
69916
69917         * lib/tls.c (glthread_tls_get): Fix return type.
69918         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69919
69920 2007-04-12  Eric Blake  <ebb9@byu.net>
69921
69922         * modules/gettime (Depends-on): Remove gettime.
69923         Reported by Dmitry V. Levin.
69924
69925 2007-04-12  Bruno Haible  <bruno@clisp.org>
69926
69927         * modules/fflush (Include): Mention <stdio.h>.
69928         * modules/strtoimax (Include): Mention <inttypes.h>.
69929         * modules/strtoumax (Include): Likewise.
69930
69931 2007-04-12  Eric Blake  <ebb9@byu.net>
69932
69933         * .cvsignore: New file.
69934         * .gitignore: Likewise.
69935
69936 2007-04-12  Bruno Haible  <bruno@clisp.org>
69937
69938         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69939         not before, since $(LDADD) often contains libgnu.a.
69940         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69941         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69942         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69943         Needed on Cygwin.
69944
69945 2007-04-12  Eric Blake  <ebb9@byu.net>
69946
69947         Work around glibc's failure to flush stdin on fclose.
69948         * lib/closein.c (close_stdin): Flush stdin before closing.
69949
69950         Work around glibc's failure to reset seekable stdin on exit.
69951         * modules/closein: New module.
69952         * lib/closein.c: New file.
69953         * lib/closein.h: Likewise.
69954         * m4/closein.m4: Likewise.
69955         * MODULES.html.sh (File stream based Input/Output): Document it.
69956
69957 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69958
69959         * gnulib-tool: Rename generated 'autobuild' script to
69960         'do-autobuild' in --create-megatestdir output.
69961
69962         * doc/gnulib.texi (Build robot for gnulib): Fix.
69963
69964 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69965
69966         * modules/sysexits (Depends-on): Add absolute-header.
69967
69968 2007-04-12  Eric Blake  <ebb9@byu.net>
69969
69970         No need to preserve errno on success.
69971         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69972         Reported by Bruno Haible.
69973
69974 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69975
69976         * MODULES.html.sh (Support for maintaining and releasing
69977         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69978
69979 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69980
69981         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69982
69983 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69984
69985         * modules/autobuild: New module.
69986
69987         * m4/autobuild.m4: New file.
69988
69989 2007-04-11  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69992         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69996         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69997         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69999         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70000         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70002         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70003         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70005         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70006         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70008         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70009         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70011         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70012         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70014         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70015         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70017         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70018         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70019         Reported by Eric Blake.
70020
70021 2007-04-11  Bruno Haible  <bruno@clisp.org>
70022
70023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70024
70025 2007-04-10  Bruno Haible  <bruno@clisp.org>
70026
70027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70028         for NaN and Infinity. Needed on FreeBSD 6.1.
70029         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70030         regarding results for "%010a" of Infinity and NaN.
70031         * tests/test-vasprintf-posix.c (test_function): Likewise.
70032         * tests/test-snprintf-posix.h (test_function): Likewise.
70033         * tests/test-sprintf-posix.h (test_function): Likewise.
70034         * tests/test-fprintf-posix.h (test_function): Likewise.
70035         * tests/test-printf-posix.h (test_function): Likewise.
70036         * tests/test-fprintf-posix.out: Likewise.
70037
70038 2007-04-10  Bruno Haible  <bruno@clisp.org>
70039
70040         * modules/locale-tests: New file.
70041         * tests/test-locale.c: New file.
70042
70043         * modules/locale: New file.
70044         * lib/locale_.h: New file.
70045         * m4/locale_h.m4: New file.
70046
70047 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70048             Bruno Haible  <bruno@clisp.org>
70049
70050         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70051         be determined, test for availability of the copysignf, copysign,
70052         copysignl functions.
70053         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70054         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70055         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70056
70057 2007-04-09  Eric Blake  <ebb9@byu.net>
70058
70059         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70060         * modules/stdio (Makefile.am): Support fflush.
70061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70062         * modules/fflush: New file.
70063         * lib/fflush.c: Likewise.
70064         * m4/fflush.m4: Likewise.
70065         * modules/fflush-tests: New test.
70066         * tests/test-fflush.c: Likewise.
70067         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70068
70069 2007-04-06  Bruno Haible  <bruno@clisp.org>
70070
70071         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70072         (VASNPRINTF): Use signbit for faster determination whether to print a
70073         minus sign.
70074         * modules/vasnprintf (Files): Remove lib/float+.h.
70075         * modules/fprintf-posix (Depends-on): Add signbit.
70076         * modules/snprintf-posix (Depends-on): Likewise.
70077         * modules/sprintf-posix (Depends-on): Likewise.
70078         * modules/vasnprintf-posix (Depends-on): Likewise.
70079         * modules/vasprintf-posix (Depends-on): Likewise.
70080         * modules/vfprintf-posix (Depends-on): Likewise.
70081         * modules/vsnprintf-posix (Depends-on): Likewise.
70082         * modules/vsprintf-posix (Depends-on): Likewise.
70083
70084 2007-04-06  Bruno Haible  <bruno@clisp.org>
70085
70086         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70087         * tests/test-frexpl.c (main): Likewise.
70088         * tests/test-ldexpl.c (main): Likewise.
70089         * modules/frexp-tests (Depends-on): Add signbit.
70090         * modules/frexpl-tests (Depdends-on): Likewise.
70091         * modules/ldexpl-tests (Depdends-on): Likewise.
70092
70093 2007-04-06  Bruno Haible  <bruno@clisp.org>
70094
70095         * modules/signbit-tests: New file.
70096         * tests/test-signbit.c: New file.
70097
70098         * modules/signbit: New file.
70099         * lib/signbitf.c: New file.
70100         * lib/signbitd.c: New file.
70101         * lib/signbitl.c: New file.
70102         * m4/signbit.m4: New file.
70103         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70104         (signbit): New macro.
70105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70106         REPLACE_SIGNBIT.
70107         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70108         REPLACE_FREXPL into math.h.
70109
70110 2007-04-06  Bruno Haible  <bruno@clisp.org>
70111
70112         * modules/isnanf-nolibm-tests: New file.
70113         * tests/test-isnanf.c: New file.
70114
70115         * modules/isnanf-nolibm: New file.
70116         * lib/isnanf.h: New file.
70117         * lib/isnanf.c: New file.
70118         * lib/isnan.c: Consider the USE_FLOAT macro.
70119         * m4/isnanf.m4: New file.
70120
70121 2007-04-06  Bruno Haible  <bruno@clisp.org>
70122
70123         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70124         (Link): New section.
70125
70126         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70127
70128 2007-04-06  Bruno Haible  <bruno@clisp.org>
70129
70130         Assume the 'long double' type.
70131         * m4/longdouble.m4: Remove file.
70132         * config/srclist.txt: Don't mention longdouble.m4.
70133         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70134         * lib/float+.h: Likewise.
70135         * lib/frexp.c: Likewise.
70136         * lib/printf-args.h: Likewise.
70137         * lib/printf-args.c: Likewise.
70138         * lib/printf-frexp.c: Likewise.
70139         * lib/printf-parse.c: Likewise.
70140         * lib/vasnprintf.c: Likewise.
70141         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70142         * m4/intl.m4: Likewise.
70143         * m4/isnanl.m4: Likewise.
70144         * m4/printf.m4: Likewise.
70145         * m4/printf-frexpl.m4: Likewise.
70146         * m4/vasnprintf.m4: Likewise.
70147         * modules/allocsa (Files): Remove m4/longdouble.m4.
70148         * modules/gettext (Files): Likewise.
70149         * modules/relocatable-prog-wrapper (Files): Likewise.
70150         * modules/vasnprintf (Files): Likewise.
70151         * modules/isnanl (Files): Likewise.
70152         (Include): Simplify.
70153         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70154         (Include): Simplify.
70155         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70156         (Include): Simplify.
70157         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70158         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70159         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70160         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70161         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70162         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70163         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70165         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70166         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70167         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70168         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70169         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70170         * tests/test-isnanl.c: Likewise.
70171         * tests/test-snprintf-posix.h: Likewise.
70172         * tests/test-sprintf-posix.h: Likewise.
70173         * tests/test-vasnprintf-posix.c: Likewise.
70174         * tests/test-vasnprintf-posix2.c: Likewise.
70175         * tests/test-vasprintf-posix.c: Likewise.
70176
70177 2007-04-06  Bruno Haible  <bruno@clisp.org>
70178
70179         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70180         * lib/math_.h [__DECC]: Include the overridden include file through
70181         #include_next, outside the double-inclusion guard.
70182         * lib/stdio_.h [__DECC]: Likewise.
70183         * lib/stdlib_.h [__DECC]: Likewise.
70184         * lib/string_.h [__DECC]: Likewise.
70185         * lib/time_.h [__DECC]: Likewise.
70186         * lib/wchar_.h [__DECC]: Likewise.
70187         * lib/wctype_.h [__DECC]: Likewise.
70188         * lib/inttypes_.h [__DECC]: Likewise.
70189         Reported by Albert Chin <china@thewrittenword.com> in
70190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70191
70192 2007-04-04  Eric Blake  <ebb9@byu.net>
70193
70194         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70195         1.5.x.
70196
70197 2007-04-04  Bruno Haible  <bruno@clisp.org>
70198
70199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70200         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70201
70202 2007-04-04  Bruno Haible  <bruno@clisp.org>
70203
70204         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70205         results for "%010a" of Infinity and NaN.
70206         * tests/test-vasprintf-posix.c (test_function): Likewise.
70207         * tests/test-snprintf-posix.h (test_function): Likewise.
70208         * tests/test-sprintf-posix.h (test_function): Likewise.
70209         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70210         * tests/test-printf-posix.h (test_function): Likewise.
70211         * tests/test-fprintf-posix.out: Update.
70212         Needed for FreeBSD 6.1.
70213
70214 2007-04-04  Bruno Haible  <bruno@clisp.org>
70215
70216         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70217         directly used by the gnulib modules nor by gnulib-tool.
70218
70219 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70220
70221         * DEPENDENCIES: Give overall description of version dependency
70222         desirability.  Use more-typical names for apps.
70223         Add shell, coreutils, diffutils, grep, tar, gzip.
70224
70225 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70226
70227         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70228
70229 2007-04-04  Karl Berry  <karl@gnu.org>
70230
70231         * MODULES.html.sh (func_module): missing '.
70232
70233 2007-04-03  Bruno Haible  <bruno@clisp.org>
70234
70235         * modules/argmatch-tests (Makefile.am): New variable
70236         test_argmatch_LDADD.
70237         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70238         * modules/array-list-tests (Makefile.am): New variable
70239         test_array_list_LDADD.
70240         * modules/array-oset-tests (Makefile.am): New variable
70241         test_array_oset_LDADD.
70242         * modules/avltree-list-tests (Makefile.am): New variable
70243         test_avltree_list_LDADD.
70244         * modules/avltree-oset-tests (Makefile.am): New variable
70245         test_avltree_oset_LDADD.
70246         * modules/avltreehash-list-tests (Makefile.am): New variable
70247         test_avltreehash_list_LDADD.
70248         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70249         test_canonicalize_lgpl_LDADD.
70250         * modules/carray-list-tests (Makefile.am): New variable
70251         test_carray_list_LDADD.
70252         * modules/dirname-tests (Makefile.am): New variable
70253         test_dirname_LDADD.
70254         * modules/linked-list-tests (Makefile.am): New variable
70255         test_linked_list_LDADD.
70256         * modules/linkedhash-list-tests (Makefile.am): New variable
70257         test_linkedhash_list_LDADD.
70258         * modules/rbtree-list-tests (Makefile.am): New variable
70259         test_rbtree_list_LDADD.
70260         * modules/rbtree-oset-tests (Makefile.am): New variable
70261         test_rbtree_oset_LDADD.
70262         * modules/rbtreehash-list-tests (Makefile.am): New variable
70263         test_rbtreehash_list_LDADD.
70264         * modules/xvasprintf-tests (Makefile.am): New variable
70265         test_xvasprintf_LDADD.
70266         Reported by Eric Blake.
70267
70268 2007-04-03  Eric Blake  <ebb9@byu.net>
70269
70270         * DEPENDENCIES: Weaken m4 requirements.
70271
70272 2007-04-03  Bruno Haible  <bruno@clisp.org>
70273
70274         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70275         * modules/isnanl-tests (configure.ac): Likewise.
70276
70277 2007-04-03  Ben Pfaff  <blp@gnu.org>
70278
70279         * modules/iconv_open: Add $(srcdir)/ to source directory
70280         references in Makefile fragments that call gperf, to fix VPATH
70281         builds.
70282
70283 2007-04-03  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70286         * lib/ldexpl.c: Undo last change.
70287
70288 2007-04-03  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/printf-frexpl (Depends-on): Undo last change.
70291         (Files): Add m4/ldexpl.m4.
70292
70293 2007-04-03  Bruno Haible  <bruno@clisp.org>
70294
70295         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70296         * modules/isnanl (Link): New section.
70297
70298         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70299         * modules/frexp (Link): New section.
70300
70301         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70302         * modules/frexpl (Link): New section.
70303
70304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70305         * modules/ldexpl (Link): New section.
70306
70307 2007-04-03  Bruno Haible  <bruno@clisp.org>
70308
70309         * modules/TEMPLATE-EXTENDED: New file.
70310         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70311
70312 2007-04-03  Bruno Haible  <bruno@clisp.org>
70313
70314         * DEPENDENCIES: New file.
70315         Suggested by Simon Josefsson.
70316
70317 2007-04-03  Bruno Haible  <bruno@clisp.org>
70318
70319         * doc/gnulib.texi: Escape @.
70320
70321 2007-04-03  James Youngman  <jay@gnu.org>
70322         and Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70325         birthtime on all systems that have birthtime, not just those which
70326         use st_birthtimensec rather than st_birthtim.  Putting zero in
70327         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70328         that the birth time is not available for files on an NFS mount.
70329
70330 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70331
70332         * modules/memxor: Move back from crypto/, suggested by Bruno.
70333         * modules/crypto/hmac-sha1: Fix memxor dependency.
70334
70335         * modules/crypto/gc: Moved from ../.
70336
70337 2007-04-02  Eric Blake  <ebb9@byu.net>
70338
70339         * lib/ldexpl.c (includes): Avoid libm.
70340
70341         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70342
70343 2007-04-02  Bruno Haible  <bruno@clisp.org>
70344
70345         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70346         on IRIX.
70347
70348 2007-04-02  Bruno Haible  <bruno@clisp.org>
70349
70350         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70351         x86 or x86_64 platforms running MacOS X.
70352         Reported by Ryan Schmidt <@ryandesign.com>.
70353
70354 2007-04-02  Bruno Haible  <bruno@clisp.org>
70355
70356         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70357         i386.
70358
70359 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70360
70361         * modules/crypto/arcfour: Moved from ../.
70362         * modules/crypto/arcfour-tests: Moved from ../.
70363         * modules/crypto/arctwo: Moved from ../.
70364         * modules/crypto/arctwo-tests: Moved from ../.
70365         * modules/crypto/des: Moved from ../.
70366         * modules/crypto/des-tests: Moved from ../.
70367         * modules/crypto/gc-arcfour: Moved from ../.
70368         * modules/crypto/gc-arcfour-tests: Moved from ../.
70369         * modules/crypto/gc-arctwo: Moved from ../.
70370         * modules/crypto/gc-arctwo-tests: Moved from ../.
70371         * modules/crypto/gc-des: Moved from ../.
70372         * modules/crypto/gc-des-tests: Moved from ../.
70373         * modules/crypto/gc-hmac-md5: Moved from ../.
70374         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70375         * modules/crypto/gc-hmac-sha1: Moved from ../.
70376         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70377         * modules/crypto/gc-md2: Moved from ../.
70378         * modules/crypto/gc-md2-tests: Moved from ../.
70379         * modules/crypto/gc-md4: Moved from ../.
70380         * modules/crypto/gc-md4-tests: Moved from ../.
70381         * modules/crypto/gc-md5: Moved from ../.
70382         * modules/crypto/gc-md5-tests: Moved from ../.
70383         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70384         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70385         * modules/crypto/gc-random: Moved from ../.
70386         * modules/crypto/gc-rijndael: Moved from ../.
70387         * modules/crypto/gc-rijndael-tests: Moved from ../.
70388         * modules/crypto/gc-sha1: Moved from ../.
70389         * modules/crypto/gc-sha1-tests: Moved from ../.
70390         * modules/crypto/gc-tests: Moved from ../.
70391         * modules/crypto/hmac-md5: Moved from ../.
70392         * modules/crypto/hmac-md5-tests: Moved from ../.
70393         * modules/crypto/hmac-sha1: Moved from ../.
70394         * modules/crypto/hmac-sha1-tests: Moved from ../.
70395         * modules/crypto/md2: Moved from ../.
70396         * modules/crypto/md2-tests: Moved from ../.
70397         * modules/crypto/md4: Moved from ../.
70398         * modules/crypto/md4-tests: Moved from ../.
70399         * modules/crypto/md5: Moved from ../.
70400         * modules/crypto/md5-tests: Moved from ../.
70401         * modules/crypto/memxor: Moved from ../.
70402         * modules/crypto/rijndael: Moved from ../.
70403         * modules/crypto/rijndael-tests: Moved from ../.
70404         * modules/crypto/sha1: Moved from ../.
70405
70406 2007-03-30  James Youngman  <jay@gnu.org>
70407
70408         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70409         rename() to change the ctime of a file (because ctime is unaffected
70410         by rename on jfs2 on AIX 5.1).
70411         (main): Start by doing cleanup, in case a previous run failed leaving
70412         test files behind.
70413
70414 2007-03-31  Bruno Haible  <bruno@clisp.org>
70415
70416         Support old proprietary implementations of iconv.
70417         * modules/iconv_open: New file.
70418         * lib/iconv_.h: New file.
70419         * m4/iconv_h.m4: New file.
70420         * lib/iconv_open.c: New file.
70421         * lib/iconv_open-aix.gperf: New file.
70422         * lib/iconv_open-hpux.gperf: New file.
70423         * lib/iconv_open-irix.gperf: New file.
70424         * lib/iconv_open-osf.gperf: New file.
70425         * m4/iconv_open.m4: New file.
70426         * modules/linebreak (Depends-on): Add iconv_open.
70427         * modules/striconv (Depends-on): Likewise.
70428         * modules/striconveh (Depends-on): Likewise.
70429         * modules/unicodeio (Depends-on): Likewise.
70430         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70431         (iconv_t)(-1).
70432         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70433         conversion if cd is (iconv_t)(-1).
70434         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70435         is not possible.
70436
70437 2007-03-31  Bruno Haible  <bruno@clisp.org>
70438
70439         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70440         work on Solaris either. Protect also second use of "autodetect_jp".
70441
70442 2007-03-31  Bruno Haible  <bruno@clisp.org>
70443
70444         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70445         the function is not present.
70446
70447 2007-03-31  Bruno Haible  <bruno@clisp.org>
70448
70449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70450         the function is not present.
70451
70452 2007-03-31  Bruno Haible  <bruno@clisp.org>
70453
70454         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70455         a bug in HP-UX iconv_open().
70456
70457 2007-03-31  Bruno Haible  <bruno@clisp.org>
70458
70459         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70460         (Mathematics <math.h>): New section, add fpieee.
70461         (Input/output <stdio.h>): Add fseterr.
70462         (Mathematics <math.h>): New section, add printf-frexp.
70463         (Container data structures): Add sublist.
70464         (Core language properties): Add fpucw, inline.
70465         (Functions for greatest-width integer types <inttypes.h>): Add
70466         imaxabs, imaxdiv, inttypes.
70467         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70468         isnanl-nolibm, ldexp.
70469         (Mathematics <math.h>): New section, add printf-frexpl.
70470         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70471         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70472         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70473         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70474         (Unicode string functions): Add unistr/u*-mbtoucr.
70475         (Java): Add javacomp-script, javaexec-script.
70476         (C#): Add csharpcomp-script, csharpexec-script.
70477         (Support for building libraries and executables): Add havelib,
70478         relocatable-*.
70479         (Support for maintaining and releasing projects): Renamed from
70480         'Support for maintaining and release projects'. Add announce-gen.
70481
70482 2007-03-31  Bruno Haible  <bruno@clisp.org>
70483
70484         * README: Talk primarily about git.
70485         (git and CVS): Renamed from CVS.
70486         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70487         gnulib is available through git.
70488         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70489
70490 2007-03-30  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70493         * lib/poll_.h: Likewise.
70494         * lib/stat_.h: Likewise.
70495         * lib/sys_time_.h: Likewise.
70496         * lib/sysexit_.h: Likewise.
70497         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70498         * lib/stdbool_.h: Likewise.
70499         * lib/byteswap_.h: Add double-inclusion guard.
70500
70501 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70502
70503         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70504
70505 2007-03-30  Karl Berry  <karl@gnu.org>
70506
70507         * config/srclist-update: double space after USA in the license
70508         substitution, since that's how it's usually (?) written.
70509
70510 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70513         reported by Bruno Haible.
70514
70515 2007-03-29  Bruno Haible  <bruno@clisp.org>
70516
70517         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70518         a bug in AIX iconv().
70519
70520 2007-03-29  Bruno Haible  <bruno@clisp.org>
70521
70522         * modules/ldexpl-tests: New file.
70523         * tests/test-ldexpl.c: New file.
70524
70525 2007-03-29  Bruno Haible  <bruno@clisp.org>
70526
70527         * lib/ldexpl.c: Include fpucw.h.
70528         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70529         multiplication.
70530         * modules/ldexpl (Depends-on): Add fpucw.
70531
70532 2007-03-29  Bruno Haible  <bruno@clisp.org>
70533
70534         * modules/ldexpl: New file.
70535         * m4/ldexpl.m4: New file.
70536         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70537         set.
70538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70539         REPLACE_LDEXPL.
70540         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70541         REPLACE_LDEXPL.
70542         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70543         gl_FUNC_LDEXPL_WORKS.
70544         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70545         * modules/mathl (Files): Remove lib/ldexpl.c.
70546         (Depends-on): Add ldexpl.
70547
70548 2007-03-29  Bruno Haible  <bruno@clisp.org>
70549
70550         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70551
70552 2007-03-29  Bruno Haible  <bruno@clisp.org>
70553
70554         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70555         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70556         and possibly also HP-UX.
70557         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70558         work on AIX, IRIX, HP-UX, OSF/1.
70559         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70560         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70561         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70562         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70563         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70564         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70565
70566 2007-03-29  Bruno Haible  <bruno@clisp.org>
70567
70568         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70569
70570 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70573         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70574
70575 2007-03-29  Eric Blake  <ebb9@byu.net>
70576
70577         * lib/acl-internal.h: Remove redundant include.
70578         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70579         Cygwin when a file is locked.
70580
70581 2007-03-29  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70584         file.
70585         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70586
70587 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70590         try to remove a parent directory if the child couldn't be removed
70591         (except for the first rmdir, which could fail because the child
70592         doesn't exist).  Problem reported by Jeff Blaine in
70593         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70594
70595 2007-03-28  Bruno Haible  <bruno@clisp.org>
70596
70597         * lib/striconveh.c (utf8conv_carefully): New function.
70598         (mem_cd_iconveh_internal): Invoke it.
70599
70600 2007-03-28  Bruno Haible  <bruno@clisp.org>
70601
70602         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70603         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70604         input.
70605         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70606         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70607         unistr/u8-uctomb.
70608
70609 2007-03-28  Bruno Haible  <bruno@clisp.org>
70610
70611         * modules/unistr/u8-mbtoucr: New file.
70612         * lib/unistr/u8-mbtoucr.c: New file.
70613         * modules/unistr/u16-mbtoucr: New file.
70614         * lib/unistr/u16-mbtoucr.c: New file.
70615         * modules/unistr/u16-mbtoucr: New file.
70616         * lib/unistr/u16-mbtoucr.c: New file.
70617         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70618
70619 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70620             Bruno Haible  <bruno@clisp.org>
70621
70622         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70623         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70624         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70625
70626         * m4/stdio_h.m4: Add stubs for vasprintf too.
70627
70628         * modules/stdio: Support vasprintf in sed command.
70629
70630         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70631         vasprintf.h.  Add stdio module indicator.
70632
70633         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70634         vasprintf.h.
70635
70636         * lib/vasprintf.h: File removed.
70637
70638         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70639         * lib/vasprintf.c: Ditto.
70640         * lib/xvasprintf.c: Ditto.
70641         * tests/test-vasprintf-posix.c: Ditto.
70642         * tests/test-vasprintf.c: Ditto.
70643
70644 2007-03-27  Bruno Haible  <bruno@clisp.org>
70645
70646         Make vasnprintf multithread-safe.
70647         * lib/vasnprintf.c (decimal_point_char): New function.
70648         (VASNPRINTF): Use it.
70649         Suggested by Simon Josefsson.
70650
70651 2007-03-27  Eric Blake  <ebb9@byu.net>
70652
70653         Support sub-second birthtime on cygwin.
70654         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70655         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70656         (get_stat_birthtime): Also work with st_birthtim.
70657
70658 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70661         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70662         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70663         (get_stat_birthtime_ns): Simplify compile-time tests.
70664         (get_stat_birthtime): Change the API to look like
70665         get_stat_mtime etc., except return a negative tv_nsec on error.
70666         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70667         Don't check for "spare" fields.
70668         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70669         or for struct stat.st_birthtime, as these tests aren't used.
70670         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70671
70672 2007-03-27  Bruno Haible  <bruno@clisp.org>
70673
70674         * lib/stat-time.h: Include <sys/stat.h>.
70675
70676 2007-03-27  James Youngman  <jay@gnu.org>
70677
70678         * lib/stat-time.h (get_stat_birthtime): New function for
70679           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70680         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70681           and its variants.
70682         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70683         * modules/stat-time-test: New file.
70684         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70685
70686 2007-03-26  Bruno Haible  <bruno@clisp.org>
70687
70688         Better support of signalling NaNs.
70689         * lib/atanl.c: Include isnanl.h.
70690         (atanl): Perform test for NaN at the beginning of the function and
70691         through a call to isnanl.
70692         * lib/cosl.c: Include isnanl.h.
70693         (cosl): Perform test for NaN at the beginning of the function and
70694         through a call to isnanl.
70695         * lib/ldexpl.c: Include isnanl.h.
70696         (ldexpl): Perform test for NaN through a call to isnanl.
70697         * lib/logl.c: Include isnanl.h.
70698         (logl): Perform test for NaN at the beginning of the function and
70699         through a call to isnanl.
70700         * lib/sinl.c: Include isnanl.h.
70701         (sinl): Perform test for NaN at the beginning of the function and
70702         through a call to isnanl.
70703         * lib/sqrtl.c: Include isnanl.h.
70704         (sqrtl): Perform test for NaN at the beginning of the function and
70705         through a call to isnanl.
70706         * lib/tanl.c: Include isnanl.h.
70707         (tanl): Perform test for NaN at the beginning of the function and
70708         through a call to isnanl.
70709         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70710         * modules/mathl (Depends-on): Add isnanl.
70711
70712 2007-03-26  Eric Blake  <ebb9@byu.net>
70713
70714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70715         regression in logic sense of previous patch.
70716
70717 2007-03-26  Bruno Haible  <bruno@clisp.org>
70718
70719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70720         unportable shell command "if ! ...".
70721         Reported by Ralf Wildenhues.
70722
70723 2007-03-25  Bruno Haible  <bruno@clisp.org>
70724
70725         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70726         <sysexits.h> file, and only add EX_CONFIG.
70727         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70728         absolute file name and whether it is sufficient. Substitute also
70729         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70730         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70731         ABSOLUTE_SYSEXITS_H into sysexits.h.
70732
70733 2007-03-25  Bruno Haible  <bruno@clisp.org>
70734
70735         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70736         hints is NULL.
70737
70738 2007-03-25  Bruno Haible  <bruno@clisp.org>
70739
70740         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70741         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70742
70743 2007-03-25  Bruno Haible  <bruno@clisp.org>
70744
70745         * lib/vasnprintf.c: Include langinfo.h.
70746         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70747         multithread-safe.
70748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70757         Reported by Simon Josefsson.
70758
70759 2007-03-25  Bruno Haible  <bruno@clisp.org>
70760
70761         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70762         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70763         * modules/vasnprintf (Depends-on): Add stdint.
70764
70765 2007-03-25  Bruno Haible  <bruno@clisp.org>
70766
70767         * modules/fpieee: New file.
70768         * m4/fpieee.m4: New file.
70769         * modules/isnan-nolibm (Depends-on): Add fpieee.
70770         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70771         * modules/isnanl (Depends-on): Add fpieee.
70772
70773 2007-03-25  Bruno Haible  <bruno@clisp.org>
70774
70775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70776
70777 2007-03-25  Bruno Haible  <bruno@clisp.org>
70778
70779         Avoid test failures on IRIX 6.5.
70780         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70781         (main): Use it.
70782         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70783         macros.
70784         (main): Use them.
70785
70786 2007-03-25  Bruno Haible  <bruno@clisp.org>
70787
70788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70789         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70790         exists but doesn't work.
70791         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70792         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70794         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70795         math.h.
70796
70797 2007-03-25  Bruno Haible  <bruno@clisp.org>
70798
70799         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70800         returns inf. Needed on IRIX 6.5.
70801
70802 2007-03-25  Bruno Haible  <bruno@clisp.org>
70803
70804         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70805         (main): Use isnanl instead of x != x idiom.
70806         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70807
70808         * tests/test-frexp.c: Include isnan.h.
70809         (main): Use isnan instead of x != x idiom.
70810         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70811
70812 2007-03-25  Bruno Haible  <bruno@clisp.org>
70813
70814         * tests/test-frexp.c (NaN): New function/macro.
70815         (main): Use it instead of 0.0 / 0.0.
70816         * tests/test-isnan.c (NaN): New function/macro.
70817         (main): Use it instead of 0.0 / 0.0.
70818         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70819         (test_function): Use it instead of 0.0 / 0.0.
70820         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70821         (test_function): Use it instead of 0.0 / 0.0.
70822         * tests/test-snprintf-posix.h (NaN): New function/macro.
70823         (test_function): Use it instead of 0.0 / 0.0.
70824         * tests/test-sprintf-posix.h (NaN): New function/macro.
70825         (test_function): Use it instead of 0.0 / 0.0.
70826         * tests/test-fprintf-posix.h (NaN): New function/macro.
70827         (test_function): Use it instead of 0.0 / 0.0.
70828         * tests/test-printf-posix.h (NaN): New function/macro.
70829         (test_function): Use it instead of 0.0 / 0.0.
70830
70831         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70832
70833 2007-03-25  Bruno Haible  <bruno@clisp.org>
70834
70835         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70836
70837 2007-03-25  Bruno Haible  <bruno@clisp.org>
70838
70839         * lib/regexec.c (merge_state_with_log): Make static.
70840
70841 2007-03-25  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/trigl.c (kernel_rem_pio2): Make static.
70844
70845 2007-03-25  Bruno Haible  <bruno@clisp.org>
70846
70847         * lib/sincosl.c (sincosl_table): Make static.
70848
70849 2007-03-25  Bruno Haible  <bruno@clisp.org>
70850
70851         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70852         if the compiler does not support C99.
70853
70854 2007-03-25  Bruno Haible  <bruno@clisp.org>
70855
70856         * modules/time (Makefile.am): Ensure all rule action lines start with a
70857         tab.
70858
70859 2007-03-24  Bruno Haible  <bruno@clisp.org>
70860
70861         * modules/tsearch-tests: New file.
70862         * tests/test-tsearch.sh: New file.
70863         * tests/test-tsearch.c: New file, mostly copied from glibc.
70864
70865         * modules/search-tests: New file.
70866         * tests/test-search.c: New file.
70867
70868         * modules/search: New file.
70869         * lib/search_.h: New file, incorporating lib/tsearch.h.
70870         * m4/search_h.m4: New file.
70871         * lib/tsearch.h: Remove file.
70872         * lib/tsearch.c: Include search.h instead of tsearch.h.
70873         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70874         HAVE_TSEARCH.
70875         * modules/tsearch (Files): Remove lib/tsearch.h.
70876         (Depends-on): Add search.
70877         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70878         (Include): Change tsearch.h into search.h.
70879
70880 2007-03-24  Bruno Haible  <bruno@clisp.org>
70881
70882         * modules/fpucw: New file.
70883         * lib/fpucw.h: New file.
70884         * lib/frexp.c: Include fpucw.h.
70885         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70886         (FUNC): Use them.
70887         * lib/printf-frexp.c: Include fpucw.h.
70888         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70889         (FUNC): Use them.
70890         * lib/vasnprintf.c: Include fpucw.h.
70891         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70892         'long double' calculations.
70893         * tests/test-frexpl.c: Include fpucw.h.
70894         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70895         * tests/test-printf-frexpl.c: Include fpucw.h.
70896         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70897         * modules/frexpl (Depends-on): Add fpucw.
70898         * modules/printf-frexpl (Depends-on): Likewise.
70899         * modules/fprintf-posix (Depends-on): Likewise.
70900         * modules/snprintf-posix (Depends-on): Likewise.
70901         * modules/sprintf-posix (Depends-on): Likewise.
70902         * modules/vasnprintf-posix (Depends-on): Likewise.
70903         * modules/vasprintf-posix (Depends-on): Likewise.
70904         * modules/vfprintf-posix (Depends-on): Likewise.
70905         * modules/vsnprintf-posix (Depends-on): Likewise.
70906         * modules/vsprintf-posix (Depends-on): Likewise.
70907         * modules/frexpl-tests (Depends-on): Likewise.
70908         * modules/printf-frexpl-tests (Depends-on): Likewise.
70909
70910 2007-03-24  Bruno Haible  <bruno@clisp.org>
70911
70912         * lib/float+.h: New file.
70913         * lib/isnan.c: Include float+.h.
70914         (SIZE): New macro.
70915         (FUNC): Compare only SIZE bytes of the value.
70916         * lib/vasnprintf.c: Include float+.h.
70917         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70918         SIZEOF_LDBL or SIZEOF_DBL bytes.
70919         * modules/isnan-nolibm (Files): Add lib/float+.h.
70920         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70921         * modules/isnanl (Files): Add lib/float+.h.
70922         * modules/vasnprintf (Files): Add lib/float+.h.
70923
70924 2007-03-24  Bruno Haible  <bruno@clisp.org>
70925
70926         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70927         include isnanl-nolibm.h.
70928
70929 2007-03-24  Bruno Haible  <bruno@clisp.org>
70930
70931         * tests/test-read-file.c (main): Don't produce spurious output for
70932         expected situations. Make the test fail if it encountered unexpected
70933         results.
70934
70935 2007-03-24  Bruno Haible  <bruno@clisp.org>
70936
70937         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70938         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70939
70940 2007-03-24  Bruno Haible  <bruno@clisp.org>
70941
70942         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70943
70944 2007-03-24  Bruno Haible  <bruno@clisp.org>
70945
70946         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70947         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70948
70949         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70950         * modules/utf8-ucs4: Turn into a symbolic link to module
70951         unistr/u8-mbtouc.
70952
70953         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70954         utf8-ucs4-unsafe.
70955         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70956         unistr/u8-mbtouc-unsafe.
70957
70958         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70959         * modules/utf16-ucs4: Turn into a symbolic link to module
70960         unistr/u16-mbtouc.
70961
70962         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70963         utf16-ucs4-unsafe.
70964         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70965         unistr/u16-mbtouc-unsafe.
70966
70967         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70968         * modules/ucs4-utf8: Turn into a symbolic link to module
70969         unistr/u8-ubtomb.
70970
70971         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70972         * modules/ucs4-utf16: Turn into a symbolic link to module
70973         unistr/u16-ubtomb.
70974
70975 2007-03-24  Bruno Haible  <bruno@clisp.org>
70976
70977         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70978         Enable the function only if HAVE_INLINE.
70979         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70980         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70981         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70982         Enable the function only if HAVE_INLINE.
70983         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70984         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70985         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70986         Enable the function only if HAVE_INLINE.
70987         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70988         Enable the function only if HAVE_INLINE.
70989         * modules/utf8-ucs4: Update.
70990         * modules/utf8-ucs4-unsafe: Update.
70991         * modules/utf16-ucs4: Update.
70992         * modules/utf16-ucs4-unsafe: Update.
70993         * modules/ucs4-utf8: Update.
70994         * modules/ucs4-utf16: Update.
70995
70996 2007-03-24  Bruno Haible  <bruno@clisp.org>
70997
70998         * lib/utf8-ucs4.h: Remove file.
70999         * lib/utf8-ucs4-unsafe.h: Remove file.
71000         * lib/utf16-ucs4.h: Remove file.
71001         * lib/utf16-ucs4-unsafe.h: Remove file.
71002         * lib/ucs4-utf8.h: Remove file.
71003         * lib/ucs4-utf16.h: Remove file.
71004         * lib/unistr.h: Include their previous contents.
71005         * m4/utf-ucs4.m4: Remove file.
71006         * m4/ucs4-utf.m4: Remove file.
71007         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71008         (Depends-on): Add unistr/base.
71009         (configure.ac): Remove gl_UTF_UCS4.
71010         (Makefile.am): Update.
71011         (Include): Change to unistr.h.
71012         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71013         (Depends-on): Add unistr/base.
71014         (configure.ac): Remove gl_UTF_UCS4.
71015         (Makefile.am): Update.
71016         (Include): Change to unistr.h.
71017         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71018         (Depends-on): Add unistr/base.
71019         (configure.ac): Remove gl_UTF_UCS4.
71020         (Makefile.am): Update.
71021         (Include): Change to unistr.h.
71022         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71023         (Depends-on): Add unistr/base.
71024         (configure.ac): Remove gl_UTF_UCS4.
71025         (Makefile.am): Update.
71026         (Include): Change to unistr.h.
71027         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71028         (Depends-on): Add unistr/base.
71029         (configure.ac): Remove gl_UCS4_UTF.
71030         (Makefile.am): Update.
71031         (Include): Change to unistr.h.
71032         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71033         (Depends-on): Add unistr/base.
71034         (configure.ac): Remove gl_UCS4_UTF.
71035         (Makefile.am): Update.
71036         (Include): Change to unistr.h.
71037         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71038         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71039         utf8-ucs4-unsafe.h.
71040         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71041         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71042         utf16-ucs4-unsafe.h.
71043         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71044         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71045         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71046         * lib/unistr/u8-strchr.c: Likewise.
71047         * lib/unistr/u8-strrchr.c: Likewise.
71048         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71049         * lib/unistr/u16-strchr.c: Likewise.
71050         * lib/unistr/u16-strrchr.c: Likewise.
71051         * lib/striconveh.c: Update.
71052         * lib/linebreak.c: Update.
71053
71054 2007-03-24  Bruno Haible  <bruno@clisp.org>
71055
71056         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71057         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71058
71059 2007-03-22  Bruno Haible  <bruno@clisp.org>
71060
71061         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71062
71063 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71064
71065         * MODULES.html.sh (File system functions): New module write-any-file.
71066         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71067         * m4/write-any-file.m4: New files.
71068
71069 2007-03-23  Eric Blake  <ebb9@byu.net>
71070
71071         * gnulib-tool: Rearrange space-tab sequences, since some editors
71072         like to eat them.
71073
71074 2007-03-23  Eric Blake  <ebb9@byu.net>
71075
71076         * lib/version-etc.c (version_etc_va): Update license wording to
71077         be more concise.  Recommended by Richard Stallman.
71078
71079 2007-03-22  Bruno Haible  <bruno@clisp.org>
71080
71081         * lib/poll.c (MSG_PEEK): New fallback definition.
71082
71083 2007-03-22  Bruno Haible  <bruno@clisp.org>
71084
71085         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71086         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71087         (main): Update.
71088         Fixes a compilation error on BeOS.
71089
71090 2007-03-22  Bruno Haible  <bruno@clisp.org>
71091
71092         * modules/frexpl-tests: New file.
71093         * tests/test-frexpl.c: New file.
71094
71095         * modules/frexpl: New file.
71096         * m4/frexpl.m4: New file.
71097         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71098         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71100         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71101         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71102         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71103
71104 2007-03-22  Bruno Haible  <bruno@clisp.org>
71105
71106         * lib/frexpl.c: Share code with lib/frexp.c.
71107         * modules/mathl (Files): Add lib/frexp.c.
71108         (Depends-on): Add isnanl-nolibm.
71109
71110 2007-03-22  Bruno Haible  <bruno@clisp.org>
71111
71112         * modules/printf-frexp (Files): Add m4/frexp.m4.
71113         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71114         only if the found frexp function actually works.
71115
71116 2007-03-22  Bruno Haible  <bruno@clisp.org>
71117
71118         * lib/frexp.c: Remove older implementation that uses divisions.
71119
71120 2007-03-21  Bruno Haible  <bruno@clisp.org>
71121
71122         * modules/frexp-tests: New file.
71123         * tests/test-frexp.c: New file.
71124
71125         * modules/frexp: New file.
71126         * lib/frexp.c: New file.
71127         * m4/frexp.m4: New file.
71128         * lib/math_.h (frexp): New declaration.
71129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71130         REPLACE_FREXP.
71131         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71132
71133 2007-03-21  Bruno Haible  <bruno@clisp.org>
71134
71135         * modules/isnanl-tests: New file.
71136         * tests/test-isnanl.c: New file.
71137
71138         * modules/isnanl: New file.
71139         * lib/isnanl.h: New file.
71140         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71141         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71142         gl_FUNC_ISNANL_WORKS.
71143         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71144         New macros.
71145
71146 2007-03-21  Bruno Haible  <bruno@clisp.org>
71147
71148         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71149         lib/isnanl.h.
71150         (Include): Update.
71151         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71152         * lib/vasnprintf.c: Update.
71153         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71154         tests/test-isnanl.h, remove tests/test-isnanl.c.
71155         (Makefile.am): Update.
71156         * tests/test-isnanl-nolibm.c: New file.
71157         * tests/test-isnanl.h: New file.
71158         * tests/test-isnanl.c: Remove file.
71159
71160 2007-03-21  Jim Meyering  <jim@meyering.net>
71161
71162         When trying to open ".", treat ESTALE like EACCES.
71163         * lib/savewd.c (savewd_save): Resort to forking not just upon
71164         failure with EACCES, but also when errno is ESTALE.
71165
71166 2007-03-20  Bruno Haible  <bruno@clisp.org>
71167
71168         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71169         Needed on AIX 5.1. Reported by Matthew Woehlke.
71170
71171 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         Suggestions by Bruno Haible:
71174         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71175         our own.
71176         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71177         * modules/acl (Depends-on): Add gettext.
71178
71179 2007-03-19  Bruno Haible  <bruno@clisp.org>
71180
71181         * modules/iconvme: Remove file.
71182         * lib/iconvme.h: Remove file.
71183         * lib/iconvme.c: Remove file.
71184         * m4/iconvme.m4: Remove file.
71185
71186 2007-03-19  Bruno Haible  <bruno@clisp.org>
71187
71188         * doc/relocatable-maint.texi: Break long shell script line.
71189         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71190
71191 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71194         handle file_has_acl.
71195         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71196         * lib/acl.c: Move header inclusions and related macro defns into
71197         lib/acl-internal.h.
71198         (S_ISLNK): Remove defn, since that's now done for us.
71199         (file_has_acl): Move to lib/file-has-acl.c.
71200         Call acl_trivial if available.  This is the crucial part of the fix.
71201         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71202         shared within the library.  Rewrite a bit, partly to make it compatible
71203         with the GNU coding style.
71204         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71205         Remove unnecessary double-quotes.
71206         Don't test for acl_to_text; the build will catch that.
71207         Replace acl_entries if it doesn't exist and it is needed.
71208         Check for -lsec and acl_trivial (as used on Solaris 10).
71209         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71210         lib/file-has-acl.c.
71211         (Depends-on): Add sys_stat, for S_ISLNK.
71212
71213 2007-03-19  Ben Pfaff  <blp@gnu.org>
71214
71215         * doc/gnulib.texi: Fix typos.
71216         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71217
71218 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71221         If size is zero here, buf must be zero.
71222
71223 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71224
71225         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71226         <bruno@clisp.org>.
71227
71228 2007-03-18  Bruno Haible  <bruno@clisp.org>
71229
71230         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71231         Suggested by Eric Blake.
71232
71233 2007-03-18  Ben Pfaff  <blp@gnu.org>
71234
71235         * doc/relocatable.texi: Recommend using as prefix a directory
71236         that does not exist and will never be created.  Based on
71237         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71238         and others.
71239
71240 2007-03-17  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/fchownat.c: Include lchown.h.
71243
71244 2007-03-17  Bruno Haible  <bruno@clisp.org>
71245
71246         Fix endless loop when the given allocated size was > INT_MAX.
71247         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71248         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71249         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71250         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71251         * lib/sprintf.c (sprintf): Likewise.
71252
71253 2007-03-17  Bruno Haible  <bruno@clisp.org>
71254
71255         * tests/test-argp-2.sh (func_compare): Output a context diff.
71256
71257 2007-03-17  Bruno Haible  <bruno@clisp.org>
71258
71259         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71260         locale's decimal-point character.
71261
71262 2007-03-17  Bruno Haible  <bruno@clisp.org>
71263
71264         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71265         before comparing it. Needed because on some platforms (e.g. x86) a
71266         'long double' occupies less bytes than sizeof (long double).
71267
71268 2007-03-17  Bruno Haible  <bruno@clisp.org>
71269
71270         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71271         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71272         * tests/test-getaddrinfo.c (simple): Likewise.
71273         * tests/test-read-file.c (main): Likewise.
71274
71275 2007-03-17  Bruno Haible  <bruno@clisp.org>
71276
71277         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71278
71279 2007-03-17  Bruno Haible  <bruno@clisp.org>
71280
71281         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71282         unused variable.
71283
71284 2007-03-17  Bruno Haible  <bruno@clisp.org>
71285
71286         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71287         * tests/test-c-strncasecmp.c: Likewise.
71288
71289 2007-03-17  Bruno Haible  <bruno@clisp.org>
71290
71291         * modules/stdlib (Depends-on): Add unistd.
71292         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71293         Needed for MacOS X 10.3.
71294
71295 2007-03-17  Bruno Haible  <bruno@clisp.org>
71296
71297         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71298
71299 2007-03-17  Bruno Haible  <bruno@clisp.org>
71300
71301         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71302
71303 2007-03-17  Bruno Haible  <bruno@clisp.org>
71304
71305         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71306         to reflect files copied from gnulib (with or without modifications).
71307         Suggested by Jim Meyering.
71308
71309 2007-03-17  Eric Blake  <ebb9@byu.net>
71310
71311         * NEWS: Document stdlib change from 2007-02-18.
71312
71313 2007-03-17  Jim Meyering  <jim@meyering.net>
71314
71315         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71316         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71317         someone uses a name containing shell meta-characters.
71318         Reported by Alfred M. Szmidt.
71319
71320         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71321
71322 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71323
71324         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71325         and copy gettext configuration files only if configure.ac contains
71326         a use of AM_GNU_GETTEXT_VERSION.
71327
71328 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71329
71330         * build-aux/bootstrap (gnulib_name): New variable.
71331         (gnulib_tool_options): Use it.
71332
71333 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71334
71335         * tests/test-des.c: Use new namespace.
71336
71337 2007-03-15  Bruno Haible  <bruno@clisp.org>
71338
71339         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71340         Reported by James Youngman <jay@gnu.org>.
71341
71342 2007-03-15  Bruno Haible  <bruno@clisp.org>
71343
71344         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71345         declared prototype. Needed with cc on OSF/1 5.1.
71346
71347 2007-03-15  Bruno Haible  <bruno@clisp.org>
71348
71349         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71350         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71351         (struct gl_list_implementation): Add dispose_fn argument to the
71352         'create_empty', 'create' methods.
71353         (struct gl_list_impl_base): Add field 'dispose_fn'.
71354         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71355         argument.
71356         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71357         dispose_fn argument.
71358         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71359         dispose_fn on the dropped values.
71360         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71361         dispose_fn argument.
71362         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71363         dropped values.
71364         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71365         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71366         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71367         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71368         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71369         argument.
71370         (gl_tree_list_free): Call dispose_fn on the dropped values.
71371         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71372         the dropped values.
71373         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71374         Add dispose_fn argument.
71375         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71376         Call dispose_fn on the dropped values.
71377         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71378         Add dispose_fn argument.
71379         (gl_sublist_create): Initialize the 'dispose_fn' field.
71380         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71381         * tests/test-array_list.c (main): Update.
71382         * tests/test-carray_list.c (main): Update.
71383         * tests/test-avltree_list.c (main): Update.
71384         * tests/test-rbtree_list.c (main): Update.
71385         * tests/test-avltreehash_list.c (main): Update.
71386         * tests/test-rbtreehash_list.c (main): Update.
71387         * tests/test-linked_list.c (main): Update.
71388         * tests/test-linkedhash_list.c (main): Update.
71389         * tests/test-array_oset.c (main): Update.
71390
71391 2007-03-15  Bruno Haible  <bruno@clisp.org>
71392
71393         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71394         (gl_oset_create_empty): Add dispose_fn argument.
71395         (struct gl_oset_implementation): Add dispose_fn argument to
71396         'create_empty' method.
71397         (struct gl_oset_impl_base): Add dispose_fn field.
71398         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71399         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71400         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71401         values.
71402         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71403         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71404         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71405         dropped value.
71406         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71407         dropped value.
71408         * tests/test-array_oset.c (main): Update.
71409         * tests/test-avltree_oset.c (main): Update.
71410         * tests/test-rbtree_oset.c (main): Update.
71411         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71412
71413 2007-03-13  Bruno Haible  <bruno@clisp.org>
71414
71415         * tests/test-stdbool.c (i): Update after last patch.
71416
71417 2007-03-12  Bruno Haible  <bruno@clisp.org>
71418
71419         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71420         the iswprint macro. Needed on Solaris 2.5.1.
71421
71422 2007-03-12  Bruno Haible  <bruno@clisp.org>
71423
71424         * tests/test-printf-frexp.c (main): Declare x as volatile.
71425
71426 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71427
71428         * doc/gnulib.texi (Build robot for gnulib): New section.
71429
71430 2007-03-12  Jim Meyering  <jim@meyering.net>
71431
71432         * build-aux/bootstrap: New file.
71433         * build-aux/bootstrap.conf: New file, from coreutils.
71434
71435 2007-03-11  Bruno Haible  <bruno@clisp.org>
71436
71437         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71438
71439 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71440
71441         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71442         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71443         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71444
71445 2007-03-11  Bruno Haible  <bruno@clisp.org>
71446
71447         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71448         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71449
71450 2007-03-11  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71453         formula. Needed for SunPRO C 5.0.
71454
71455 2007-03-11  Bruno Haible  <bruno@clisp.org>
71456
71457         * modules/long-options (Depends-on): Add getopt.
71458
71459 2007-03-11  Bruno Haible  <bruno@clisp.org>
71460
71461         * modules/modechange (Depends-on): Add stdbool.
71462
71463 2007-03-11  Bruno Haible  <bruno@clisp.org>
71464
71465         * modules/i-ring (Depends-on): Add stdbool.
71466
71467 2007-03-11  Bruno Haible  <bruno@clisp.org>
71468
71469         * modules/gc-des (Depends-on): Add stdbool.
71470
71471 2007-03-11  Bruno Haible  <bruno@clisp.org>
71472
71473         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71474
71475 2007-03-11  Bruno Haible  <bruno@clisp.org>
71476
71477         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71478
71479 2007-03-11  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71482
71483 2007-03-11  Bruno Haible  <bruno@clisp.org>
71484
71485         * lib/vasnprintf.c (sprintf): Undefine.
71486
71487 2007-03-11  Bruno Haible  <bruno@clisp.org>
71488
71489         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71490         initializers in SunPRO C and Compaq C compilers.
71491
71492 2007-03-11  Bruno Haible  <bruno@clisp.org>
71493
71494         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71495         decrementing code ANSI C compliant.
71496
71497 2007-03-11  Bruno Haible  <bruno@clisp.org>
71498
71499         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71500         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71501
71502 2007-03-11  Bruno Haible  <bruno@clisp.org>
71503
71504         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71505         <stdbool.h> substitute doesn't pass.
71506
71507 2007-03-11  Bruno Haible  <bruno@clisp.org>
71508
71509         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71510
71511 2007-03-11  Bruno Haible  <bruno@clisp.org>
71512
71513         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71514         script, for submission to autobuild.josefsson.org.
71515
71516 2007-03-10  Bruno Haible  <bruno@clisp.org>
71517
71518         * modules/canonicalize-lgpl-tests: New file.
71519         * tests/test-canonicalize-lgpl.sh: New file.
71520         * tests/test-canonicalize-lgpl.c: New file.
71521
71522         * modules/c-strcase-tests: New file.
71523         * tests/test-c-strcase.sh: New file.
71524         * tests/test-c-strcasecmp.c: New file.
71525         * tests/test-c-strncasecmp.c: New file.
71526
71527         * modules/atexit-tests: New file.
71528         * tests/test-atexit.sh: New file.
71529         * tests/test-atexit.c: New file.
71530
71531 2007-03-10  Bruno Haible  <bruno@clisp.org>
71532
71533         * tests/test-binary-io.sh: Use temporary filenames that are not so
71534         likely to clash with those of other tests (in a parallel make).
71535         * tests/test-binary-io.c: Likewise.
71536
71537 2007-03-10  Bruno Haible  <bruno@clisp.org>
71538
71539         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71540         fallback; use #error instead.
71541         Suggested by Simon Josefsson.
71542
71543 2007-03-10  Bruno Haible  <bruno@clisp.org>
71544
71545         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71546         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71547         first and the last.
71548
71549 2007-03-10  Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71552
71553 2007-03-10  Bruno Haible  <bruno@clisp.org>
71554
71555         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71556         "make distcheck".
71557         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71558         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71559         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71560
71561 2007-03-10  Bruno Haible  <bruno@clisp.org>
71562
71563         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71564         variable.
71565         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71566         variable.
71567
71568 2007-03-09  Eric Blake  <ebb9@byu.net>
71569         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71570
71571         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71572         types are not being provided by gnulib.
71573         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71574         types are supported.
71575
71576 2007-03-10  Bruno Haible  <bruno@clisp.org>
71577
71578         * lib/stdio_.h (__attribute__): New macro.
71579         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71580         vsprintf): Specify __attribute__ __format__ for GCC.
71581         Suggested by Eric Blake.
71582
71583 2007-03-09  Bruno Haible  <bruno@clisp.org>
71584
71585         * modules/printf-posix-tests: New file.
71586         * tests/test-printf-posix.sh: New file.
71587         * tests/test-printf-posix.c: New file.
71588
71589         * modules/printf-posix: New file.
71590         * lib/printf.c: New file.
71591         * m4/printf-posix-rpl.m4: New file.
71592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71593         REPLACE_PRINTF.
71594         * lib/stdio_.h (printf): New declaration.
71595         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71596         ____strfmon____): New macros.
71597         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71598         REPLACE_PRINTF.
71599
71600 2007-03-09  Bruno Haible  <bruno@clisp.org>
71601
71602         * tests/test-vasnprintf-posix2.sh: New file.
71603         * tests/test-vasnprintf-posix2.c: New file.
71604         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71605         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71606         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71607
71608         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71609         a locale dependent decimal point, rather than always '.'.
71610
71611 2007-03-09  Eric Blake  <ebb9@byu.net>
71612
71613         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71614         spite of platforms like Tandem/NSK that define it to -1.
71615
71616 2007-03-08  Bruno Haible  <bruno@clisp.org>
71617
71618         * modules/vprintf-posix-tests: New file.
71619         * tests/test-vprintf-posix.sh: New file.
71620         * tests/test-vprintf-posix.c: New file.
71621         * tests/test-printf-posix.h: New file.
71622
71623         * modules/vprintf-posix: New file.
71624         * lib/vprintf.c: New file.
71625         * m4/vprintf-posix.m4: New file.
71626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71627         REPLACE_VPRINTF.
71628         * lib/stdio_.h (vprintf): New declaration.
71629         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71630         REPLACE_VPRINTF.
71631
71632 2007-03-08  Bruno Haible  <bruno@clisp.org>
71633
71634         * modules/fprintf-posix-tests: New file.
71635         * tests/test-fprintf-posix.sh: New file.
71636         * tests/test-fprintf-posix.c: New file.
71637
71638         * modules/fprintf-posix: New file.
71639         * lib/fprintf.c: New file.
71640         * m4/fprintf-posix.m4: New file.
71641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71642         REPLACE_FPRINTF.
71643         * lib/stdio_.h (fprintf): New declaration.
71644         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71645         REPLACE_FPRINTF.
71646
71647 2007-03-08  Bruno Haible  <bruno@clisp.org>
71648
71649         * modules/vfprintf-posix-tests: New file.
71650         * tests/test-vfprintf-posix.sh: New file.
71651         * tests/test-vfprintf-posix.c: New file.
71652         * tests/test-fprintf-posix.h: New file.
71653         * tests/test-fprintf-posix.out: New file.
71654
71655         * modules/vfprintf-posix: New file.
71656         * lib/vfprintf.c: New file.
71657         * m4/vfprintf-posix.m4: New file.
71658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71659         REPLACE_VFPRINTF.
71660         * lib/stdio_.h (vfprintf): New declaration.
71661         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71662         REPLACE_VFPRINTF.
71663
71664 2007-03-08  Bruno Haible  <bruno@clisp.org>
71665
71666         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71667
71668 2007-03-08  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71671         instead of 'expr' invocations.
71672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71677         Suggested by Paul Eggert.
71678
71679 2007-03-08  Bruno Haible  <bruno@clisp.org>
71680
71681         * modules/fseterr-tests: New file.
71682         * tests/test-fseterr.c: New file.
71683
71684         * modules/fseterr: New file.
71685         * lib/fseterr.h: New file.
71686         * lib/fseterr.c: New file.
71687
71688 2007-03-08  Bruno Haible  <bruno@clisp.org>
71689
71690         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71691         * lib/getopt_.h: Likewise.
71692         * lib/mbswidth.h: Likewise.
71693         * lib/setenv.h: Likewise.
71694         * lib/vasnprintf.h: Likewise.
71695         * lib/vasprintf.h: Likewise.
71696         * lib/verror.h: Likewise.
71697         * lib/xsetenv.h: Likewise.
71698         * lib/xvasprintf.h: Likewise.
71699
71700 2007-03-08  Jim Meyering  <jim@meyering.net>
71701
71702         * users.txt: Add parted.
71703
71704         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71705
71706 2007-03-07  Bruno Haible  <bruno@clisp.org>
71707
71708         * m4/printf.m4: Make the shell script snippets copy&pastable.
71709
71710 2007-03-02  Bruno Haible  <bruno@clisp.org>
71711
71712         * lib/netinet_in_.h: New file.
71713         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71714         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71715         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71716         (Depends-on): Add absolute-header.
71717         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71718         into netinet/in.h.
71719
71720 2007-03-03  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/sys_select_.h: New file.
71723         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71724         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71725         * modules/sys_select (Files): Add lib/sys_select_.h.
71726         (Depends-on): Add absolute-header.
71727         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71728         into sys/select.h.
71729
71730 2007-03-02  Bruno Haible  <bruno@clisp.org>
71731
71732         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71733         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71734         values.
71735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71736         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71737         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71738         * modules/sys_socket (Depends-on): Add absolute-header.
71739         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71740         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71741         (Include): Remove requirement of inclusion of <sys/types.h>.
71742
71743 2007-03-02  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/byteswap_.h (bswap_32): Fix formula.
71746
71747 2007-03-06  Bruno Haible  <bruno@clisp.org>
71748
71749         * modules/sprintf-posix-tests: New file.
71750         * tests/test-sprintf-posix.c: New file.
71751
71752         * modules/sprintf-posix: New file.
71753         * lib/sprintf.c: New file.
71754         * m4/sprintf-posix.m4: New file.
71755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71756         REPLACE_SPRINTF.
71757         * lib/stdio_.h (sprintf): New declaration.
71758         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71759         REPLACE_SPRINTF.
71760
71761 2007-03-06  Bruno Haible  <bruno@clisp.org>
71762
71763         * modules/vsprintf-posix-tests: New file.
71764         * tests/test-vsprintf-posix.c: New file.
71765         * tests/test-sprintf-posix.h: New file.
71766
71767         * modules/vsprintf-posix: New file.
71768         * lib/vsprintf.c: New file.
71769         * m4/vsprintf-posix.m4: New file.
71770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71771         REPLACE_VSPRINTF.
71772         * lib/stdio_.h (vsprintf): New declaration.
71773         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71774         REPLACE_VSPRINTF.
71775
71776 2007-03-06  Bruno Haible  <bruno@clisp.org>
71777
71778         * modules/vsnprintf (Depend-on): Remove minmax.
71779
71780 2007-03-06  Bruno Haible  <bruno@clisp.org>
71781
71782         * modules/snprintf-posix-tests: New file.
71783         * tests/test-snprintf-posix.c: New file.
71784
71785         * modules/snprintf-posix: New file.
71786         * m4/snprintf-posix.m4: New file.
71787         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71788         gl_FUNC_SNPRINTF.
71789         (gl_FUNC_SNPRINTF): Invoke it.
71790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71791         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71792         is set.
71793         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71794
71795 2007-03-06  Bruno Haible  <bruno@clisp.org>
71796
71797         * modules/vsnprintf-posix-tests: New file.
71798         * tests/test-vsnprintf-posix.c: New file.
71799         * tests/test-snprintf-posix.h: New file.
71800
71801         * modules/vsnprintf-posix: New file.
71802         * m4/vsnprintf-posix.m4: New file.
71803         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71804         gl_FUNC_VSNPRINTF.
71805         (gl_FUNC_VSNPRINTF): Invoke it.
71806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71807         * lib/stdio_.h (vsnprintf): Define as a replacement if
71808         REPLACE_VSNPRINTF is set.
71809         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71810
71811 2007-03-06  Bruno Haible  <bruno@clisp.org>
71812
71813         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71814         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71815
71816 2007-03-06  Bruno Haible  <bruno@clisp.org>
71817
71818         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71819         (asinl): Declare also if HAVE_DECL_ASINL is set.
71820         (atanl): Declare also if HAVE_DECL_ATANL is set.
71821         (ceill): Declare also if HAVE_DECL_CEILL is set.
71822         (cosl): Declare also if HAVE_DECL_COSL is set.
71823         (expl): Declare also if HAVE_DECL_EXPL is set.
71824         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71825         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71826         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71827         (logl): Declare also if HAVE_DECL_LOGL is set.
71828         (sinl): Declare also if HAVE_DECL_SINL is set.
71829         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71830         (tanl): Declare also if HAVE_DECL_TANL is set.
71831         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71833         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71834         declaration of frexpl, ldexpl.
71835         * modules/printf-frexpl (Depends-on): Add math.
71836         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71837
71838 2007-03-05  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71841         frexpl and ldexpl are declared.
71842         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71843
71844 2007-03-05  Bruno Haible  <bruno@clisp.org>
71845
71846         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71847         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71848
71849 2007-03-05  Bruno Haible  <bruno@clisp.org>
71850
71851         * lib/stdio_.h: Include <stddef.h>.
71852
71853 2007-03-05  Bruno Haible  <bruno@clisp.org>
71854
71855         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71856
71857 2007-03-05  Bruno Haible  <bruno@clisp.org>
71858
71859         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71860         NetBSD 4, from Ralf Wildenhues.
71861
71862 2007-03-04  Bruno Haible  <bruno@clisp.org>
71863
71864         * lib/vasprintf.h: Update #if logic for the case when the functions
71865         exist but are overridden.
71866
71867 2007-03-04  Bruno Haible  <bruno@clisp.org>
71868
71869         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71870         implementations: glibc-2.4 and MacOS X 10.3.
71871         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71872         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71873         * tests/test-vasprintf-posix.c (test_function): Likewise.
71874
71875 2007-03-04  Bruno Haible  <bruno@clisp.org>
71876
71877         * modules/vasprintf-posix-tests: New file.
71878         * tests/test-vasprintf-posix.c: New file.
71879
71880         * modules/vasprintf-posix: New file.
71881         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71882         defined.
71883         * m4/vasprintf-posix.m4: New file.
71884         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71885         gl_FUNC_VASPRINTF.
71886         (gl_FUNC_VASPRINTF): Invoke it.
71887         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71888         here.
71889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71890
71891 2007-03-04  Bruno Haible  <bruno@clisp.org>
71892
71893         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71894         REPLACE_GETTIMEOFDAY.
71895         * modules/sys_time (Makefile.am): Likewise.
71896         * m4/sys_time_h.m4: Likewise.
71897         * m4/gettimeofday.m4: Likewise.
71898
71899 2007-03-04  Bruno Haible  <bruno@clisp.org>
71900
71901         * modules/vasnprintf-posix-tests: New file.
71902         * tests/test-vasnprintf-posix.c: New file.
71903
71904         * modules/vasnprintf-posix: New file.
71905         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71906         printf-frexpl.h.
71907         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71908         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71909         REPLACE_VASNPRINTF is defined.
71910         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71911         gl_FUNC_VASNPRINTF.
71912         (gl_FUNC_VASNPRINTF): Invoke it.
71913         * m4/vasnprintf-posix.m4: New file.
71914         * m4/printf.m4: New file.
71915
71916 2007-03-04  Bruno Haible  <bruno@clisp.org>
71917
71918         Compile progreloc.c only if --enable-relocatable is specified.
71919         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71920         if --enable-relocatable was specified.
71921         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71922         lib_SOURCES.
71923
71924 2007-03-04  Jim Meyering  <jim@meyering.net>
71925
71926         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71927         Use it consistently, rather than enumerating errno constants.
71928
71929 2007-03-04  Bruno Haible  <bruno@clisp.org>
71930
71931         * modules/xvasprintf-tests: New file.
71932         * tests/test-xvasprintf.c: New file.
71933
71934         * modules/vasprintf-tests: New file.
71935         * tests/test-vasprintf.c: New file.
71936
71937         * modules/vasnprintf-tests: New file.
71938         * tests/test-vasnprintf.c: New file.
71939
71940         * modules/vsnprintf-tests: New file.
71941         * tests/test-vsnprintf.c: New file.
71942
71943         * modules/snprintf-tests: New file.
71944         * tests/test-snprintf.c: New file.
71945
71946 2007-03-04  Bruno Haible  <bruno@clisp.org>
71947
71948         Compile relocatable.c only if --enable-relocatable is specified.
71949         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71950         gl_RELOCATABLE_LIBRARY.
71951         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71952         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71953         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71954         gl_RELOCATABLE_LIBRARY.
71955         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71956         (Makefile.am): Remove lib_SOURCES.
71957         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71958         gl_RELOCATABLE_LIBRARY.
71959         (Makefile.am): Remove lib_SOURCES.
71960         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71961         always.
71962         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71963         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71964
71965 2007-03-04  Bruno Haible  <bruno@clisp.org>
71966
71967         * modules/argmatch-tests: New file.
71968         * tests/test-argmatch.c: New file.
71969
71970         * tests/test-allocsa.c (main): Halve the number of loop runs.
71971
71972         * modules/alloca-opt-tests: New file.
71973         * tests/test-alloca-opt.c: New file.
71974
71975 2007-03-04  Jim Meyering  <jim@meyering.net>
71976
71977         Work around difference between Linux ACLs and Solaris 10 ZFS.
71978         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71979         for EINVAL.
71980
71981 2007-03-03  Bruno Haible  <bruno@clisp.org>
71982
71983         * modules/relocatable-prog (Depends-on): Add back progreloc's
71984         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71985
71986 2007-03-03  Bruno Haible  <bruno@clisp.org>
71987
71988         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71989         * modules/relocatable-lib: New file.
71990
71991 2007-03-03  Bruno Haible  <bruno@clisp.org>
71992
71993         * modules/relocatable-prog: Renamed from modules/relocatable.
71994         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71995
71996 2007-03-03  Bruno Haible  <bruno@clisp.org>
71997
71998         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71999         m4/relocatable-lib.m4.
72000         (Depends-on): Remove 'relocatable'.
72001         (configure.ac): Add gl_RELOCATABLE_NOP.
72002
72003 2007-03-03  Bruno Haible  <bruno@clisp.org>
72004
72005         * modules/relocatable-prog-wrapper: New file.
72006         * modules/relocatable (Depends-on): Add it. Remove all other
72007         dependencies except progname.
72008         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72009
72010         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72011         (gl_FUNC_STRERROR): Nop.
72012         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72013
72014         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72015         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72016
72017         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72018         (gl_FUNC_READLINK): Update.
72019
72020         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72021
72022 2007-03-03  Bruno Haible  <bruno@clisp.org>
72023
72024         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72025         * modules/xreadlink (Depends-on): Add unistd.
72026         * modules/xreadlink-with-size (Depends-on): Likewise.
72027
72028 2007-03-03  Bruno Haible  <bruno@clisp.org>
72029
72030         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72031         extracted from gt_FUNC_SETENV.
72032         (gt_FUNC_SETENV): Remove macro.
72033         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72034         remove gt_FUNC_SETENV.
72035
72036 2007-03-03  Bruno Haible  <bruno@clisp.org>
72037
72038         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72039         ENABLE_RELOCATABLE here.
72040         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72041
72042 2007-03-03  Bruno Haible  <bruno@clisp.org>
72043
72044         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72045         * tests/test-rbtreehash_list.c: Include progname.h.
72046         (main): Call set_program_name.
72047
72048         * modules/rbtree-oset-tests (Depends-on): Add progname.
72049         * tests/test-rbtree_oset.c: Include progname.h.
72050         (main): Call set_program_name.
72051
72052         * modules/rbtree-list-tests (Depends-on): Add progname.
72053         * tests/test-rbtree_list.c: Include progname.h.
72054         (main): Call set_program_name.
72055
72056         * modules/linked-list-tests (Depends-on): Add progname.
72057         * tests/test-linked_list.c: Include progname.h.
72058         (main): Call set_program_name.
72059
72060 2007-03-03  Bruno Haible  <bruno@clisp.org>
72061
72062         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72063         All uses of __restrict changed to _Restrict_.
72064         * lib/glob_.h (__restrict): Remove macro.
72065
72066 2007-03-02  Bruno Haible  <bruno@clisp.org>
72067
72068         * modules/gettext (configure.ac): Require gettext infrastructure
72069         from version 0.16.1.
72070
72071 2007-03-02  Bruno Haible  <bruno@clisp.org>
72072
72073         * modules/linkedhash-list-tests (Depends-on): Add progname.
72074         * tests/test-linkedhash_list.c: Include progname.h.
72075         (main): Call set_program_name.
72076
72077         * modules/carray-list-tests (Depends-on): Add progname.
72078         * tests/test-carray_list.c: Include progname.h.
72079         (main): Call set_program_name.
72080
72081         * modules/avltreehash-list-tests (Depends-on): Add progname.
72082         * tests/test-avltreehash_list.c: Include progname.h.
72083         (main): Call set_program_name.
72084
72085         * modules/avltree-oset-tests (Depends-on): Add progname.
72086         * tests/test-avltree_oset.c: Include progname.h.
72087         (main): Call set_program_name.
72088
72089         * modules/avltree-list-tests (Depends-on): Add progname.
72090         * tests/test-avltree_list.c: Include progname.h.
72091         (main): Call set_program_name.
72092
72093         * modules/array-oset-tests (Depends-on): Add progname.
72094         * tests/test-array_oset.c: Include progname.h.
72095         (main): Call set_program_name.
72096
72097         * modules/array-list-tests (Depends-on): Add progname.
72098         * tests/test-array_list.c: Include progname.h.
72099         (main): Call set_program_name.
72100
72101         * modules/argp-tests (Depends-on): Add progname.
72102         * tests/test-argp.c: Include argp.h first. Include progname.h.
72103         (main): Call set_program_name.
72104
72105 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         * doc/gnulib-tool.texi (Initial import): Reword description of
72108         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72109         limited effect even if defined after the first system include.
72110
72111 2007-03-01  Bruno Haible  <bruno@clisp.org>
72112
72113         * build-aux/config.libpath: Update to libtool-1.5.22.
72114         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72115
72116 2007-03-01  Bruno Haible  <bruno@clisp.org>
72117
72118         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72119         foo_CFLAGS.
72120         Reported by Ralf Wildenhues.
72121
72122 2007-03-01  Bruno Haible  <bruno@clisp.org>
72123
72124         * build-aux/install-reloc: Remove object files left over by some
72125         compilers.
72126         Reported by Ralf Wildenhues.
72127
72128 2007-03-01  Bruno Haible  <bruno@clisp.org>
72129
72130         * build-aux/install-reloc: Break long lines.
72131
72132 2007-03-01  Bruno Haible  <bruno@clisp.org>
72133
72134         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72135         Reported by Ralf Wildenhues.
72136
72137 2007-03-01  Bruno Haible  <bruno@clisp.org>
72138
72139         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72140         include ordering constraints.
72141
72142 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72146         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72147         as another example.
72148         * lib/time_.h: Fix misspelling.
72149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72150         Require gl_HEADER_TIME_H_DEFAULTS.
72151         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72152         * m4/time_r.m4 (gl_TIME_R): Likewise.
72153         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72154
72155 2007-03-01  Bruno Haible  <bruno@clisp.org>
72156
72157         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72158         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72159
72160 2007-03-01  Jim Meyering  <jim@meyering.net>
72161
72162         * modules/xreadlink (Maintainer): Add my name.
72163         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72164
72165 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72166             Bruno Haible  <bruno@clisp.org>
72167
72168         * build-aux/install-reloc: Compile also c-ctype.c.
72169         * build-aux/relocatable.sh.in: New file.
72170         * doc/relocatable.texi: New file.
72171         * doc/relocatable-maint.texi: New file.
72172         * doc/gnulib.texi: Include relocatable-maint.texi.
72173         * lib/progreloc.c: Include unistd.h unconditionally.
72174         * lib/relocwrapper.c: Include unistd.h unconditionally.
72175         Include c-ctype.h.
72176         (add_dotbin): Use c_tolower.
72177         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72178         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72179         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72180         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72181         to m4/relocatable-lib.m4.
72182         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72183         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72184         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72185         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72186         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72187         * modules/relocatable: New file.
72188         * modules/relocatable-lib: New file.
72189         * modules/relocatable-script: New file.
72190
72191 2007-02-28  Bruno Haible  <bruno@clisp.org>
72192
72193         Import --enable-relocatable infrastructure.
72194         * build-aux/config.libpath: New file, from GNU gettext.
72195         * build-aux/install-reloc: New file, from GNU gettext.
72196         * build-aux/reloc-ldflags: New file, from GNU gettext.
72197         * lib/relocatable.h: New file, from GNU gettext.
72198         * lib/relocatable.c: New file, from GNU gettext.
72199         * lib/relocwrapper.c: New file, from GNU gettext.
72200         * m4/relocatable.m4: New file, from GNU gettext.
72201
72202 2007-02-28  Bruno Haible  <bruno@clisp.org>
72203
72204         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72205
72206         * modules/xreadlink: New file, from GNU gettext with modifications.
72207         * lib/xreadlink.c: New file, from GNU gettext.
72208         * lib/xreadlink.h: Add comments.
72209         (xreadlink): New declaration.
72210
72211         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72212         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72213         lib/xreadlink-with-size.c.
72214         (configure.ac): Remove gl_XREADLINK invocation.
72215         (Makefile.am): Augment lib_SOURCES.
72216         * m4/xreadlink.m4: Remove file.
72217         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72218         (xreadlink_with_size): Renamed from xreadink.
72219         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72220         * modules/canonicalize (Depends-on): Replace xreadlink with
72221         xreadlink-with-size.
72222         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72223
72224 2007-02-25  Jim Meyering  <jim@meyering.net>
72225
72226         * build-aux/announce-gen: When complaining about excess arguments,
72227         list them.
72228
72229 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * README: Document signed integer overflow situation more
72232         accurately.
72233
72234 2007-02-25  Bruno Haible  <bruno@clisp.org>
72235
72236         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72237         'a' or 'A' conversion.
72238
72239 2007-02-25  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/filename: Renamed from modules/pathname.
72242         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72243         lib/concatpath.c with lib/concat-filename.c.
72244         (Makefile.am): Update.
72245         (Include): Replace pathname.h with filename.h.
72246         * lib/filename.h: Renamed from lib/pathname.h.
72247         (concatenated_filename): Renamed from concatenated_pathname.
72248         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72249         (concatenated_filename): Renamed from concatenated_pathname.
72250         * lib/findprog.c: Include filename.h instead of pathname.h.
72251         (find_in_path): Update.
72252         * lib/javacomp.c: Include filename.h instead of pathname.h.
72253         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72254         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72255         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72256         is_oldgcj_14_13_usable, is_javac_usable): Update.
72257         * lib/javaexec.c: Include filename.h instead of pathname.h.
72258         (execute_java_class): Update.
72259         * modules/findprog: Update.
72260         * modules/javacomp: Update.
72261         * modules/javaexec: Update.
72262         * MODULES.html.sh (File system functions): Add 'filename', remove
72263         'pathname'.
72264
72265 2007-02-25  Bruno Haible  <bruno@clisp.org>
72266
72267         * modules/printf-frexpl-tests: New file.
72268         * tests/test-printf-frexpl.c: New file.
72269
72270         * modules/printf-frexpl: New file.
72271         * lib/printf-frexpl.h: New file.
72272         * lib/printf-frexpl.c: New file.
72273         * m4/printf-frexpl.m4: New file.
72274
72275 2007-02-25  Bruno Haible  <bruno@clisp.org>
72276
72277         * modules/printf-frexp-tests: New file.
72278         * tests/test-printf-frexp.c: New file.
72279
72280         * modules/printf-frexp: New file.
72281         * lib/printf-frexp.h: New file.
72282         * lib/printf-frexp.c: New file.
72283         * m4/printf-frexp.m4: New file.
72284
72285 2007-02-25  Bruno Haible  <bruno@clisp.org>
72286
72287         Assume automake >= 1.10 for the tests.
72288         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72289         * modules/arctwo-tests: Likewise.
72290         * modules/argp-tests: Likewise.
72291         * modules/avltree-list-tests: Likewise.
72292         * modules/avltree-oset-tests: Likewise.
72293         * modules/avltreehash-list-tests: Likewise.
72294         * modules/carray-list-tests: Likewise.
72295         * modules/crc-tests: Likewise.
72296         * modules/des-tests: Likewise.
72297         * modules/gc-arcfour-tests: Likewise.
72298         * modules/gc-arctwo-tests: Likewise.
72299         * modules/gc-des-tests: Likewise.
72300         * modules/gc-hmac-md5-tests: Likewise.
72301         * modules/gc-hmac-sha1-tests: Likewise.
72302         * modules/gc-md2-tests: Likewise.
72303         * modules/gc-md4-tests: Likewise.
72304         * modules/gc-md5-tests: Likewise.
72305         * modules/gc-pbkdf2-sha1-tests: Likewise.
72306         * modules/gc-rijndael-tests: Likewise.
72307         * modules/gc-sha1-tests: Likewise.
72308         * modules/gc-tests: Likewise.
72309         * modules/getaddrinfo-tests: Likewise.
72310         * modules/hmac-md5-tests: Likewise.
72311         * modules/hmac-sha1-tests: Likewise.
72312         * modules/linked-list-tests: Likewise.
72313         * modules/linkedhash-list-tests: Likewise.
72314         * modules/lock-tests: Likewise.
72315         * modules/md2-tests: Likewise.
72316         * modules/md4-tests: Likewise.
72317         * modules/md5-tests: Likewise.
72318         * modules/rbtree-list-tests: Likewise.
72319         * modules/rbtree-oset-tests: Likewise.
72320         * modules/rbtreehash-list-tests: Likewise.
72321         * modules/read-file-tests: Likewise.
72322         * modules/rijndael-tests: Likewise.
72323         * modules/stdint-tests: Likewise.
72324         * modules/tls-tests: Likewise.
72325
72326 2007-02-24  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72329         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72330         function; instead check whether isnan with a double argument links.
72331         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72332         function; instead check whether isnan with a 'long double' argument
72333         links.
72334         Reported by Eric Blake <ebb9@byu.net>.
72335
72336 2007-02-24  Bruno Haible  <bruno@clisp.org>
72337
72338         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72339         defined.
72340         * lib/isnanl.c: Remove all code. Just include isnan.c.
72341         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72342
72343 2007-02-25  Jim Meyering  <jim@meyering.net>
72344
72345         Avoid conflicting types for 'unsetenv' on FreeBSD.
72346         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72347         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72348         in stdlib.h.
72349
72350 2007-02-24  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/isnanl-nolibm-tests: New file.
72353         * tests/test-isnanl.c: New file.
72354
72355         * modules/isnanl-nolibm: New file.
72356         * lib/isnanl.h: New file.
72357         * lib/isnanl.c: New file.
72358         * m4/isnanl.m4: New file.
72359
72360 2007-02-24  Bruno Haible  <bruno@clisp.org>
72361
72362         * modules/isnan-nolibm-tests: New file.
72363         * tests/test-isnan.c: New file.
72364
72365         * modules/isnan-nolibm: New file.
72366         * lib/isnan.h: New file.
72367         * lib/isnan.c: New file.
72368         * m4/isnan.m4: New file.
72369
72370 2007-02-24  Bruno Haible  <bruno@clisp.org>
72371
72372         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72373         assume that an exponent fits in 20 bits.
72374
72375 2007-02-24  Jim Meyering  <jim@meyering.net>
72376
72377         * m4/regex.m4: Update the description of the configure-time option,
72378         --without-included-regex, to state accurately what the defaults are,
72379         and perhaps to give people an idea why using this option is risky.
72380
72381 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72384         loops on small arguments.  This attempts to avoid the problem
72385         Bruno Haible reported for AIX 4.3.2 in
72386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72387
72388 2007-02-23  Bruno Haible  <bruno@clisp.org>
72389
72390         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72391         Needed for help2man.
72392
72393 2007-02-23  Karl Berry  <karl@gnu.org>
72394
72395         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72396         exists, foo.h should be cvs-ignored, not committed.
72397
72398 2007-02-23  Eric Blake  <ebb9@byu.net>
72399
72400         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72401         * lib/stat-time.h (includes): Likewise.
72402         * lib/utimecmp.c (includes): Likewise.
72403         * lib/utimens.h (includes): Likewise.
72404         * lib/getdate.y (includes): Also include "timespec.h" for use
72405         internal to the module.
72406         * modules/utimens (Depends-on): Revert yesterday's patch.
72407         * modules/nanosleep (Depends-on): Add missing dependency.
72408
72409 2007-02-22  Bruno Haible  <bruno@clisp.org>
72410
72411         * lib/glob.c: Don't include getlogin_r.h.
72412
72413 2007-02-22  Jim Meyering  <jim@meyering.net>
72414
72415         * modules/utimens (Depends-on): Add timespec, required for
72416         utimens.h's inclusion of timespec.h.
72417
72418 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72421         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72422         Schwab in
72423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72424         I'll try to think of a better way to fix the Solaris problem.
72425
72426         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72427         like glibc; on Solaris 10, it fails with errno == EINVAL.
72428         POSIX says the behavior is unspecified if the first argument is NULL,
72429         so play it safe and never pass NULL to the system getcwd.
72430
72431 2007-02-21  Jim Meyering  <jim@meyering.net>
72432
72433         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72434         of gettimeofday.  It would conflict with the one now always
72435         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72436         an IRIX 6.5 build failure.
72437
72438 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72439
72440         Minor fixups to port to Solaris 10 with Sun C 5.8.
72441         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72442         * modules/getcwd (Depends-on): Add dirfd.
72443         * lib/putenv.c (putenv): #undef it.
72444         (rpl_putenv): New decl.
72445         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72446
72447 2007-02-20  Bruno Haible  <bruno@clisp.org>
72448
72449         * modules/stdio-tests: New file.
72450         * tests/test-stdio.c: New file.
72451
72452         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72453         (Depends-on): Add stdio.
72454         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72455         (Include): Use <stdio.h> instead of vsnprintf.h.
72456         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72457         HAVE_DECL_VSNPRINTF.
72458         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72459
72460         * modules/snprintf (Files): Remove lib/snprintf.h.
72461         (Depends-on): Add stdio.
72462         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72463         (Include): Use <stdio.h> instead of snprintf.h.
72464         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72465         HAVE_DECL_SNPRINTF.
72466         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72467         * lib/getaddrinfo.c: Likewise.
72468
72469         * modules/stdio: New file.
72470         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72471         * lib/snprintf.h: Remove file.
72472         * lib/vsnprintf.h: Remove file.
72473         * lib/.cppi-disable: Remove snprintf.h.
72474         * m4/stdio_h.m4: New file.
72475         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72476
72477 2007-02-20  Jim Meyering  <jim@meyering.net>
72478
72479         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72480         used by e.g., mingw.  From Bruno Haible.
72481
72482 2007-02-19  Bruno Haible  <bruno@clisp.org>
72483
72484         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72485         warnings.
72486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72487
72488 2007-02-19  Bruno Haible  <bruno@clisp.org>
72489
72490         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72491         from mingw users.
72492
72493 2007-02-19  Bruno Haible  <bruno@clisp.org>
72494
72495         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72496         warnings.
72497         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72498
72499 2007-02-19  Jim Meyering  <jim@meyering.net>
72500
72501         Don't use FD after a successful "fdopendir (fd)".
72502         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72503         Reset it by calling dirfd on the just-obtained DIR*.
72504
72505         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72506         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72507
72508 2007-02-18  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/readlink.c: Include <unistd.h>.
72511         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72512         HAVE_READLINK.
72513         * modules/readlink (Depends-on): Add unistd.
72514         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72515         (Include): Add <unistd.h>.
72516
72517         * lib/getlogin_r.h: Remove file.
72518         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72519         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72520         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72521         HAVE_DECL_GETLOGIN_R.
72522         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72523         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72524         (Include): Use <unistd.h> instead of getlogin_r.h.
72525
72526         * lib/getcwd.h: Remove file.
72527         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72528         * lib/xgetcwd.c: Likewise.
72529         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72530         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72531         * modules/getcwd (Files): Remove lib/getcwd.h.
72532         (Depends-on): Add unistd.
72533         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72534         (Include): Use <unistd.h> instad of getcwd.h.
72535
72536         * lib/ftruncate.c: Include <unistd.h> first.
72537         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72538         Set HAVE_FTRUNCATE.
72539         * modules/ftruncate (Depends-on): Add unistd.
72540         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72541
72542         * lib/fchdir.c: Include <unistd.h> first.
72543         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72545         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72546         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72547         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72548
72549         * lib/dup2.c: Include <unistd.h> first.
72550         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72551         HAVE_DUP2.
72552         * modules/dup2 (Depends-on): Add unistd.
72553         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72554
72555         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72556         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72557         REPLACE_CHOWN. Don't define chown as a macro here.
72558         * modules/chown (Depends-on): Add unistd.
72559         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72560
72561         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72562         Add definition for GL_LINK_WARNING.
72563         (chown, dup2): New declarations.
72564         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72565         link warning.
72566         (ftruncate): New declaration.
72567         (getcwd): New declaration, taken from old getcwd.h.
72568         (getlogin_r): New declaration, taken from old getlogin_r.h.
72569         (readlink): New declaration.
72570         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72571         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72572         (gl_PREREQ_UNISTD): Remove macro.
72573         (gl_UNISTD_MODULE_INDICATOR): New macro.
72574         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72575         many new variables. Don't set UNISTD_H.
72576         * modules/unistd (Description): Change.
72577         (Depends-on): Add link-warning.
72578         (configure.ac): Update.
72579         (Makefile.am): Create unistd.h always. Substitute many new variables
72580         into it.
72581
72582 2007-02-18  Bruno Haible  <bruno@clisp.org>
72583
72584         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72585         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72586         HAVE_GETSUBOPT.
72587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72588         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72589         * lib/getsubopt.h: Remove file.
72590         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72591         (Depends-on): Add stdlib.
72592         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72593         (Includes): Use <stdlib.h> instead of getsubopt.h.
72594         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72595         Set HAVE_GETSUBOPT.
72596         * lib/getsubopt.c: Don't include getsubopt.h.
72597
72598 2007-02-18  Bruno Haible  <bruno@clisp.org>
72599
72600         * modules/fchdir (Depends-on): Add dup2.
72601
72602 2007-02-18  Bruno Haible  <bruno@clisp.org>
72603
72604         * lib/stdlib_.h: Handle glibc's special invocation convention
72605         specially.
72606
72607 2007-02-18  Bruno Haible  <bruno@clisp.org>
72608
72609         * modules/stdlib-tests: New file.
72610         * tests/test-stdlib.c: New file.
72611
72612         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72613         (Depends-on): Add stdlib.
72614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72615         (Includes): Use <stdlib.h> instead of mkstemp.h.
72616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72617         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72618         * lib/mkstemp.c: Don't include mkstemp.h.
72619         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72620         * lib/stdlib--.h: Don't include mkstemp.h.
72621
72622         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72623         (Depends-on): Add stdlib.
72624         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72625         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72626         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72627         HAVE_MKDTEMP.
72628         * lib/mkdtemp.c: Don't include mkdtemp.h.
72629         * lib/clean-temp.c: Don't include mkdtemp.h.
72630
72631         * modules/exit (Files): Remove lib/exit.h.
72632         (Depends-on): Add stdlib.
72633         (Makefile.am): Remove lib_SOURCES.
72634         (Include): Use <stdlib.h> instead of exit.h.
72635         * lib/argmatch.c: Don't include exit.h.
72636         * lib/execute.c: Likewise.
72637         * lib/pagealign_alloc.c: Likewise.
72638         * lib/pipe.c: Likewise.
72639         * lib/wait-process.c: Likewise.
72640         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72641         * lib/exitfail.c: Likewise.
72642         * lib/savewd.c: Likewise.
72643         * lib/xsetenv.c: Likewise.
72644
72645         * modules/stdlib: New file.
72646         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72647         and extra comments about mkstemp().
72648         * lib/exit.h: Remove file.
72649         * lib/mkdtemp.h: Remove file.
72650         * lib/mkstemp.h: Remove file.
72651         * m4/stdlib_h.m4: New file.
72652         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72653
72654 2007-02-18  Bruno Haible  <bruno@clisp.org>
72655
72656         * modules/math-tests: New file.
72657         * tests/test-math.c: New file.
72658
72659         * modules/math: New file.
72660         * modules/mathl (Files): Remove lib/mathl.h.
72661         (Depends-on): Add math.
72662         (Makefile.am): Don't mention mathl.h.
72663         (Include): Use <math.h> instead of mathl.h.
72664         * lib/math_.h: New file.
72665         * lib/mathl.h: Remove file.
72666         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72667         mathl.h.
72668         * lib/asinl.c: Likewise.
72669         * lib/atanl.c: Likewise.
72670         * lib/ceill.c: Likewise.
72671         * lib/cosl.c: Likewise.
72672         * lib/expl.c: Likewise.
72673         * lib/floorl.c: Likewise.
72674         * lib/frexpl.c: Likewise.
72675         * lib/ldexpl.c: Likewise.
72676         * lib/logl.c: Likewise.
72677         * lib/sincosl.c: Likewise.
72678         * lib/sinl.c: Likewise.
72679         * lib/sqrtl.c: Likewise.
72680         * lib/tanl.c: Likewise.
72681         * lib/trigl.c: Likewise.
72682         * m4/math_h.m4: New file.
72683         * MODULES.html.sh (Mathematics): Add math.
72684
72685 2007-02-17  Bruno Haible  <bruno@clisp.org>
72686
72687         * modules/wctype-tests: New file.
72688         * tests/test-wctype.c: New file.
72689
72690         * modules/wchar-tests: New file.
72691         * tests/test-wchar.c: New file.
72692
72693         * modules/unistd-tests: New file.
72694         * tests/test-unistd.c: New file.
72695
72696         * modules/time-tests: New file.
72697         * tests/test-time.c: New file.
72698
72699         * modules/sysexits-tests: New file.
72700         * tests/test-sysexits.c: New file.
72701
72702         * modules/sys_time-tests: New file.
72703         * tests/test-sys_time.c: New file.
72704
72705         * modules/sys_stat-tests: New file.
72706         * tests/test-sys_stat.c: New file.
72707
72708         * modules/sys_socket-tests: New file.
72709         * tests/test-sys_socket.c: New file.
72710
72711         * modules/sys_select-tests: New file.
72712         * tests/test-sys_select.c: New file.
72713
72714         * modules/string-tests: New file.
72715         * tests/test-string.c: New file.
72716
72717         * modules/stdbool-tests: New file.
72718         * tests/test-stdbool.c: New file.
72719
72720         * modules/netinet_in-tests: New file.
72721         * tests/test-netinet_in.c: New file.
72722
72723         * modules/inttypes-tests: New file.
72724         * tests/test-inttypes.c: New file.
72725
72726         * modules/fcntl-tests: New file.
72727         * tests/test-fcntl.c: New file.
72728
72729         * modules/byteswap-tests: New file.
72730         * tests/test-byteswap.c: New file.
72731
72732         * modules/arpa_inet-tests: New file.
72733         * tests/test-arpa_inet.c: New file.
72734
72735 2007-02-17  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72738         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72739         if the corresponding module is not enabled. Emit link warnings if
72740         the function is used nevertheless.
72741         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72742         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72743         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72744         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72745         * modules/inttypes (Depends-on): Add link-warning.
72746         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72747         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72748         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72749         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72750         * modules/imaxdiv (configure.ac): Likewise.
72751         * modules/strtoimax (configure.ac): Likewise.
72752         * modules/strtoumax (configure.ac): Likewise.
72753
72754 2007-02-17  Bruno Haible  <bruno@clisp.org>
72755
72756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72757         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72758         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72759         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72760
72761 2007-02-17  Bruno Haible  <bruno@clisp.org>
72762
72763         * modules/link-warning: New file.
72764         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72765         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72766         * modules/string (Depends-on): Add link-warning.
72767         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72768         string.h.
72769         * MODULES.html.sh (Support for building libraries and executables): Add
72770         link-warning.
72771
72772 2007-02-17  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72775         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72776         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72777         long lines.
72778
72779 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72780             Bruno Haible  <bruno@clisp.org>
72781
72782         * modules/tmpfile: New file.
72783         * lib/tmpfile.c: New file.
72784         * m4/tmpfile.m4: New file.
72785         * MODULES.html.sh (func_all_modules): New section "Input/output".
72786
72787 2007-02-15  Bruno Haible  <bruno@clisp.org>
72788
72789         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72790         (supports_delete_on_close): New function.
72791         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72792
72793 2007-02-14  Bruno Haible  <bruno@clisp.org>
72794
72795         * modules/mbspcasecmp-tests: New file.
72796         * tests/test-mbspcasecmp.sh: New file.
72797         * tests/test-mbspcasecmp.c: New file.
72798
72799         New module mbspcasecmp.
72800         * modules/mbspcasecmp: New file.
72801         * lib/mbspcasecmp.c: New file.
72802         * lib/string_.h (strncasecmp): Change warning message.
72803         (mbspcasecmp): New declaration.
72804         * m4/mbspcasecmp.m4: New file.
72805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72806         GNULIB_MBSPCASECMP.
72807         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72808         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72809
72810 2007-02-14  Bruno Haible  <bruno@clisp.org>
72811
72812         * modules/mbsncasecmp-tests: New file.
72813         * tests/test-mbsncasecmp.sh: New file.
72814         * tests/test-mbsncasecmp.c: New file.
72815
72816         New module mbsncasecmp.
72817         * modules/mbsncasecmp: New file.
72818         * lib/mbsncasecmp.c: New file.
72819         * lib/string_.h (mbsncasecmp): New declaration.
72820         * m4/mbsncasecmp.m4: New file.
72821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72822         GNULIB_MBSNCASECMP.
72823         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72824         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72825
72826 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72829         Verify that it doesn't overlap with our flags.
72830         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72831         do not have the desired effect in multibyte locales; instead, use
72832         mbscasecmp.
72833         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72834         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72835         we don't require GNU fnmatch ourselves (if our users require it, they
72836         should do so explicitly).
72837
72838         Fix regex code so it doesn't rely on strcasecmp.
72839         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72840         Otherwise, include gnulib's langinfo.h.
72841         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72842         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72843         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72844         * modules/regex (FILES): Remove m4/codeset.m4.
72845         (Depends-on): Add localcharset.  Remove strcase.
72846
72847 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72848
72849         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72850         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72851
72852 2007-02-13  Bruno Haible  <bruno@clisp.org>
72853
72854         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72856
72857 2007-02-12  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72860         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72861         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72862         time warning rather than a link error.
72863
72864 2007-02-12  Bruno Haible  <bruno@clisp.org>
72865
72866         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72867         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72869
72870 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72873         args, not 2.
72874
72875 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         New module 'time', so that apps can include <time.h> as per
72878         POSIX and GNU instead of separate include files like time_r.h
72879         and timegm.h.  This implementation tries out a simpler approach
72880         for replacing decls in standard include files (as compared to
72881         the string module), somewhat as an experiment.
72882
72883         * config/srclist.txt: Comment out mktime.c for now.
72884         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72885         since it doesn't apply any more.  Use generic wording instead.
72886         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72887         'time'.
72888         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72889         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72890         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72891         Don't include <sys/types.h>; no longer needed since we assume C89.
72892         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72893         * lib/strftime.c: Likewise.
72894         * lib/time_r.c: Likewise.
72895         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72896         * lib/nanosleep.c: Include <time.h> first, to check interface.
72897         * lib/strptime.c: Likewise.
72898         * lib/time_r.c: Likewise.
72899         * lib/timegm.c: Likewise.
72900         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72901         needed.
72902         * lib/timegm.c: Don't include timegm.h; no longer needed.
72903         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72904         time.h now handles any problems in that area.
72905         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72906         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72907         that time.h defines struct timespec.
72908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72909         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72910         handles that.
72911         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72912         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72913         needed.  Set REPLACE_LOCALTIME.
72914         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72915         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72916         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72917         nanosleep; time_h.m4 now does that.  Don't require
72918         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72919         module handles this now.
72920         * modules/getdate (Depends-on): Remove timespec.  Add time.
72921         * modules/nanosleep (Depends-on): Likewise.
72922         * modules/stat-time (Depends-on): Likewise.
72923         * modules/nanosleep (Include): Include time.h, not timespec.h.
72924         * modules/strptime (Files): Remove lib/strptime.h.
72925         (Depends-on): Add extensions, time.
72926         (Include): Include time.h, not strptime.h.
72927         * modules/time_r (Files): Remove lib/time_r.h.
72928         (Depends-on): Add time.
72929         (Include): Include time.h, not time_r.h.
72930         * modules/timegm: Likewise.
72931         * modules/timespec (Description): Now does timespec-related decls
72932         of our own, instead of struct timespec itself.
72933         (Depends-on): Add time; remove extensions.
72934         (Maintainer): Add self.
72935         * modules/utimecmp (Depends-on): Add time; remove timespec.
72936         * modules/utimens (Depends-on): Likewise.
72937         * modules/xnanosleep (Depends-on): Likewise.
72938
72939 2007-02-11  Bruno Haible  <bruno@clisp.org>
72940
72941         * lib/c-strstr.c: Include allocsa.h.
72942         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72943         * lib/c-strcasestr.c: Include allocsa.h.
72944         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72945         * lib/strcasestr.c: Include allocsa.h.
72946         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72947         * lib/mbsstr.c: Include allocsa.h.
72948         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72949         allocsa/freesa instead of malloc/free.
72950         * lib/mbscasestr.c: Include allocsa.h.
72951         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72952         allocsa/freesa instead of malloc/free.
72953         * modules/c-strstr (Depends-on): Add allocsa.
72954         * modules/c-strcasestr (Depends-on): Likewise.
72955         * modules/strcasestr (Depends-on): Likewise.
72956         * modules/mbsstr (Depends-on): Likewise.
72957         * modules/mbscasestr (Depends-on): Likewise.
72958
72959 2007-02-11  Bruno Haible  <bruno@clisp.org>
72960
72961         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72962
72963         * modules/mbsspn-tests: New file.
72964         * tests/test-mbsspn.sh: New file.
72965         * tests/test-mbsspn.c: New file.
72966
72967 2007-02-11  Bruno Haible  <bruno@clisp.org>
72968
72969         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72970
72971         * modules/mbspbrk-tests: New file.
72972         * tests/test-mbspbrk.sh: New file.
72973         * tests/test-mbspbrk.c: New file.
72974
72975 2007-02-11  Bruno Haible  <bruno@clisp.org>
72976
72977         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72978         unneeded cast.
72979
72980         * modules/mbscspn-tests: New file.
72981         * tests/test-mbscspn.sh: New file.
72982         * tests/test-mbscspn.c: New file.
72983
72984 2007-02-11  Bruno Haible  <bruno@clisp.org>
72985
72986         * modules/mbscasecmp-tests: New file.
72987         * tests/test-mbscasecmp.sh: New file.
72988         * tests/test-mbscasecmp.c: New file.
72989
72990 2007-02-11  Bruno Haible  <bruno@clisp.org>
72991
72992         Ensure O(n) worst-case complexity of mbscasestr.
72993         * lib/mbscasestr.c: Include stdbool.h.
72994         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72995         functions.
72996         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72997         the bookkeeping indicates that it's worth it.
72998         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72999
73000         * modules/mbscasestr-tests: New file.
73001         * tests/test-mbscasestr1.c: New file.
73002         * tests/test-mbscasestr2.sh: New file.
73003         * tests/test-mbscasestr2.c: New file.
73004         * tests/test-mbscasestr3.sh: New file.
73005         * tests/test-mbscasestr3.c: New file.
73006         * tests/test-mbscasestr4.sh: New file.
73007         * tests/test-mbscasestr4.c: New file.
73008         * m4/locale-tr.m4: New file.
73009
73010 2007-02-11  Bruno Haible  <bruno@clisp.org>
73011
73012         Ensure O(n) worst-case complexity of mbsstr.
73013         * lib/mbsstr.c: Include stdbool.h.
73014         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73015         functions.
73016         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73017         bookkeeping indicates that it's worth it.
73018         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73019
73020         * modules/mbsstr-tests: New file.
73021         * tests/test-mbsstr1.c: New file.
73022         * tests/test-mbsstr2.sh: New file.
73023         * tests/test-mbsstr2.c: New file.
73024         * tests/test-mbsstr3.sh: New file.
73025         * tests/test-mbsstr3.c: New file.
73026         * m4/locale-fr.m4: New file.
73027
73028 2007-02-11  Bruno Haible  <bruno@clisp.org>
73029
73030         * lib/mbsrchr.c (mbsrchr): Fix bug.
73031
73032         * modules/mbsrchr-tests: New file.
73033         * tests/test-mbsrchr.sh: New file.
73034         * tests/test-mbsrchr.c: New file.
73035
73036 2007-02-11  Bruno Haible  <bruno@clisp.org>
73037
73038         * lib/mbschr.c (mbschr): Fix bug.
73039
73040         * modules/mbschr-tests: New file.
73041         * tests/test-mbschr.sh: New file.
73042         * tests/test-mbschr.c: New file.
73043         * m4/locale-zh.m4: New file.
73044
73045 2007-02-11  Bruno Haible  <bruno@clisp.org>
73046
73047         Support for copying multibyte string iterators.
73048         * lib/mbiter.h: Include <string.h>.
73049         (mbiter_multi_copy): New function.
73050         (mbi_copy): New macro.
73051         * lib/mbuiter.h: Include <string.h>.
73052         (mbuiter_multi_copy): New function.
73053         (mbui_copy): New macro.
73054
73055 2007-02-11  Bruno Haible  <bruno@clisp.org>
73056
73057         New module mbslen.
73058         * modules/mbslen: New file.
73059         * lib/mbslen.c: New file.
73060         * lib/string_.h (mbslen): New declaration.
73061         * m4/mbslen.m4: New file.
73062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73063         GNULIB_MBSLEN.
73064         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73065         * MODULES.html.sh (Internationalization functions): Add mbslen.
73066
73067 2007-02-11  Bruno Haible  <bruno@clisp.org>
73068
73069         Ensure O(n) worst-case complexity of strcasestr substitute.
73070         * lib/strcasestr.c: Include stdbool.h.
73071         (knuth_morris_pratt): New function.
73072         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73073         bookkeeping indicates that it's worth it.
73074         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73075
73076         * modules/strcasestr-tests: New file.
73077         * tests/test-strcasestr.c: New file.
73078
73079 2007-02-11  Bruno Haible  <bruno@clisp.org>
73080
73081         Ensure O(n) worst-case complexity of c_strcasestr.
73082         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73083         (knuth_morris_pratt): New function.
73084         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73085         the bookkeeping indicates that it's worth it.
73086         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73087
73088         * modules/c-strcasestr-tests: New file.
73089         * tests/test-c-strcasestr.c: New file.
73090
73091 2007-02-11  Bruno Haible  <bruno@clisp.org>
73092
73093         Ensure O(n) worst-case complexity of c_strstr.
73094         * lib/c-strstr.c: Include stdbool.h, string.h.
73095         (knuth_morris_pratt): New function.
73096         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73097         bookkeeping indicates that it's worth it.
73098         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73099
73100         * lib/c-strstr.c: Complete rewrite for maintainability.
73101
73102         * modules/c-strstr-tests: New file.
73103         * tests/test-c-strstr.c: New file.
73104
73105 2007-02-11  Bruno Haible  <bruno@clisp.org>
73106
73107         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73108         5.2.1 and earlier, whereby \055 was treated just like the range
73109         delimiter '-'.
73110         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73111
73112 2007-02-08  Bruno Haible  <bruno@clisp.org>
73113
73114         * modules/regex (Depends-on): Add stdbool.
73115         Reported by Dalibor Topic <robilad@kaffe.org>.
73116
73117 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73118
73119         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73120         Prefer returning from main to exiting from it.
73121         Remove unnecessary parens after sizeof.
73122
73123 2007-02-05  Bruno Haible  <bruno@clisp.org>
73124
73125         New module mbssep.
73126         * modules/mbssep: New file.
73127         * lib/mbssep.c: New file.
73128         * lib/string_.h (strsep): Add a conditional link warning.
73129         (mbssep): New declaration.
73130         * m4/mbssep.m4: New file.
73131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73132         GNULIB_MBSSEP.
73133         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73134         * MODULES.html.sh (Internationalization functions): Add mbssep.
73135
73136 2007-02-05  Bruno Haible  <bruno@clisp.org>
73137
73138         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73139         Optimize search in case of 1 delimiter.
73140
73141 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73142
73143         * lib/acl.h: Include sys/types.h before sys/acl.h.
73144
73145 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73146
73147         Merge upstream fix for glibc bugzilla #3957:
73148
73149         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73150
73151         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73152         bit for RE_HAT_LISTS_NOT_NEWLINE.
73153         (build_charclass_op): Remove bogus comment.
73154
73155 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73156
73157         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73158
73159 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73162         * lib/memmem.c [!defined _LIBC]: Include config.h.
73163
73164 2007-02-04  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73167         warning message.
73168
73169 2007-02-04  Bruno Haible  <bruno@clisp.org>
73170
73171         New module mbstok_r.
73172         * modules/mbstok_r: New file.
73173         * lib/mbstok_r.c: New file.
73174         * lib/string_.h (strtok_r): Change argument names to match the
73175         comments. Add a conditional link warning.
73176         (mbstok_r): New declaration.
73177         * m4/mbstok_r.m4: New file.
73178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73179         GNULIB_MBSTOK_R.
73180         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73181         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73182
73183 2007-02-04  Bruno Haible  <bruno@clisp.org>
73184
73185         New module mbsspn.
73186         * modules/mbsspn: New file.
73187         * lib/mbsspn.c: New file.
73188         * lib/string_.h (strspn): Add a conditional link warning.
73189         (mbsspn): New declaration.
73190         * m4/mbsspn.m4: New file.
73191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73192         GNULIB_MBSSPN.
73193         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73194         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73195
73196 2007-02-04  Bruno Haible  <bruno@clisp.org>
73197
73198         New module mbspbrk.
73199         * modules/mbspbrk: New file.
73200         * lib/mbspbrk.c: New file.
73201         * lib/string_.h (strpbrk): Add a conditional link warning.
73202         (mbspbrk): New declaration.
73203         * m4/mbspbrk.m4: New file.
73204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73205         GNULIB_MBSPBRK.
73206         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73207         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73208
73209 2007-02-04  Bruno Haible  <bruno@clisp.org>
73210
73211         New module mbscspn.
73212         * modules/mbscspn: New file.
73213         * lib/mbscspn.c: New file.
73214         * lib/string_.h (strcspn): Add a conditional link warning.
73215         (mbscspn): New declaration.
73216         * m4/mbscspn.m4: New file.
73217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73218         GNULIB_MBSCSPN.
73219         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73220         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73221
73222 2007-02-04  Bruno Haible  <bruno@clisp.org>
73223
73224         New module mbscasestr, reduced goal of strcasestr.
73225         * modules/mbscasestr: New file.
73226         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73227         (mbscasestr): Renamed from strcasestr.
73228         * lib/strcasestr.c: Don't include mbuiter.h.
73229         (strcasestr): Remove support for multibyte locales.
73230         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73231         Change the conditional link warning.
73232         (mbscasestr): New declaration.
73233         * m4/mbscasestr.m4: New file.
73234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73235         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73236         REPLACE_STRCASESTR.
73237         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73239         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73240         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73241         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73242         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73243         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73244         (Depends-on): Remove mbuiter.
73245         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73246
73247 2007-02-04  Bruno Haible  <bruno@clisp.org>
73248
73249         Simplify handling of strncasecmp.
73250         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73251         the conditional link warning.
73252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73253         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73254         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73255         * modules/strcase (configure.ac): Don't invoke
73256         gl_STRING_MODULE_INDICATOR.
73257         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73258
73259 2007-02-04  Bruno Haible  <bruno@clisp.org>
73260
73261         New module mbscasecmp, reduced goal of strcasecmp.
73262         * modules/mbscasecmp: New file.
73263         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73264         (mbscasecmp): Renamed from strcasecmp.
73265         * lib/strcasecmp.c: Don't include mbuiter.h.
73266         (strcasecmp): Remove support for multibyte locales.
73267         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73268         Change the conditional link warning.
73269         (mbscasecmp): New declaration.
73270         * m4/mbscasecmp.m4: New file.
73271         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73272         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73273         REPLACE_STRCASECMP.
73274         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73275         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73276         GNULIB_MBSCASECMP.
73277         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73278         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73279         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73280         (Depends-on): Remove mbuiter.
73281         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73282
73283 2007-02-04  Bruno Haible  <bruno@clisp.org>
73284
73285         New module mbsstr. Remove module strstr.
73286         * modules/mbsstr: New file.
73287         * modules/strstr: Remove file.
73288         * lib/mbsstr.c: Renamed from lib/strstr.c.
73289         (mbsstr): Renamed from strstr.
73290         * lib/string_.h (strstr): Remove declaration. Change the conditional
73291         link warning.
73292         (mbsstr): New declaration.
73293         * m4/mbsstr.m4: New file.
73294         * m4/strstr.m4: Remove file.
73295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73296         REPLACE_STRSTR.
73297         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73298         Don't initialize GNULIB_STRSTR.
73299         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73300         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73301         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73302         (Support for systems lacking ANSI C 89): Remove strstr.
73303
73304 2007-02-04  Bruno Haible  <bruno@clisp.org>
73305
73306         New module mbsrchr.
73307         * modules/mbsrchr: New file.
73308         * lib/mbsrchr.c: New file.
73309         * lib/string_.h (strrchr): Add a conditional link warning.
73310         (mbsrchr): New declaration.
73311         * m4/mbsrchr.m4: New file.
73312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73313         GNULIB_MBSRCHR.
73314         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73315         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73316
73317 2007-02-04  Bruno Haible  <bruno@clisp.org>
73318
73319         New module mbschr.
73320         * modules/mbschr: New file.
73321         * lib/mbschr.c: New file.
73322         * lib/string_.h (strchr): Add a conditional link warning.
73323         (mbschr): New declaration.
73324         * m4/mbschr.m4: New file.
73325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73326         GNULIB_MBSCHR.
73327         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73328         * MODULES.html.sh (Internationalization functions): Add mbschr.
73329
73330 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73333
73334         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73335
73336 2007-02-04  Bruno Haible  <bruno@clisp.org>
73337
73338         New module description section 'configure.ac-early'.
73339         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73340         (func_get_autoconf_early_snippet): New function.
73341         (func_import, func_create_testdir): Use it. Remove special cases for
73342         modules 'extensions' and 'lock'.
73343         * modules/extensions (configure.ac-early): Require
73344         gl_USE_SYSTEM_EXTENSIONS.
73345         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73346
73347 2007-02-04  Bruno Haible  <bruno@clisp.org>
73348
73349         Make use of gcj-4.3's -fsource and -ftarget option.
73350         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73351         and if so try the options -fsource and -ftarget.
73352         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73353         source_version, ftarget_option, target_version arguments.
73354         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73355         (is_envjavac_oldgcj_14_14_usable): Renamed from
73356         is_envjavac_gcj_14_14_usable.
73357         (is_envjavac_oldgcj_14_13_usable): Renamed from
73358         is_envjavac_gcj_14_13_usable.
73359         (is_gcj_present): Update.
73360         (is_gcj_43, is_gcj43_usable): New functions.
73361         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73362         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73363         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73364         try the options -fsource and -ftarget.
73365
73366 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73367
73368         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73369         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73370         larger value.
73371
73372 2007-02-03  Jim Meyering  <jim@meyering.net>
73373
73374         Give tools a better chance to allocate space for very large buffers.
73375         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73376
73377         Make pwd and readlink work also when run with an unreadable parent dir
73378         on systems with openat support.
73379         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73380         provided getcwd function, even when we have openat support.
73381         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73382
73383 2007-02-02  Bruno Haible  <bruno@clisp.org>
73384
73385         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73386         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73387         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73388         portability problems if one of these functions is only used on specific
73389         platforms.
73390         Reported by Paul Eggert.
73391
73392 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73393
73394         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73395         is causing more trouble than it's curing.
73396         * lib/regex_internal.h (__mempcpy): Remove.
73397         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73398         (and make the code a tad smaller to boot).
73399         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73400
73401 2007-02-02  Jim Meyering  <jim@meyering.net>
73402
73403         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73404         section, not in the Makefile.am: one.
73405
73406 2007-02-02  Eric Blake  <ebb9@byu.net>
73407
73408         * lib/strchrnul.c: Always include config.h first.
73409
73410         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73411         gnulib strstr is not necessary here.
73412
73413 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73414
73415         * m4/socklen.m4: Fix typo.
73416
73417 2007-02-02  Eric Blake  <ebb9@byu.net>
73418
73419         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73420         * modules/netinet_in (Makefile.am): Likewise.
73421
73422 2007-02-01  Bruno Haible  <bruno@clisp.org>
73423
73424         * lib/string_.h (GL_LINK_WARNING): New macro.
73425         (strcasecmp, strstr, strcasestr): If provided by the system,
73426         conditionally define as a macro that leads to a warning instead of to
73427         an error.
73428         (strncasecmp): Conditionally define as a macro that leads to a warning.
73429
73430 2007-02-01  Karl Berry  <karl@gnu.org>
73431
73432         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73433
73434 2007-02-01  Bruno Haible  <bruno@clisp.org>
73435
73436         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73437         renamings.
73438
73439 2007-02-01  Eric Blake  <ebb9@byu.net>
73440
73441         * modules/regex (Depends-on): Revert dependence on mempcpy.
73442         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73443         module's definition of mempcpy.
73444         Reported by Paul Eggert.
73445
73446 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73447
73448         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73449         the symbol XYZ before redefining it.  This fixes a problem with
73450         programs that don't use XYZ, when compiled on systems that define
73451         XYZ to something else.
73452
73453 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73456         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73457         writeable to group or other and (2) is intended to have a special
73458         mode bit that is set or cleared.  In such a case, the directory
73459         should be neither group- nor other-writeable until the special
73460         mode bits are right.
73461
73462 2007-01-31  Eric Blake  <ebb9@byu.net>
73463
73464         * modules/mountlist (Depends-on): Add strstr.
73465
73466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73467         bug.
73468         * modules/string (Makefile.am): Remove redundant replacement.
73469         * modules/regex (Depends-on): Add mempcpy.
73470
73471 2007-01-31  Bruno Haible  <bruno@clisp.org>
73472
73473         New module description field 'Link'.
73474         * gnulib-tool (func_usage): Document --extract-link-directive.
73475         (sed_extract_prog): Recognize 'Link' directive.
73476         (func_get_link_directive): New function.
73477         (func_import): Show summary of link directives.
73478         Handle --extract-link-directive option.
73479         * modules/acl (Link): New section.
73480         * modules/clock-time (Link): New section.
73481         * modules/euidaccess (Link): New section.
73482         * modules/gettext (Link): New section.
73483         * modules/iconv (Link): New section.
73484         * modules/lock (Link): New section.
73485         * modules/nanosleep (Link): New section.
73486         * modules/readline (Link): New section.
73487
73488 2007-01-27  Bruno Haible  <bruno@clisp.org>
73489
73490         Enforce the use of gnulib modules for unportable <string.h> functions.
73491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73492         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73493         (gl_HEADER_STRING_H_BODY): Require it.
73494         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73495         the symbol XYZ to one that gives a link error.
73496         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73497         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73498         * modules/mempcpy (configure.ac): Likewise.
73499         * modules/memrchr (configure.ac): Likewise.
73500         * modules/stpcpy (configure.ac): Likewise.
73501         * modules/stpncpy (configure.ac): Likewise.
73502         * modules/strcase (configure.ac): Likewise.
73503         * modules/strcasestr (configure.ac): Likewise.
73504         * modules/strchrnul (configure.ac): Likewise.
73505         * modules/strdup (configure.ac): Likewise.
73506         * modules/strndup (configure.ac): Likewise.
73507         * modules/strnlen (configure.ac): Likewise.
73508         * modules/strpbrk (configure.ac): Likewise.
73509         * modules/strsep (configure.ac): Likewise.
73510         * modules/strstr (configure.ac): Likewise.
73511         * modules/strtok_r (configure.ac): Likewise.
73512
73513 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73514
73515         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73516
73517 2007-01-30  Jim Meyering  <jim@meyering.net>
73518
73519         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73520
73521 2007-01-29  Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73524         * lib/execute.c: Likewise.
73525         * lib/pipe.c: Likewise.
73526         * lib/printf-args.h: Likewise.
73527         * lib/printf-args.c: Likewise.
73528         * lib/printf-parse.c: Likewise.
73529         * lib/vasnprintf.c: Likewise.
73530
73531 2007-01-29  Eric Blake  <ebb9@byu.net>
73532
73533         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73534         declaration.
73535
73536 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73537
73538         * lib/strptime.h (strptime): Use 'restrict' for args where
73539         POSIX requires this.
73540         * lib/strptime.c (strptime): Likewise.
73541         Change license notice from LGPL to GPL, since gnulib-tool will
73542         change this as needed.
73543         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73544         defined.
73545         Include "strptime.h" first, to check interface.
73546         Do not #undef _LIBC and _NL_CURRENT.
73547         Do not include <stdlib.h>; no longer needed.
73548         Include "time_r.h" and declare ptime_locale_status
73549         only if _LIBC is not defined.
73550         (__P): Remove unused macro.
73551         (match_string): Bring back glibc version, but use it only if _LIBC
73552         is defined.
73553         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73554         Remove unnecessary assertion and abort() call.
73555         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73556         * m4/strptime.m4: Fix serial number comment.
73557         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73558         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73559         (Depends-on): Add time_r.
73560
73561 2007-01-29  Bruno Haible  <bruno@clisp.org>
73562
73563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73564         strptime.
73565         * modules/strptime (Depends-on): Add stdbool.
73566         * lib/strptime.h: Include <time.h> always. Add comments.
73567
73568 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73569
73570         * modules/strptime: New file.
73571         * lib/strptime.h: New file.
73572         * lib/strptime.c: New file.
73573         * m4/strptime.m4: New file.
73574
73575 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         * MODULES.html.sh: New module mpsort.
73578         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73579
73580         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73581         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73583         All uses changed.
73584         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73585         All uses changed.
73586         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73587         to _Restrict_.
73588         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73589         the parameter matches the prototype.
73590
73591 2007-01-28  Jim Meyering  <jim@meyering.net>
73592
73593         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73594         sys/time.h here, reverting that part of the previous patch:
73595         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73596
73597 2007-01-28  Bruno Haible  <bruno@clisp.org>
73598
73599         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73600         value of $(SYS_TIME_H).
73601         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73602         remove it conditionally, too. [added by Jim Meyering]
73603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73605         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73606         GETTIMEOFDAY_REPLACEMENT to 1.
73607
73608 2007-01-28  Bruno Haible  <bruno@clisp.org>
73609
73610         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73611         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73613         Set UNISTD_H instead of UNISTD_H2.
73614         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73615
73616 2007-01-28  Bruno Haible  <bruno@clisp.org>
73617
73618         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73619         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73620
73621 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73622
73623         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73624         (func_create_testdir): Ensure C locale for `grep' and `tr'
73625         character ranges.
73626         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73627         ACLOCAL_AMFLAGS parsing state machine.
73628
73629 2007-01-27  Bruno Haible  <bruno@clisp.org>
73630
73631         * modules/unistr/base: Update.
73632
73633 2007-01-27  Bruno Haible  <bruno@clisp.org>
73634
73635         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73636         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73637         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73638         modules/unistr/u32-mbtouc.
73639         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73640         * lib/unistr.h: Update.
73641         * lib/linebreak.c: Update.
73642         * modules/unistr/u32-mbtouc: Renamed from
73643         modules/unistr/u32-mbtouc-safe.
73644         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73645         * lib/unistr.h: Update.
73646         * lib/unistr/u32-to-u8.c: Update.
73647         * lib/unistr/u32-to-u16.c: Update.
73648
73649 2007-01-27  Bruno Haible  <bruno@clisp.org>
73650
73651         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73652         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73653         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73654         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73655         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73656         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73657         modules/unistr/u16-mbtouc.
73658         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73659         * lib/unistr.h: Update.
73660         * lib/linebreak.c: Update.
73661         * modules/linebreak: Update.
73662         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73663         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73664         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73665         * modules/unistr/u16-mbtouc: Renamed from
73666         modules/unistr/u16-mbtouc-safe.
73667         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73668         * lib/unistr.h: Update.
73669         * lib/unistr/u16-to-u8.c: Update.
73670         * modules/unistr/u16-to-u8: Update.
73671         * lib/unistr/u16-to-u32.c: Update.
73672         * modules/unistr/u16-to-u32: Update.
73673
73674 2007-01-27  Bruno Haible  <bruno@clisp.org>
73675
73676         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73677         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73678         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73679         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73680         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73681         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73682         modules/unistr/u8-mbtouc.
73683         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73684         * lib/unistr.h: Update.
73685         * lib/striconveh.c: Update.
73686         * modules/striconveh: Update.
73687         * lib/linebreak.c: Update.
73688         * modules/linebreak: Update.
73689         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73690         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73691         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73692         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73693         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73694         * lib/unistr.h: Update.
73695         * lib/striconveh.c: Update.
73696         * modules/striconveh: Update.
73697         * lib/unistr/u8-to-u16.c: Update.
73698         * modules/unistr/u8-to-u16: Update.
73699         * lib/unistr/u8-to-u32.c: Update.
73700         * modules/unistr/u8-to-u32: Update.
73701
73702 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73703
73704         Sync from Libtool.
73705         * lib/argz.c: Do not include strings.h nor memory.h, include
73706         string.h unconditionally.  Patch by Simon Josefsson.
73707
73708 2007-01-27  Bruno Haible  <bruno@clisp.org>
73709
73710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73711         from gl_HEADER_STRING_H_BODY.
73712         (gl_HEADER_STRING_H_BODY): Require it.
73713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73714         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73715         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73716         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73717         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73718         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73719         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73720         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73721         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73722         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73723         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73724         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73725         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73726         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73727         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73728
73729 2007-01-27  Bruno Haible  <bruno@clisp.org>
73730
73731         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73732         check_PROGRAMS into noinst_PROGRAMS.
73733         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73734         check_PROGRAMS in this case.
73735         (func_import): Set for_test to false.
73736         (func_create_testdir): Set for_test to true.
73737
73738 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73739             Bruno Haible  <bruno@clisp.org>
73740
73741         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73742         (Depends-on): Add string.
73743         (Includes): Use <string.h> instead of strcasestr.h.
73744         * modules/string (Makefile.am): Also substitute the value of
73745         REPLACE_STRCASESTR.
73746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73747         assume strcasestr is declared in <string.h> not <strings.h>. Also
73748         set REPLACE_STRCASESTR.
73749         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73750         REPLACE_STRCASESTR.
73751         * lib/strcasestr.h: Remove file.
73752         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73753         * lib/string_.h (strcasestr): New declaration.
73754
73755 2007-01-27  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/string_.h: Use 'extern'.
73758
73759 2007-01-27  Jim Meyering  <jim@meyering.net>
73760
73761         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73762         of set-but-not-used local, "q".
73763
73764         * lib/mempcpy.c: Include <config.h> before <string.h>.
73765         This fixes a compilation error on HP-UX, due to the system's
73766         "restrict"-using mempcpy prototype.
73767
73768 2007-01-26  Bruno Haible  <bruno@clisp.org>
73769
73770         Small optimization.
73771         * lib/javacomp.c: Include c-strstr.h.
73772          (is_envjavac_gcj): Use c_strstr instead of strstr.
73773         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73774
73775 2007-01-26  Bruno Haible  <bruno@clisp.org>
73776
73777         * MODULES.html.sh (Unicode string functions): Add the new modules.
73778
73779         * modules/uniconv/u32-strconv-to-locale: New file.
73780         * lib/uniconv/u32-strconv-to-locale.c: New file.
73781
73782         * modules/uniconv/u16-strconv-to-locale: New file.
73783         * lib/uniconv/u16-strconv-to-locale.c: New file.
73784
73785         * modules/uniconv/u8-strconv-to-locale: New file.
73786         * lib/uniconv/u8-strconv-to-locale.c: New file.
73787
73788         * modules/uniconv/u32-strconv-from-locale: New file.
73789         * lib/uniconv/u32-strconv-from-locale.c: New file.
73790
73791         * modules/uniconv/u16-strconv-from-locale: New file.
73792         * lib/uniconv/u16-strconv-from-locale.c: New file.
73793
73794         * modules/uniconv/u8-strconv-from-locale: New file.
73795         * lib/uniconv/u8-strconv-from-locale.c: New file.
73796
73797         * modules/uniconv/u32-strconv-to-enc: New file.
73798         * lib/uniconv/u32-strconv-to-enc.c: New file.
73799         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73800         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73801
73802         * modules/uniconv/u16-strconv-to-enc: New file.
73803         * lib/uniconv/u16-strconv-to-enc.c: New file.
73804         * lib/uniconv/u-strconv-to-enc.h: New file.
73805         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73806         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73807
73808         * modules/uniconv/u8-strconv-to-enc: New file.
73809         * lib/uniconv/u8-strconv-to-enc.c: New file.
73810         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73811         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73812
73813         * modules/uniconv/u32-strconv-from-enc: New file.
73814         * lib/uniconv/u32-strconv-from-enc.c: New file.
73815         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73816         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73817
73818         * modules/uniconv/u16-strconv-from-enc: New file.
73819         * lib/uniconv/u16-strconv-from-enc.c: New file.
73820         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73821         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73822
73823         * modules/uniconv/u8-strconv-from-enc: New file.
73824         * lib/uniconv/u8-strconv-from-enc.c: New file.
73825         * lib/uniconv/u-strconv-from-enc.h: New file.
73826         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73827         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73828
73829         * modules/uniconv/u32-conv-from-enc: New file.
73830         * lib/uniconv/u32-conv-from-enc.c: New file.
73831         * modules/uniconv/u32-conv-from-enc-tests: New file.
73832         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73833
73834         * modules/uniconv/u16-conv-from-enc: New file.
73835         * lib/uniconv/u16-conv-from-enc.c: New file.
73836         * lib/uniconv/u-conv-from-enc.h: New file.
73837         * modules/uniconv/u16-conv-from-enc-tests: New file.
73838         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73839
73840         * modules/uniconv/u8-conv-from-enc: New file.
73841         * lib/uniconv/u8-conv-from-enc.c: New file.
73842         * modules/uniconv/u8-conv-from-enc-tests: New file.
73843         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73844
73845         * modules/uniconv/base: New file.
73846         * lib/uniconv.h: New file.
73847
73848 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * doc/gnulib-tool.texi (Initial import): Update to match current
73851         behavior with strdup module.
73852         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73853         * lib/memmem.h: Remove; all uses removed.  This is now done
73854         by <string.h>.
73855         * lib/mempcpy.h: Likewise.
73856         * lib/memrchr.h: Likewise.
73857         * lib/stpcpy.h: Likewise.
73858         * lib/stpncpy.h: Likewise.
73859         * lib/strcase.h: Likewise.
73860         * lib/strchrnul.h: Likewise.
73861         * lib/strdup.h: Likewise.
73862         * lib/strndup.h: Likewise.
73863         * lib/strnlen.h: Likewise.
73864         * lib/strpbrk.h: Likewise.
73865         * lib/strsep.h: Likewise.
73866         * lib/strstr.h: Likewise.
73867         * lib/strtok_r.h: Likewise.
73868         * lib/string_.h: New file.
73869         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73870         Rely on <string.h> instead.
73871         * lib/canon-host.c: Likewise.
73872         * lib/chdir-long.c: Likewise.
73873         * lib/concatpath.c: Likewise.
73874         * lib/exclude.c: Likewise.
73875         * lib/fchdir.c: Likewise.
73876         * lib/getaddrinfo.c: Likewise.
73877         * lib/getcwd.c: Likewise.
73878         * lib/getsubopt.c: Likewise.
73879         * lib/glob.c: Likewise.
73880         * lib/hard-locale.c: Likewise.
73881         * lib/iconvme.c: Likewise.
73882         * lib/javacomp.c: Likewise.
73883         * lib/mempcpy.c: Likewise.
73884         * lib/memrchr.c: Likewise.
73885         * lib/regex_internal.h: Likewise.
73886         * lib/stpncpy.c: Likewise.
73887         * lib/strcasecmp.c: Likewise.
73888         * lib/strchrnul.c: Likewise.
73889         * lib/strdup.c: Likewise.
73890         * lib/striconv.c: Likewise.
73891         * lib/striconveh.c: Likewise.
73892         * lib/striconveha.c: Likewise.
73893         * lib/strncasecmp.c: Likewise.
73894         * lib/strndup.c: Likewise.
73895         * lib/strnlen.c: Likewise.
73896         * lib/strsep.c: Likewise.
73897         * lib/strstr.c: Likewise.
73898         * lib/strtok_r.c: Likewise.
73899         * lib/userspec.c: Likewise.
73900         * lib/w32spawn.h: Likewise.
73901         * lib/xstrndup.c: Likewise.
73902         * lib/mountlist.c (strstr): Remove decl.
73903         * m4/string_h.m4: New file.
73904         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73905         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73906         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73907         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73908         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73909         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73910         Set REPLACE_STRCASECMP if necessary.
73911         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73912         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73913         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73914         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73915         HAVE_DECL_STRDUP if necessary.
73916         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73917         since gl_FUNC_STRNDUP does that now.
73918         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73919         Check for decl here...
73920         (gl_PREREQ_STRNLEN): ... not here.
73921         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73922         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73923         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73925         necessary.
73926         * modules/string: New file.
73927         * modules/memmem (Files): Remove special-purpose include file.
73928         (Depends-on): Add string.
73929         (Include): Include <string.h>, not the removed file.
73930         * modules/mempcpy: Likewise.
73931         * modules/memrchr: Likewise.
73932         * modules/stpcpy: Likewise.
73933         * modules/stpncpy: Likewise.
73934         * modules/strcase: Likewise.
73935         * modules/strchrnul: Likewise.
73936         * modules/strdup: Likewise.
73937         * modules/strndup: Likewise.
73938         * modules/strnlen: Likewise.
73939         * modules/strpbrk: Likewise.
73940         * modules/strsep: Likewise.
73941         * modules/strstr: Likewise.
73942         * modules/strtok_r: Likewise.
73943         * tests/test-dirname.c: Don't include "strdup.h", since
73944         <string.h> now suffices.
73945         * tests/test-memmem.c: Don't include "memmem.h", since
73946         <string.h> now suffices.
73947
73948 2007-01-25  Bruno Haible  <bruno@clisp.org>
73949
73950         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73951         *resultp is 0.
73952
73953         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73954         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73955         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73956         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73957
73958         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73959         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73960         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73961         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73962         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73963         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73964
73965 2007-01-24  Bruno Haible  <bruno@clisp.org>
73966
73967         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73968         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73969         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73970         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73971         gl_FUNC_FTS_CORE.
73972         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73973         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73974         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73975         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73976         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73977         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73978         gl_FUNC_FCHOWNAT.
73979         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73980         gl_FUNC_STRFTIME.
73981         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73982         Reported by Ralf Wildenhues.
73983
73984 2007-01-24  Bruno Haible  <bruno@clisp.org>
73985
73986         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73987         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73988         gl_GETADDRINFO.
73989         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73990         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73991         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73992
73993 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73996         Don't use 'exit'; just return from 'main'.
73997         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73998
73999         * lib/fnmatch_.h: Readjust white space and comments to match
74000         glibc, to avoid spurious diffs.
74001
74002 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74005         2004-12-01 change by Jakub Jelinek, since this code won't compile
74006         if !LIBC.  Problem reported by Bob Proulx.
74007
74008 2007-01-23  Bruno Haible  <bruno@clisp.org>
74009
74010         * lib/striconveh.c: Include c-strcaseeq.h.
74011         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74012         * modules/striconveh (Depends-on): Add c-strcaseeq.
74013
74014 2007-01-23  Bruno Haible  <bruno@clisp.org>
74015
74016         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74017
74018         * modules/c-strcaseeq: New file.
74019         * lib/c-strcaseeq.h: New file.
74020
74021         * modules/streq: New file.
74022         * lib/streq.h: New file.
74023
74024 2007-01-23  Bruno Haible  <bruno@clisp.org>
74025
74026         * modules/striconveha-tests: New file.
74027         * tests/test-striconveha.c: New file.
74028
74029         * lib/striconveha.h: Include <stdbool.h>.
74030         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74031         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74032         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74033         (mem_iconveha): New function.
74034         (str_iconveha_notranslit): Renamed from str_iconveha.
74035         (str_iconveha): New function.
74036         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74037         c-strcase.
74038
74039 2007-01-23  Bruno Haible  <bruno@clisp.org>
74040
74041         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74042         encodings without forgiving before trying any encoding with handler.
74043         (str_iconveha): Try all encodings without forgiving before trying any
74044         encoding with handler.
74045
74046 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74047
74048         Import the following changes from libc.
74049
74050         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74051
74052         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74053
74054         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74055
74056         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74057         normal_bracket label.
74058
74059         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74060
74061         [BZ #361]
74062         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74063         to normal_bracket after fetching the next character.
74064
74065 2007-01-22  Bruno Haible  <bruno@clisp.org>
74066
74067         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74068         argument.
74069         * lib/striconveh.c (iconv_carefully_1): New function.
74070         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74071         argument.
74072         (str_cd_iconveh): Update.
74073         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74074         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74075         * tests/test-striconveh.c (MAGIC): New macro.
74076         (new_offsets): New function.
74077         (main): Test call with and without offsets.
74078
74079 2007-01-22  Bruno Haible  <bruno@clisp.org>
74080
74081         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74082         * modules/sys_select (Makefile.am): Likewise.
74083         * modules/sys_socket (Makefile.am): Likewise.
74084         * modules/sys_time (Makefile.am): Likewise.
74085
74086 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74087
74088         * modules/gettimeofday (License): Change from GPL to LGPL, since
74089         gettimeofday is a library function.
74090
74091 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74092
74093         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74094
74095 2007-01-21  Bruno Haible  <bruno@clisp.org>
74096
74097         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74098
74099 2007-01-21  Bruno Haible  <bruno@clisp.org>
74100
74101         * modules/striconveha: New file.
74102         * lib/striconveha.h: New file.
74103         * lib/striconveha.c: New file.
74104         * MODULES.html.sh (Internationalization functions): Add striconveha.
74105         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74106         string.
74107         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74108
74109 2007-01-21  Bruno Haible  <bruno@clisp.org>
74110
74111         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74112         * lib/striconveh.c (str_iconveh): Likewise.
74113
74114 2007-01-21  Bruno Haible  <bruno@clisp.org>
74115
74116         * lib/striconveh.h (mem_iconveh): New declaration.
74117         * lib/striconveh.c (mem_iconveh): New function.
74118         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74119
74120 2007-01-21  Bruno Haible  <bruno@clisp.org>
74121
74122         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74123
74124         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74125         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74126         original result buffer.
74127         (str_cd_iconveh): Update.
74128         * tests/test-striconveh.c (main): Update.
74129
74130         * lib/striconv.h (mem_cd_iconv): Change specification.
74131         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74132         result buffer.
74133         (str_cd_iconv): Update.
74134         * tests/test-striconv.c (main): Update.
74135
74136 2007-01-21  Bruno Haible  <bruno@clisp.org>
74137
74138         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74139
74140 2007-01-20  Jim Meyering  <jim@meyering.net>
74141
74142         * lib/userspec.c (parse_with_separator): If a user or group string
74143         starts with "+", skip the corresponding name-to-ID look-up, since
74144         such a look-up must fail: user and group names may not include "+".
74145
74146 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74147
74148         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74149         since we now assume the sys_time module.
74150         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74151         check for sys/time.h; no longer needed.
74152         * modules/poll (Depends-on): Depend on sys_time.
74153
74154 2007-01-18  Bruno Haible  <bruno@clisp.org>
74155
74156         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74157         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74158
74159         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74160         gettimeofday.
74161
74162         * tests/test-gettimeofday.c: Include <time.h>.
74163         (dummy): Remove variable.
74164
74165         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74166         gl_HEADER_SYS_TIME_H.
74167         (gl_HEADER_SYS_TIME_H): New macro.
74168
74169         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74170         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74171         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74172         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74173         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74174         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74175         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74176         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74177         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74178         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74179         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74180
74181         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74182         last change; it caused a compilation error when cross-compiling to
74183         Cygwin.
74184
74185 2007-01-18  Jim Meyering  <jim@meyering.net>
74186
74187         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74188         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74189         than the race-prone "test -d sys || mkdir sys".
74190         (configure.ac): Use AC_PROG_MKDIR_P.
74191         * modules/sys_select: Likewise.
74192         * modules/sys_socket: Likewise.
74193         * modules/sys_time: Likewise.
74194
74195 2007-01-18  Eric Blake  <ebb9@byu.net>
74196
74197         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74198         replace gettimeofday.
74199         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74200         name, to avoid infinite recursion.
74201
74202 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74205         module sys_time.
74206         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74207         assume timespec.h defines struct timeval.
74208         * lib/settime.c: Likewise.
74209         * lib/utimens.c: Likewise.
74210         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74211         since we now assume the gettimeofday module.
74212         * lib/tempname.c (__gen_tempname): Likewise.
74213         * lib/gettimeofday.h: Remove.
74214         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74215         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74216         Include <time.h>, for 'time()'.
74217         (localtime_buffer_addr): Also use this workaround if
74218         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74219         to simplify the uses.  All uses changed.
74220         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74221         that #undef is inside {}, and 'const' follows type name consistently.
74222         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74223         (gettimeofday): Do not use the maximum possible value for
74224         tv->tv_usec, since that might break usages other than ls.c.
74225         Instead, we'll leave ls.c alone.  This undoes today's patch
74226         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74227         we've never observed the problem but might as well keep the
74228         canary.
74229         * lib/nanosleep.c: Include timespec.h first, for interface check.
74230         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74231         now assume the sys_time module.
74232         * lib/tempname.c: Likewise.
74233         * lib/timespec.h: Likewise.
74234         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74235         needed.
74236         * lib/strftime.c: Likewise.
74237         * lib/timespec.h: Likewise.
74238         * lib/posixtm.c: Include posixtm.h first, for interface check.
74239         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74240         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74241         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74242         * lib/sys_time_.h: New file.
74243         * lib/timespec.h (struct timespec): Use long int, not long.
74244         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74245         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74246         Remove obsolescent call to AC_HEADER_TIME.
74247         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74249         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74250         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74251         Likewise.
74252         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74253         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74254         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74255         into the sys_time module.  Check for gettimeofday just once.
74256         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74257         for gettimeofday signature to just check the signature.  Merely
74258         compile it, since linking doesn't test signature.  Improve test for
74259         whether gettimeofday.o is actually needed.
74260         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74261         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74262         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74263         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74264         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74265         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74266         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74267         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74268         than worrying about sys/time.h.
74269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74270         Don't bother worrying about TIME_WITH_SYS_TIME.
74271         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74272         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74273         * m4/sys_time_h.m4: New file.
74274         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74275         Don't include sys/time.h.  Return from main rather than exiting.
74276         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74277         all uses changed.
74278         * modules/gethrxtime (Depends-on): Add sys_time.
74279         * modules/gettime (Depends-on): Likewise.
74280         * modules/gettimeofday (Depends-on): Likewise.
74281         * modules/nanosleep (Depends-on): Likewise.
74282         * modules/settime (Depends-on): Likewise.
74283         * modules/tempname (Depends-on): Likewise.
74284         * modules/utimens (Depends-on): Likewise.
74285         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74286         (Include): Change back to <sys/time.h>.
74287         (Maintainer): Add self.
74288         * modules/sys_time: New file.
74289         * modules/tempname (Depends-on): Add gettimeofday.
74290         * tests/test-gettimeofday.c: Include <sys/time.h>
74291         rather than gettimeofday.h.
74292
74293 2007-01-17  Bruno Haible  <bruno@clisp.org>
74294
74295         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74296         the license default to GPL.
74297         (func_create_testdir): Don't complain if a module is LGPL and its
74298         tests module depends on GPLed modules.
74299
74300 2007-01-17  Bruno Haible  <bruno@clisp.org>
74301
74302         * lib/gettimeofday.c (gettimeofday): Add code for the case
74303         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74304         maximum possible value for tv->tv_usec, rather than the minimum one.
74305
74306 2005-10-08  Martin Lambers  <marlam@marlam.de>
74307 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74308 2007-01-16  Bruno Haible  <bruno@clisp.org>
74309
74310         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74311         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74312         gl_FUNC_GETTIMEOFDAY.
74313         (Include): Add gettimeofday.h.
74314         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74315         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74316         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74317         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74318         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74319         * lib/gettimeofday.h: New file.
74320         * lib/gettimeofday.c: Include <sys/timeb.h>.
74321         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74322         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74323         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74324         fall back on time().
74325
74326         * tests/test-gettimeofday.c: New file.
74327         * modules/gettimeofday-tests: New file.
74328
74329 2007-01-16  Eric Blake  <ebb9@byu.net>
74330
74331         * modules/fnmatch (Depends-on): Depend on wchar.
74332         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74333         * m4/fnmatch.m4: Likewise.
74334         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74335         * m4/mbchar.m4: Likewise.
74336         * modules/mbswidth (Depends-on): Depend on wchar.
74337         * lib/mbswidth.c: Assume <wchar.h>.
74338         * m4/mbswidth.m4: Likewise.
74339         * modules/quotearg (Depends-on): Depend on wchar.
74340         * lib/quotearg.c: Assume <wchar.h>.
74341         * m4/quotearg.m4: Likewise.
74342         * modules/regex (Depends-on): Depend on wchar.
74343         * lib/regex_internal.h: Assume <wchar.h>.
74344         * m4/regex.m4: Likewise.
74345         * modules/stdint (Depends-on): Depend on wchar.
74346         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74347         * m4/stdint.m4: Likewise.
74348         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74349         * modules/strftime (Depends-on): Depend on wchar.
74350         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74351         * modules/strtol (Depends-on): Depend on wchar.
74352         * lib/strtol.c: Assume <wchar.h>.
74353         * modules/wcwidth (Depends-on): Depend on wchar.
74354         * lib/wcwidth.h: Assume <wchar.h>.
74355         * m4/wcwidth.m4: Likewise.
74356
74357 2007-01-16  Bruno Haible  <bruno@clisp.org>
74358
74359         * modules/csharpexec-script: New, created from...
74360         * modules/csharpexec: ... this.
74361
74362 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74363
74364         * modules/javaexec-script: New, created from...
74365         * modules/javaexec: ... this.
74366
74367 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74368
74369         * modules/poll (Dependencies): Add sys_select.
74370
74371 2007-01-15  Jim Meyering  <jim@meyering.net>
74372
74373         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74374         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74375         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74376         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74377
74378 2007-01-15  Bruno Haible  <bruno@clisp.org>
74379
74380         * modules/striconveh: New file.
74381         * lib/striconveh.h: New file.
74382         * lib/striconveh.c: New file.
74383         * MODULES.html.sh (Internationalization functions): Add striconveh.
74384
74385         * modules/striconveh-tests: New file.
74386         * tests/test-striconveh.c: New file.
74387
74388 2007-01-15  Bruno Haible  <bruno@clisp.org>
74389
74390         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74391         not from GNU libiconv or GNU libc.
74392
74393 2007-01-15  Bruno Haible  <bruno@clisp.org>
74394
74395         * doc/gnulib-intro.texi (Copyright): Explain the different license
74396         terms for module descriptions, autoconf macros, tests, documentation.
74397
74398 2007-01-14  Bruno Haible  <bruno@clisp.org>
74399
74400         * modules/striconv-tests: New file.
74401         * tests/test-striconv.c: New file.
74402
74403 2007-01-14  Bruno Haible  <bruno@clisp.org>
74404
74405         * modules/iconv-tests: New file.
74406         * tests/test-iconv.c: New file.
74407
74408 2007-01-14  Bruno Haible  <bruno@clisp.org>
74409
74410         * gnulib-tool (func_get_license): For test modules, use the license of
74411         the main module.
74412
74413 2007-01-14  Bruno Haible  <bruno@clisp.org>
74414
74415         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74416         if iconv is found to exist.
74417
74418 2007-01-14  Bruno Haible  <bruno@clisp.org>
74419
74420         * modules/c-ctype-tests: New file.
74421         * tests/test-c-ctype.c: New file.
74422
74423 2007-01-14  Bruno Haible  <bruno@clisp.org>
74424
74425         * modules/binary-io-tests: New file.
74426         * tests/test-binary-io.sh: New file.
74427         * tests/test-binary-io.c: New file.
74428
74429 2007-01-14  Bruno Haible  <bruno@clisp.org>
74430
74431         * modules/array-oset-tests: New file.
74432         * tests/test-array_oset.c: New file.
74433
74434 2007-01-14  Bruno Haible  <bruno@clisp.org>
74435
74436         * modules/array-list-tests: New file.
74437         * tests/test-array_list.c: New file.
74438
74439 2007-01-14  Bruno Haible  <bruno@clisp.org>
74440
74441         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74442         and make.
74443         Reported by Simon Josefsson in
74444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74445
74446 2007-01-14  Bruno Haible  <bruno@clisp.org>
74447
74448         * modules/allocsa-tests: New file.
74449         * tests/test-allocsa.c: New file.
74450
74451 2007-01-14  Bruno Haible  <bruno@clisp.org>
74452
74453         * modules/fchdir (Depends-on): Add absolute-header.
74454         * modules/unistd (Depends-on): Likewise.
74455
74456 2006-12-30  Bruno Haible  <bruno@clisp.org>
74457
74458         * modules/fchdir: New file.
74459         * modules/unistd (Files): Add lib/unistd_.h.
74460         (Makefile.am): Generate unistd.h from unistd_.h.
74461         * lib/fchdir.c: New file.
74462         * lib/dirent_.h: New file.
74463         * lib/unistd_.h: New file.
74464         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74465         * m4/fchdir.m4: New file.
74466         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74467         (gl_HEADER_UNISTD): Invoke it.
74468         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74469         function.
74470         * lib/backupfile.c (opendir, closedir): Undefine.
74471         * lib/chown.c (open, close): Undefine.
74472         * lib/clean-temp.c (open, close): Undefine.
74473         * lib/copy-file.c (open, close): Undefine.
74474         * lib/execute.c (open, close): Undefine.
74475         * lib/fsusage.c (open, close): Undefine.
74476         * lib/gc-gnulib.c (open, close): Undefine.
74477         * lib/getcwd.c (opendir, closedir): Undefine.
74478         * lib/glob.c (opendir, closedir): Undefine.
74479         * lib/javacomp.c (open, close): Undefine.
74480         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74481         * lib/openat-proc.c (open, close): Undefine.
74482         * lib/pagealign_alloc.c (open, close): Undefine.
74483         * lib/pipe.c (open, close): Undefine.
74484         * lib/progreloc.c (open, close): Undefine.
74485         * lib/savedir.c (opendir, closedir): Undefine.
74486         * lib/utime.c (open, close): Undefine.
74487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74488
74489 2007-01-10  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74492
74493 2007-01-12  Eric Blake  <ebb9@byu.net>
74494
74495         Provide a robust <wchar.h>.  Further simplifications are now
74496         possible in other modules, but not included here.
74497         * modules/wchar: New module.
74498         * m4/wchar.m4: New file.
74499         * lib/wchar_.h: Likewise.
74500         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74501         of the new module.
74502         * MODULES.html.sh (Extended multibyte and wide character utilities):
74503         New section.
74504
74505 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74506
74507         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74508         to a reasonable default for memory allocation.
74509         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74510         file system that reports garbage st_size values for symlinks.
74511         Problem reported by Liyang Hu.
74512
74513 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74514
74515         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74516         Emacs .#* auto-save files).
74517
74518 2007-01-11  Bruno Haible  <bruno@clisp.org>
74519
74520         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74521         directory.
74522
74523 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         Use @...@ consistently in lib/wctype_.h.
74526         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74527         on it being set to 1 or 0.
74528         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74529         go back to AC_SUBSTing it.
74530         * modules/wctype (Makefile.am): Undo previous change.
74531
74532 2007-01-10  Eric Blake  <ebb9@byu.net>
74533
74534         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74535         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74536         * modules/wctype (Makefile.am): Likewise.
74537         Reported by Chris McGuire.
74538
74539 2007-01-10  Jim Meyering  <jim@meyering.net>
74540
74541         fts.c: a small readability/maintainability improvement
74542         * lib/fts.c (fts_read): Make this code slightly more readable and
74543         maintainable by hoisting the "sp->fts_cur = p" assignments to
74544         immediately follow the statements that set P.  Derived from
74545         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74546
74547 2007-01-10  Eric Blake  <ebb9@byu.net>
74548
74549         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74550         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74551         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74552         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74553         Reported by Chris McGuire.
74554
74555 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74556
74557         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74558         in sed script.
74559
74560 2007-01-09  Bruno Haible  <bruno@clisp.org>
74561
74562         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74563         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74564         variables.
74565         (func_module): Use them.
74566
74567 2007-01-09  Bruno Haible  <bruno@clisp.org>
74568
74569         * modules/unistr/base: New file.
74570         * lib/unistr.h: New file.
74571
74572         * modules/unistr/u8-to-u16: New file.
74573         * lib/unistr/u8-to-u16.c: New file.
74574
74575         * modules/unistr/u8-to-u32: New file.
74576         * lib/unistr/u8-to-u32.c: New file.
74577
74578         * modules/unistr/u16-to-u8: New file.
74579         * lib/unistr/u16-to-u8.c: New file.
74580
74581         * modules/unistr/u16-to-u32: New file.
74582         * lib/unistr/u16-to-u32.c: New file.
74583
74584         * modules/unistr/u32-to-u8: New file.
74585         * lib/unistr/u32-to-u8.c: New file.
74586
74587         * modules/unistr/u32-to-u16: New file.
74588         * lib/unistr/u32-to-u16.c: New file.
74589
74590         * modules/unistr/u8-check: New file.
74591         * modules/unistr/u16-check: New file.
74592         * modules/unistr/u32-check: New file.
74593         * lib/unistr/u8-check.c: New file.
74594         * lib/unistr/u16-check.c: New file.
74595         * lib/unistr/u32-check.c: New file.
74596
74597         * modules/unistr/u8-chr: New file.
74598         * modules/unistr/u16-chr: New file.
74599         * modules/unistr/u32-chr: New file.
74600         * lib/unistr/u8-chr.c: New file.
74601         * lib/unistr/u16-chr.c: New file.
74602         * lib/unistr/u32-chr.c: New file.
74603
74604         * modules/unistr/u8-cmp: New file.
74605         * modules/unistr/u16-cmp: New file.
74606         * modules/unistr/u32-cmp: New file.
74607         * lib/unistr/u8-cmp.c: New file.
74608         * lib/unistr/u16-cmp.c: New file.
74609         * lib/unistr/u32-cmp.c: New file.
74610
74611         * modules/unistr/u8-cpy: New file.
74612         * modules/unistr/u16-cpy: New file.
74613         * modules/unistr/u32-cpy: New file.
74614         * lib/unistr/u8-cpy.c: New file.
74615         * lib/unistr/u16-cpy.c: New file.
74616         * lib/unistr/u32-cpy.c: New file.
74617         * lib/unistr/u-cpy.h: New file.
74618
74619         * modules/unistr/u8-cpy-alloc: New file.
74620         * modules/unistr/u16-cpy-alloc: New file.
74621         * modules/unistr/u32-cpy-alloc: New file.
74622         * lib/unistr/u8-cpy-alloc.c: New file.
74623         * lib/unistr/u16-cpy-alloc.c: New file.
74624         * lib/unistr/u32-cpy-alloc.c: New file.
74625         * lib/unistr/u-cpy-alloc.h: New file.
74626
74627         * modules/unistr/u8-endswith: New file.
74628         * modules/unistr/u16-endswith: New file.
74629         * modules/unistr/u32-endswith: New file.
74630         * lib/unistr/u8-endswith.c: New file.
74631         * lib/unistr/u16-endswith.c: New file.
74632         * lib/unistr/u32-endswith.c: New file.
74633         * lib/unistr/u-endswith.h: New file.
74634
74635         * modules/unistr/u8-mblen: New file.
74636         * modules/unistr/u16-mblen: New file.
74637         * modules/unistr/u32-mblen: New file.
74638         * lib/unistr/u8-mblen.c: New file.
74639         * lib/unistr/u16-mblen.c: New file.
74640         * lib/unistr/u32-mblen.c: New file.
74641
74642         * modules/unistr/u8-mbtouc: New file.
74643         * modules/unistr/u16-mbtouc: New file.
74644         * modules/unistr/u32-mbtouc: New file.
74645         * lib/unistr/u8-mbtouc.c: New file.
74646         * lib/unistr/u16-mbtouc.c: New file.
74647         * lib/unistr/u32-mbtouc.c: New file.
74648
74649         * modules/unistr/u8-mbtouc-safe: New file.
74650         * modules/unistr/u16-mbtouc-safe: New file.
74651         * modules/unistr/u32-mbtouc-safe: New file.
74652         * lib/unistr/u8-mbtouc-safe.c: New file.
74653         * lib/unistr/u16-mbtouc-safe.c: New file.
74654         * lib/unistr/u32-mbtouc-safe.c: New file.
74655
74656         * modules/unistr/u8-move: New file.
74657         * modules/unistr/u16-move: New file.
74658         * modules/unistr/u32-move: New file.
74659         * lib/unistr/u8-move.c: New file.
74660         * lib/unistr/u16-move.c: New file.
74661         * lib/unistr/u32-move.c: New file.
74662         * lib/unistr/u-move.h: New file.
74663
74664         * modules/unistr/u8-next: New file.
74665         * modules/unistr/u16-next: New file.
74666         * modules/unistr/u32-next: New file.
74667         * lib/unistr/u8-next.c: New file.
74668         * lib/unistr/u16-next.c: New file.
74669         * lib/unistr/u32-next.c: New file.
74670
74671         * modules/unistr/u8-prev: New file.
74672         * modules/unistr/u16-prev: New file.
74673         * modules/unistr/u32-prev: New file.
74674         * lib/unistr/u8-prev.c: New file.
74675         * lib/unistr/u16-prev.c: New file.
74676         * lib/unistr/u32-prev.c: New file.
74677
74678         * modules/unistr/u8-set: New file.
74679         * modules/unistr/u16-set: New file.
74680         * modules/unistr/u32-set: New file.
74681         * lib/unistr/u8-set.c: New file.
74682         * lib/unistr/u16-set.c: New file.
74683         * lib/unistr/u32-set.c: New file.
74684         * lib/unistr/u-set.h: New file.
74685
74686         * modules/unistr/u8-startswith: New file.
74687         * modules/unistr/u16-startswith: New file.
74688         * modules/unistr/u32-startswith: New file.
74689         * lib/unistr/u8-startswith.c: New file.
74690         * lib/unistr/u16-startswith.c: New file.
74691         * lib/unistr/u32-startswith.c: New file.
74692         * lib/unistr/u-startswith.h: New file.
74693
74694         * modules/unistr/u8-stpcpy: New file.
74695         * modules/unistr/u16-stpcpy: New file.
74696         * modules/unistr/u32-stpcpy: New file.
74697         * lib/unistr/u8-stpcpy.c: New file.
74698         * lib/unistr/u16-stpcpy.c: New file.
74699         * lib/unistr/u32-stpcpy.c: New file.
74700         * lib/unistr/u-stpcpy.h: New file.
74701
74702         * modules/unistr/u8-stpncpy: New file.
74703         * modules/unistr/u16-stpncpy: New file.
74704         * modules/unistr/u32-stpncpy: New file.
74705         * lib/unistr/u8-stpncpy.c: New file.
74706         * lib/unistr/u16-stpncpy.c: New file.
74707         * lib/unistr/u32-stpncpy.c: New file.
74708         * lib/unistr/u-stpncpy.h: New file.
74709
74710         * modules/unistr/u8-strcat: New file.
74711         * modules/unistr/u16-strcat: New file.
74712         * modules/unistr/u32-strcat: New file.
74713         * lib/unistr/u8-strcat.c: New file.
74714         * lib/unistr/u16-strcat.c: New file.
74715         * lib/unistr/u32-strcat.c: New file.
74716         * lib/unistr/u-strcat.h: New file.
74717
74718         * modules/unistr/u8-strchr: New file.
74719         * modules/unistr/u16-strchr: New file.
74720         * modules/unistr/u32-strchr: New file.
74721         * lib/unistr/u8-strchr.c: New file.
74722         * lib/unistr/u16-strchr.c: New file.
74723         * lib/unistr/u32-strchr.c: New file.
74724
74725         * modules/unistr/u8-strcmp: New file.
74726         * modules/unistr/u16-strcmp: New file.
74727         * modules/unistr/u32-strcmp: New file.
74728         * lib/unistr/u8-strcmp.c: New file.
74729         * lib/unistr/u16-strcmp.c: New file.
74730         * lib/unistr/u32-strcmp.c: New file.
74731
74732         * modules/unistr/u8-strcpy: New file.
74733         * modules/unistr/u16-strcpy: New file.
74734         * modules/unistr/u32-strcpy: New file.
74735         * lib/unistr/u8-strcpy.c: New file.
74736         * lib/unistr/u16-strcpy.c: New file.
74737         * lib/unistr/u32-strcpy.c: New file.
74738         * lib/unistr/u-strcpy.h: New file.
74739
74740         * modules/unistr/u8-strcspn: New file.
74741         * modules/unistr/u16-strcspn: New file.
74742         * modules/unistr/u32-strcspn: New file.
74743         * lib/unistr/u8-strcspn.c: New file.
74744         * lib/unistr/u16-strcspn.c: New file.
74745         * lib/unistr/u32-strcspn.c: New file.
74746         * lib/unistr/u-strcspn.h: New file.
74747
74748         * modules/unistr/u8-strdup: New file.
74749         * modules/unistr/u16-strdup: New file.
74750         * modules/unistr/u32-strdup: New file.
74751         * lib/unistr/u8-strdup.c: New file.
74752         * lib/unistr/u16-strdup.c: New file.
74753         * lib/unistr/u32-strdup.c: New file.
74754         * lib/unistr/u-strdup.h: New file.
74755
74756         * modules/unistr/u8-strlen: New file.
74757         * modules/unistr/u16-strlen: New file.
74758         * modules/unistr/u32-strlen: New file.
74759         * lib/unistr/u8-strlen.c: New file.
74760         * lib/unistr/u16-strlen.c: New file.
74761         * lib/unistr/u32-strlen.c: New file.
74762         * lib/unistr/u-strlen.h: New file.
74763
74764         * modules/unistr/u8-strmblen: New file.
74765         * modules/unistr/u16-strmblen: New file.
74766         * modules/unistr/u32-strmblen: New file.
74767         * lib/unistr/u8-strmblen.c: New file.
74768         * lib/unistr/u16-strmblen.c: New file.
74769         * lib/unistr/u32-strmblen.c: New file.
74770
74771         * modules/unistr/u8-strmbtouc: New file.
74772         * modules/unistr/u16-strmbtouc: New file.
74773         * modules/unistr/u32-strmbtouc: New file.
74774         * lib/unistr/u8-strmbtouc.c: New file.
74775         * lib/unistr/u16-strmbtouc.c: New file.
74776         * lib/unistr/u32-strmbtouc.c: New file.
74777
74778         * modules/unistr/u8-strncat: New file.
74779         * modules/unistr/u16-strncat: New file.
74780         * modules/unistr/u32-strncat: New file.
74781         * lib/unistr/u8-strncat.c: New file.
74782         * lib/unistr/u16-strncat.c: New file.
74783         * lib/unistr/u32-strncat.c: New file.
74784         * lib/unistr/u-strncat.h: New file.
74785
74786         * modules/unistr/u8-strncmp: New file.
74787         * modules/unistr/u16-strncmp: New file.
74788         * modules/unistr/u32-strncmp: New file.
74789         * lib/unistr/u8-strncmp.c: New file.
74790         * lib/unistr/u16-strncmp.c: New file.
74791         * lib/unistr/u32-strncmp.c: New file.
74792
74793         * modules/unistr/u8-strncpy: New file.
74794         * modules/unistr/u16-strncpy: New file.
74795         * modules/unistr/u32-strncpy: New file.
74796         * lib/unistr/u8-strncpy.c: New file.
74797         * lib/unistr/u16-strncpy.c: New file.
74798         * lib/unistr/u32-strncpy.c: New file.
74799         * lib/unistr/u-strncpy.h: New file.
74800
74801         * modules/unistr/u8-strnlen: New file.
74802         * modules/unistr/u16-strnlen: New file.
74803         * modules/unistr/u32-strnlen: New file.
74804         * lib/unistr/u8-strnlen.c: New file.
74805         * lib/unistr/u16-strnlen.c: New file.
74806         * lib/unistr/u32-strnlen.c: New file.
74807         * lib/unistr/u-strnlen.h: New file.
74808
74809         * modules/unistr/u8-strpbrk: New file.
74810         * modules/unistr/u16-strpbrk: New file.
74811         * modules/unistr/u32-strpbrk: New file.
74812         * lib/unistr/u8-strpbrk.c: New file.
74813         * lib/unistr/u16-strpbrk.c: New file.
74814         * lib/unistr/u32-strpbrk.c: New file.
74815         * lib/unistr/u-strpbrk.h: New file.
74816
74817         * modules/unistr/u8-strrchr: New file.
74818         * modules/unistr/u16-strrchr: New file.
74819         * modules/unistr/u32-strrchr: New file.
74820         * lib/unistr/u8-strrchr.c: New file.
74821         * lib/unistr/u16-strrchr.c: New file.
74822         * lib/unistr/u32-strrchr.c: New file.
74823
74824         * modules/unistr/u8-strspn: New file.
74825         * modules/unistr/u16-strspn: New file.
74826         * modules/unistr/u32-strspn: New file.
74827         * lib/unistr/u8-strspn.c: New file.
74828         * lib/unistr/u16-strspn.c: New file.
74829         * lib/unistr/u32-strspn.c: New file.
74830         * lib/unistr/u-strspn.h: New file.
74831
74832         * modules/unistr/u8-strstr: New file.
74833         * modules/unistr/u16-strstr: New file.
74834         * modules/unistr/u32-strstr: New file.
74835         * lib/unistr/u8-strstr.c: New file.
74836         * lib/unistr/u16-strstr.c: New file.
74837         * lib/unistr/u32-strstr.c: New file.
74838         * lib/unistr/u-strstr.h: New file.
74839
74840         * modules/unistr/u8-strtok: New file.
74841         * modules/unistr/u16-strtok: New file.
74842         * modules/unistr/u32-strtok: New file.
74843         * lib/unistr/u8-strtok.c: New file.
74844         * lib/unistr/u16-strtok.c: New file.
74845         * lib/unistr/u32-strtok.c: New file.
74846         * lib/unistr/u-strtok.h: New file.
74847
74848         * modules/unistr/u8-uctomb: New file.
74849         * modules/unistr/u16-uctomb: New file.
74850         * modules/unistr/u32-uctomb: New file.
74851         * lib/unistr/u8-uctomb.c: New file.
74852         * lib/unistr/u16-uctomb.c: New file.
74853         * lib/unistr/u32-uctomb.c: New file.
74854
74855         * MODULES.html.sh (Unicode string functions): Add the new modules.
74856
74857 2007-01-08  Bruno Haible  <bruno@clisp.org>
74858
74859         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74860         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74861         subdirectories.
74862
74863 2007-01-08  Karl Berry  <karl@gnu.org>
74864
74865         * doc/error.texi: mention that main() fns must set program_name
74866         when progname is used.
74867
74868 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74871         WCTYPE_H is empty, for the benefit of builds from non-distclean
74872         directories.  Problem reported by Eric Blake in
74873         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74874
74875 2007-01-08  Bruno Haible  <bruno@clisp.org>
74876
74877         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74878         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74879         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74880         PROVIDE_CANONICALIZE_FILENAME_MODE.
74881         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74882
74883 2007-01-08  Bruno Haible  <bruno@clisp.org>
74884
74885         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74886         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74887         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74888         * lib/fts.c: Likewise.
74889         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74890
74891 2006-12-25  Bruno Haible  <bruno@clisp.org>
74892
74893         * modules/utf8-ucs4-safe: New file.
74894         * lib/utf8-ucs4-safe.h: New file.
74895         * lib/unistr/utf8-ucs4-safe.c: New file.
74896
74897         * modules/utf16-ucs4-safe: New file.
74898         * lib/utf16-ucs4-safe.h: New file.
74899         * lib/unistr/utf16-ucs4-safe.c: New file.
74900
74901         * MODULES.html.sh (Unicode string functions): Add the new modules.
74902
74903 2007-01-08  Bruno Haible  <bruno@clisp.org>
74904
74905         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74906         (Depends-on): Add unitypes.
74907         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74908         (u8_mbtouc_aux): Move out to separate file.
74909         (u8_mbtouc): Use ucs4_t, uint8_t types.
74910         * lib/unistr/utf8-ucs4.c: New file.
74911
74912         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74913         (Depends-on): Add unitypes.
74914         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74915         (u16_mbtouc_aux): Move out to separate file.
74916         (u16_mbtouc): Use ucs4_t, uint16_t types.
74917         * lib/unistr/utf16-ucs4.c: New file.
74918
74919         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74920         (Depends-on): Add unitypes.
74921         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74922         (u8_uctomb_aux): Move out to separate file.
74923         (u8_uctomb): Use ucs4_t, uint8_t types.
74924         * lib/unistr/ucs4-utf8.c: New file.
74925
74926         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74927         (Depends-on): Add unitypes.
74928         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74929         (u16_uctomb_aux): Move out to separate file.
74930         (u16_uctomb): Use ucs4_t, uint16_t types.
74931         * lib/unistr/ucs4-utf16.c: New file.
74932
74933 2006-12-25  Bruno Haible  <bruno@clisp.org>
74934
74935         * modules/unitypes: New file.
74936         * lib/unitypes.h: New file.
74937         * MODULES.html.sh (func_all_modules): New section "Unicode string
74938         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74939         this section. Add unitypes.
74940
74941 2007-01-08  Bruno Haible  <bruno@clisp.org>
74942
74943         Avoid variable names that conflict with those from libtool.
74944         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74945         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74946         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74947         library_names_spec to acl_library_names_spec, hardcode_* to
74948         acl_hardcode_*.
74949         Reported by Ralf Wildenhues.
74950
74951 2007-01-08  Bruno Haible  <bruno@clisp.org>
74952
74953         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74954         definition.
74955         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74956         definition.
74957         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74958         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74959         definition.
74960         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74961         definition.
74962         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74963         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74964         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74965         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74966         definition.
74967         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74968         definition.
74969         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74970         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74971         GC_USE_<algorithm>.
74972         * lib/gc-libgcrypt.c: Likewise.
74973         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74974         * modules/gc-arctwo (configure.ac): Likewise.
74975         * modules/gc-des (configure.ac): Likewise.
74976         * modules/gc-hmac-md5 (configure.ac): Likewise.
74977         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74978         * modules/gc-md2 (configure.ac): Likewise.
74979         * modules/gc-md4 (configure.ac): Likewise.
74980         * modules/gc-md5 (configure.ac): Likewise.
74981         * modules/gc-random (configure.ac): Likewise.
74982         * modules/gc-rijndael (configure.ac): Likewise.
74983         * modules/gc-sha1 (configure.ac): Likewise.
74984
74985 2007-01-08  Bruno Haible  <bruno@clisp.org>
74986
74987         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74988         macro definition.
74989         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74990         definition.
74991         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74992         definition.
74993         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74994         * modules/fcntl-safer (configure.ac): Likewise.
74995         * modules/fopen-safer (configure.ac): Likewise.
74996         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74997         GNULIB_FWRITEERROR macro definition.
74998
74999 2007-01-08  Bruno Haible  <bruno@clisp.org>
75000
75001         * m4/gnulib-common.m4: New file.
75002         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75003         (func_get_filelist): Add m4/gnulib-common.m4.
75004
75005 2007-01-08  Bruno Haible  <bruno@clisp.org>
75006
75007         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75008         command.
75009
75010 2007-01-08  Jim Meyering  <jim@meyering.net>
75011
75012         Use a more robust test for a "can't happen" condition.
75013         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75014         narrowed the st_size value.  Presuming the "can't happen" condition
75015         is true, that narrowing could conceivably convert an invalid st_size
75016         value into a valid one.  Instead, use a change based on Matthew
75017         Woehlke's original patch.
75018
75019         Slight readability improvement: use an assert-like macro
75020         in place of literal "abort ()" uses.
75021         * lib/fts.c (fts_assert): Define.
75022         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75023         Use this macro instead of a bare 'abort'.
75024
75025 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75028         simply work around them.
75029         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75030         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75031         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75032         declaring.
75033         Don't bother to define as macros, since the standard doesn't require it.
75034         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75035         longer worry about IRIX 5.3.
75036         (HAVE_WCTYPE_CTMP_BUG): Remove.
75037
75038 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75041         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75042         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75043         Problems reported by Georg Schwarz for IRIX 5.3.
75044
75045         * gnulib-tool (autoconf_minversion): Take the maximum version number
75046         found, not the minimum.  Problem reported by James Youngman.
75047
75048 2007-01-03  Karl Berry  <karl@gnu.org>
75049
75050         * doc/error.texi: new file, explaining interaction with progname.
75051         * doc/gnulib.texi: include it.  Update copyright.
75052
75053 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75054
75055         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75056         AC_CANONICAL_HOST, to improve autobuild outputs.
75057
75058 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75059             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75060
75061         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75062         sockets, server sockets, and other file descriptors.  Count errors
75063         to compute the return value.  Reorder the code a bit to be easier
75064         to follow.  Don't set event bits that were not requested (except
75065         POLLERR and POLLHUP).
75066
75067 2007-01-01  Bruno Haible  <bruno@clisp.org>
75068
75069         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75070
75071 2007-01-03  Jim Meyering  <jim@meyering.net>
75072
75073         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75074
75075 2007-01-02  Bruno Haible  <bruno@clisp.org>
75076
75077         * modules/settime (Include): Require timespec.h.
75078         * modules/nanosleep (Include): Likewise.
75079
75080 2007-01-01  Bruno Haible  <bruno@clisp.org>
75081
75082         * gnulib-tool (func_emit_copyright_notice): Bump year.
75083         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75084
75085 2007-01-01  Bruno Haible  <bruno@clisp.org>
75086
75087         Improve support for OpenBSD.
75088         * build-aux/config.rpath (libname_spec): Export.
75089         (library_names_spec): New variable. Export.
75090         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75091         library_names_spec from the config.rpath output. Locate shared library
75092         through the name pattern in library_names_spec.
75093
75094 2007-01-01  Eric Blake  <ebb9@byu.net>
75095
75096         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75097
75098 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75101         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75102         assume the C locale, and avoid an "eval" that could cause trouble.
75103         Problem with SORT reported by Bob Proulx.
75104
75105         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75106         Define.  Trivial patch from Henning Nielsen Lund, originally
75107         sent to bug-grep@gnu.org today.
75108
75109 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75112         struct stat.  Problem reported by Henning Nielsen Lund.
75113         * lib/acl.c: Include acl.h first, to check interface.  Don't
75114         bother to include sys/types.h and sys/stat.h again.
75115
75116 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75117
75118         Import the following change from libc; problem reported by
75119         Sven Verdoolaege.
75120
75121         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75122
75123         [BZ #1373]
75124         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75125
75126 2006-12-28  Jim Meyering  <jim@meyering.net>
75127
75128         * build-aux/announce-gen: Do not assume that the package
75129         builds any of tar.gz, tar.bz2, and .xdelta files.
75130         Suggestion from Simon Josefsson.
75131
75132 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75133
75134         * modules/announce-gen: New file.
75135
75136 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75137
75138         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75139         handles its gotchas now.
75140         * lib/mbswidth.c: Likewise.
75141         * lib/wcwidth.h: Likewise.
75142         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75143         and iswcntrl; the wctype module does this stuff now.
75144         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75146         * modules/mbchar (Depends-on): Add wctype.
75147         * modules/mbswidth (Depends-on): Likewise.
75148         * modules/wcwidth (Depends-on): Likewise.
75149
75150 2006-12-27  Eric Blake  <ebb9@byu.net>
75151
75152         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75153         module uses more than what <wctype.h> is required to provide.
75154
75155 2006-12-26  Eric Blake  <ebb9@byu.net>
75156
75157         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75158
75159 2006-12-26  Eric Blake  <ebb9@byu.net>
75160
75161         * modules/absolute-header: New module.
75162         * modules/fcntl (Depends-on): Depend on it.
75163         * modules/inttypes (Depends-on): Likewise.
75164         * modules/stdint (Depends-on): Likewise.
75165         * modules/sys_stat (Depends-on): Likewise.
75166         * modules/wctype (Depends-on): Likewise.
75167         * MODULES.html.sh (Support for building libraries and
75168         executables): Document it.
75169
75170 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * gnulib-tool (SED): Remove, undoing previous change.
75173         The problem was that it broke coreutils on Solaris, because
75174         "sed --posix" leaked into a makefile.
75175         (sed): New alias, if 'alias' and GNU sed.
75176
75177 2006-12-24  Jim Meyering  <jim@meyering.net>
75178
75179         Work around an fchownat bug in glibc-2.4:
75180         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75181         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75182         in spite of the -P option.
75183         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75184         New macros.
75185         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75186         * modules/openat (Files): Add lib/fchownat.c.
75187         * lib/openat.c (fchownat): Don't define here.  Move to...
75188         * lib/fchownat.c: ...this new file.
75189
75190 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75191
75192         Fix bug reported by Bruno Haible in
75193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75194         where quotearg.c didn't compile on Mac OS X 10.2 because it
75195         lacks <wchar.h> and wint_t.
75196         * lib/wctype_.h (__wctype_wint_t): New type.
75197         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75198         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75199         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75200         Arg is now of type __wctype_wint_t, not wint_t.
75201         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75202         substitute HAVE_WINT_T.
75203         * modules/wctype (Files): Add m4/wint_t.m4.
75204         (wctype.h): Substitute HAVE_WINT_T.
75205
75206 2006-12-23  Bruno Haible  <bruno@clisp.org>
75207
75208         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75209
75210 2006-12-23  Bruno Haible  <bruno@clisp.org>
75211
75212         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75213         S_ISLNK.
75214         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75215         mingw.
75216
75217 2006-12-22  Bruno Haible  <bruno@clisp.org>
75218
75219         * lib/copy-file.c: Include acl.h.
75220         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75221         Close the file descriptors only after being done with copy_acl.
75222         * modules/copy-file (Depends-on): Add acl.
75223
75224 2006-12-22  Bruno Haible  <bruno@clisp.org>
75225
75226         * gnulib-tool (SED): New variable.
75227         Use $SED instead of sed everywhere.
75228
75229 2006-12-22  Bruno Haible  <bruno@clisp.org>
75230
75231         * modules/no-c++: New file.
75232         * m4/no-c++.m4: New file.
75233         * MODULES.html.sh (Support for building libraries and executables):
75234         Add no-c++.
75235
75236 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75239         Include <limits.h>, and use its INT_MAX to rewrite the
75240         j loop so that it does not overflow 'int'.  Problem reported by
75241         Ralf Wildenhues in
75242         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75243         Play it safe by shifting left by 1 rather than multiplying by 2,
75244         as GCC is less likely to optimize this away when the value
75245         is signed (when it assumes overflow leads to undefined behavior).
75246         Also, don't assume time_t uses two's complement.
75247
75248 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * MODULES.html.sh: New module wctype.
75251         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75252         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75253         <wctype.h>, since the new wctype module should fix this.
75254         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75255         the wctype module should arrange for it.
75256         * lib/regex_internal.h: Likewise.
75257         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75258         since the wctype module should handle this now.
75259         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75260         * modules/fnmatch (Depends-on): Add wctype.
75261         * modules/quotearg (Depends-on): Likewise.
75262         * modules/regex (Depends-on): Likewise.
75263
75264 2006-12-19  Bruno Haible  <bruno@clisp.org>
75265
75266         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75267         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75268
75269 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75270
75271         * modules/savewd (Depends-on): Fix dependency on fcntl.
75272
75273 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75274
75275         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75276         conforms to C99, rather than relying on the user's environment
75277         setting of STDINT_H.
75278
75279 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75280         and Eric Blake  <ebb9@byu.net>
75281
75282         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75283         This is more consistent with the other defines here.
75284         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75285         Port to z/OS.  Problem reported by Paul Gilmartin.
75286         Change local vars to use gl_ prefix rather than ac_.
75287         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75288         with other defines.
75289         * modules/double-slash-root: New module.
75290         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75291         (Depends-on): Add double-slash-root.
75292         * MODULES.html.sh (File system functions): Mention new module.
75293
75294 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75297         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75298         This is for the benefit of gzip, which doesn't do i18n.
75299
75300 2006-12-12  Jim Meyering  <jim@meyering.net>
75301
75302         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75303         Reported by Andreas Schwab <schwab@suse.de>.
75304
75305 2006-12-12  Bruno Haible  <bruno@clisp.org>
75306
75307         Merge these changes.
75308         2006-09-05  Bruno Haible  <bruno@clisp.org>
75309         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75310         iconv_alloc succeeded.
75311         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75312         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75313         test for " && dest " at the end - dest is always != NULL there. Call
75314         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75315         with 2xNULL arguments, also to flush the state storage. Handle the
75316         IRIX iconv behaviour. Realloc the final result, to throw away unused
75317         memory.
75318
75319 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75322         and fchmodat unconditionally, since glibc 2.4 has them.
75323         Problem reported by Arkadiusz Miskiewicz.
75324
75325 2006-12-10  Bruno Haible  <bruno@clisp.org>
75326
75327         * gnulib-tool (func_import): Show the include files only for those
75328         modules that are copied and specified.
75329         Reported by Karl Berry.
75330
75331 2006-12-08  Jim Meyering  <jim@meyering.net>
75332
75333         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75334         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75335
75336         * build-aux/announce-gen: Add two new options, both optional:
75337         --bootstrap-tools=TOOL_LIST
75338               a comma-separated list of tools, e.g.,
75339               autoconf,automake,bison,gnulib
75340         --gnulib-snapshot-date=DATE
75341               if gnulib is in the bootstrap tool list,
75342               then report this as the snapshot date.
75343               If not specified, use the current date/time.
75344               If you specify a date here, be sure it's UTC.
75345
75346 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75347
75348         * tests/test-argp-2.sh: Fix test to match actual output.
75349         (func_compare): Fix sed script to be portable.
75350
75351 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75354         workaround for this case.  It is not autoconfigured now; offhand
75355         it's hard to see how to autoconfigure it.
75356
75357 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75358
75359         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75360         a directory that is about to be chowned.  Such a directory's
75361         initial file permissions should permit the owner only and this
75362         should not be changed until after the chown, since the group and
75363         other bits would be incorrect if they granted permission before
75364         the chown.
75365
75366         Fix porting problem for iswctype reported by Georg Schwarz in:
75367         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75368         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75369         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75371         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75372
75373 2006-12-03  Jim Meyering  <jim@meyering.net>
75374
75375         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75376         p->fts_statp may not yet be defined.
75377         (fts_read): Instead, set it in the caller, once p->fts_statp is
75378         sure to be defined, and corresponds to a top-level directory.
75379         This bug made du -x fail.  Here's the coreutils test case:
75380         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75381         Reported by Mike Frysinger.
75382
75383 2006-12-01  Jim Meyering  <jim@meyering.net>
75384
75385         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75386         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75387         Reported by Simon Josefsson.
75388
75389 2006-11-30  Jim Meyering  <jim@meyering.net>
75390
75391         * m4/warning.m4: Use the all-permissive copyright notice
75392         recommended by RMS (rather than LGPL).
75393         * m4/vararrays.m4: Likewise.
75394         * m4/flexmember.m4: Likewise.
75395
75396 2006-11-29  Bruno Haible  <bruno@clisp.org>
75397
75398         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75399         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75400         using +=.
75401         Reported by Simon Josefsson <simon@josefsson.org>.
75402
75403 2006-11-28  James Youngman <jay@gnu.org>
75404
75405         * README: Advise users that they might find the bug-gnulib@gnu.org
75406         and autotools-announce@gnu.org mailing lists useful.
75407
75408 2006-11-28  Bruno Haible  <bruno@clisp.org>
75409
75410         * m4/ptrdiff_max.m4: Remove file.
75411
75412 2006-11-21  Bruno Haible  <bruno@clisp.org>
75413
75414         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75415         _AC_COMPUTE_INT.
75416         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75417         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75418         _AC_COMPUTE_INT.
75419         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75420         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75421         _AC_COMPUTE_INT.
75422         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75423
75424 2006-11-28  Jim Meyering  <jim@meyering.net>
75425
75426         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75427         warning from "gcc -Wshadow" about shadowing the builtin.
75428
75429 2006-11-27  Bruno Haible  <bruno@clisp.org>
75430
75431         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75432         _AC_COMPUTE_INT.
75433         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75434
75435 2006-11-27  Bruno Haible  <bruno@clisp.org>
75436             Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75439
75440 2006-11-26  Bruno Haible  <bruno@clisp.org>
75441
75442         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75443         noinst_LTLIBRARIES.
75444
75445 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75446             Bruno Haible  <bruno@clisp.org>
75447
75448         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75449         if compiling with "gcc -ansi".
75450
75451 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         Fix some incompatibilities with gcc -ansi -pedantic.
75454         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75455         if compiling pedantically with GCC, unless it's C99 or later.
75456         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75457         it mishandles gcc -ansi -pedantic as well.
75458         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75459         if gcc -pedantic.
75460         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75461         initializers for struct if -pedantic, unless it's C99 or later.
75462
75463 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75464
75465         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75466         Don't close an fd more than once. Identical atimes indicate
75467         success, not failure.
75468
75469 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75470
75471         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75472
75473 2006-11-23  Jim Meyering  <jim@meyering.net>
75474
75475         * build-aux/announce-gen: New file.  From coreutils.
75476
75477 2006-11-22  Jim Meyering  <jim@meyering.net>
75478
75479         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75480         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75481         (fts_read): Use a temporary to narrow the overused st_size member
75482         before using it in a switch statement.  Reported by Matthew Woehlke.
75483
75484         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75485         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75486
75487 2006-11-20  Bruno Haible  <bruno@clisp.org>
75488
75489         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75490         changequote instead of pairs of brackets.
75491         Reported by Andreas Schwab <schwab@suse.de>.
75492
75493 2006-11-21  Jim Meyering  <jim@meyering.net>
75494
75495         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75496         so as to remain compatible with older compilers.
75497         Patch from Michael Deutschmann.
75498
75499 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * MODULES.html.sh (File system functions): Add openat.
75502
75503         * lib/openat.h (rpl_fstatat): New macro, if
75504         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75505         (fstatat): Define to rpl_fstatat under the same conditions,
75506         unless COMPILING_FSTATAT.
75507         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75508         seems to have the bug.
75509         * lib/fstatat.c: New file.
75510         * modules/openat (Files): Add it.
75511
75512 2006-11-20  Bruno Haible  <bruno@clisp.org>
75513
75514         * Makefile: New file.
75515
75516 2006-11-20  Jim Meyering  <jim@meyering.net>
75517
75518         The beginnings of syntax-related checks for gnulib.
75519         * lib/Makefile: New file.
75520         * lib/t-idcache: New script.  Ensure that the two halves of
75521         idcache.c stay in sync.
75522
75523         * lib/idcache.c: Adjust comments in user- and group- portions to
75524         be more accurate, and to be consistent with one another.
75525
75526 2006-11-20  Jim Meyering  <jim@meyering.net>
75527
75528         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75529         continue using the flexible array member (thus, this module performs
75530         half as many malloc calls), with the addition that...
75531         (getgroup, getuser): Consistently record a non-match via an empty
75532         "name" string, and map an empty string match to a NULL return value.
75533         * modules/idcache (Depends-on): Re-add flexmember.
75534
75535         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75536         (getuidbyname, getgroup, getgidbyname): Likewise.
75537
75538         Use cleaner syntax: NULL rather than 0.
75539         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75540
75541 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75544         It mishandled the case where the group was missing.
75545         Problem reported by Greg Schafer.
75546         * modules/idcache: Likewise.
75547
75548 2006-11-18  Jim Meyering  <jim@meyering.net>
75549
75550         * check-module (%exempt_header): Add exception for some
75551         conditionally-included headers.
75552
75553         * modules/i-ring (Depends-on): Add verify.
75554         (License): Change to LGPL.
75555
75556 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75559         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75560         and inttostr.h.  Use snprintf rather than uinttostr, so that
75561         LGPLed code doesn't depend on GPLed.
75562
75563 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         * modules/inline (License): Change from GPL to LGPL.
75566
75567 2006-11-17  Jim Meyering  <jim@meyering.net>
75568
75569         * modules/d-type (License): Switch to LGPL.
75570
75571 2006-11-15  Bruno Haible  <bruno@clisp.org>
75572
75573         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75574
75575 2006-11-15  Eric Blake  <ebb9@byu.net>
75576
75577         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75578         the module dependency.
75579
75580 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75581             Bruno Haible  <bruno@clisp.org>
75582
75583         * gnulib-tool (func_create_testdir): Add license consistency check.
75584
75585 2006-11-15  Eric Blake  <ebb9@byu.net>
75586
75587         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75588         random "(cached)" in configure output.
75589
75590 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75591
75592         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75593         test for conforming inttypes.h is both announced and cached.
75594
75595         * MODULES.html.sh (seen_modules, seen_files): New variables.
75596         (func_module): Rewrite to use a few less gnulib-tool and sed
75597         invocations.  Avoid a couple of quadratic algorithms for ...
75598         (missed_modules, missed_files): ... these, with ...
75599         (func_append, func_tmpdir): ... these new functions, from
75600         gnulib-tool.  Analogously, install traps for cleanup.
75601
75602         * tests/test-gc.c (main): Remove unused variables.
75603         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75604
75605 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * modules/inttostr (License): Change to LGPL.
75608
75609 2006-11-14  Eric Blake  <ebb9@byu.net>
75610
75611         * modules/tempname (License): Change to LGPL.
75612
75613 2006-11-14  Eric Blake  <ebb9@byu.net>
75614
75615         * doc/functions.texi (Function Portability): *printf functions on
75616         Cygwin now understand all POSIX size specifiers.
75617
75618 2006-11-14  Bruno Haible  <bruno@clisp.org>
75619
75620         * modules/c-ctype (License): Change to LGPL.
75621
75622 2006-11-12  Bruno Haible  <bruno@clisp.org>
75623
75624         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75625         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75626         for GNOME libraries, for which the include files are installed in
75627         subdirectories of $prefix/include.
75628
75629 2006-11-12  Bruno Haible  <bruno@clisp.org>
75630
75631         * m4/lib-link.m4: Require at least autoconf-2.54.
75632         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75633         name to underscores for the --with option.
75634
75635 2006-11-13  Bruno Haible  <bruno@clisp.org>
75636
75637         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75638         the tests directory.
75639         Reported by Ralf Wildenhues.
75640
75641 2006-11-13  Bruno Haible  <bruno@clisp.org>
75642
75643         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75644         (func_emit_initmacro_end): Undo the override here.
75645         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75646         Works around the famous automake error in coreutils.
75647
75648 2006-11-13  Eric Blake  <ebb9@byu.net>
75649
75650         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75651         element, not its node.
75652
75653 2006-11-12  Bruno Haible  <bruno@clisp.org>
75654
75655         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75656         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75657
75658 2006-11-12  Bruno Haible  <bruno@clisp.org>
75659
75660         * gnulib-tool: New option --local-symlink.
75661         (func_usage): Document it.
75662         (lsymbolic): New variable.
75663         (func_import, func_create_testdir): If --symlink was not specified,
75664         test whether --local-symlink was specified and the file comes from
75665         the local_gnulib_dir.
75666
75667 2006-11-12  Bruno Haible  <bruno@clisp.org>
75668
75669         * gnulib-tool (func_ln): New function.
75670         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75671
75672 2006-11-12  Bruno Haible  <bruno@clisp.org>
75673
75674         Finish support for source files in subdirectories.
75675         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75676         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75677         AUTOMAKE_OPTIONS.
75678         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75679
75680 2006-11-12  Bruno Haible  <bruno@clisp.org>
75681
75682         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75683         EXTRA_lib_SOURCES augmentation.
75684         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75685
75686 2006-11-12  Jim Meyering  <jim@meyering.net>
75687
75688         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75689         file descriptors.  This also averts a failure on systems with
75690         native openat support when a traversed directory lacks "x" access.
75691         * lib/fts_.h: Include "i-ring.h"
75692         (struct FTS) [fts_fd_ring]: New member.
75693         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75694         (FCHDIR): Add parentheses.
75695         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75696         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75697         When descending, rather than simply closing the previous
75698         fts_cwd_fd value, push that file descriptor onto the ring.
75699         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75700         (fts_open): Initialize the new fd_ring member.
75701         (fts_close): Clear the ring.
75702         (fts_safe_changedir): When possible, use our new fd_ring to skip
75703         the diropen and fstat and dev/ino comparison that would normally
75704         accompany a virtual `chdir ("..")'.
75705
75706         * modules/fts (Depends-on): Add i-ring.
75707         * modules/i-ring: New module.
75708         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75709         * m4/i-ring.m4: New file.
75710
75711 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75712
75713         * gnulib-tool (func_create_testdir): Fix replacement of
75714         `build-aux' in configure.ac.  Run autotools in gltests
75715         subdirectory.
75716         (func_create_testdir, func_create_megatestdir, test): There is
75717         no need for '--force' in most autotool invocations in a new
75718         tree.  Actually fail the whole test if any of the tools, or the
75719         configure or make stages fail.
75720
75721         Sync from Automake.
75722         * build-aux/gnupload: Revert last change.  Add pointer to upload
75723         instructions of the GNU Maintenance Instructions.
75724         Suggestion by Karl Berry.
75725
75726 2006-11-10  Jim Meyering  <jim@meyering.net>
75727
75728         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75729
75730 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75733         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75734         (bind_textdomain_codeset) [! ENABLE_NLS]:
75735         Evaluate all the arguments.  That way, callers get compatible behavior
75736         if the arguments have side effects.  Also, it avoids some GCC
75737         diagnostics in some cases; Joel E. Denny reported problems when Bison
75738         was configured with --enable-gcc-warnigs.
75739
75740 2006-11-10  Jim Meyering  <jim@meyering.net>
75741
75742         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75743         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75744         account.
75745
75746 2006-11-10  Jim Meyering  <jim@meyering.net>
75747
75748         * modules/inline: New file/module.
75749         * modules/xalloc (Files): Remove m4/inline.m4.
75750         (Depends-on): Add inline, instead.
75751         * modules/oset: Likewise.
75752         * modules/list: Likewise.
75753
75754 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75757         Problem reported by Matthew Woehlke.
75758
75759 2006-11-09  Bruno Haible  <bruno@clisp.org>
75760
75761         * lib/tempname.c (gen_tempname): Remove variant that invokes
75762         __gen_tempname.
75763         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75764         __gen_tempname.
75765
75766 2006-11-08  Bruno Haible  <bruno@clisp.org>
75767
75768         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75769         to 'yes' instead of 'cross-compiling'.
75770
75771 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * lib/quotearg.h (quotearg_free): New decl.
75774         * lib/quotearg.c (quotearg_free): New function.
75775         (slot0, nslots, slotvec0, slotvec):
75776         Now file-scope so that quotearg_free can get at them.
75777
75778 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75779
75780         Sync from Automake.
75781         * build-aux/gnupload: Add missing 'gnu' to example URL.
75782         Report by Karl Berry.
75783
75784 2006-11-08  Bruno Haible  <bruno@clisp.org>
75785
75786         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75787         Suggested by Paul Eggert.
75788
75789 2006-11-08  Jim Meyering  <jim@meyering.net>
75790
75791         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75792         It's already included if !_LIBC.
75793         (fts_safe_changedir): Add a comment.
75794
75795 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75798         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75799         Matthew Woehlke.
75800
75801         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75802         definitions up, to avoid colliding with change below.
75803         (static_inline) [HAVE_INLINE]: New macro.
75804         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75805         Provide extern decls when !HAVE_INLINE.  Do not define unless
75806         static_inline is defined, either by us or by xmalloc.c.  Use
75807         static_inline rather than static inline.
75808         (XCALLOC): Optimize sizeof(T) = 1 case.
75809         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75810
75811 2006-11-07  Bruno Haible  <bruno@clisp.org>
75812
75813         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75814         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75815         AC_C_INLINE.
75816         * modules/xalloc (Files): Add m4/inline.m4.
75817
75818 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75819
75820         * README: Fix typo.
75821         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75822         (Miscellanous Notes): ...from this.
75823
75824 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75827         Mention that offsetof should be used instead of sizeof.
75828         From Bruno Haible.
75829
75830 2006-11-07  Bruno Haible  <bruno@clisp.org>
75831
75832         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75833
75834 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75837         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75838         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75839         (gl_tree_add_before, gl_tree_add_after):
75840         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75841         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75842         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75843         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75844         (gl_linked_add_after, gl_linked_add_at): Likewise.
75845         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75846         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75847         (gl_tree_add_before, gl_tree_add_after): Likewise.
75848         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75849         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75850         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75851
75852 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75853
75854         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75855
75856 2006-11-06  Bruno Haible  <bruno@clisp.org>
75857
75858         * m4/inline.m4: New file.
75859         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75860         * modules/list (Files): Add m4/inline.m4.
75861         * modules/oset (Files): Likewise.
75862
75863 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75864
75865         * lib/idcache.c: Include <stddef.h>, for offsetof.
75866         (struct userid.name): Change from char * to a flexible array member.
75867         All uses changed.
75868         * modules/idcache (Depends-on): Add flexmember.
75869
75870         * MODULES.html.sh (Core language properties): New module flexmember.
75871         * modules/flexmember, m4/flexmember.m4: New files.
75872
75873         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75874         inline functions that are identical with the old xnmalloc_inline,
75875         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75876         that we can avoid some unnecessary integer multiplications and
75877         divisions in the common case where the element size is known at
75878         compile time.
75879         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75880         needed.
75881         (xnboundedmalloc): Remove.
75882         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75883         arguments, for consistency with rest of this header.
75884         (xcharalloc): Rewrite using XNMALLOC.
75885         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75886         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75887         versions have been moved to lib/xalloc.h and renamed to be the
75888         non-*_inline versions.
75889         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75890         and xnrealloc functions, since those functions are now inline and
75891         now call us.
75892         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75893         renaming described above.
75894         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75895         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75896         captures the dependency in AC_C_INLINE.
75897
75898         New module canonicalize-lgpl, proposed by Charles Wilson in
75899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75900         with a few small changes afterwards.
75901         * MODULES.html.sh (File system functions): New module
75902         canonicalize-lgpl.
75903         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75904         and canonicalize_file_name.
75905         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75906         * modules/canonicalize-lgpl: New files.
75907
75908 2006-11-05  Bruno Haible  <bruno@clisp.org>
75909
75910         * gnulib-tool (func_import, func_create_testdir): Create directories
75911         also for files in subdirectories of lib/.
75912
75913 2006-11-05  Bruno Haible  <bruno@clisp.org>
75914
75915         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75916         ANSI C compliant.
75917
75918 2006-11-03  Bruno Haible  <bruno@clisp.org>
75919
75920         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75921         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75922         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75923         (xnboundedmalloc): New inline function.
75924         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75925         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75926         xmalloc.
75927         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75928         xmalloc.
75929         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75930         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75931         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75932         xmalloc.
75933         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75934         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75935         xmalloc.
75936         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75937         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75938         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75939         xmalloc.
75940         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75941         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75942         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75943         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75944         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75945         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75946         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75947
75948 2006-11-03  Bruno Haible  <bruno@clisp.org>
75949
75950         * lib/c-ctype.h [C++]: Define functions without name mangling.
75951         * lib/fwriteerror.h [C++]: Likewise.
75952         * lib/gcd.h [C++]: Likewise.
75953         * lib/linebreak.h [C++]: Likewise.
75954
75955 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75958         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75959         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75960         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75961         Check for functions and headers just once.
75962         Check for declaration of canonicalize_file_name.
75963         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75964
75965 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75966
75967         * gnulib-tool (func_import): Fix typo in actioncmd.
75968
75969 2006-11-02  Bruno Haible  <bruno@clisp.org>
75970
75971         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75972         newline sequence in the Makefile.am snippet as a space, like "make"
75973         does.
75974         Reported by Roger Persson <perrog@gmail.com>.
75975
75976 2006-11-01  Bruno Haible  <bruno@clisp.org>
75977
75978         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75979         already declared in <string.h>.
75980         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75981
75982 2006-11-01  Bruno Haible  <bruno@clisp.org>
75983
75984         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75985         * lib/strcase.h: Include <string.h>.
75986         (strcasecmp): Define to rpl_strcasecmp here.
75987
75988 2006-11-01  Bruno Haible  <bruno@clisp.org>
75989
75990         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75991
75992 2006-11-01  Eric Blake  <ebb9@byu.net>
75993
75994         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75995
75996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75997
75998 2006-10-29  Bruno Haible  <bruno@clisp.org>
75999
76000         Make it compile in C++ mode.
76001         * lib/full-write.c (full_rw): Add a cast.
76002
76003 2006-11-01  Bruno Haible  <bruno@clisp.org>
76004
76005         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76006         be POSIX compliant.
76007         Reported by Roger Persson <perrog@gmail.com>.
76008
76009 2006-11-01  Eric Blake  <ebb9@byu.net>
76010
76011         * lib/getopt_.h: Fix comments.
76012
76013 2006-10-31  Eric Blake  <ebb9@byu.net>
76014
76015         * modules/tmpdir (Depends-on): Add sys_stat.
76016         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76017         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76018         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76019         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76020         tempname.
76021
76022 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76023
76024         Avoid some C++ diagnostics reported by Bruno Haible.
76025         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76026         xmalloc.
76027         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76028         (struct slotvec): Move to top level.
76029         (quotearg_n_options): Rewrite to avoid xmalloc.
76030         * lib/xalloc.h (xcharalloc): New function.
76031         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76032         [defined __cplusplus]: Add function template that provides result
76033         type propagation.  This part of the change is from Bruno Haible.
76034
76035 2006-10-29  Bruno Haible  <bruno@clisp.org>
76036
76037         Make it compile in C++ mode.
76038         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76039         * lib/strnlen1.c (strnlen1): Cast memchr result.
76040         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76041         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76042         (create_temp_dir): Rename local variable 'template'.
76043         (compile_csharp_using_sscli): Add cast.
76044         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76045         * lib/findprog.c (find_in_path): Likewise.
76046         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76047         * lib/wait-process.c (register_slave_subprocess): Likewise.
76048
76049 2006-10-22  Bruno Haible  <bruno@clisp.org>
76050
76051         * modules/tsearch: New file.
76052         * lib/tsearch.h: New file.
76053         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76054         * m4/tsearch.m4: New file.
76055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76056
76057 2006-10-29  Eric Blake  <ebb9@byu.net>
76058
76059         * lib/arcfour.c: Assume config.h.
76060         * lib/arctwo.c: Likewise.
76061         * lib/base64.c: Likewise.
76062         * lib/check-version.c: Likewise.
76063         * lib/crc.c: Likewise.
76064         * lib/des.c: Likewise.
76065         * lib/gc-gnulib.c: Likewise.
76066         * lib/gc-libgcrypt.c: Likewise.
76067         * lib/gc-pbkdf2-sha1.c: Likewise.
76068         * lib/getaddrinfo.c: Likewise.
76069         * lib/getdelim.c: Likewise.
76070         * lib/getline.c: Likewise.
76071         * lib/hmac-md5.c: Likewise.
76072         * lib/hmac-sha1.c: Likewise.
76073         * lib/iconvme.c: Likewise.
76074         * lib/md2.c: Likewise.
76075         * lib/md4.c: Likewise.
76076         * lib/memxor.c: Likewise.
76077         * lib/read-file.c: Likewise.
76078         * lib/readline.c: Likewise.
76079         * lib/rijndael-alg-fst.c: Likewise.
76080         * lib/rijndael-api-fst.c: Likewise.
76081         * lib/xgetdomainname.c: Likewise.
76082
76083 2006-10-28  Eric Blake  <ebb9@byu.net>
76084
76085         * lib/xstrndup.c: Assume config.h.
76086
76087 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76090         stat-macros.h is now for our own macros, whereas stat_h is for
76091         macros in the <sys/stat.h> name space.
76092         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76093         (STAT_MACROS_H): Remove.
76094         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76095         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76096         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76097         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76098         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76099         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76100         Move these macros to ...
76101         * lib/stat_.h: here.  Don't include stat-macros.h.
76102         * lib/canonicalize.c: Don't include stat-macros.h.
76103         * lib/chown.c: Likewise.
76104         * lib/euidaccess.c: Likewise.
76105         * lib/file-type.c: Likewise.
76106         * lib/filemode.c: Likewise.
76107         * lib/glob.c: Likewise.
76108         * lib/isapipe.c: Likewise.
76109         * lib/lchown.c: Likewise.
76110         * lib/lstat.c: Likewise.
76111         * lib/mkdir-p.c: Likewise.
76112         * lib/rmdir.c: Likewise.
76113         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76115         unless mkdir isn't declared, to speed up 'configure'.
76116         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76117         would define all the S_* symbols.
76118         * modules/canonicalize (Depends-on):
76119         Depend on sys_stat, not stat-macros.
76120         * modules/chown: Likewise.
76121         * modules/euidaccess: Likewise.
76122         * modules/filemode: Likewise.
76123         * modules/file-type: Likewise.
76124         * modules/glob: Likewise.
76125         * modules/isapipe: Likewise.
76126         * modules/lchown: Likewise.
76127         * modules/lstat: Likewise.
76128         * modules/mkancesdirs: Likewise.
76129         * modules/rmdir: Likewise.
76130         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76131         * modules/modechange: Likewise.
76132         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76133         (configure.ac): Remove gl_STAT_MACROS.
76134         * modules/sys_stat (Depends-on): Remove stat-macros.
76135
76136 2006-10-27  Bruno Haible  <bruno@clisp.org>
76137
76138         * m4/signed.m4: Remove file.
76139         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76140         invocation.
76141         * modules/vasnprintf (Files): Remove m4/signed.m4.
76142
76143 2006-10-27  Bruno Haible  <bruno@clisp.org>
76144
76145         Update to GNU gettext 0.16.
76146         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76147         m4/inttypes-h.m4, m4/signed.m4.
76148         * m4/gettext.m4: Update to GNU gettext 0.16.
76149         * m4/intl.m4: New file, from GNU gettext.
76150         * m4/intldir.m4: New file, from GNU gettext.
76151         * config/srclist.txt: Update
76152
76153 2006-10-27  Eric Blake  <ebb9@byu.net>
76154
76155         * MODULES.html.sh: Document tempname.
76156         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76157         dependencies.
76158         (Files): Move lib/tempname.c...
76159         * modules/tempname: ...to this new module.
76160         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76161         (gl_PREREQ_TEMPNAME): Move...
76162         * m4/tempname.m4: ...to this new file.
76163         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76164         * modules/sys_stat (Depends-on): Add stat-macros.
76165         * lib/stat_.h (includes): Pick up stat macros.
76166         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76167         if stat macros are broken.
76168         * lib/tempname.c (includes): No need to include "stat-macros.h".
76169         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76170         (direxists, __path_search) [!_LIBC]: Don't compile these in
76171         gnulib; the tmpdir module covers that.
76172         * lib/tempname.h: New file.
76173
76174 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         * COPYING: Explain how gnulib-tool converts licence headers.
76177         Almost all wording by Eric Blake.
76178
76179 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76180
76181         * lib/mbchar.h (is_basic_table): Make read-only.
76182         * lib/mbchar.c (is_basic_table): Likewise.
76183         Reported by John Darrington.
76184
76185 2006-10-25  Bruno Haible  <bruno@clisp.org>
76186
76187         * lib/progname.h (set_program_name): Undefine before defining.
76188
76189 2006-10-25  Bruno Haible  <bruno@clisp.org>
76190
76191         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76192         false for non-gcc C++ compilers.
76193         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76194
76195 2006-10-24  Bruno Haible  <bruno@clisp.org>
76196
76197         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76198         iconv implementations like Irix iconv.
76199
76200 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76201
76202         * modules/vararrays: New file.
76203         * m4/vararrays.m4: New file, taken from diffutils.
76204         * MODULES.html.sh: New module vararrays.
76205
76206 2006-10-24  Karl Berry  <karl@gnu.org>
76207
76208         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76209         Don't call GNU Unix.
76210
76211 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76212
76213         * users.txt: Add Libtool.
76214
76215         Sync from Libtool:
76216
76217         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76220         to gnulib's policy of including config.h unconditionally.
76221
76222 2006-10-24  Bruno Haible  <bruno@clisp.org>
76223
76224         * modules/wcwidth (Files): Add m4/wint_t.m4.
76225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76226         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76227
76228 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76231         to pacify GCC with some -W flags enabled.  Problem reported by
76232         Bruno Haible.
76233
76234 2006-10-24  Jim Meyering  <jim@meyering.net>
76235
76236         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76237         Reported by Karl Berry.
76238
76239 2006-10-23  Bruno Haible  <bruno@clisp.org>
76240
76241         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76242
76243 2006-10-24  Bruno Haible  <bruno@clisp.org>
76244
76245         * lib/gl_list.h: Use C comment style, not C++ comment style.
76246
76247 2006-10-23  Eric Blake  <ebb9@byu.net>
76248
76249         * lib/getaddrinfo.c (includes): Add missing include.
76250
76251 2006-10-23  Bruno Haible  <bruno@clisp.org>
76252             Paul Eggert  <eggert@cs.ucla.edu>
76253
76254         Ability to rename obstack_free.
76255         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76256         obstack_free.
76257         (obstack_free): Invoke the __obstack_free macro.
76258         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76259
76260 2006-10-23  Bruno Haible  <bruno@clisp.org>
76261             Paul Eggert  <eggert@cs.ucla.edu>
76262
76263         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76264         __argc, __argv from the declaration. (They are defined as macros on
76265         mingw.)
76266
76267 2006-10-22  Bruno Haible  <bruno@clisp.org>
76268
76269         * doc/gnulib-intro.texi: New file.
76270         * doc/gnulib.texi: Include it.
76271
76272 2006-10-21  Bruno Haible  <bruno@clisp.org>
76273
76274         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76275         "Introduction", "Miscellanous Notes", "Particular Modules".
76276
76277 2006-10-21  Bruno Haible  <bruno@clisp.org>
76278
76279         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76280         Change mostlyclean-local rule to avoid sh syntax error from bash
76281         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76282
76283 2006-10-23  Jim Meyering  <jim@meyering.net>
76284
76285         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76286         in place of snprintf.
76287
76288         * modules/inttostr (Files): Add lib/uinttostr.c.
76289         * lib/uinttostr.c (inttostr): New file/function.
76290         * lib/inttostr.h (uinttostr): Declare.
76291         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76292         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76293         Add uinttostr.
76294         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76295
76296 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76297
76298         * lib/canonicalize.c (ELOOP): Define if not already defined.
76299         Problem reported by Bruno Haible in
76300         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76301
76302 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76303
76304         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76305         Problem reported by Perry Smith and Ville Laurikari.
76306
76307         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76308         uses.
76309
76310 2006-10-19  Bruno Haible  <bruno@clisp.org>
76311
76312         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76313         for mingw.
76314
76315 2006-10-19  Bruno Haible  <bruno@clisp.org>
76316
76317         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76318         Needed for mingw.
76319
76320 2006-10-19  Bruno Haible  <bruno@clisp.org>
76321
76322         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76323
76324 2006-10-19  Bruno Haible  <bruno@clisp.org>
76325
76326         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76327         it.
76328
76329 2006-10-19  Bruno Haible  <bruno@clisp.org>
76330
76331         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76332         invocation.
76333
76334 2006-10-19  Bruno Haible  <bruno@clisp.org>
76335
76336         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76337         mountlist by default.
76338
76339 2006-10-16  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/c-strstr.c: Include c-strstr.h.
76342
76343 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76344
76345         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76346         in a slash.
76347
76348 2006-10-18  Bruno Haible  <bruno@clisp.org>
76349
76350         * lib/lock.h [C++]: Wrap definitions in extern "C".
76351
76352 2006-10-18  Bruno Haible  <bruno@clisp.org>
76353
76354         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76355         gl_LIBOBJS list.
76356
76357 2006-10-18  Bruno Haible  <bruno@clisp.org>
76358
76359         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76360
76361 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * lib/xstrtol.h: Include gettext.h.
76364         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76365         Problem reported by Eric Blake.
76366         * modules/xstrtol (Depends-on): Add gettext-h.
76367
76368 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76369
76370         * lib/strftime.c (advance): New macro.
76371         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76372         incomplete type, so you can't add 0 to it.  Problem and patch
76373         reported by Eelco Dolstra for dietlibc.
76374
76375 2006-10-18  Jim Meyering  <jim@meyering.net>
76376
76377         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76378         type for a local, and rename it: s/up/user_proc/.
76379
76380 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76381
76382         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76383         READ_UTMP_USER_PROCESS.
76384         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76385
76386 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76387
76388         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76389         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76390
76391 2006-10-17  Eric Blake  <ebb9@byu.net>
76392
76393         * lib/sigprocmask.c (sigprocmask): Fix typo.
76394
76395         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76396
76397         * modules/clean-temp (Makefile.am): Don't add to make output...
76398         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76399         config.h.
76400
76401 2006-10-17  Bruno Haible  <bruno@clisp.org>
76402
76403         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76404         differently if DEFAULT_TEXT_DOMAIN is set.
76405
76406 2006-10-16  Bruno Haible  <bruno@clisp.org>
76407
76408         * lib/clean-temp.c: Include fwriteerror.h.
76409
76410 2006-10-16  Bruno Haible  <bruno@clisp.org>
76411
76412         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76413
76414 2006-10-16  Bruno Haible  <bruno@clisp.org>
76415
76416         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76417         * lib/sigprocmask.h: Include <sys/types.h>.
76418         (sigset_t): Use the system's definition if present.
76419
76420 2006-10-17  Eric Blake  <ebb9@byu.net>
76421
76422         * lib/xvasprintf.c (includes): Assume config.h.
76423         * lib/xasprintf.c (includes): Likewise.
76424
76425 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76428         at least as wide as intmax_t.
76429
76430 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76431
76432         (Imported from Automake.)
76433         * build-aux/gnupload: Update to version 1.1 of directive file.
76434
76435 2006-10-16  Eric Blake  <ebb9@byu.net>
76436
76437         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76438         match Automake 1.10a.
76439
76440 2006-10-14  Bruno Haible  <bruno@clisp.org>
76441
76442         * modules/sigprocmask: New file.
76443         * lib/sigprocmask.h: New file.
76444         * lib/sigprocmask.c: New file.
76445         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76446         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76447         request sigprocmask.o.
76448         (gl_PREREQ_SIGPROCMASK): New macro.
76449         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76450         (Depends-on): Add sigprocmask.
76451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76452         gt_SIGNALBLOCKING. Test for 'raise' only once.
76453         * lib/fatal-signal.c: Include sigprocmask.h.
76454         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76455         unblock_fatal_signals): Define always.
76456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76457         sigprocmask.
76458
76459 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76460
76461         Sync from Automake.
76462         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76463         which incorrectly sets the mode of an existing destination
76464         directory.  In some cases the unpatched install-sh could do the
76465         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76466         system.  We hope this is rare in practice, but it's clearly worth
76467         fixing.  Problem reported by Alex Unleashed in
76468         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76469         Also, don't bother to check for -m bugs unless we're using -m;
76470         suggested by Stepan Kasal.
76471
76472 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76473
76474         Sync from Automake.
76475         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76476         `-c' flag, so they appear at the same position as in %FASTDEP%
76477         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76478         which ignores unknown options only after the first non-option.
76479         Bug report against M4 by Nelson H. F. Beebe.
76480
76481 2006-10-13  Jim Meyering  <jim@meyering.net>
76482
76483         Fix a bug in yesterday's change.
76484         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76485         p->fts_statp->st_dev would be used uninitialized.
76486         Ensures that we always call fts_stat on the very first entry.
76487         Miklos Szeredi reported that find -xdev stopped working.
76488
76489 2006-10-12  Bruno Haible  <bruno@clisp.org>
76490
76491         * gnulib-tool (func_get_automake_snippet): Append an automatically
76492         computed EXTRA_DIST augmentation.
76493         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76494         * modules/alloca-opt (Makefile.am): Likewise.
76495         * modules/allocsa (Makefile.am): Likewise.
76496         * modules/arcfour (Makefile.am): Likewise.
76497         * modules/arctwo (Makefile.am): Likewise.
76498         * modules/argmatch (Makefile.am): Likewise.
76499         * modules/argz (Makefile.am): Likewise.
76500         * modules/atexit (Makefile.am): Likewise.
76501         * modules/backupfile (Makefile.am): Likewise.
76502         * modules/byteswap (Makefile.am): Likewise.
76503         * modules/c-strtod (Makefile.am): Likewise.
76504         * modules/c-strtold (Makefile.am): Likewise.
76505         * modules/calloc (Makefile.am): Likewise.
76506         * modules/canon-host (Makefile.am): Likewise.
76507         * modules/canonicalize (Makefile.am): Likewise.
76508         * modules/chdir-long (Makefile.am): Likewise.
76509         * modules/chdir-safer (Makefile.am): Likewise.
76510         * modules/check-version (Makefile.am): Likewise.
76511         * modules/chown (Makefile.am): Likewise.
76512         * modules/cloexec (Makefile.am): Likewise.
76513         * modules/close-stream (Makefile.am): Likewise.
76514         * modules/closeout (Makefile.am): Likewise.
76515         * modules/crc (Makefile.am): Likewise.
76516         * modules/csharpexec (Makefile.am): Likewise.
76517         * modules/cycle-check (Makefile.am): Likewise.
76518         * modules/des (Makefile.am): Likewise.
76519         * modules/dev-ino (Makefile.am): Likewise.
76520         * modules/dirfd (Makefile.am): Likewise.
76521         * modules/dirname (Makefile.am): Likewise.
76522         * modules/dup2 (Makefile.am): Likewise.
76523         * modules/eealloc (Makefile.am): Likewise.
76524         * modules/error (Makefile.am): Likewise.
76525         * modules/euidaccess (Makefile.am): Likewise.
76526         * modules/exclude (Makefile.am): Likewise.
76527         * modules/exitfail (Makefile.am): Likewise.
76528         * modules/fcntl-safer (Makefile.am): Likewise.
76529         * modules/fcntl (Makefile.am): Likewise.
76530         * modules/file-type (Makefile.am): Likewise.
76531         * modules/fileblocks (Makefile.am): Likewise.
76532         * modules/filemode (Makefile.am): Likewise.
76533         * modules/filenamecat (Makefile.am): Likewise.
76534         * modules/fnmatch (Makefile.am): Likewise.
76535         * modules/fopen-safer (Makefile.am): Likewise.
76536         * modules/fpending (Makefile.am): Likewise.
76537         * modules/fprintftime (Makefile.am): Likewise.
76538         * modules/free (Makefile.am): Likewise.
76539         * modules/fsusage (Makefile.am): Likewise.
76540         * modules/ftruncate (Makefile.am): Likewise.
76541         * modules/fts (Makefile.am): Likewise.
76542         * modules/gc-arcfour (Makefile.am): Likewise.
76543         * modules/gc-des (Makefile.am): Likewise.
76544         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76545         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76546         * modules/gc-md4 (Makefile.am): Likewise.
76547         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76548         * modules/gc-sha1 (Makefile.am): Likewise.
76549         * modules/gc (Makefile.am): Likewise.
76550         * modules/getaddrinfo (Makefile.am): Likewise.
76551         * modules/getcwd (Makefile.am): Likewise.
76552         * modules/getdelim (Makefile.am): Likewise.
76553         * modules/getdomainname (Makefile.am): Likewise.
76554         * modules/getgroups (Makefile.am): Likewise.
76555         * modules/gethostname (Makefile.am): Likewise.
76556         * modules/gethrxtime (Makefile.am): Likewise.
76557         * modules/getline (Makefile.am): Likewise.
76558         * modules/getloadavg (Makefile.am): Likewise.
76559         * modules/getlogin_r (Makefile.am): Likewise.
76560         * modules/getndelim2 (Makefile.am): Likewise.
76561         * modules/getopt (Makefile.am): Likewise.
76562         * modules/getpagesize (Makefile.am): Likewise.
76563         * modules/getpass-gnu (Makefile.am): Likewise.
76564         * modules/getpass (Makefile.am): Likewise.
76565         * modules/getsubopt (Makefile.am): Likewise.
76566         * modules/gettime (Makefile.am): Likewise.
76567         * modules/gettimeofday (Makefile.am): Likewise.
76568         * modules/getugroups (Makefile.am): Likewise.
76569         * modules/getusershell (Makefile.am): Likewise.
76570         * modules/glob (Makefile.am): Likewise.
76571         * modules/group-member (Makefile.am): Likewise.
76572         * modules/hard-locale (Makefile.am): Likewise.
76573         * modules/hash (Makefile.am): Likewise.
76574         * modules/hmac-md5 (Makefile.am): Likewise.
76575         * modules/hmac-sha1 (Makefile.am): Likewise.
76576         * modules/human (Makefile.am): Likewise.
76577         * modules/idcache (Makefile.am): Likewise.
76578         * modules/imaxabs (Makefile.am): Likewise.
76579         * modules/imaxdiv (Makefile.am): Likewise.
76580         * modules/inet_ntop (Makefile.am): Likewise.
76581         * modules/inet_pton (Makefile.am): Likewise.
76582         * modules/intprops (Makefile.am): Likewise.
76583         * modules/inttostr (Makefile.am): Likewise.
76584         * modules/inttypes (Makefile.am): Likewise.
76585         * modules/isapipe (Makefile.am): Likewise.
76586         * modules/javaversion (Makefile.am): Likewise.
76587         * modules/lchmod (Makefile.am): Likewise.
76588         * modules/lchown (Makefile.am): Likewise.
76589         * modules/localcharset (Makefile.am): Likewise.
76590         * modules/long-options (Makefile.am): Likewise.
76591         * modules/lstat (Makefile.am): Likewise.
76592         * modules/malloc (Makefile.am): Likewise.
76593         * modules/mathl (Makefile.am): Likewise.
76594         * modules/mbchar (Makefile.am): Likewise.
76595         * modules/md2 (Makefile.am): Likewise.
76596         * modules/md4 (Makefile.am): Likewise.
76597         * modules/md5 (Makefile.am): Likewise.
76598         * modules/memcasecmp (Makefile.am): Likewise.
76599         * modules/memchr (Makefile.am): Likewise.
76600         * modules/memcmp (Makefile.am): Likewise.
76601         * modules/memcoll (Makefile.am): Likewise.
76602         * modules/memcpy (Makefile.am): Likewise.
76603         * modules/memmem (Makefile.am): Likewise.
76604         * modules/memmove (Makefile.am): Likewise.
76605         * modules/mempcpy (Makefile.am): Likewise.
76606         * modules/memrchr (Makefile.am): Likewise.
76607         * modules/memset (Makefile.am): Likewise.
76608         * modules/memxor (Makefile.am): Likewise.
76609         * modules/mkancesdirs (Makefile.am): Likewise.
76610         * modules/mkdir-p (Makefile.am): Likewise.
76611         * modules/mkdir (Makefile.am): Likewise.
76612         * modules/mkdtemp (Makefile.am): Likewise.
76613         * modules/mkstemp (Makefile.am): Likewise.
76614         * modules/mktime (Makefile.am): Likewise.
76615         * modules/modechange (Makefile.am): Likewise.
76616         * modules/mountlist (Makefile.am): Likewise.
76617         * modules/nanosleep (Makefile.am): Likewise.
76618         * modules/obstack (Makefile.am): Likewise.
76619         * modules/openat (Makefile.am): Likewise.
76620         * modules/pagealign_alloc (Makefile.am): Likewise.
76621         * modules/pathmax (Makefile.am): Likewise.
76622         * modules/physmem (Makefile.am): Likewise.
76623         * modules/poll (Makefile.am): Likewise.
76624         * modules/posixtm (Makefile.am): Likewise.
76625         * modules/posixver (Makefile.am): Likewise.
76626         * modules/putenv (Makefile.am): Likewise.
76627         * modules/quote (Makefile.am): Likewise.
76628         * modules/quotearg (Makefile.am): Likewise.
76629         * modules/raise (Makefile.am): Likewise.
76630         * modules/read-file (Makefile.am): Likewise.
76631         * modules/readline (Makefile.am): Likewise.
76632         * modules/readlink (Makefile.am): Likewise.
76633         * modules/readtokens (Makefile.am): Likewise.
76634         * modules/readutmp (Makefile.am): Likewise.
76635         * modules/realloc (Makefile.am): Likewise.
76636         * modules/regex (Makefile.am): Likewise.
76637         * modules/rename-dest-slash (Makefile.am): Likewise.
76638         * modules/rename (Makefile.am): Likewise.
76639         * modules/rijndael (Makefile.am): Likewise.
76640         * modules/rmdir (Makefile.am): Likewise.
76641         * modules/rpmatch (Makefile.am): Likewise.
76642         * modules/safe-read (Makefile.am): Likewise.
76643         * modules/safe-write (Makefile.am): Likewise.
76644         * modules/same-inode (Makefile.am): Likewise.
76645         * modules/same (Makefile.am): Likewise.
76646         * modules/save-cwd (Makefile.am): Likewise.
76647         * modules/savedir (Makefile.am): Likewise.
76648         * modules/setenv (Makefile.am): Likewise.
76649         * modules/settime (Makefile.am): Likewise.
76650         * modules/sha1 (Makefile.am): Likewise.
76651         * modules/sig2str (Makefile.am): Likewise.
76652         * modules/snprintf (Makefile.am): Likewise.
76653         * modules/stat-macros (Makefile.am): Likewise.
76654         * modules/stat-time (Makefile.am): Likewise.
76655         * modules/stdbool (Makefile.am): Likewise.
76656         * modules/stdint (Makefile.am): Likewise.
76657         * modules/stdlib-safer (Makefile.am): Likewise.
76658         * modules/stpcpy (Makefile.am): Likewise.
76659         * modules/stpncpy (Makefile.am): Likewise.
76660         * modules/strcase (Makefile.am): Likewise.
76661         * modules/strcasestr (Makefile.am): Likewise.
76662         * modules/strchrnul (Makefile.am): Likewise.
76663         * modules/strcspn (Makefile.am): Likewise.
76664         * modules/strdup (Makefile.am): Likewise.
76665         * modules/strerror (Makefile.am): Likewise.
76666         * modules/strftime (Makefile.am): Likewise.
76667         * modules/strndup (Makefile.am): Likewise.
76668         * modules/strnlen (Makefile.am): Likewise.
76669         * modules/strpbrk (Makefile.am): Likewise.
76670         * modules/strsep (Makefile.am): Likewise.
76671         * modules/strstr (Makefile.am): Likewise.
76672         * modules/strtod (Makefile.am): Likewise.
76673         * modules/strtoimax (Makefile.am): Likewise.
76674         * modules/strtok_r (Makefile.am): Likewise.
76675         * modules/strtol (Makefile.am): Likewise.
76676         * modules/strtoll (Makefile.am): Likewise.
76677         * modules/strtoul (Makefile.am): Likewise.
76678         * modules/strtoull (Makefile.am): Likewise.
76679         * modules/strtoumax (Makefile.am): Likewise.
76680         * modules/strverscmp (Makefile.am): Likewise.
76681         * modules/sys_socket (Makefile.am): Likewise.
76682         * modules/sys_stat (Makefile.am): Likewise.
76683         * modules/sysexits (Makefile.am): Likewise.
76684         * modules/time_r (Makefile.am): Likewise.
76685         * modules/timegm (Makefile.am): Likewise.
76686         * modules/timespec (Makefile.am): Likewise.
76687         * modules/tmpfile-safer (Makefile.am): Likewise.
76688         * modules/trim (Makefile.am): Likewise.
76689         * modules/unistd-safer (Makefile.am): Likewise.
76690         * modules/unlinkdir (Makefile.am): Likewise.
76691         * modules/unlocked-io (Makefile.am): Likewise.
76692         * modules/userspec (Makefile.am): Likewise.
76693         * modules/utime (Makefile.am): Likewise.
76694         * modules/utimecmp (Makefile.am): Likewise.
76695         * modules/utimens (Makefile.am): Likewise.
76696         * modules/vasnprintf (Makefile.am): Likewise.
76697         * modules/vasprintf (Makefile.am): Likewise.
76698         * modules/vsnprintf (Makefile.am): Likewise.
76699         * modules/xalloc (Makefile.am): Likewise.
76700         * modules/xgetcwd (Makefile.am): Likewise.
76701         * modules/xnanosleep (Makefile.am): Likewise.
76702         * modules/xreadlink (Makefile.am): Likewise.
76703         * modules/xstrtod (Makefile.am): Likewise.
76704         * modules/xstrtol (Makefile.am): Likewise.
76705         * modules/xstrtold (Makefile.am): Likewise.
76706         * modules/yesno (Makefile.am): Likewise.
76707         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76708
76709 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * modules/error (Makefile.am): Distribute files through
76712         EXTRA_DIST, not lib_SOURCES.
76713
76714 2006-10-12  Eric Blake  <ebb9@byu.net>
76715
76716         * modules/error (Makefile.am): Distribute files in /lib.
76717         * modules/obstack (Makefile.am): Likewise.
76718
76719 2006-10-12  Bruno Haible  <bruno@clisp.org>
76720
76721         * modules/acl (Makefile.am): Distribute all files in lib/ through
76722         EXTRA_DIST.
76723         * modules/arcfour (Makefile.am): Likewise.
76724         * modules/arctwo (Makefile.am): Likewise.
76725         * modules/argmatch (Makefile.am): Likewise.
76726         * modules/argz (Makefile.am): Likewise.
76727         * modules/atexit (Makefile.am): Likewise.
76728         * modules/backupfile (Makefile.am): Likewise.
76729         * modules/c-strtod (Makefile.am): Likewise.
76730         * modules/c-strtold (Makefile.am): Likewise.
76731         * modules/calloc (Makefile.am): Likewise.
76732         * modules/canon-host (Makefile.am): Likewise.
76733         * modules/canonicalize (Makefile.am): Likewise.
76734         * modules/chdir-long (Makefile.am): Likewise.
76735         * modules/chdir-safer (Makefile.am): Likewise.
76736         * modules/check-version (Makefile.am): Likewise.
76737         * modules/chown (Makefile.am): Likewise.
76738         * modules/cloexec (Makefile.am): Likewise.
76739         * modules/close-stream (Makefile.am): Likewise.
76740         * modules/closeout (Makefile.am): Likewise.
76741         * modules/crc (Makefile.am): Likewise.
76742         * modules/cycle-check (Makefile.am): Likewise.
76743         * modules/des (Makefile.am): Likewise.
76744         * modules/dirfd (Makefile.am): Likewise.
76745         * modules/dirname (Makefile.am): Likewise.
76746         * modules/dup2 (Makefile.am): Likewise.
76747         * modules/euidaccess (Makefile.am): Likewise.
76748         * modules/exclude (Makefile.am): Likewise.
76749         * modules/exitfail (Makefile.am): Likewise.
76750         * modules/fcntl-safer (Makefile.am): Likewise.
76751         * modules/file-type (Makefile.am): Likewise.
76752         * modules/fileblocks (Makefile.am): Likewise.
76753         * modules/filemode (Makefile.am): Likewise.
76754         * modules/filenamecat (Makefile.am): Likewise.
76755         * modules/fnmatch (Makefile.am): Likewise.
76756         * modules/fopen-safer (Makefile.am): Likewise.
76757         * modules/fpending (Makefile.am): Likewise.
76758         * modules/fprintftime (Makefile.am): Likewise.
76759         * modules/free (Makefile.am): Likewise.
76760         * modules/fsusage (Makefile.am): Likewise.
76761         * modules/ftruncate (Makefile.am): Likewise.
76762         * modules/fts (Makefile.am): Likewise.
76763         * modules/gc (Makefile.am): Likewise.
76764         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76765         * modules/getaddrinfo (Makefile.am): Likewise.
76766         * modules/getcwd (Makefile.am): Likewise.
76767         * modules/getdelim (Makefile.am): Likewise.
76768         * modules/getdomainname (Makefile.am): Likewise.
76769         * modules/getgroups (Makefile.am): Likewise.
76770         * modules/gethostname (Makefile.am): Likewise.
76771         * modules/gethrxtime (Makefile.am): Likewise.
76772         * modules/getline (Makefile.am): Likewise.
76773         * modules/getloadavg (Makefile.am): Likewise.
76774         * modules/getlogin_r (Makefile.am): Likewise.
76775         * modules/getopt (Makefile.am): Likewise.
76776         * modules/getpass (Makefile.am): Likewise.
76777         * modules/getpass-gnu (Makefile.am): Likewise.
76778         * modules/getsubopt (Makefile.am): Likewise.
76779         * modules/gettime (Makefile.am): Likewise.
76780         * modules/gettimeofday (Makefile.am): Likewise.
76781         * modules/getugroups (Makefile.am): Likewise.
76782         * modules/getusershell (Makefile.am): Likewise.
76783         * modules/glob (Makefile.am): Likewise.
76784         * modules/group-member (Makefile.am): Likewise.
76785         * modules/hard-locale (Makefile.am): Likewise.
76786         * modules/hash (Makefile.am): Likewise.
76787         * modules/hmac-md5 (Makefile.am): Likewise.
76788         * modules/hmac-sha1 (Makefile.am): Likewise.
76789         * modules/human (Makefile.am): Likewise.
76790         * modules/idcache (Makefile.am): Likewise.
76791         * modules/imaxabs (Makefile.am): Likewise.
76792         * modules/imaxdiv (Makefile.am): Likewise.
76793         * modules/inet_ntop (Makefile.am): Likewise.
76794         * modules/inet_pton (Makefile.am): Likewise.
76795         * modules/inttostr (Makefile.am): Likewise.
76796         * modules/isapipe (Makefile.am): Likewise.
76797         * modules/lchown (Makefile.am): Likewise.
76798         * modules/long-options (Makefile.am): Likewise.
76799         * modules/lstat (Makefile.am): Likewise.
76800         * modules/malloc (Makefile.am): Likewise.
76801         * modules/mathl (Makefile.am): Likewise.
76802         * modules/mbchar (Makefile.am): Likewise.
76803         * modules/md2 (Makefile.am): Likewise.
76804         * modules/md4 (Makefile.am): Likewise.
76805         * modules/md5 (Makefile.am): Likewise.
76806         * modules/memcasecmp (Makefile.am): Likewise.
76807         * modules/memchr (Makefile.am): Likewise.
76808         * modules/memcmp (Makefile.am): Likewise.
76809         * modules/memcoll (Makefile.am): Likewise.
76810         * modules/memcpy (Makefile.am): Likewise.
76811         * modules/memmem (Makefile.am): Likewise.
76812         * modules/memmove (Makefile.am): Likewise.
76813         * modules/mempcpy (Makefile.am): Likewise.
76814         * modules/memrchr (Makefile.am): Likewise.
76815         * modules/memset (Makefile.am): Likewise.
76816         * modules/memxor (Makefile.am): Likewise.
76817         * modules/mkancesdirs (Makefile.am): Likewise.
76818         * modules/mkdir (Makefile.am): Likewise.
76819         * modules/mkdir-p (Makefile.am): Likewise.
76820         * modules/mkdtemp (Makefile.am): Likewise.
76821         * modules/mkstemp (Makefile.am): Likewise.
76822         * modules/mktime (Makefile.am): Likewise.
76823         * modules/modechange (Makefile.am): Likewise.
76824         * modules/mountlist (Makefile.am): Likewise.
76825         * modules/nanosleep (Makefile.am): Likewise.
76826         * modules/openat (Makefile.am): Likewise.
76827         * modules/pagealign_alloc (Makefile.am): Likewise.
76828         * modules/physmem (Makefile.am): Likewise.
76829         * modules/poll (Makefile.am): Likewise.
76830         * modules/posixtm (Makefile.am): Likewise.
76831         * modules/posixver (Makefile.am): Likewise.
76832         * modules/putenv (Makefile.am): Likewise.
76833         * modules/quote (Makefile.am): Likewise.
76834         * modules/quotearg (Makefile.am): Likewise.
76835         * modules/raise (Makefile.am): Likewise.
76836         * modules/read-file (Makefile.am): Likewise.
76837         * modules/readline (Makefile.am): Likewise.
76838         * modules/readlink (Makefile.am): Likewise.
76839         * modules/readtokens (Makefile.am): Likewise.
76840         * modules/readutmp (Makefile.am): Likewise.
76841         * modules/realloc (Makefile.am): Likewise.
76842         * modules/regex (Makefile.am): Likewise.
76843         * modules/rename (Makefile.am): Likewise.
76844         * modules/rename-dest-slash (Makefile.am): Likewise.
76845         * modules/rijndael (Makefile.am): Likewise.
76846         * modules/rmdir (Makefile.am): Likewise.
76847         * modules/rpmatch (Makefile.am): Likewise.
76848         * modules/safe-read (Makefile.am): Likewise.
76849         * modules/safe-write (Makefile.am): Likewise.
76850         * modules/same (Makefile.am): Likewise.
76851         * modules/save-cwd (Makefile.am): Likewise.
76852         * modules/savedir (Makefile.am): Likewise.
76853         * modules/setenv (Makefile.am): Likewise.
76854         * modules/settime (Makefile.am): Likewise.
76855         * modules/sha1 (Makefile.am): Likewise.
76856         * modules/sig2str (Makefile.am): Likewise.
76857         * modules/snprintf (Makefile.am): Likewise.
76858         * modules/stdlib-safer (Makefile.am): Likewise.
76859         * modules/stpcpy (Makefile.am): Likewise.
76860         * modules/stpncpy (Makefile.am): Likewise.
76861         * modules/strcase (Makefile.am): Likewise.
76862         * modules/strcasestr (Makefile.am): Likewise.
76863         * modules/strchrnul (Makefile.am): Likewise.
76864         * modules/strcspn (Makefile.am): Likewise.
76865         * modules/strdup (Makefile.am): Likewise.
76866         * modules/strerror (Makefile.am): Likewise.
76867         * modules/strftime (Makefile.am): Likewise.
76868         * modules/strndup (Makefile.am): Likewise.
76869         * modules/strnlen (Makefile.am): Likewise.
76870         * modules/strpbrk (Makefile.am): Likewise.
76871         * modules/strsep (Makefile.am): Likewise.
76872         * modules/strstr (Makefile.am): Likewise.
76873         * modules/strtod (Makefile.am): Likewise.
76874         * modules/strtoimax (Makefile.am): Likewise.
76875         * modules/strtok_r (Makefile.am): Likewise.
76876         * modules/strtol (Makefile.am): Likewise.
76877         * modules/strtoll (Makefile.am): Likewise.
76878         * modules/strtoul (Makefile.am): Likewise.
76879         * modules/strtoull (Makefile.am): Likewise.
76880         * modules/strtoumax (Makefile.am): Likewise.
76881         * modules/strverscmp (Makefile.am): Likewise.
76882         * modules/time_r (Makefile.am): Likewise.
76883         * modules/timegm (Makefile.am): Likewise.
76884         * modules/tmpfile-safer (Makefile.am): Likewise.
76885         * modules/unistd-safer (Makefile.am): Likewise.
76886         * modules/unlinkdir (Makefile.am): Likewise.
76887         * modules/userspec (Makefile.am): Likewise.
76888         * modules/utime (Makefile.am): Likewise.
76889         * modules/utimecmp (Makefile.am): Likewise.
76890         * modules/utimens (Makefile.am): Likewise.
76891         * modules/vasnprintf (Makefile.am): Likewise.
76892         * modules/vasprintf (Makefile.am): Likewise.
76893         * modules/vsnprintf (Makefile.am): Likewise.
76894         * modules/xalloc (Makefile.am): Likewise.
76895         * modules/xgetcwd (Makefile.am): Likewise.
76896         * modules/xnanosleep (Makefile.am): Likewise.
76897         * modules/xreadlink (Makefile.am): Likewise.
76898         * modules/xstrtod (Makefile.am): Likewise.
76899         * modules/xstrtol (Makefile.am): Likewise.
76900         * modules/xstrtold (Makefile.am): Likewise.
76901         * modules/yesno (Makefile.am): Likewise.
76902
76903 2006-10-12  Jim Meyering  <jim@meyering.net>
76904
76905         * m4/getloadavg.m4: Revert the change below.
76906
76907         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76908         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76909         fail with a symlink, which is what coreutils' ./bootstrap now
76910         creates by default.
76911
76912 2006-10-12  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76915         mingw.
76916         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76917         MSVC and mingw explicitly.
76918
76919 2006-10-11  Simon Josefsson  <jas@extundo.com>
76920             Bruno Haible  <bruno@clisp.org>
76921
76922         Add support for multiple gnulib-tool invocations in the scope of a
76923         single configure.ac file.
76924         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76925         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76926         with the same contents as the _LIBADD variable.
76927         (func_emit_initmacro_start, func_emit_initmacro_end,
76928         func_emit_initmacro_done): New functions.
76929         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76930         gl_LIBOBJS and gl_LTLIBOBJS.
76931
76932 2006-10-11  Bruno Haible  <bruno@clisp.org>
76933
76934         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76935         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76936         autoreconf. Instead, invoke autopoint explicitly but move back the
76937         *.m4 files from gnulib.
76938
76939 2006-10-11  Bruno Haible  <bruno@clisp.org>
76940
76941         * gnulib-tool (func_usage): Make module names after --create-testdir
76942         optional.
76943         (func_create_testdir): If no module was specified, use nearly all
76944         modules.
76945
76946 2006-10-12  Jim Meyering  <jim@meyering.net>
76947
76948         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76949         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76950         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76951         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76952         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76953         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76954         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76955         (fts_set_stat_required): New function.
76956         (fts_open): Defer the calls to fts_stat, if possible or requested.
76957         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76958         into fts_stat itself.
76959         (fts_read): Perform any required (deferred) fts_stat call.
76960         (fts_build): Likewise, for the directory we're about to open and read.
76961         In the readdir loop, carefully decide whether each entry will require
76962         an eventual call to fts_stat, using dirent.d_type info if available.
76963         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76964         a command line argument into this function.  Update all callers.
76965         Map a return value of FTS_DOT to FTS_D for a command line argument.
76966         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76967         Thanks to Miklos Szeredi for his tenacity and for the initial
76968         bug report about "find" failing on a FUSE-based file system.
76969
76970         * lib/fts.c (fts_open): Use consistent indentation.
76971
76972 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76973
76974         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76975         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76976         reported by Jim Meyering.  All uses of cache variables renamed
76977         to match Autoconf's.
76978         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76979         the other one.
76980
76981         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76982         Fix misspelling in diagnostic.
76983
76984 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76987         defined.  Problem reported by Matthew Woehlke.
76988
76989         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76990         Add support for Tandem NonStop R series.
76991         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76992         Use new macro.
76993
76994         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76995         (has_trailing_slash): Omit size arg; all callers changed.
76996         Omit 'inline', since it doesn't help performance and we'd
76997         need to configure it.
76998         Don't count //, ///, etc. as having a trailing slash.
76999         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77000         (rpl_rename_dest_slash): On failure, use rename's errno rather
77001         than (in some cases) an incorrect or junk errno.
77002         Simplify code by removing need to compute length; this does
77003         cause it to make two passes instead of one over the file name,
77004         but it's worth it.
77005
77006         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77007         change, since Autoconf's version may no longer be appropriate now
77008         that we are using CVS Autoconf's version.  Add support for Tandem.
77009
77010 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77011             Bruno Haible  <bruno@clisp.org>
77012
77013         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77014         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77015         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77016         gl_AC_TYPE_LONG_LONG.
77017
77018         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77019         instead of HAVE_LONG_LONG.
77020         * lib/printf-args.c (printf_fetchargs): Likewise.
77021         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77022         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77023         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77024         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77025         gl_AC_TYPE_LONG_LONG.
77026
77027 2006-10-11  Bruno Haible  <bruno@clisp.org>
77028
77029         * m4/longlong.m4: Add comments.
77030         * m4/ulonglong.m4: Likewise.
77031
77032 2006-10-10  Bruno Haible  <bruno@clisp.org>
77033
77034         Make it possible to #define stpcpy, strdup to aliases.
77035         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77036         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77037
77038 2006-10-10  Bruno Haible  <bruno@clisp.org>
77039
77040         Make it possible to #define gcd to an alias.
77041         * lib/gcd.c: Include config.h.
77042
77043 2006-10-10  Bruno Haible  <bruno@clisp.org>
77044
77045         Make it possible to #define c_isascii to an alias.
77046         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77047         defined. Undefine the macros before defining them, to avoid gcc
77048         warnings.
77049         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77050         define NO_C_CTYPE_MACROS early.
77051
77052 2006-10-10  Bruno Haible  <bruno@clisp.org>
77053
77054         Make it possible to #define set_program_name to an alias.
77055         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77056         ENABLE_RELOCATABLE early.
77057
77058 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77061         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77062         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77063         More generally, don't assume that 64-bit signed int is available
77064         if unsigned int is, and vice versa.
77065         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77066         unsigned symbols, not on their signed counterparts.
77067         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77068         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77069         (UINT64_C, UINTMAX_C):
77070         Likewise.
77071         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77072         unsigned counterparts.
77073         (Have_long_long, Unsigned): New macros.
77074         (Int): Renamed from INT.
77075         (strtoimax): Use the new macros.
77076         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77077         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77078         * modules/inttypes (inttypes.h): Substitute
77079         HAVE_UNSIGNED_LONG_LONG_INT.
77080         * modules/stdint (stdint.h): Likewise.
77081         (Files): Add m4/ulonglong.m4.
77082
77083 2006-10-10  Bruno Haible  <bruno@clisp.org>
77084
77085         Fix a gcc -Wshadow warning.
77086         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77087         to 'bucket'.
77088         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77089         gl_linked_indexof_from_to): Likewise.
77090         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77091         Likewise.
77092         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77093         Likewise.
77094         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77095         Reported by Eric Blake.
77096
77097 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77098
77099         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77100         for NetBSD.  Problem reported by Bruno Haible.
77101
77102 2006-10-09  Jim Meyering  <jim@meyering.net>
77103
77104         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77105         Patch from Bruno Haible.
77106
77107 2006-10-09  Jim Meyering  <jim@meyering.net>
77108
77109         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77110         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77111         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77112
77113 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         Don't include <config.h> twice; this doesn't work in some cases,
77116         e.g., when config.h has "#define intmax_t long long int" and
77117         we include <config.h>, <inttypes.h>, <config.h> in that order.
77118         Problem reported by Matthew Woehlke in:
77119         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77120         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77121         * lib/fts-cycle.c: Don't include config.h.
77122         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77123         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77124         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77125         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77126         inttypes.h.
77127         * lib/xstrtoumax.c: Likewise.
77128         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77129         __strtol and the like, so that this module is more like its siblings.
77130         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77131         Remove; no longer needed now that we assume gnulib inttypes.h.
77132
77133 2006-10-08  Bruno Haible  <bruno@clisp.org>
77134
77135         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77136         option.
77137
77138 2006-10-07  Jim Meyering  <jim@meyering.net>
77139
77140         * modules/inttypes (inttypes.h): Revert what seems to have been
77141         an inadvertent part of today's change: use "|", not "/" in the
77142         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77143
77144 2006-10-07  Bruno Haible  <bruno@clisp.org>
77145
77146         * modules/sublist: New file.
77147
77148 2006-10-07  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77151         * modules/argz (argz.h): Likewise.
77152         * modules/arpa_inet (arpa/inet.h): Likewise.
77153         * modules/byteswap (byteswap.h): Likewise.
77154         * modules/configmake (configmake.h): Likewise.
77155         * modules/fcntl (fcntl.h): Likewise.
77156         * modules/fnmatch (fnmatch.h): Likewise.
77157         * modules/getopt (getopt.h): Likewise.
77158         * modules/glob (glob.h): Likewise.
77159         * modules/inttypes (inttypes.h): Likewise.
77160         * modules/netinet_in (netinet/in.h): Likewise.
77161         * modules/poll (poll.h): Likewise.
77162         * modules/stdbool (stdbool.h): Likewise.
77163         * modules/stdint (stdint.h): Likewise.
77164         * modules/sys_select (sys/select.h): Likewise.
77165         * modules/sys_socket (sys/socket.h): Likewise.
77166         * modules/sys_stat (sys/stat.h): Likewise.
77167         * modules/sysexits (sysexits.h): Likewise.
77168         * modules/unistd (unistd.h): Likewise.
77169         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77170         Add a "DO NOT EDIT" comment to the generated file.
77171         (func_import): Likewise for gnulib-comp.m4.
77172
77173 2006-10-07  Bruno Haible  <bruno@clisp.org>
77174
77175         * lib/gl_sublist.h: New file.
77176         * lib/gl_sublist.c: New file.
77177
77178 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77181         name (relative to the original working directory) and the file
77182         name component (relative to the temporary working directory).  All
77183         callers changed.
77184         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77185         * lib/mkdir-p.c (make_dir_parents): Likewise.
77186         * lib/mkdir-p.h (make_dir_parents): Likewise.
77187
77188 2006-10-06  Eric Blake  <ebb9@byu.net>
77189
77190         Define several macros for use by the clean-temp module.
77191         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77192         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77193         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77194
77195         * lib/clean-temp.h (close_stream_temp): New declaration.
77196         * lib/clean-temp.c (includes): Pull in headers according to what
77197         other modules are in use.
77198         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77199
77200 2006-10-06  Bruno Haible  <bruno@clisp.org>
77201
77202         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77203         instead of fopen, fwriteerror.
77204
77205 2006-10-06  Bruno Haible  <bruno@clisp.org>
77206
77207         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77208         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77209         int.
77210         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77211         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77212         Return an error indicator.
77213         Suggested by Eric Blake.
77214
77215 2006-10-06  Bruno Haible  <bruno@clisp.org>
77216
77217         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77218         Reported by Eric Blake.
77219
77220 2006-10-06  Bruno Haible  <bruno@clisp.org>
77221
77222         * modules/closeout (Description): Mention stderr too.
77223
77224 2006-10-06  Bruno Haible  <bruno@clisp.org>
77225         and Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         * lib/closeout.c (close_stdout): Also close stderr.
77228         * lib/closeout.h: Update comment.
77229
77230 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77231
77232         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77233         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77234         * lib/dirchownmod.c: Include lchown.h.
77235         * lib/lchown.c: Don't include files that lchown.h now includes.
77236         Don't declare chown, since lchown.h now does that.
77237         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77238         (lchown): Define to rpl_chown if lchown is declared but
77239         does not exist.  Declare using a prototype if lchown is not
77240         declared.  Add a copyright notice.
77241         * lib/mkstemp.h: Include <unistd.h>.
77242         * lib/openat.c: Include lchown.h.
77243
77244         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77245         we now test for that separately.
77246         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77247         rather than O_NOFOLLOW, when testing whether it's possible to
77248         avoid a race condition reliably.
77249         * lib/savewd.c (savewd_chdir): Likewise.
77250
77251         Remove macros that are no longer needed now that stdint.h is
77252         reliable.
77253         * lib/fsusage.c (UINTMAX_MAX): Remove.
77254         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77255         * lib/utimecmp.c (SIZE_MAX): Remove.
77256
77257         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77258
77259         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77260         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77261         O_NOATIME works.
77262
77263 2006-10-05  Bruno Haible  <bruno@clisp.org>
77264
77265         * lib/gl_list.h (gl_sortedlist_search_from_to,
77266         gl_sortedlist_indexof_from_to): New declarations.
77267         (gl_list_implementation): New fields sortedlist_search_from_to,
77268         sortedlist_indexof_from_to.
77269         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77270         inline functions.
77271         * lib/gl_list.c (gl_sortedlist_search_from_to,
77272         gl_sortedlist_indexof_from_to): New functions.
77273         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77274         function.
77275         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77276         (gl_array_sortedlist_search_from_to): New function.
77277         (gl_array_list_implementation): Update.
77278         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77279         function.
77280         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77281         (gl_carray_sortedlist_search_from_to): New function.
77282         (gl_carray_list_implementation): Update.
77283         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77284         gl_linked_sortedlist_indexof_from_to): New functions.
77285         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77286         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77287         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77288         gl_tree_sortedlist_indexof_from_to): New functions.
77289         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77290         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77291         Update.
77292         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77293         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77294         Update.
77295
77296 2006-10-05  Bruno Haible  <bruno@clisp.org>
77297
77298         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77299         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77300         (struct gl_list_implementation): Add fields search_from_to,
77301         indexof_from_to. Remove fields search, indexof.
77302         (gl_list_search): Use the search_from_to method.
77303         (gl_list_search_from, gl_list_search_from_to): New functions.
77304         (gl_list_indexof): Use the indexof_from_to method.
77305         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77306         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77307         (gl_list_search_from, gl_list_search_from_to): New functions.
77308         (gl_list_indexof): Use the indexof_from_to method.
77309         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77310         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77311         gl_array_indexof. Add start_index, end_index arguments.
77312         (gl_array_search_from_to): Renamed from gl_array_search. Add
77313         start_index, end_index arguments.
77314         (gl_array_remove, gl_array_list_implementation): Update.
77315         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77316         gl_carray_indexof. Add start_index, end_index arguments.
77317         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77318         start_index, end_index arguments.
77319         (gl_carray_remove, gl_carray_list_implementation): Update.
77320         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77321         gl_linked_search. Add start_index, end_index arguments.
77322         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77323         start_index, end_index arguments.
77324         (gl_linked_remove): Update.
77325         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77326         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77327         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77328         field to 'size_t'.
77329         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77330         gl_tree_search. Add start_index, end_index arguments.
77331         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77332         start_index, end_index arguments.
77333         (gl_tree_remove): Update.
77334         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77335         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77336         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77337         function.
77338         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77339         gl_tree_search. Add start_index, end_index arguments.
77340         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77341         start_index, end_index arguments.
77342         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77343         Update.
77344         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77345
77346 2006-10-05  Bruno Haible  <bruno@clisp.org>
77347
77348         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77349
77350         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77351         fwriteerror_temp): New declarations.
77352         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77353         (descriptors): New variable.
77354         (cleanup): First, close the descriptors.
77355         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77356         fclose_temp, fwriteerror_temp): New functions.
77357
77358 2006-10-04  Jim Meyering  <jim@meyering.net>
77359
77360         * lib/fts.c (fts_open): Tiny comment change.
77361
77362 2006-10-04  Bruno Haible  <bruno@clisp.org>
77363
77364         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77365         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77366         gl_LOCK_BODY.
77367         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77368         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77369         gl_LOCK_EARLY_BODY.
77370         (gl_LOCK): Require gl_LOCK_BODY.
77371
77372 2006-10-04  Bruno Haible  <bruno@clisp.org>
77373
77374         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77375         (gl_oset_search_atleast): New declaration.
77376         (struct gl_oset_implementation): Add field 'search_atleast'.
77377         (gl_oset_search_atleast): New inline function.
77378         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77379         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77380         (gl_array_oset_implementation): Update.
77381         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77382         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77383         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77384
77385 2006-10-04  Bruno Haible  <bruno@clisp.org>
77386
77387         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77388
77389 2006-10-03  Bruno Haible  <bruno@clisp.org>
77390
77391         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77392         from gl_avltreehash_list_implementation.
77393
77394 2006-10-03  Bruno Haible  <bruno@clisp.org>
77395
77396         * lib/gl_oset.c (gl_oset_add): Fix return type.
77397
77398 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77399
77400         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77401
77402 2006-10-02  Eric Blake  <ebb9@byu.net>
77403
77404         * modules/strnlen (Depends-on): Add extensions.
77405
77406 2006-10-02  Eric Blake  <ebb9@byu.net>
77407
77408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77409         definition in 2.60+.
77410
77411 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77412
77413         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77414         checks.
77415
77416 2006-10-02  Bruno Haible  <bruno@clisp.org>
77417
77418         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77419         to the AUTOMAKE_OPTIONS.
77420         Reported by Jim Meyering.
77421
77422 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77423
77424         Work around bug in Solaris 10 /proc file system:
77425         /proc/self/fd/NNN/.. isn't the parent directory of
77426         the directory whose file descriptor is NNN.  This needs to
77427         be worked around at run time, not compile time, since a
77428         program might be built on Solaris 8, where things work, and
77429         run on Solaris 10.
77430         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77431         to use the following interface instead:
77432         (OPENAT_BUFFER_SIZE): New macro.
77433         (openat_proc_name): New function.
77434         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77435         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77436         Likewise.
77437         * lib/openat-proc.c: New file.
77438         * modules/openat (Files): Add lib/openat-proc.c.
77439         (Depends-on): Add same-inode, stdbool.
77440         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77441
77442 2006-09-29  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77445         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77446         argument. Set stdout_closed before testing for ferror, not after.
77447         (fwriteerror, fwriteerror_no_ebadf): New functions.
77448
77449 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77450
77451         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77452
77453 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77454
77455         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77456         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77457
77458 2006-09-28  Jim Meyering  <jim@meyering.net>
77459
77460         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77461         Include <unistd.h>.
77462
77463 2006-09-28  Bruno Haible  <bruno@clisp.org>
77464
77465         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77466         * modules/linkedhash-list (Depends-on): Likewise.
77467         * modules/rbtreehash-list (Depends-on): Likewise.
77468
77469 2006-09-28  Bruno Haible  <bruno@clisp.org>
77470
77471         * lib/strndup.h: Simplify the redefinition of strndup.
77472         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77473         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77474
77475 2006-09-28  Bruno Haible  <bruno@clisp.org>
77476
77477         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77478         * lib/gl_linkedhash_list.c: Likewise.
77479         * lib/gl_rbtreehash_list.c: Likewise.
77480
77481 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77484         getaddrinfo.
77485
77486         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77487         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77488         it causes <stdio_ext.h> to cause a compile-time error.
77489         Problem reported by Nelson H. F. Beebe.
77490         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77491         of HAVE_DECL___PENDING.
77492
77493         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77494         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77495         declaration.
77496
77497 2006-09-27  Jim Meyering  <jim@meyering.net>
77498
77499         This file could end up with a definition for a function
77500         named __strndup, rather than rpl_strndup on a system with
77501         incomplete weak_alias support.
77502         * lib/strndup.c (strndup): Rename from __strndup.
77503         Remove #defines that used to map __strndup to strndup.
77504         Don't use K&R prototypes.
77505         Remove LIBC-related code, since this file is not sync'd with glibc.
77506         * lib/strndup.h: Revamp, accordingly.
77507         * m4/strndup.m4: Modernize.
77508
77509 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * modules/savewd (Depends-on): Add 'raise'.
77512         * lib/savewd.c: Include <signal.h>, for 'raise'.
77513
77514 2006-09-26  Jim Meyering  <jim@meyering.net>
77515
77516         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77517         when we detect Darwin 8.7.0's acl_get_file bug.
77518         Rearrange to perform the new (below) run-test while $LIBS
77519         contains any acl-related library.  Set USE_ACL at the end.
77520         (gl_ACL_GET_FILE): New function.
77521
77522 2006-09-26  Eric Blake  <ebb9@byu.net>
77523
77524         * lib/verror.c: Include <config.h> unconditionally.
77525
77526 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         * modules/clock-time (Maintainer): Add self.
77529         * modules/getlogin_r (Depends-on): Add extensions.
77530
77531 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77532
77533         * modules/clock-time: New module.
77534         * modules/nanosleep (Depends-on): Add clock-time.
77535         * modules/gethrxtime (Depends-on): Likewise.
77536         * modules/gettime (Depends-on): Likewise.
77537         * modules/settime (Depends-on): Likewise.
77538
77539         * modules/fts-lgpl: Depend on openat.
77540         * modules/mkancesdirs: Depend on savewd.
77541         * modules/mkdir-p: Likewise.
77542
77543 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77544
77545         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77546
77547         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77548         `gl_have_arbitrary_file_name_length_limit' to
77549         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77550         actually works between configure runs.
77551
77552 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77553             Bruno Haible  <bruno@clisp.org>
77554
77555         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77556
77557 2006-09-25  Jim Meyering  <jim@meyering.net>
77558
77559         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77560         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77561
77562 2006-09-25  Eric Blake  <ebb9@byu.net>
77563
77564         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77565         exec's in 2006-09-18 patch when shuffling fds.
77566
77567 2006-09-25  Bruno Haible  <bruno@clisp.org>
77568
77569         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77570         Reported by Jim Meyering.
77571
77572 2006-09-24  Jim Meyering  <jim@meyering.net>
77573
77574         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77575         compare a pointer against a literal "0".  That caused failures with
77576         at least HP-UX's hpcc.
77577
77578 2006-09-22  Simon Josefsson  <jas@extundo.com>
77579
77580         * modules/gc-sha1:
77581         * modules/gc-md4:
77582         * modules/gc-hmac-sha1:
77583         * modules/gc-hmac-md5:
77584         * modules/gc-des:
77585         * modules/gc-arcfour: Distribute more files.
77586
77587 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77588
77589         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77590         (gl_linked_iterator_from_to): Initialize struct completely.
77591         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77592         (gl_tree_iterator_from_to): Likewise
77593         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77594         * lib/gl_array_list.c [lint] (gl_array_iterator)
77595         (gl_array_iterator_from_to): Likewise.
77596         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77597         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77598         (gl_carray_iterator_from_to): Likewise.
77599
77600         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77601         * lib/md4.c (md4_process_block): Remove unused variable.
77602         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77603         parentheses for clarity.
77604
77605 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77606
77607         * modules/bison-i18n (Depends-on): Add gettext.
77608
77609 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77610
77611         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77612         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77613         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77614         also add missing comma that caused broken test.
77615         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77616         stdlib.h, for `abort'.
77617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77618         variables.
77619         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77620         include unistd.h if present, for `rmdir'.
77621         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77622         variables.
77623         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77624         in the process include standard headers for prototypes.
77625         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77626         gets declared on GNU/Linux.
77627         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77628         unistd.h, for `rmdir'.
77629         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77630
77631         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77632         always true.
77633         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77634
77635         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77636
77637 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77638
77639         * gnulib-tool (func_version): Create output all at once.  This
77640         may help avoid triggering unnecessary SIGPIPEs, and at any
77641         rate it doesn't hurt.
77642
77643 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77644             Bruno Haible  <bruno@clisp.org>
77645
77646         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77647         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77648         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77649
77650         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77651         (gl_FUNC_VASPRINTF): Invoke it.
77652
77653 2006-09-22  Bruno Haible  <bruno@clisp.org>
77654
77655         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77656         getloadavg.c as first argument.
77657
77658 2006-09-22  Bruno Haible  <bruno@clisp.org>
77659
77660         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77661         at the beginning of the gl_INIT macro.
77662         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77663         gl_GETLOADAVG.
77664
77665 2006-09-22  Bruno Haible  <bruno@clisp.org>
77666
77667         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77668         module.
77669         Suggested by Ralf Wildenhues.
77670
77671 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         Import this patch from libc:
77674
77675         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77676
77677         * lib/regex_internal.c (re_string_reconstruct): Handle
77678         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77679         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77680         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77681         re_string_context_at.
77682
77683         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77684         now requires it.
77685         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77686         gl_REGEX now does it for us.
77687         (gl_REGEX): Add test taken from
77688         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77689
77690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77691         Check that large offsets work.  Modernize Autoconf usages.
77692         Prefer "yes" to mean a good thing rather than a bad.
77693         Don't put "#define mkstemp" in config.h, as this might interfere
77694         with standard system headers that "#define mkstemp mkstemp64".
77695
77696         * modules/mkstemp (Depends-on): Add extensions, so that
77697         mkstemp is visible on some platforms.
77698         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77699         (Include): Change to "mkstemp.h" from <stdlib.h>.
77700         (Files): Add mkstemp.h.
77701
77702         * lib/mkstemp.h: New file, since some standard headers
77703         #define mkstemp.
77704         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77705         Include "mkstemp.h".
77706         Make the _LIBC code resemble glibc original more,
77707         e.g., use K&R style.
77708         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77709         (mkstemp): Remove, since mkstemp.h does this for us.
77710         * lib/stdlib--.h: Include mkstemp.h.
77711
77712         Import this patch from libc:
77713
77714         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77715
77716         * lib/tempname.c (__gen_tempname): Change attempts_min
77717         into a macro.  Use preprocessor to decide how to initialize
77718         attempts [Coverity CID 67].
77719
77720 2006-09-20  Bruno Haible  <bruno@clisp.org>
77721
77722         * lib/mkdtemp.c: Import from libc.
77723         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77724                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77725                 attempts_min into a macro.  Use preprocessor to decide how to
77726                 initialize attempts [Coverity CID 67].
77727         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77728                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77729                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77730
77731 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77732
77733         * gnulib-tool (func_exit): New function, to allow to pass the
77734         exit status portably through the trap.  Use everywhere.
77735         (--help, --version): Signal a write error.
77736         (trap): catch SIGPIPE, for write errors.
77737         Exit at the end of the trap, with the correct exit status.
77738
77739 2006-09-19  Karl Berry  <karl@gnu.org>
77740
77741         * doc/gnulib.texi: note about the license texinfo files.
77742
77743 2006-09-19  Eric Blake  <ebb9@byu.net>
77744
77745         * gnulib-tool: Avoid space-tab.
77746
77747 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77750         that prevented coreutils 6.1 from building.  Problem reported
77751         by Petter Reinholdtsen.
77752
77753 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         * gnulib-tool (avoidlist): Fix typo that broke options like
77756         --avoid=lock that are used by coreutils bootstrap.
77757
77758 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77759
77760         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77761         more systematically.
77762
77763 2006-09-18  Jim Meyering  <jim@meyering.net>
77764
77765         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77766
77767 2006-09-18  Bruno Haible  <bruno@clisp.org>
77768
77769         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77770
77771 2006-09-18  Bruno Haible  <bruno@clisp.org>
77772
77773         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77774         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77775         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77776         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77777         * m4/gettext.m4: Require autoconf >= 2.52.
77778         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77779         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77780         of gl_cv_header_inttypes_h.
77781
77782 2006-09-18  Bruno Haible  <bruno@clisp.org>
77783
77784         * lib/javaversion.c: Include configmake.h.
77785
77786 2006-09-18  Bruno Haible  <bruno@clisp.org>
77787
77788         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77789         avoid that the while loops be executed in a subshell.
77790
77791 2006-09-18  Bruno Haible  <bruno@clisp.org>
77792
77793         * MODULES.html.sh (func_module): Break long lines.
77794         Suggested by Bruce Korb <bkorb@gnu.org>.
77795
77796 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77797
77798         Speed up by a factor of 1.12.
77799         * gnulib-tool (nl): New variable.
77800         (func_import): Rewrite include directive extraction to only read each
77801         directive once.
77802
77803 2006-09-17  Bruno Haible  <bruno@clisp.org>
77804
77805         * modules/javaversion (Makefile.am): Remove DEFS setting.
77806         (Depends-on): Add configmake, for PKGDATADIR definition.
77807
77808 2006-09-17  Bruno Haible  <bruno@clisp.org>
77809
77810         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77811
77812 2006-09-17  Bruno Haible  <bruno@clisp.org>
77813
77814         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77815         (func_modules_transitive_closure, func_modules_add_dummy,
77816         func_modules_to_filelist, func_import, func_create_testdir,
77817         func_create_megatestdir, ...): Use it wherever possible.
77818         Suggested by Ralf Wildenhues.
77819
77820 2006-09-16  Karl Berry  <karl@gnu.org>
77821
77822         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77823         to avoid sectioning errors.
77824         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77825         [ifinfo]: blank line after @center-ed titles.
77826         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77827         Spell FSF address consistently with others.
77828         (These changes approved by rms.)
77829
77830 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77831
77832         Speed up by a factor of 1.61.
77833         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77834         already checked module names again.
77835
77836 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77837
77838         Speed up by a factor of 1.13.
77839         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77840         for new_files, and the input to func_add_or_update.
77841
77842 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77843
77844         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77845         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77846
77847 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * modules/mkancesdirs (Depends-on): Add fcntl.
77850         * modules/savewd: New file.
77851         * MODULES.html.sh (File system functions): Add savewd.
77852
77853         * modules/configmake (Makefile.am): Add support for the
77854         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77855
77856 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * m4/savewd.m4: New file.
77859
77860 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77863         (dirchownmod): New arg FD.  All callers changed.
77864         Use FD rather than opening the directory ourself, as opening is
77865         now the caller's responsibility.
77866         * lib/dirchownmod.h: Likewise.
77867         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77868         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77869         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77870         (test_dir): Remove.
77871         (mkancesdirs): Return length of prefix of FILE that has already
77872         been made, or -2 if there is a child doing the work.  Redo
77873         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77874         ".", and treat ".." specially since it might stray back into
77875         already-created areas.  Use a subprocess if necessary.  New arg
77876         WD; all users changed.  MAKE_DIR function should now return 1
77877         if it creates a directory that is not readable.  Return -2 if
77878         a child process is spun off.
77879         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77880         Adjust signature to match code.
77881         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77882         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77883         all users changed.
77884         * lib/savewd.c, lib/savewd.h: New files.
77885
77886 2006-09-15  Jim Meyering  <jim@meyering.net>
77887
77888         * modules/rename-dest-slash: New module.
77889         * MODULES.html.sh (posix_compat): Add it here.
77890
77891         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77892
77893 2006-09-15  Jim Meyering  <jim@meyering.net>
77894
77895         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77896         file.
77897
77898         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77899
77900 2006-09-15  Jim Meyering  <jim@meyering.net>
77901
77902         * lib/rename-dest-slash.c (has_trailing_slash): Use
77903         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77904         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77905         test before testing whether SRC is a directory.
77906         Suggestions from Bruno Haible.
77907
77908         Avoid a warning about an unused variable.
77909         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77910         into the #ifdef block where it's used.
77911
77912         * lib/rename-dest-slash.c: New file.
77913
77914 2006-09-14  Bruno Haible  <bruno@clisp.org>
77915
77916         * lib/allocsa.c: Include <config.h> unconditionally.
77917         * lib/asnprintf.c: Likewise.
77918         * lib/asprintf.c: Likewise.
77919         * lib/c-strcasecmp.c: Likewise.
77920         * lib/c-strcasestr.c: Likewise.
77921         * lib/c-strncasecmp.c: Likewise.
77922         * lib/c-strstr.c: Likewise.
77923         * lib/classpath.c: Likewise.
77924         * lib/clean-temp.c: Likewise.
77925         * lib/concatpath.c: Likewise.
77926         * lib/copy-file.c: Likewise.
77927         * lib/csharpcomp.c: Likewise.
77928         * lib/csharpexec.c: Likewise.
77929         * lib/execute.c: Likewise.
77930         * lib/fatal-signal.c: Likewise.
77931         * lib/findprog.c: Likewise.
77932         * lib/fwriteerror.c: Likewise.
77933         * lib/gl_array_list.c: Likewise.
77934         * lib/gl_array_oset.c: Likewise.
77935         * lib/gl_avltree_list.c: Likewise.
77936         * lib/gl_avltree_oset.c: Likewise.
77937         * lib/gl_avltreehash_list.c: Likewise.
77938         * lib/gl_carray_list.c: Likewise.
77939         * lib/gl_linked_list.c: Likewise.
77940         * lib/gl_linkedhash_list.c: Likewise.
77941         * lib/gl_list.c: Likewise.
77942         * lib/gl_oset.c: Likewise.
77943         * lib/gl_rbtree_list.c: Likewise.
77944         * lib/gl_rbtree_oset.c: Likewise.
77945         * lib/gl_rbtreehash_list.c: Likewise.
77946         * lib/imaxabs.c: Likewise.
77947         * lib/imaxdiv.c: Likewise.
77948         * lib/javacomp.c: Likewise.
77949         * lib/javaexec.c: Likewise.
77950         * lib/javaversion.c: Likewise.
77951         * lib/linebreak.c: Likewise.
77952         * lib/localcharset.c: Likewise.
77953         * lib/lock.c: Likewise.
77954         * lib/mbchar.c: Likewise.
77955         * lib/mbswidth.c: Likewise.
77956         * lib/mkdtemp.c: Likewise.
77957         * lib/pipe.c: Likewise.
77958         * lib/printf-args.c: Likewise.
77959         * lib/printf-parse.c: Likewise.
77960         * lib/progname.c: Likewise.
77961         * lib/progreloc.c: Likewise.
77962         * lib/readlink.c: Likewise.
77963         * lib/sh-quote.c: Likewise.
77964         * lib/stpcpy.c: Likewise.
77965         * lib/stpncpy.c: Likewise.
77966         * lib/strcasecmp.c: Likewise.
77967         * lib/strcasestr.c: Likewise.
77968         * lib/strcspn.c: Likewise.
77969         * lib/striconv.c: Likewise.
77970         * lib/strncasecmp.c: Likewise.
77971         * lib/strnlen1.c: Likewise.
77972         * lib/strstr.c: Likewise.
77973         * lib/strtok_r.c: Likewise.
77974         * lib/tls.c: Likewise.
77975         * lib/tmpdir.c: Likewise.
77976         * lib/unicodeio.c: Likewise.
77977         * lib/unsetenv.c: Likewise.
77978         * lib/vasnprintf.c: Likewise.
77979         * lib/vasprintf.c: Likewise.
77980         * lib/wait-process.c: Likewise.
77981         * lib/xallocsa.c: Likewise.
77982         * lib/xsetenv.c: Likewise.
77983         * lib/xstriconv.c: Likewise.
77984
77985 2006-09-13  Simon Josefsson  <jas@extundo.com>
77986
77987         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77988         that internally, suggested by Ralf Wildenhues
77989         <Ralf.Wildenhues@gmx.de>.
77990
77991 2006-09-13  Simon Josefsson  <jas@extundo.com>
77992
77993         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77994         @LIBOBJS@.
77995         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77996
77997 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77998
77999         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78000         longer worry about uses that don't define HAVE_CONFIG_H.
78001         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78002         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78003         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78004         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78005         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78006         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78007         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78008         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78009         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78010         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78011         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78012         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78013         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78014         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78015         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78016         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78017         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78018         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78019         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78020         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78021         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78022         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78023         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78024         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78025         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78026         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78027         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78028         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78029         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78030         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78031         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78032         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78033         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78034         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78035         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78036         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78037         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78038         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78039         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78040         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78041         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78042         Likewise.
78043
78044 2006-09-13  Eric Blake  <ebb9@byu.net>
78045
78046         * lib/getopt.c: Fix typo in last commit.
78047
78048 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78049
78050         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78051         dgettext.
78052
78053 2006-09-12  Jim Meyering  <jim@meyering.net>
78054
78055         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78056         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78057         Reported by Nelson H. F. Beebe.
78058
78059 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78060
78061         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78062         program_invocation_name and program_invocation_short_name are
78063         initialized.
78064         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78065         and program_invocation_short_name to argp.h, so they are visible
78066         to user programs.
78067         * lib/argp.h: Likewise
78068
78069 2006-09-10  Bruno Haible  <bruno@clisp.org>
78070
78071         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78072         m4/inttypes_h.m4, m4/uintmax_t.m4.
78073
78074 2006-09-10  Bruno Haible  <bruno@clisp.org>
78075
78076         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78077         gl_AC_TYPE_UINTMAX_T.
78078
78079 2006-09-10  Bruno Haible  <bruno@clisp.org>
78080
78081         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78082
78083 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78084
78085         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78086         convention.  Text proposed by Bruno Haible.
78087         (struct argp_option): Document the use of N_() wrappers.
78088
78089         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78090         '\v', and translate the two parts separately, instead of feeding
78091         the whole string to gettext.  This allows to exclude
78092         '\v' from the strings visible to the translator by writing doc
78093         strings as N_("..") "\v" N_("..").
78094
78095 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * config/srclist.txt: Undo latest change; the bug was fixed.
78098
78099 2006-09-09  Bruno Haible  <bruno@clisp.org>
78100
78101         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78102         assignments if building a library without libtool.
78103         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78104         in func_emit_lib_Makefile_am.
78105         (func_import): When building a static library libfoo.a, arrange to
78106         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78107         (func_create_testdir): Likewise.
78108         * modules/gc (configure.ac, Makefile.am): If building statically,
78109         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78110         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78111         * modules/striconv (configure.ac, Makefile.am): Likewise.
78112         Based on a suggestion by Ralf Wildenhues.
78113
78114 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78117         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78118         Also:
78119
78120         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78121         Add year_2050_test to catch glibc bug 2821
78122         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78123
78124         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78125         Prefer #ifdef to #if.
78126
78127         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78128         Return from 'main' instead of calling 'exit'.
78129
78130 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78131
78132         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78133         returned the maximum time_t value rather than (time_t) -1.
78134         Problem originally reported by William Bardwell
78135         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78136
78137         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78138         Moved to here ...
78139         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78140         ... from here.
78141
78142 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78145         2821 is fixed.
78146
78147 2006-09-08  Jim Meyering  <jim@meyering.net>
78148
78149         Don't make generated files read-only.  That would bother too many
78150         people.  However, do retain the ability to work when targets are
78151         read-only: remove the destination and temporary files before writing
78152         them (when generated via sed or echo), or by using the -f option for
78153         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78154         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78155         * modules/byteswap, modules/configmake, modules/fcntl:
78156         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78157         * modules/localcharset, modules/netinet_in, modules/poll:
78158         * modules/stdbool, modules/stdint, modules/sys_select:
78159         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78160
78161 2006-09-08  Jim Meyering  <jim@meyering.net>
78162
78163         Avoid new build failure on FreeBSD 6.0.
78164         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78165         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78166         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78167
78168 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78169
78170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78171
78172 2006-09-07  Jim Meyering  <jim@meyering.net>
78173
78174         Fix global typo in last change: use chmod u-w, not chmod u-x.
78175         Spotted by Paul Eggert and Bruce Korb.
78176         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78177         * modules/byteswap, modules/configmake, modules/fcntl:
78178         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78179         * modules/localcharset, modules/netinet_in, modules/poll:
78180         * modules/stdbool, modules/stdint, modules/sys_select:
78181         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78182
78183 2006-09-06  Jim Meyering  <jim@meyering.net>
78184
78185         Make generated files be read-only.
78186         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78187         Ensure that each generated file is now read-only.
78188         * modules/argz: Likewise.
78189         * modules/arpa_inet: Likewise.
78190         * modules/byteswap: Likewise.
78191         * modules/configmake: Likewise.
78192         * modules/fcntl: Likewise.
78193         * modules/fnmatch: Likewise.
78194         * modules/getopt: Likewise.
78195         * modules/glob: Likewise.
78196         * modules/inttypes: Likewise.
78197         * modules/netinet_in: Likewise.
78198         * modules/poll: Likewise.
78199         * modules/stdbool: Likewise.
78200         * modules/stdint: Likewise.
78201         * modules/sys_select: Likewise.
78202         * modules/sys_socket: Likewise.
78203         * modules/sys_stat: Likewise.
78204         * modules/sysexits: Likewise.
78205         * modules/localcharset: Same as above, but continue using temporary
78206         file named "t-$@" (why different?) rather than the "$@-t" used
78207         everywhere else.
78208
78209         * modules/sysexits (Makefile.am): Replace literal occurrences
78210         of "sysexit.h" more readable, and more consistent, "$@".
78211
78212 2006-09-06  Bruno Haible  <bruno@clisp.org>
78213
78214         * modules/striconv: New file.
78215         * modules/xstriconv: New file.
78216         * MODULES.html.sh (Internationalization functions): Add striconv,
78217         xstriconv.
78218
78219 2006-09-06  Bruno Haible  <bruno@clisp.org>
78220
78221         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78222         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78223         not using libtool correctly.
78224
78225 2006-09-06  Bruno Haible  <bruno@clisp.org>
78226
78227         * lib/striconv.h: New file.
78228         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78229         iconvstring.c.
78230         * lib/xstriconv.h: New file.
78231         * lib/xstriconv.c: New file.
78232
78233 2006-09-06  Bruno Haible  <bruno@clisp.org>
78234
78235         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78236         lib_..._LDFLAGS.
78237
78238 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78239
78240         * lib/argz_.h: Sync from Libtool.
78241
78242         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78243                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78244
78245         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78246
78247 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78248
78249         * modules/trim: New file.
78250
78251 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78252
78253         * lib/trim.h: New file.
78254         * lib/trim.c: New file.
78255
78256 2006-09-05  Bruno Haible  <bruno@clisp.org>
78257
78258         * MODULES.html.sh (String handling): Add trim.
78259
78260 2006-09-04  Karl Berry  <karl@gnu.org>
78261
78262         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78263         until next release.
78264
78265 2006-09-03  Bruno Haible  <bruno@clisp.org>
78266
78267         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78268         correctly.
78269
78270 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78271
78272         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78273         not gl_GETLOADAVG.  Omit unneeded semicolons.
78274         Problems reported by Ralf Wildenhues in
78275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78276         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78277         at the end, which is the usual gnulib style.
78278
78279         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78280         of doing all the work ourselves.
78281         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78282         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78283
78284 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78287         Problem reported by Ralf Wildenhues in
78288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78289
78290         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78291         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78292
78293 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78294
78295         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78296         yesterday's patch by changing test -n to test -z.
78297
78298 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78299
78300         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78301         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78302         the former is now obsolescent.
78303
78304         * modules/chdir-long (Depends-on): Add fcntl.
78305
78306 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78309         obsolescent, and programs should use gnulib instead.
78310         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78311         but with prefixes changed.
78312
78313 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78314
78315         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78316         or stdbool.h, because they might not exist while configuring.
78317
78318         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78319         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78320         does that for us.
78321         (O_DIRECTORY): Remove.
78322
78323 2006-08-31  Eric Blake  <ebb9@byu.net>
78324
78325         * gnulib-tool: Don't let emacs change spaces to TAB.
78326
78327 2006-08-31  Bruno Haible  <bruno@clisp.org>
78328
78329         * gnulib-tool: When calling func_import more than once, do it in a
78330         subshell.
78331         Reported by Eric Blake <ebb9@byu.net>.
78332
78333 2006-08-31  Bruno Haible  <bruno@clisp.org>
78334
78335         * gnulib-tool (nl): Remove variable.
78336         (sed_transform_lib_file): Use more robust test for config-h module.
78337         (func_import): Fix typo in 2006-08-25 patch.
78338
78339 2006-08-31  Bruno Haible  <bruno@clisp.org>
78340
78341         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78342         specified, augment Makefile.am variables instead of assigning them.
78343
78344 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         Work around a bug in both the Linux and SunOS 64-bit kernels:
78347         nanosleep mishandles sleeps for longer than 2**31 seconds.
78348         Problem reported by Frank v Waveren in
78349         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78351         Check for nanosleep bug.
78352         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78353
78354 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         Work around a bug in both the Linux and SunOS 64-bit kernels:
78357         nanosleep mishandles sleeps for longer than 2**31 seconds.
78358         Problem reported by Frank v Waveren in
78359         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78360         * lib/nanosleep.c (BILLION): New constant.
78361         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78362         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78363         implementation.
78364
78365 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78366
78367         * modules/nanosleep (Depends-on): Add gettime.
78368
78369 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78370         and Simon Josefsson  <jas@extundo.com>
78371         and Oskar Liljeblad  <oskar@osk.mine.nu>
78372
78373         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78374         * gnulib-tool (func_import): New license type 'unmodifiable license
78375         text'.
78376         * modules/fdl: Use it.  Longer description.
78377         * module/gpl, module/lgpl: New files.
78378
78379 2006-08-30  Jim Meyering  <jim@meyering.net>
78380
78381         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78382         shadowing the parameter.
78383
78384 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78385
78386         Sync from Libtool:
78387
78388         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78389
78390         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78391         sharing with gnulib.  Report by Eric Blake.
78392
78393 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * modules/isapipe: New file.
78396         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78397
78398 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * modules/configmake (Makefile.am): Add a comment, and omit
78401         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78402         by Bruno Haible.
78403
78404 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         * m4/isapipe.m4: New file.
78407
78408 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         * lib/isapipe.c, lib/isapipe.h: New files.
78411
78412 2006-08-29  Jim Meyering  <jim@meyering.net>
78413
78414         * modules/configmake (Makefile.am): Make configmake.h depend on
78415         Makefile.  Otherwise, a stale configmake.h could hang around.
78416
78417 2006-08-29  Eric Blake  <ebb9@byu.net>
78418
78419         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78420         resolution of upstream bug 3044.
78421
78422 2006-08-29  Bruno Haible  <bruno@clisp.org>
78423
78424         * modules/localcharset (Depends-on): Add configmake.
78425         (Makefile.am): Remove setting of LIBDIR through DEFS.
78426
78427 2006-08-29  Bruno Haible  <bruno@clisp.org>
78428
78429         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78430         defined.
78431
78432 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * modules/fcntl: New file.
78435         * modules/chdir-safer (Depends-on): Add fcntl.
78436         * modules/fts: Likewise.
78437         * modules/mkdir-p: Likewise.
78438
78439         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78440         This undoes the most recent change, since we're now addressing the
78441         problem in a different way.
78442
78443         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78444         into output, since the output might be called Makefile.am even
78445         if $makefile_name is something different.
78446         (func_import): Use $makefile_am rather than
78447         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78448         empty.
78449
78450         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78451
78452 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78455         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78456         recent change to stdint.m4, since we're now addressing the problem in a
78457         different way.
78458
78459 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         * m4/fcntl_h.m4: New file.
78462
78463 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * lib/fcntl_.h: New file.
78466         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78467         the fcntl module.
78468         * lib/dirchownmod.c: Likewise.
78469         * lib/fts.c: Likewise.
78470
78471         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78472         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78473         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78474         just before including <inttypes.h>, to avoid circular inclusion.
78475
78476 2006-08-28  Jim Meyering  <jim@meyering.net>
78477
78478         * doc/visibility.texi: Actually read and correct the grammar of the
78479         sentence affected by yesterday's change.
78480
78481 2006-08-28  Eric Blake  <ebb9@byu.net>
78482
78483         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78484         needs wrapper.
78485
78486 2006-08-28  Eric Blake  <ebb9@byu.net>
78487
78488         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78489
78490 2006-08-28  Eric Blake  <ebb9@byu.net>
78491
78492         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78493
78494 2006-08-28  Bruno Haible  <bruno@clisp.org>
78495
78496         * modules/c-strstr: New file, from GNU gettext.
78497         * MODULES.html.sh (String handling): Add c-strstr.
78498
78499 2006-08-28  Bruno Haible  <bruno@clisp.org>
78500
78501         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78502         macros.
78503         Reported by Eric Blake.
78504
78505 2006-08-28  Bruno Haible  <bruno@clisp.org>
78506
78507         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78508         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78509         * lib/vasprintf.c: Include errno.h, limits.h.
78510         (EOVERFLOW): New fallback definition.
78511         (vasprintf): Test here whether the string length is > INT_MAX.
78512         * lib/vsnprintf.c: Include errno.h, limits.h.
78513         (EOVERFLOW): New fallback definition.
78514         (vsnprintf): Fix bug when generated string was too long for the buffer.
78515         Test here whether the string length is > INT_MAX.
78516
78517 2006-08-28  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/inttypes_.h (SCNX*): Remove definitions.
78520         Reported by Eric Blake.
78521
78522 2006-08-28  Bruno Haible  <bruno@clisp.org>
78523
78524         * lib/c-strstr.h: New file, from GNU gettext.
78525         * lib/c-strstr.c: New file, from GNU gettext.
78526
78527 2006-08-28  Bruno Haible  <bruno@clisp.org>
78528
78529         * gnulib-tool: Reorder some statements.
78530
78531 2006-08-28  Bruno Haible  <bruno@clisp.org>
78532
78533         * gnulib-tool: New option --makefile-name.
78534         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78535         $makefile_name.
78536         (func_import): Write $makefile_name to the cache file, and read it from
78537         there unless explicitly specified. Use $makefile_name as file name
78538         instead of Makefile.am. Adjust the recommendations accordingly.
78539
78540 2006-08-28  Bruno Haible  <bruno@clisp.org>
78541
78542         * gnulib-tool (func_verify_module): Check against misapplying patch.
78543
78544 2006-08-28  Bruno Haible  <bruno@clisp.org>
78545
78546         * gnulib-tool (func_relativize, func_relconcat): New functions.
78547         Give an error if --local-dir is given with --update.
78548         Remove trailing slashes from $local_gnulib_dir.
78549         (func_import): Store the relativized $local_gnulib_dir in
78550         gnulib-cache.m4, and read it from there if not specified explicitly.
78551
78552 2006-08-28  Bruno Haible  <bruno@clisp.org>
78553
78554         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78555         is the current directory. Respect also $local_gnulib_dir.
78556
78557 2006-08-28  Bruno Haible  <bruno@clisp.org>
78558             Simon Josefsson  <jas@extundo.com>
78559
78560         BeOS portability.
78561         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78562
78563 2006-08-27  Jim Meyering  <jim@meyering.net>
78564
78565         * doc/visibility.texi: Remove duplicate word: "pointer".
78566
78567 2006-08-26  Bruno Haible  <bruno@clisp.org>
78568
78569         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78570         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78571         (Makefile.am): Create inttypes.h from inttypes_.h.
78572         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78573
78574         * modules/imaxabs: New file.
78575
78576         * modules/imaxdiv: New file.
78577
78578 2006-08-26  Bruno Haible  <bruno@clisp.org>
78579
78580         * m4/inttypes.m4: New file.
78581         * m4/_inttypes_h.m4: Remove file.
78582         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78583         PRI_MACROS_BROKEN.
78584         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78585
78586         * m4/imaxabs.m4: New file.
78587
78588         * m4/imaxdiv.m4: New file.
78589
78590 2006-08-26  Bruno Haible  <bruno@clisp.org>
78591
78592         * lib/inttypes_.h: New file.
78593         * lib/inttypes.h: Remove file.
78594         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78595
78596         * lib/imaxabs.c: New file.
78597
78598         * lib/imaxdiv.c: New file.
78599
78600 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         New config-h module, so that "make" output needn't be cluttered
78603         by -DHAVE_CONFIG_H.
78604         * MODULES.html.sh (Support for building libraries and executables):
78605         Add config-h.
78606         * modules/config-h: New file.
78607         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78608         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78609         the config-h module is used.
78610
78611         New configmake module, so that "make" output needn't be cluttered
78612         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78613         * MODULES.html.sh (Support for building libraries and executables):
78614         Add configmake.
78615         * modules/configmake: New file.
78616
78617 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * m4/config-h.m4: New file.
78620
78621 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * config/srclist.txt: Add elisp-comp.
78624
78625 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78626
78627         * MODULES.html.sh (Support for building libraries and executables):
78628         Add elisp-comp.
78629         * build-aux/elisp-comp: New file.
78630         * modules/elisp-comp: New file.
78631
78632 2006-08-24  Bruno Haible  <bruno@clisp.org>
78633
78634         * gnulib-tool (func_create_testdir): Use non-default values of
78635         sourcebase and m4base.
78636
78637 2006-08-24  Bruno Haible  <bruno@clisp.org>
78638
78639         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78640         HTML structure.
78641
78642 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         * modules/openat (Depends-on): Add lchown.
78645
78646 2006-08-23  Bruno Haible  <bruno@clisp.org>
78647
78648         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78649         of gl_LOCK_EARLY instead of gl_LOCK.
78650
78651 2006-08-23  Bruno Haible  <bruno@clisp.org>
78652
78653         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78654         on OSF/1 to no.
78655         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78656
78657 2006-08-23  Bruno Haible  <bruno@clisp.org>
78658
78659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78660         as unusable.
78661
78662         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78663         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78664         (gl_LOCK): New macro.
78665
78666 2006-08-22  Simon Josefsson  <jas@extundo.com>
78667
78668         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78669         to md5 module.
78670
78671 2006-08-22  Simon Josefsson  <jas@extundo.com>
78672
78673         * MODULES.html.sh: Add "Support for maintaining and release
78674         projects".
78675
78676         * build-aux/gnupload: New file, from coreutils.
78677
78678 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         Avoid the need for AC_LIBSOURCES in m4 macros.
78681         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78682         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78683         * modules/check-version (EXTRA_DIST): Add check-version.h.
78684         * modules/crc (EXTRA_DIST): Add crc.h.
78685         * modules/des (EXTRA_DIST): Add des.h.
78686         * modules/gc (EXTRA_DIST): Add gc.h.
78687         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78688         * modules/getline (EXTRA_DIST): Add getline.h.
78689         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78690         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78691         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78692         * modules/md2 (EXTRA_DIST): Add md2.h.
78693         * modules/md4 (EXTRA_DIST): Add md4.h.
78694         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78695         * modules/read-file (EXTRA_DIST): Add read-file.h.
78696         * modules/readline (EXTRA_DIST): Add readline.h.
78697         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78698         rijndael-api-fst.h.
78699
78700 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78701
78702         * m4/rijndael.m4 (gl_ARCFOUR):
78703         * m4/arctwo.m4 (gl_ARCTWO):
78704         * m4/check-version.m4 (gl_CHECK_VERSION):
78705         * m4/crc.m4 (gl_CRC):
78706         * m4/des.m4 (gl_DES):
78707         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78708         * m4/gc.m4 (gl_GC):
78709         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78710         * m4/getline.m4 (gl_FUNC_GETLINE):
78711         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78712         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78713         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78714         * m4/md2.m4 (gl_MD2):
78715         * m4/md4.m4 (gl_MD4):
78716         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78717         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78718         * m4/readline.m4 (gl_FUNC_READLINE):
78719         * m4/rijndael.m4 (gl_RIJNDAEL):
78720         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78721         to get the necessary .h files and whatnot.
78722
78723 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78724
78725         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78726         gnulib rather than the other way around.
78727         * config/srclistvars.sh (COREUTILS): Remove.
78728
78729 2006-08-22  Jim Meyering  <jim@meyering.net>
78730
78731         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78732
78733         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78734
78735 2006-08-22  Eric Blake  <ebb9@byu.net>
78736
78737         * modules/regexprops-generic: New file.
78738         * MODULES.html.sh (Support for building documentation): List it.
78739
78740 2006-08-22  Eric Blake  <ebb9@byu.net>
78741
78742         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78743         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78744         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78745         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78746
78747 2006-08-22  Bruno Haible  <bruno@clisp.org>
78748
78749         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78750         and lib_LTLIBRARIES like the other lib_* variables.
78751
78752 2006-08-22  Bruno Haible  <bruno@clisp.org>
78753
78754         * build-aux/x-to-1.in: New file, from GNU gettext.
78755
78756 2006-08-22  Bruno Haible  <bruno@clisp.org>
78757
78758         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78759         <utmpx.h> exists.
78760
78761 2006-08-22  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78764         <utmpx.h> exists.
78765
78766 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         BeOS portability.
78769         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78770         exist.
78771         Problem reported by Bruno Haible.
78772
78773 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         Avoid the need for AC_LIBSOURCES in m4 macros.
78776         * modules/acl (EXTRA_DIST): Add acl.h.
78777         * modules/argmatch (Files): Add m4/argmatch.m4.
78778         (configure.ac): Add gl_ARGMATCH.
78779         (EXTRA_DIST): Renamed from lib_SOURCES, for
78780         consistency with the other modules.  Remove argmatch.c.
78781         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78782         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78783         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78784         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78785         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78786         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78787         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78788         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78789         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78790         * modules/closeout (EXTRA_DIST): Add closeout.h.
78791         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78792         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78793         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78794         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78795         dirname.h; remove basename.c and stripslash.c.
78796         * modules/exclude (EXTRA_DIST): Add exclude.h.
78797         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78798         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78799         * modules/file-type (EXTRA_DIST): Add file-type.h.
78800         * modules/filemode (EXTRA_DIST): Add filemode.h.
78801         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78802         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78803         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78804         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78805         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78806         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78807         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78808         * modules/getdate (EXTRA_DIST): Add getdate.c.
78809         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78810         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78811         * modules/getpass (EXTRA_DIST): Add getpass.h.
78812         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78813         * modules/group-member (EXTRA_DIST): Add group-member.h.
78814         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78815         * modules/hash (EXTRA_DIST): Add hash.h.
78816         * modules/human (EXTRA_DIST): Add human.h.
78817         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78818         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78819         * modules/lchown (EXTRA_DIST): Add lchown.h.
78820         * modules/long-options (EXTRA_DIST): Add long-options.h.
78821         * modules/lstat (EXTRA_DIST): Add lstat.h.
78822         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78823         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78824         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78825         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78826         * modules/memxor (EXTRA_DIST): Add memxor.h.
78827         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78828         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78829         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78830         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78831         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78832         * modules/physmem (EXTRA_DIST): Add physmem.h.
78833         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78834         * modules/posixver (EXTRA_DIST): Add posixver.h.
78835         * modules/quote (EXTRA_DIST): Add quote.h.
78836         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78837         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78838         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78839         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78840         regex_internal.h regexec.c.
78841         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78842         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78843         * modules/same (EXTRA_DIST): Add same.h.
78844         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78845         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78846         * modules/savedir (EXTRA_DIST): Add savedir.h.
78847         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78848         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78849         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78850         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78851         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78852         * modules/strdup (EXTRA_DIST): Add strdup.h.
78853         * modules/strftime (EXTRA_DIST): Add strftime.h.
78854         * modules/strndup (EXTRA_DIST): Add strndup.h.
78855         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78856         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78857         * modules/time_r (EXTRA_DIST): Add time_r.h.
78858         * modules/timespec (EXTRA_DIST): Add timespec.h.
78859         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78860         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78861         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78862         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78863         * modules/userspec (EXTRA_DIST): Add userspec.h.
78864         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78865         * modules/utimens (EXTRA_DIST): Add utimens.h.
78866         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78867         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78868         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78869         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78870         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78871         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78872         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78873         * modules/yesno (EXTRA_DIST): Add yesno.h.
78874
78875 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78876
78877         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78878
78879         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78880         * m4/dev-ino.m4, same-inode.m4: Remove.
78881
78882         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78883         * m4/acl.m4 (AC_FUNC_ACL):
78884         * m4/backupfile.m4 (gl_BACKUPFILE):
78885         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78886         * m4/canon-host.m4 (gl_CANON_HOST):
78887         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78888         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78889         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78890         * m4/cloexec.m4 (gl_CLOEXEC):
78891         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78892         * m4/closeout.m4 (gl_CLOSEOUT):
78893         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78894         * m4/dirname.m4 (gl_DIRNAME):
78895         * m4/exclude.m4 (gl_EXCLUDE):
78896         * m4/exitfail.m4 (gl_EXITFAIL):
78897         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78898         * m4/file-type.m4 (gl_FILE_TYPE):
78899         * m4/filemode.m4 (gl_FILEMODE):
78900         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78901         * m4/fpending.m4 (gl_FUNC_FPENDING):
78902         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78903         * m4/fts.m4 (gl_FUNC_FTS):
78904         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78905         * m4/getdate.m4 (gl_GETDATE):
78906         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78907         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78908         * m4/getpass.m4 (gl_FUNC_GETPASS):
78909         * m4/gettime.m4 (gl_GETTIME):
78910         * m4/getugroups.m4 (gl_GETUGROUPS):
78911         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78912         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78913         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78914         * m4/hash.m4 (gl_HASH):
78915         * m4/idcache.m4 (gl_IDCACHE):
78916         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78917         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78918         * m4/long-options.m4 (gl_LONG_OPTIONS):
78919         * m4/lstat.m4 (gl_FUNC_LSTAT):
78920         * m4/md5.m4 (gl_MD5):
78921         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78922         * m4/memcoll.m4 (gl_MEMCOLL):
78923         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78924         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78925         * m4/memxor.m4 (gl_MEMXOR):
78926         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78927         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78928         * m4/modechange.m4 (gl_MODECHANGE):
78929         * m4/mountlist.m4 (gl_MOUNTLIST):
78930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78931         * m4/openat.m4 (gl_FUNC_OPENAT):
78932         * m4/pathmax.m4 (gl_PATHMAX):
78933         * m4/physmem.m4 (gl_PHYSMEM):
78934         * m4/posixtm.m4 (gl_POSIXTM):
78935         * m4/posixver.m4 (gl_POSIXVER):
78936         * m4/quote.m4 (gl_QUOTE):
78937         * m4/quotearg.m4 (gl_QUOTEARG):
78938         * m4/readtokens.m4 (gl_READTOKENS):
78939         * m4/readutmp.m4 (gl_READUTMP):
78940         * m4/regex.m4 (gl_REGEX):
78941         * m4/safe-read.m4 (gl_SAFE_READ):
78942         * m4/safe-write.m4 (gl_SAFE_WRITE):
78943         * m4/same.m4 (gl_SAME):
78944         * m4/save-cwd.m4 (gl_SAVE_CWD):
78945         * m4/savedir.m4 (gl_SAVEDIR):
78946         * m4/settime.m4 (gl_SETTIME):
78947         * m4/sha1.m4 (gl_SHA1):
78948         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78949         * m4/stat-macros.m4 (gl_STAT_MACROS):
78950         * m4/stat-time.m4 (gl_STAT_TIME):
78951         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78952         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78953         * m4/strdup.m4 (gl_FUNC_STRDUP):
78954         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78955         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78956         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78957         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78958         * m4/time_r.m4 (gl_TIME_R):
78959         * m4/timespec.m4 (gl_TIMESPEC):
78960         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78961         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78962         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78963         * m4/userspec.m4 (gl_USERSPEC):
78964         * m4/utimecmp.m4 (gl_UTIMECMP):
78965         * m4/utimens.m4 (gl_UTIMENS):
78966         * m4/xalloc.m4 (gl_XALLOC):
78967         * m4/xgetcwd.m4 (gl_XGETCWD):
78968         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78969         * m4/xreadlink.m4 (gl_XREADLINK):
78970         * m4/xstrtod.m4 (gl_XSTRTOD):
78971         * m4/yesno.m4 (gl_YESNO):
78972         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78973         to get the necessary .h files and whatnot.
78974
78975 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78976             Bruno Haible  <bruno@clisp.org>
78977
78978         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78979         /bin/sh understanding of '!' conditional negation.
78980
78981 2006-08-21  Jim Meyering  <jim@meyering.net>
78982
78983         * modules/openat (Depends-on): Really alphabetize.
78984
78985         * modules/acl (Depends-on): Add error and quote.
78986
78987         * check-module (find_included_lib_files): Add at-func.c to the
78988         ok-to-include-more-than-once white list.
78989
78990         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78991
78992 2006-08-21  Bruno Haible  <bruno@clisp.org>
78993
78994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78995         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78996         Reported by Martin Lambers <marlam@marlam.de>.
78997
78998 2006-08-21  Bruno Haible  <bruno@clisp.org>
78999
79000         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79001         specify an installation location, don't emit a noinst_LIBRARIES or
79002         noinst_LTLIBRARIES assignment.
79003
79004 2006-08-21  Bruno Haible  <bruno@clisp.org>
79005
79006         BeOS portability.
79007         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79008         BeOS has mbrtowc() but no <wctype.h>.
79009
79010 2006-08-21  Bruno Haible  <bruno@clisp.org>
79011
79012         BeOS portability.
79013         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79014         exist.
79015
79016 2006-08-21  Bruno Haible  <bruno@clisp.org>
79017
79018         BeOS portability.
79019         * lib/mbchar.h: Include <wctype.h> only if it exists.
79020
79021 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         Remove files that are no longer needed by their respective modules.
79024         * m4/obstack.m4: Remove.
79025         * m4/strerror_r.m4: Remove.
79026         * m4/uint32_t.m4: Remove.
79027         * m4/uintptr_t.m4: Remove.
79028         * m4/ullong_max.m4: Remove.
79029         * m4/xstrtoimax.m4: Remove.
79030         * m4/xstrtoumax.m4: Remove.
79031
79032         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79033         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79034         dependencies now capture this.
79035
79036         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79037         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79038         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79039         * m4/human.m4 (gl_HUMAN): Likewise.
79040         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79041         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79042
79043         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79044
79045         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79046         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79047         stdint.
79048         * m4/human.m4 (gl_HUMAN): Likewise.
79049         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79050         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79051         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79052         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79053         * m4/xstrtol (gl_XSTRTOL): Likewise.
79054
79055         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79056         AC_TYPE_LONG_LONG_INT.
79057         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79058         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79059         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79060         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79061
79062         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79063         on stdbool.
79064
79065         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79066         (gl_PREREQ_XSTRTOUL): Remove.
79067
79068         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79069
79070         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79071         mode.
79072
79073 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79074
79075         Add and change modules to make it easier for coreutils to use
79076         gnulib-tool.
79077         * modules/backupfile (Files): Remove m4/d-ino.m4.
79078         (Depends-on): Add d-ino.
79079         * modules/cycle-check (Depends-on): Add stdint.
79080         (lib_SOURCES): Add cycle-check.h.
79081         * modules/d-ino: New module.
79082         * modules/d-type: New module.
79083         * modules/error (Files): Remove m4/strerror_r.m4.
79084         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79085         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79086         m4/inttypes_h.m4, m4/uintmax_t.m4.
79087         (Depends-on): Add stdint.
79088         (lib_SOURCES): Add fsusage.h.
79089         * modules/getcwd (Files): Remove d-ino.m4.
79090         (Depends-on): Add d-ino.
79091         * modules/getndelim2 (Depends-on): Add stdint.
79092         * modules/glob (Files): Remove m4/d-type.m4.
79093         (Depends-on): Add d-type.
79094         * modules/host-os: New module.
79095         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79096         m4/inttypes_h.m4, m4/uintmax_t.m4.
79097         * Depends-on: Add stdint.
79098         (lib_SOURCES): Add human.h.
79099         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79100         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79101         m4/uintmax_t.m4, m4/ulonglong.m4.
79102         (Depends-on): Add stdint.
79103         (EXTRA_DIST): Add inttostr.h.
79104         * modules/lchmod: New module.
79105         * modules/link-follow: New module.
79106         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79107         (Depends-on): Add lchmod.
79108         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79109         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79110         (Depends-on): Add stdint.
79111         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79112         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79113         (Depends-on): Add stdint.
79114         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79115         * modules/perl: New module.
79116         * modules/regex (Depends-on): Add stdint.
79117         * modules/rmdir-errno: New module.
79118         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79119         m4/intmax_t.m4.
79120         (Depends-on): Add stdint.
79121         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79122         m4/uintmax_t.m4.
79123         (Depends-on): Add stdint.
79124         * modules/unlink-busy: New module.
79125         * modules/utimecmp (Depends-on): Add stdint.
79126         * modules/uptime: New module.
79127         * modules/winsz-ioctl: New module.
79128         * modules/winsz-termios: New module.
79129         * modules/xnanosleep (Depends-on): Add nanosleep.
79130         * modules/ullong_max: Remove.
79131         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79132         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79133         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79134         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79135         (Depends-on): Add inttypes.
79136         (lib_SOURCES): Add xstrtol.h.
79137         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79138         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79139         * MODULES.html.sh: Move 'assert' into the assert section.
79140         Move 'dummy' into the linking section.
79141         Remove ullong_max.
79142         Add section for compatibility checks for POSIX:2001 functions,
79143         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79144         winsz-ioctl, and winsz-termios into it.
79145         Add lchmod.
79146         Add top-level Misc section and put host-os, perl, and uptime
79147         into it.
79148
79149 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79152         now assume the stdint module.  Do not include inttypes.h.
79153         * lib/fsusage.h: Likewise.
79154         * lib/getndelim2.c: Likewise.
79155         * lib/human.h: Likewise.
79156         * lib/inttostr.h: Likewise.
79157         * lib/obstack.c: Likewise.
79158         * lib/regex_internal.h: Likewise.
79159         * lib/tempname.c: Likewise.
79160         * lib/utimecmp.c: Likewise.
79161         * lib/xstrtol.h: Likewise.
79162
79163         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79164
79165         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79166         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79167         * lib/xtime.h: Likewise.
79168
79169 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         * modules/openat (Files): Add lib/fchmodat.c.
79172         Fixes problem reported by Jay Youngman.
79173
79174 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79177         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79178
79179 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79180             Bruno Haible  <bruno@clisp.org>
79181
79182         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79183         and is a script that invokes bison. Tighten the code. Add comments.
79184
79185 2006-08-18  Jim Meyering  <jim@meyering.net>
79186
79187         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79188         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79189         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79190         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79191
79192 2006-08-18  Bruno Haible  <bruno@clisp.org>
79193
79194         * modules/bison-i18n: New file.
79195         * MODULES.html.sh (Internationalization functions): Add it.
79196
79197 2006-08-18  Bruno Haible  <bruno@clisp.org>
79198
79199         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79200         sys/statvfs.h. When getmntinfo was found, check its declaration and
79201         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79202
79203 2006-08-18  Bruno Haible  <bruno@clisp.org>
79204
79205         * m4/bison-i18n.m4: New file, from bison.
79206
79207 2006-08-18  Bruno Haible  <bruno@clisp.org>
79208
79209         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79210         (ME_DUMMY): Treat "kernfs" as a dummy.
79211         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79212
79213 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         Update from coreutils.
79216
79217         2006-08-15  Jim Meyering  <jim@meyering.net>
79218
79219         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79220
79221         2006-01-17  Jim Meyering  <jim@meyering.net>
79222
79223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79224
79225         2006-01-11  Jim Meyering  <jim@meyering.net>
79226
79227         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79228         Check for the lchmod function.
79229
79230 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79231
79232         Update from coreutils.
79233
79234         * lib/__fpending.h: Add copyright notice.
79235         * lib/fprintftime.h: Likewise.
79236         * lib/savedir.c: Use (C) in copyright notice.
79237         * lib/savedir.h: Likewise.
79238
79239         2006-08-15  Jim Meyering  <jim@meyering.net>
79240
79241         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79242         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79243         in support of the EXPECTED_ERRNO macro.
79244         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79245         definitions.  Instead, define the appropriate symbols and include
79246         "at-func.c".
79247         * lib/mkdirat.c (mkdirat): Likewise.
79248         * lib/fchmodat.c (fchmodat): Likewise.
79249         (ENOSYS): Remove definition.
79250         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79251         it.  Don't include "unistd--.h" -- it wasn't ever used.
79252
79253         2006-01-17  Jim Meyering  <jim@meyering.net>
79254
79255         Rewrite fts.c not to change the current working directory,
79256         by using openat, fstatat, fdopendir, etc..
79257
79258         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79259         (HAVE_OPENAT_SUPPORT): Define.
79260         [_LIBC] (fchdir): Don't undef or define; no longer used.
79261         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79262         Now, this `function' always succeeds, and consumes its file descriptor
79263         parameter -- so callers must not close such FDs.  Update callers.
79264         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79265         (diropen): Add parameter, SP.  Adjust all callers.
79266         Implement using diropen_fd, rather than open.
79267         (fts_open): Initialize new member, fts_cwd_fd.
79268         Remove fts_rft-setting code.
79269         (fts_close): Close fts_cwd_fd, if necessary.
79270         (__opendir2): Define in terms of opendir or opendirat,
79271         depending on whether the FST_NOCHDIR flag is set.
79272         (fts_build): Since fts_safe_changedir consumes its FD, and since
79273         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79274         and close the dup'd file descriptor upon failure.
79275         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79276         (fts_safe_changedir): Tweak semantics to reflect that this function
79277         now calls cwd_advance_fd and hence consumes its FD argument.
79278         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79279         [struct FTS] (fts_rft): Remove now-unused member.
79280         [struct FTS] (fts_cycle.state): Improve comment.
79281
79282         * lib/openat.c (openat_needs_fchdir): New function.
79283         * lib/openat.h (openat_needs_fchdir): Declare it.
79284
79285 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79286
79287         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79288         Problem and fix reported by Pádraig Brady in
79289         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79290
79291 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79294
79295 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         * lib/memcoll.c (memcoll): Optimize for the common case where the
79298         arguments are bytewise equal.
79299
79300 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         * doc/regexprops-generic.texi: Add a copyright notice.
79303
79304 2006-08-15  Bruno Haible  <bruno@clisp.org>
79305
79306         * modules/tmpdir (License): Change to LGPL.
79307
79308 2006-08-15  Bruno Haible  <bruno@clisp.org>
79309
79310         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79311         module.
79312
79313 2006-08-14  Simon Josefsson  <jas@extundo.com>
79314
79315         * config/srclist.txt: Add gnupload.
79316
79317 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         Change copyright notice from LGPL 2 to GPL 2, since that's the
79320         standard form used in the gnulib repository.
79321         * tests/test-lock.c: Likewise.
79322         * tests/test-stdint.c: Likewise.
79323         * tests/test-tls.c: Likewise.
79324
79325         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79326         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79327         Add copyright notice.
79328
79329         * check-module: Add copyright notice.  Output a copyright
79330         notice if "--version" is specified.
79331         * modules/COPYING: New file.
79332         * tests/test-getaddrinfo.c: Add copyright notice.
79333         * tests/test-verify.c: Likewise.
79334
79335 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         Change copyright notice from LGPL 2 to GPL 2, since that's the
79338         standard form used in the gnulib repository.
79339         * lib/lock.c: LGPL -> GPL.
79340         * lib/lock.h: Likewise.
79341         * lib/strnlen1.c: Likewise.
79342         * lib/strnlen1.h: Likewise.
79343         * lib/tls.c: Likewise.
79344         * lib/tls.h: Likewise.
79345         * lib/tmpdir.c: Likewise.
79346
79347         * lib/TODO: Remove; this belongs only in coreutils.
79348
79349 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79350
79351         Add copyright notices to long-enough files that lack them, since
79352         otherwise the files aren't clearly free.  Use the same notice that
79353         getdate.texi already uses.
79354         * doc/alloca-opt.texi: Add copyright notice.
79355         * doc/alloca.texi: Likewise.
79356         * doc/ctime.texi: Likewise.
79357         * doc/functions.texi: Likewise.
79358         * doc/gcd.texi: Likewise.
79359         * doc/gnulib-tool.texi: Likewise.
79360         * doc/inet_ntoa.texi: Likewise.
79361         * doc/visibility.texi: Likewise.
79362
79363         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79364         * doc/quote.texi: Add copyright notice.
79365
79366         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79367         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79368         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79369         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79370         is now obsolete, and give a pointer to the Sun list.
79371         Add copyright notice.
79372
79373 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79374
79375         * config/srclistvars.sh: Add copyright notice.
79376
79377 2006-08-14  Eric Blake  <ebb9@byu.net>
79378
79379         Import the following change from libc:
79380
79381         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79382
79383         Upstream bug 2997.
79384         * lib/misc/error.c: Add space between program name and message if file
79385         name is missing.
79386
79387 2006-08-12  Karl Berry  <karl@gnu.org>
79388
79389         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79390         remove, these originate in gnulib now.
79391
79392 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79393
79394         * doc/Makefile (standards.info standards.html standards.dvi):
79395         Also depend on make-stds.texi.
79396
79397 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79400         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79401
79402         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79403         in wchar_t.  Problem reported by Eric Blake.
79404
79405         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79406         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79407         Also, help the compiler to keep LEN in a register.
79408
79409 2006-08-11  Eric Blake  <ebb9@byu.net>
79410
79411         * users.txt: Sort.  Add tar.
79412
79413 2006-08-11  Bruno Haible  <bruno@clisp.org>
79414
79415         * users.txt: New file.
79416
79417 2006-08-11  Bruno Haible  <bruno@clisp.org>
79418
79419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79420         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79421
79422 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * modules/snprintf (Depends-on): Remove minmax.
79425         (Maintainer): Add self and Bruno.
79426
79427 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79428
79429         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79430         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79431         (EOVERFLOW): Define if the system does not.
79432         Do not include "minmax.h"; it wasn't used.
79433         (snprintf): Don't assume size_t promotes to an unsigned type.
79434         Fix bug when generated string was too long for the buffer: the
79435         buffer's contents are supposed to be the initial prefix of the
79436         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79437         exceeds INT_MAX; do the check ourselves.
79438
79439         Import the following changes from libc:
79440
79441         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79442
79443         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79444         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79445         set wc to the byte which couldn't be converted.
79446         (re_string_reconstruct): Don't clear valid_raw_len before calling
79447         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79448         tip_context using re_string_context_at.
79449
79450         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79451
79452         * lib/posix/regex.h: g++ still cannot handled [restrict].
79453
79454         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79455
79456         * lib/posix/regex.h: Remove special handling for VMS.
79457
79458 2006-08-10  Jim Meyering  <jim@meyering.net>
79459
79460         * modules/same-inode: New module.
79461         * modules/dev-ino: New module.
79462         * modules/cycle-check: Depend on these modules, rather than simply
79463         including their .h files.
79464         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79465         required via m4/cycle-check.m4.
79466         * modules/same: Depend on new same-inode module, rather than
79467         including same-inode.h.
79468         * modules/chdir-safer: New file.
79469
79470         * modules/chown (Depends-on): Add stat-macros.
79471
79472 2006-08-10  Jim Meyering  <jim@meyering.net>
79473
79474         * m4/cycle-check.m4: New file.
79475         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79476         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79477
79478 2006-08-10  Eric Blake  <ebb9@byu.net>
79479
79480         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79481         in from original proposal.
79482
79483 2006-08-10  Eric Blake  <ebb9@byu.net>
79484         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79485
79486         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79487         namespace.
79488
79489 2006-08-10  Bruno Haible  <bruno@clisp.org>
79490
79491         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79492         as well.
79493
79494 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         Sync from coreutils.
79497
79498         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79499
79500         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79501         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79502
79503 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * modules/restrict: Remove; no longer needed now that we assume
79506         Autoconf 2.59 or later.
79507         * MODULES.html.sh: Remove 'restrict'.
79508         * modules/argp (Depends-on): Remove 'restrict'.
79509         * modules/base64 (Depends-on): Likewise.
79510         * modules/gc (Depends-on): Likewise.
79511         * modules/getaddrinfo (Depends-on): Likewise.
79512         * modules/glob (Depends-on): Likewise.
79513         * modules/inet_ntop (Depends-on): Likewise.
79514         * modules/inet_pton (Depends-on): Likewise.
79515         * modules/memxor (Depends-on): Likewise.
79516         * modules/regex (Depends-on): Likewise.
79517         * modules/strtok_r (Depends-on): Likewise.
79518         * modules/time_r (Depends-on): Likewise.
79519
79520 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79523         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79524         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79525         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79526         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79527         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79528         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79529         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79530
79531         Merge from coreutils.
79532         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79533         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79534         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79535         * m4/time_r.m4 (gl_TIME_R): Likewise.
79536
79537 2006-08-09  Karl Berry  <karl@gnu.org>
79538
79539         * config/srclist.txt: no more gettext-tools, per Bruno.
79540
79541 2006-08-08  Eric Blake  <ebb9@byu.net>
79542
79543         * modules/verror: New module.
79544         * MODULES.html.sh: Document it.
79545
79546 2006-08-08  Eric Blake  <ebb9@byu.net>
79547
79548         * lib/verror.h, lib/verror.c: New files.
79549
79550 2006-08-08  Eric Blake  <ebb9@byu.net>
79551
79552         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79553         verror_at_line output complies with GNU Coding Standards even when
79554         file is NULL.
79555
79556 2006-08-07  Bruno Haible  <bruno@clisp.org>
79557
79558         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79559         versions of AIX.
79560         Reported by Ralf Wildenhues.
79561
79562 2006-08-07  Bruno Haible  <bruno@clisp.org>
79563
79564         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79565         in an AC_DEFUN. Needed so that the autoconf snippets can use
79566         AC_REQUIRE.
79567
79568 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79569
79570         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79571         Initialize pkgdata_DATA.
79572         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79573         overriding it.
79574
79575 2006-08-06  Eric Blake  <ebb9@byu.net>
79576
79577         * lib/error.h: Fold in some upstream changes from glibc.
79578         * lib/error.c: Likewise.
79579
79580 2006-08-04  Bruno Haible  <bruno@clisp.org>
79581
79582         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79583         Make the mostlyclean-local rule depend on mostlyclean-generic.
79584         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79585
79586 2006-07-31  Bruno Haible  <bruno@clisp.org>
79587
79588         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79589         <stdlib.h>, <string.h>.
79590
79591 2006-07-30  Bruno Haible  <bruno@clisp.org>
79592
79593         * modules/readlink (License): Change to LGPL.
79594
79595 2006-07-30  Bruno Haible  <bruno@clisp.org>
79596
79597         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79598         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79599         set PKGDATADIR to point to it.
79600
79601 2006-07-30  Bruno Haible  <bruno@clisp.org>
79602
79603         * modules/csharpexec (configure.ac): Comment out macro invocation.
79604         * modules/javaexec (configure.ac): Likewise.
79605         * modules/javacomp-script (configure.ac): Likewise.
79606
79607         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79608
79609 2006-07-30  Bruno Haible  <bruno@clisp.org>
79610
79611         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79612         linked-list.
79613
79614 2006-07-30  Bruno Haible  <bruno@clisp.org>
79615
79616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79617
79618 2006-07-30  Bruno Haible  <bruno@clisp.org>
79619
79620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79621         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79622         get removed.
79623
79624 2006-07-29  Bruno Haible  <bruno@clisp.org>
79625
79626         Make it possible for gnulib-tool to work with locally modified or
79627         augmented gnulib repositories.
79628         * gnulib-tool (func_usage): Document --local-dir option.
79629         (local_gnulib_dir): New variable.
79630         Handle --local-dir option.
79631         (func_lookup_file): New function.
79632         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79633         (func_get_description, func_get_filelist, func_get_description,
79634         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79635         func_get_automake_snippet, func_get_include_directive,
79636         func_get_license, func_get_maintainer): Use func_lookup_file.
79637         (func_import, func_create_testdir): Use func_lookup_file.
79638
79639 2006-07-29  Bruno Haible  <bruno@clisp.org>
79640
79641         * modules/setenv (Depends-on): Add unistd.
79642
79643 2006-07-29  Bruno Haible  <bruno@clisp.org>
79644
79645         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79646
79647 2006-07-29  Bruno Haible  <bruno@clisp.org>
79648
79649         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79650
79651 2006-07-29  Bruno Haible  <bruno@clisp.org>
79652
79653         * gnulib-tool (import, update): If there is no Makefile.am, look at
79654         aclocal.m4, instead of bailing out.
79655
79656 2006-07-29  Bruno Haible  <bruno@clisp.org>
79657
79658         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79659         Categorize the options by when they are useful.
79660
79661 2006-07-29  Bruno Haible  <bruno@clisp.org>
79662
79663         * gnulib-tool (func_usage): Document option --no-libtool.
79664         Handle option --no-libtool.
79665         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79666         for changed semantics of $libtool variable.
79667         (func_import): Likewise. If libtool is not used, show this through
79668         an option --no-libtool.
79669         (func_create_testdir): Update.
79670
79671 2006-07-29  Bruno Haible  <bruno@clisp.org>
79672
79673         * gnulib-tool (func_import): Extend error message about missing
79674         --doc-base.
79675
79676 2006-07-29  Bruno Haible  <bruno@clisp.org>
79677
79678         * gnulib-tool (func_import): Don't create the $docbase directory if
79679         there is no file to store there.
79680
79681 2006-07-29  Bruno Haible  <bruno@clisp.org>
79682
79683         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79684         relevant, look for configure.ac there, not in the current directory.
79685         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79686
79687 2006-07-29  Bruno Haible  <bruno@clisp.org>
79688
79689         * gnulib-tool (SORT): New variable.
79690         (func_usage): Undocument --assume-autoconf option.
79691         Remove --assume-autoconf option handling.
79692         (autoconf_minversion): Determine from the contents of configure.ac.
79693         (func_import): Remove autoconf_minversion handling.
79694         Suggested by Eric Blake.
79695
79696 2006-07-29  Bruno Haible  <bruno@clisp.org>
79697
79698         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79699
79700 2006-07-29  Bruno Haible  <bruno@clisp.org>
79701
79702         * config/srclist.txt (*setenv.[ch]): Remove rules.
79703
79704 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79705
79706         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79707
79708 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79709
79710         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79711         arpa/inet.h.
79712
79713 2006-07-28  Simon Josefsson  <jas@extundo.com>
79714
79715         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79716         * modules/inet_pton (Depends-on): Likewise.
79717
79718 2006-07-28  Simon Josefsson  <jas@extundo.com>
79719
79720         * m4/netinet_in_h.m4: New file.
79721
79722 2006-07-28  Simon Josefsson  <jas@extundo.com>
79723
79724         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79725         #include's.
79726
79727 2006-07-28  Simon Josefsson  <jas@extundo.com>
79728
79729         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79730         #include's.
79731
79732 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79733
79734         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79735         setgid on directories only if they set these bits.
79736         * lib/modechange.h: Remove obsolete comment about masks.
79737
79738 2006-07-28  Eric Blake  <ebb9@byu.net>
79739
79740         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79741         macro expansion.
79742
79743 2006-07-28  Bruno Haible  <bruno@clisp.org>
79744
79745         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79746
79747 2006-07-28  Bruno Haible  <bruno@clisp.org>
79748
79749         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79750
79751 2006-07-28  Bruno Haible  <bruno@clisp.org>
79752
79753         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79754         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79755         Define fallbacks.
79756         Avoids link error on FreeBSD 4.x.
79757         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79758
79759         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79760         encoding.
79761         * lib/mbswidth.c (iswcntrl): Likewise.
79762
79763 2006-07-27  Bruno Haible  <bruno@clisp.org>
79764
79765         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79766         test.
79767
79768 2006-07-27  Bruno Haible  <bruno@clisp.org>
79769
79770         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79771         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79772         defined.
79773
79774 2006-07-26  Eric Blake  <ebb9@byu.net>
79775
79776         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79777
79778 2006-07-26  Eric Blake  <ebb9@byu.net>
79779
79780         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79781         like mingw that lack mkstemp.
79782         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79783         avoid compilation warning on mingw.
79784
79785 2006-07-26  Bruno Haible  <bruno@clisp.org>
79786
79787         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79788         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79789         INT_FAST*_MIN, INTPTR_MIN.
79790
79791 2006-07-25  Bruno Haible  <bruno@clisp.org>
79792
79793         * modules/version-etc (Depends-on): Add stdarg.
79794
79795 2006-07-25  Bruno Haible  <bruno@clisp.org>
79796
79797         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79798         complex commands.
79799
79800 2006-07-25  Bruno Haible  <bruno@clisp.org>
79801
79802         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79803         defined in <stdarg.h> or config.h.
79804
79805 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79808         (gl_STDIO_SAFER): Remove.
79809
79810 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79811
79812         * MODULES.html.sh (File stream based Input/Output):
79813         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79814         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79815         * modules/fopen-safer, modules/tmpfile-safer: New files.
79816         * modules/stdio-safer: Remove.
79817
79818 2006-07-24  Bruno Haible  <bruno@clisp.org>
79819
79820         * modules/tmpdir: New file.
79821         * MODULES.html.sh (File system functions): Add it.
79822
79823 2006-07-24  Bruno Haible  <bruno@clisp.org>
79824
79825         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79826         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79827
79828 2006-07-24  Bruno Haible  <bruno@clisp.org>
79829
79830         * modules/clean-temp: New file.
79831
79832 2006-07-24  Bruno Haible  <bruno@clisp.org>
79833
79834         * m4/tmpdir.m4: New file, from GNU gettext.
79835
79836 2006-07-24  Bruno Haible  <bruno@clisp.org>
79837
79838         * lib/tmpdir.h: New file, from GNU gettext.
79839         * lib/tmpdir.c: New file, from GNU gettext.
79840
79841 2006-07-24  Bruno Haible  <bruno@clisp.org>
79842
79843         * lib/clean-temp.h: New file, from GNU gettext.
79844         * lib/clean-temp.c: New file, from GNU gettext.
79845
79846 2006-07-23  Eric Blake  <ebb9@byu.net>
79847
79848         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79849         (Depends-on): Add binary-io.
79850
79851 2006-07-23  Eric Blake  <ebb9@byu.net>
79852
79853         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79854
79855 2006-07-23  Eric Blake  <ebb9@byu.net>
79856
79857         * lib/tmpfile-safer.c: New file.
79858         * lib/stdio-safer.h (fopen_safer): Add prototype.
79859         * lib/stdio--.h (tmpfile): Make safer.
79860
79861 2006-07-23  Bruno Haible  <bruno@clisp.org>
79862
79863         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79864         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79865         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79866         gl_linked_remove_at): Use it.
79867
79868 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79869         and Simon Josefsson <jas@extundo.com>
79870
79871         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79872
79873         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79874
79875 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * modules/close-stream: New file.
79878         * modules/closeout (Description): Make it clear that it exits
79879         with a diagnostic on error.
79880         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79881         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79882
79883 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         * m4/close-stream.m4: New file.
79886
79887 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * lib/close-stream.c, lib/close-stream.h: New files.
79890
79891 2006-07-22  Bruno Haible  <bruno@clisp.org>
79892
79893         Merge from GNU gettext 0.15.
79894
79895         2006-05-01  Bruno Haible  <bruno@clisp.org>
79896
79897                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79898
79899         2006-07-22  Bruno Haible  <bruno@clisp.org>
79900
79901                 * modules/javaversion: New file.
79902                 * MODULES.html.sh (Java): Add javaversion.
79903
79904         2006-03-12  Bruno Haible  <bruno@clisp.org>
79905
79906                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79907
79908         2005-12-04  Bruno Haible  <bruno@clisp.org>
79909
79910                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79911                 (untested).
79912
79913         2006-06-21  Bruno Haible  <bruno@clisp.org>
79914
79915                 Avoid warnings from recent versions of mcs.
79916                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79917                 -o, -L, -r any more. Use options documented since mcs-1.0
79918                 instead. Similarly for -g.
79919
79920         2005-12-04  Bruno Haible  <bruno@clisp.org>
79921
79922                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79923                 .resources, not .resource.
79924
79925         2005-07-09  Bruno Haible  <bruno@clisp.org>
79926
79927                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79928                 add a .dll suffix.
79929                 Reported by Mark Junker <mjscod@gmx.de>.
79930
79931         2006-07-22  Bruno Haible  <bruno@clisp.org>
79932
79933                 * modules/gettext: Upgrade to gettext-0.15.
79934                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79935                 m4/visibility.m4.
79936                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79937
79938 2006-07-22  Bruno Haible  <bruno@clisp.org>
79939
79940         Merge from GNU gettext 0.15.
79941
79942         2006-03-25  Bruno Haible  <bruno@clisp.org>
79943
79944                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79945
79946         2006-07-21  Bruno Haible  <bruno@clisp.org>
79947
79948                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79949                 "1.1".
79950
79951         2006-05-09  Bruno Haible  <bruno@clisp.org>
79952
79953                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79954                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79955                 for the conftestver execution.
79956
79957         2006-05-01  Bruno Haible  <bruno@clisp.org>
79958
79959                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79960                 optional target-version argument. Verify that the compiler
79961                 groks source of the specified source-version, or add -source
79962                 option as necessary. Verify that the compiler produces
79963                 bytecode in the specified target-version, or add -target and
79964                 -source options as necessary. Make the result of the test
79965                 available as variable CONF_JAVAC. Also log error output in
79966                 config.log.
79967
79968         2006-03-11  Bruno Haible  <bruno@clisp.org>
79969
79970                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79971
79972         2006-05-09  Bruno Haible  <bruno@clisp.org>
79973
79974                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79975                 CLASSPATH_SEPARATOR to a semicolon.
79976
79977         2006-03-12  Bruno Haible  <bruno@clisp.org>
79978
79979                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79980                 available as variable CONF_JAVA, for subsequent autoconf
79981                 tests. Also log error output in config.log.
79982
79983         2006-07-19  Bruno Haible  <bruno@clisp.org>
79984
79985                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79986                 that getline works on glibc2 systems. Needed to avoid trouble
79987                 in relocatable.c.
79988                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79989
79990         2005-12-04  Bruno Haible  <bruno@clisp.org>
79991
79992                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79993                 launcher (untested).
79994
79995         2005-12-04  Bruno Haible  <bruno@clisp.org>
79996
79997                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79998
79999         2006-07-22  Bruno Haible  <bruno@clisp.org>
80000
80001                 * gettext.m4: Update from GNU gettext-0.15.
80002                 * nls.m4: Likewise.
80003                 * po.m4: Likewise.
80004                 * inttypes-pri.m4: Likewise.
80005                 * inttypes-h.m4: Renamed from inttypes.m4.
80006                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80007
80008 2006-07-22  Bruno Haible  <bruno@clisp.org>
80009
80010         Merge from GNU gettext 0.15.
80011
80012         2005-07-05  Bruno Haible  <bruno@clisp.org>
80013
80014                 * printf-args.c (printf_fetchargs): Work around broken
80015                 definition of wint_t on mingw.
80016
80017         2005-02-12  Bruno Haible  <bruno@clisp.org>
80018
80019                 * xallocsa.h: Add extern "C" for C++.
80020
80021         2006-05-17  Bruno Haible  <bruno@clisp.org>
80022
80023                 Cygwin portability.
80024                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80025
80026         2006-04-30  Bruno Haible  <bruno@clisp.org>
80027
80028                 * progreloc.c: Include <mach-o/dyld.h> if available.
80029                 (find_executable): Use _NSGetExecutablePath when possible.
80030
80031         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80032
80033                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80034                 function.
80035
80036         2005-12-29  Bruno Haible  <bruno@clisp.org>
80037
80038                 * progreloc.c (set_program_name_and_installdir): Fix
80039                 compilation error.
80040
80041         2005-12-04  Bruno Haible  <bruno@clisp.org>
80042
80043                 Cygwin portability.
80044                 * progreloc.c: Include <windows.h> also on Cygwin.
80045                 (find_executable): Add support for Cygwin.
80046                 (set_program_name_and_installdir): Handle also platforms with
80047                 nonempty EXEEXT.
80048
80049         2006-07-11  Bruno Haible  <bruno@clisp.org>
80050
80051                 * javacomp.c: Fix a comment.
80052                 Reported by Jim Meyering.
80053
80054         2006-04-30  Bruno Haible  <bruno@clisp.org>
80055
80056                 * javacomp.h (compile_java_class): Add source_version,
80057                 target_version arguments.
80058                 * javacomp.c: Rewritten to choose only a compiler that
80059                 respects the specified source_version and target_version.
80060
80061         2006-06-27  Bruno Haible  <bruno@clisp.org>
80062
80063                 Assume correct S_ISDIR macro.
80064                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80065
80066         2006-07-22  Bruno Haible  <bruno@clisp.org>
80067
80068                 * javaversion.h: New file, from GNU gettext.
80069                 * javaversion.c: New file, from GNU gettext.
80070                 * javaversion.java: New file, from GNU gettext.
80071                 * javaversion.class: New file, from GNU gettext.
80072
80073         2006-05-17  Bruno Haible  <bruno@clisp.org>
80074
80075                 Cygwin portability.
80076                 * javaexec.c (execute_java_class): Test for jview program
80077                 also on Cygwin.
80078
80079         2006-04-09  Bruno Haible  <bruno@clisp.org>
80080
80081                 * fatal-signal.c: Don't include string.h.
80082                 (at_fatal_signal): Use a copying loop instead of memcpy.
80083
80084         2005-12-04  Bruno Haible  <bruno@clisp.org>
80085
80086                 * csharpexec.c: Add support for 'clix' launcher (untested).
80087                 (execute_csharp_using_sscli): New function.
80088                 (execute_csharp_program): Call it.
80089
80090         2006-06-21  Bruno Haible  <bruno@clisp.org>
80091
80092                 Avoid warnings from recent versions of mcs.
80093                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80094                 -o, -L, -r any more. Use options documented since mcs-1.0
80095                 instead. Similarly for -g.
80096
80097         2005-07-09  Bruno Haible  <bruno@clisp.org>
80098
80099                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80100                 add a .dll suffix.
80101                 Reported by Mark Junker <mjscod@gmx.de>.
80102
80103         2006-06-17  Bruno Haible  <bruno@clisp.org>
80104
80105                 * config.charset: Update for NetBSD 3.0.
80106
80107         2006-05-17  Bruno Haible  <bruno@clisp.org>
80108
80109                 Cygwin portability.
80110                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80111
80112         2006-05-16  Bruno Haible  <bruno@clisp.org>
80113
80114                 * localcharset.c [CYGWIN]: Include <windows.h>.
80115                 (get_charset_aliases): For Cygwin, return the same CPxxx
80116                 aliases list as under WIN32.
80117                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80118                 the environment variables. Fall back to GetACP().
80119
80120         2006-04-05  Bruno Haible  <bruno@clisp.org>
80121
80122                 * config.charset: Update Juan Manuel Guerrero's address.
80123
80124         2005-02-12  Bruno Haible  <bruno@clisp.org>
80125
80126                 * allocsa.h: Add extern "C" for C++.
80127
80128         2005-02-10  Bruno Haible  <bruno@clisp.org>
80129
80130                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80131                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80132
80133         2006-07-22  Bruno Haible  <bruno@clisp.org>
80134
80135                 * gettext.h: Update to GNU gettext-0.15.
80136
80137 2006-07-22  Bruno Haible  <bruno@clisp.org>
80138
80139         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80140         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80141         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80142
80143 2006-07-21  Eric Blake  <ebb9@byu.net>
80144
80145         * modules/stdlib-safer: New file.
80146         * MODULES.html.sh (File stream based Input/Output): Add
80147         stdlib-safer.
80148
80149 2006-07-21  Eric Blake  <ebb9@byu.net>
80150
80151         * lib/stdlib-safer.h: New file from coreutils, required by
80152         stdlib--.h.
80153
80154 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80157
80158 2006-07-20  Bruno Haible  <bruno@clisp.org>
80159
80160         * gnulib-tool: Recognize new option --assume-autoconf.
80161         (autoconf_minversion): New variable.
80162         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80163
80164 2006-07-20  Bruno Haible  <bruno@clisp.org>
80165
80166         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80167
80168 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80169
80170         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80171         Reindent and repaginate.
80172
80173 2006-07-19  Derek Price  <derek@ximbiot.com>
80174
80175         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80176         Correct grammar.
80177
80178 2006-07-17  Bruno Haible  <bruno@clisp.org>
80179
80180         * modules/list: New file.
80181         * modules/array-list: New file.
80182         * modules/carray-list, modules/carray-list-tests: New files.
80183         * modules/linked-list, modules/linked-list-tests: New files.
80184         * modules/avltree-list, modules/avltree-list-tests: New files.
80185         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80186         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80187         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80188         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80189         * modules/oset: New file.
80190         * modules/array-oset: New file.
80191         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80192         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80193         * tests/test-carray_list.c: New file.
80194         * tests/test-linked_list.c: New file.
80195         * tests/test-avltree_list.c: New file.
80196         * tests/test-rbtree_list.c: New file.
80197         * tests/test-linkedhash_list.c: New file.
80198         * tests/test-avltreehash_list.c: New file.
80199         * tests/test-rbtreehash_list.c: New file.
80200         * tests/test-avltree_oset.c: New file.
80201         * tests/test-rbtree_oset.c: New file.
80202         * MODULES.html.sh (Container data structures): New section.
80203
80204 2006-07-17  Bruno Haible  <bruno@clisp.org>
80205
80206         * m4/gl_list.m4: New file.
80207
80208 2006-07-17  Bruno Haible  <bruno@clisp.org>
80209
80210         * lib/gl_list.h: New file.
80211         * lib/gl_list.c: New file.
80212         * lib/gl_array_list.h: New file.
80213         * lib/gl_array_list.c: New file.
80214         * lib/gl_carray_list.h: New file.
80215         * lib/gl_carray_list.c: New file.
80216         * lib/gl_linked_list.h: New file.
80217         * lib/gl_linked_list.c: New file.
80218         * lib/gl_anylinked_list1.h: New file.
80219         * lib/gl_anylinked_list2.h: New file.
80220         * lib/gl_avltree_list.h: New file.
80221         * lib/gl_avltree_list.c: New file.
80222         * lib/gl_anyavltree_list1.h: New file.
80223         * lib/gl_anyavltree_list2.h: New file.
80224         * lib/gl_rbtree_list.h: New file.
80225         * lib/gl_rbtree_list.c: New file.
80226         * lib/gl_anyrbtree_list1.h: New file.
80227         * lib/gl_anyrbtree_list2.h: New file.
80228         * lib/gl_anytree_list1.h: New file.
80229         * lib/gl_anytree_list2.h: New file.
80230         * lib/gl_linkedhash_list.h: New file.
80231         * lib/gl_linkedhash_list.c: New file.
80232         * lib/gl_anyhash_list1.h: New file.
80233         * lib/gl_anyhash_list2.h: New file.
80234         * lib/gl_avltreehash_list.h: New file.
80235         * lib/gl_avltreehash_list.c: New file.
80236         * lib/gl_rbtreehash_list.h: New file.
80237         * lib/gl_rbtreehash_list.c: New file.
80238         * lib/gl_anytreehash_list1.h: New file.
80239         * lib/gl_anytreehash_list2.h: New file.
80240
80241         * lib/gl_oset.h: New file.
80242         * lib/gl_oset.c: New file.
80243         * lib/gl_array_oset.h: New file.
80244         * lib/gl_array_oset.c: New file.
80245         * lib/gl_avltree_oset.h: New file.
80246         * lib/gl_avltree_oset.c: New file.
80247         * lib/gl_rbtree_oset.h: New file.
80248         * lib/gl_rbtree_oset.c: New file.
80249         * lib/gl_anytree_oset.h: New file.
80250
80251 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80252
80253         * m4/mkancesdirs.m4: New file.
80254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80255         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80256         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80257         it.
80258
80259 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80262         * lib/mkancesdirs.h: New files.
80263         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80264         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80265         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80266         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80267         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80268         callers changed.  Revamp internals significantly, by not
80269         attempting to create directories that are temporarily more
80270         permissive than the final results.  Do not attempt to use
80271         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80272         This removes some race conditions, fixes some bugs, and simplifies
80273         things.  Use new dirchownmod function to do owner and mode changes.
80274         * lib/mkdir-p.h: Likewise.
80275         * lib/modechange.c (octal_to_mode): New function.
80276         (struct mode_change): New member mentioned.
80277         (make_node_op_equals): New arg mentioned.  All callers changed.
80278         (mode_compile): Keep track of which mode bits the user has explicitly
80279         mentioned.
80280         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80281         New arg PMODE_BITS, to keep track of which mode bits the user
80282         mentioned; it treats S_ISUID and S_ISGID speciall.
80283         All callers changed.
80284         * lib/modechange.h: Likewise.
80285
80286 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80287
80288         * MODULES.html.sh: Add mkancestors.
80289         * modules/mkancesdirs: New module.
80290         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80291         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80292         The chdir-safer and afs files are now orphans; I'll remove them
80293         unless someone speaks up.
80294         Add lib/dirchownmod.c, lib/dirchownmod.h.
80295         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80296         Add lchown, mkancesdirs.
80297         (Maintainer): Add self.
80298
80299 2006-07-15  Karl Berry  <karl@gnu.org>
80300
80301         * gnulib-tool: help message wording/arrangement.
80302
80303 2006-07-14  Simon Josefsson  <jas@extundo.com>
80304
80305         * doc/gnulib.texi (Libtool and Windows): New section.
80306
80307 2006-07-12  Simon Josefsson  <jas@extundo.com>
80308
80309         * modules/gendocs (License): Fix license, approved by Karl.
80310
80311 2006-07-12  Eric Blake  <ebb9@byu.net>
80312
80313         * MODULES.html.sh: Add gendocs.
80314
80315 2006-07-11  Eric Blake  <ebb9@byu.net>
80316
80317         * modules/fdl: New module, to install doc/fdl.texi.
80318         * MODULES.html.sh: Add new section for documentation modules.
80319         * gnulib-tool: Avoid space-tab.
80320         (--doc-base): New option, to manage files from doc.
80321
80322 2006-07-11  Eric Blake  <ebb9@byu.net>
80323
80324         * m4/absolute-header.m4: Fix comments to match recent change.
80325
80326 2006-07-11  Eric Blake  <ebb9@byu.net>
80327
80328         * gnulib-tool: List --doc-base before --tests-base.
80329
80330 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80331
80332         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80333
80334 2006-07-11  Bruno Haible  <bruno@clisp.org>
80335
80336         * README: Mention where to put documentation.
80337
80338 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80339
80340         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80341
80342 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80345         to stdint.m4.
80346
80347 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80350         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80351         "no/such/file/stdint.h" when there is no such file, so that
80352         the resulting C code can be parsed by dodgy compilers.
80353         Problems reported by Bob Proulx.
80354
80355 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80356
80357         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80358         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80359         macros into the GNU _D_EXACT_NAMLEN.
80360         * lib/savedir.c:  Likewise.
80361         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80362
80363 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80364         and Paul Eggert  <eggert@cs.ucla.edu>
80365
80366         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80367         * m4/savedir.m4:
80368         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80369         macros into the GNU _D_EXACT_NAMLEN.
80370
80371 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80372
80373         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80374         around the absolute name, to work around a problem with the HP-UX
80375         11.23 native C compiler, reported by Bob Proulx.
80376
80377 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * doc/maintain.texi, make-stds.texi: Sync from
80380         <http://savannah.gnu.org/projects/gnustandards>.
80381
80382 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80385
80386 2006-07-09  Jim Meyering  <jim@meyering.net>
80387
80388         * m4/glob.m4: Remove a doubled word in a comment.
80389
80390 2006-07-09  Jim Meyering  <jim@meyering.net>
80391
80392         * lib/argp-pv.c: Remove a doubled word in a comment.
80393         * lib/check-version.c (check_version): Likewise.
80394         * lib/javacomp.c (compile_java_class): Likewise.
80395
80396 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80399         for the benefit of people using Autoconf 2.60.  If you want to
80400         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80401         (or m4/onceonly.m4, if pre-2.57) manually.
80402
80403 2006-07-08  Jim Meyering  <jim@meyering.net>
80404
80405         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80406         comment.
80407         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80408         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80409         comment.
80410
80411 2006-07-08  Jim Meyering  <jim@meyering.net>
80412
80413         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80414
80415 2006-07-07  Simon Josefsson  <jas@extundo.com>
80416
80417         * tests/test-crc.c: Change expected crc value, the test vector
80418         were probably computed using the old broken crc.c?
80419
80420 2006-07-06  Simon Josefsson  <jas@extundo.com>
80421
80422         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80423         now the canonical place for the M4 file).
80424
80425         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80426         from the sys_socket dependency now.
80427
80428         * modules/inet_pton (Files): Ditto.
80429
80430         * modules/inet_ntop (Files): Ditto.
80431
80432 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80433
80434         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80435         not gl_PREREQ_GETUSERSHELL.
80436
80437 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80438
80439         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80440         with only one argument, for Autoconf 2.60.
80441         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80442         expand to nothing, so add a shell command to avoid syntax error.
80443         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80444
80445 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80446
80447         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80448
80449 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80452         no longer needed.  Check for isblank decl.
80453         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80454         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80455         of existence.
80456
80457 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80458
80459         * lib/getloadavg.c: Use __VMS, not VMS.
80460         * lib/getopt.c: Likewise.
80461         * lib/getpagesize.h: Likewise.
80462         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80463         and probably does not work.
80464
80465 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         * lib/.cppi-disable: Add wcwidth.
80468         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80469         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80470         (ISGRAPH): Remove.  All uses changed to isgraph.
80471         (FOLD) [!defined _LIBC]: Remove special case.
80472         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80473         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80474         HAVE_ISBLANK.
80475         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80476         case.
80477
80478 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80479
80480         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80481         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80482         brackets.  Other minor changes to suppress some compiler
80483         warnings.
80484
80485 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80486         and Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80489         of invoking obsolescent AC_HEADER_DIRENT macro.
80490         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80491         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80492         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80493         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80494         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80495         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80496         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80497         * m4/readdir.m4: Remove; no longer needed.
80498
80499 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80500         and Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80503         Don't worry about this obsolete case any more.
80504         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80505         directories.
80506         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80507         worry about this obsolete case any more.
80508         * lib/fts.c: Likewise.
80509         * lib/getcwd.c: Likewise.
80510         * lib/glob.h: Likewise.
80511         * lib/savedir.c: Likewise.
80512
80513 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80516         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80517         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80518         needed.
80519         All uses removed.
80520         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80521         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80522         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80523         needed.
80524         * m4/getdate.m4 (gl_GETDATE): Likewise.
80525         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80526         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80527         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80528         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80529         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80530         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80531         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80532         needed.
80533
80534 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * lib/memcasecmp.c: Include <limits.h>.
80537         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80538         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80539         Don't assume isdigit succeeds only on '0' through '9'.
80540
80541 2006-07-05  Eric Blake  <ebb9@byu.net>
80542
80543         * modules/getaddrinfo (Depends-on): Add snprintf.
80544
80545 2006-07-05  Eric Blake  <ebb9@byu.net>
80546
80547         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80548         to avoid 'header present but could not be compiled' on cygwin.
80549
80550 2006-07-05  Eric Blake  <ebb9@byu.net>
80551
80552         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80553         missing from netdb.h.
80554         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80555
80556 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80557
80558         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80559         no longer needed.
80560         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80561         * m4/getdate.m4 (gl_GETDATE): Likewise.
80562         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80563         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80564         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80565         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80566         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80567
80568 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80569
80570         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80571         All uses of is_space replaced by isspace.
80572         * lib/exit.h: Don't talk about STDC_HEADERS.
80573         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80574         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80575         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80576         replaced by isprint etc.
80577         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80578         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80579         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80580         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80581         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80582         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80583
80584 2006-07-05  Bruno Haible  <bruno@clisp.org>
80585
80586         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80587         the function exists, before testing against AIX.
80588         Reported by Martin Lambers <marlam@marlam.de>.
80589
80590 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80591
80592         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80593         From Mark D. Baushke.
80594
80595 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80598         to the absolute name, not just one, to bypass Sun C 5.8's
80599         "warning: #include of /usr/include/... may be non-portable".
80600
80601 2006-07-04  Eric Blake  <ebb9@byu.net>
80602
80603         * modules/dirname-tests: New test module.
80604         * tests/test-dirname.c: New file, replacing dirname.c
80605         TEST_DIRNAME section that was recently deleted.
80606
80607 2006-07-04  Bruno Haible  <bruno@clisp.org>
80608
80609         Assume ANSI C header files and <ctype.h> functions.
80610         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80611         (mbsnwidth): Use isprint, iscntrl instead.
80612
80613 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80614
80615         Merge from coreutils.
80616         * MODULES.html.sh: Add xstrtold.
80617         * modules/xstrtold: New file.
80618         * modules/cycle-check (Files): Add lib/same-inode.h.
80619         * modules/dirname (Files): Add m4/double-slash-root.m4.
80620         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80621         * modules/mkdir-p (Files): Add lib/same-inode.h.
80622         * modules/same (Files): Add lib/same-inode.h.
80623
80624 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80627         This is to keep the terminology clean; POSIX talks about
80628         "absolute pathnames", not "full pathnames", but the GNU
80629         Coding Standards say to use "path" for something else;
80630         so use "absolute" to keep both sides happy.
80631         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80632         Set gl_absolute_header, not gl_full_header_path.
80633         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80634         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80635         All uses changed.
80636
80637         Merge from coreutils.
80638
80639         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80640
80641         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80642         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80643         want to require the building of c-strtod.o.
80644         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80645         needs -lm directly.
80646         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80647
80648         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80649
80650         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80651         --as-needed option if available.  Problem reported by Albert Chin in
80652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80653         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80654         cc merely issues a bunch of annoying warnings for --as-needed
80655         (this problem was reported by Bob Proulx).  Also, try linking with
80656         -lm to detect a bug in binutils 2.16 (this problem was reported
80657         by Ralf Wildenhues).
80658
80659         2006-06-18  Jim Meyering  <jim@meyering.net>
80660
80661         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80662         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80663         macro.
80664         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80665         also check for glibc-2.4's abort-inducing bug.
80666
80667         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80668         Low-probability clean-up should be to use rmdir to get rid of
80669         the just-created directory, not unlink.
80670
80671         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80672         configure fail, and request a bug report to inform us about it.
80673         Add a comment that, barring reports to the contrary, in 2007 we'll
80674         assume ftruncate is universally available.
80675
80676         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80679
80680         2006-03-12  Jim Meyering  <jim@meyering.net>
80681
80682         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80683         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80684         * m4/same.m4 (gl_SAME): Likewise.
80685         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80686
80687         2006-03-11  Eric Blake  <ebb9@byu.net>
80688
80689         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80690         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80691         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80692         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80693
80694 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80697         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80698         reported by Mark D. Baushke, one in
80699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80700
80701         Merge from coreutils.
80702
80703         * lib/.cppi-disable: Add stdint_.h.
80704         * lib/.cvsignore: Add stdint.h.
80705
80706         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80707
80708         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80709         both double and long double versions.
80710         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80711         * lib/xstrtold.c: New file.
80712         * lib/xstrtod.h (xstrtold): New decl.
80713
80714         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * lib/filemode.c (setst): Remove.
80717         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80718         (arguably) clearer, and the generated code is a bit smaller on my
80719         Debian GNU/Linux stable x86 host.
80720
80721         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80724         Assume that filemode.h includes sys/types.h and sys/stat.h.
80725         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80726         (ftypelet): Reorder to put common cases first, for efficiency.
80727         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80728         to do 'M'.
80729         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80730         of 10, for compatibility with FreeBSD.  All callers changed.
80731         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80732         types that can't be deduced solely from st_mode.  First arg is now a
80733         const pointer.
80734         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80735         (strmode): Renamed from mode_string.
80736         (filemodestring): New decl.
80737         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80738         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80739         needed.
80740         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80741
80742         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80745         fsusage.h now does that.  Include fsusage.h first, to test interface.
80746         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80747         at most one method (the old code could have generated decls that
80748         didn't conform to C89, not that this was ever exercised).
80749         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80750
80751         2006-03-19  Jim Meyering  <jim@meyering.net>
80752
80753         Work even in a chroot where d_ino values for entries in "/"
80754         don't match the stat.st_ino values for the same names.
80755         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80756         number, iterate through all entries again, using lstat instead.
80757         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80758         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80759
80760         * lib/getcwd.c (__getcwd): Clarify a comment.
80761         Use memcpy in place of a call to strcpy.
80762
80763         2006-03-12  Jim Meyering  <jim@meyering.net>
80764
80765         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80766         matches that of the current directory (which we're about to chdir ".."
80767         out of), then save the dev-ino of the parent, instead.
80768
80769         * lib/same-inode.h (SAME_INODE): New file/macro.
80770         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80771         Include "same-inode.h", instead.
80772         * lib/same.c: Likewise.
80773         * lib/cycle-check.h: Include "same-inode.h".
80774         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80775         * lib/cycle-check.c (SAME_INODE): Remove definition.
80776         * lib/root-dev-ino.h: Include "same-inode.h".
80777
80778         2006-03-11  Eric Blake  <ebb9@byu.net>
80779
80780         * lib/same.c (same_name): s/base_name/last_component/
80781         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80782         * lib/filenamecat.c (file_name_concat): Likewise.
80783
80784         2006-03-11  Eric Blake  <ebb9@byu.net>,
80785                     Paul Eggert  <eggert@cs.ucla.edu>
80786
80787         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80788         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80789         drive prefix.
80790         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80791         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80792         (last_component): New method.
80793         * lib/dirname.c (dir_len): Determine when drive letters need a
80794         subsequent slash.  Preserve // when it is special.
80795         (dir_name): Don't append dot when drive letter is absolute.
80796         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80797         * lib/basename.c (base_name): New semantics - malloc the result.
80798         Preserve // when it is special.  Preserve relative files that look
80799         like drive letters.
80800         (base_len): Preserve // when it is special.
80801         (last_component): New method, similar to old base_name semantics.
80802         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80803         base_name.  Strip redundant slashes from ///.
80804
80805 2006-07-03  Jim Meyering  <jim@meyering.net>
80806
80807         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80808         macro is used before the first cycle_check call.
80809
80810 2006-07-03  Eric Blake  <ebb9@byu.net>
80811
80812         * modules/dirname (Depends-on): Add xstrndup.
80813
80814 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80815
80816         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80817         test cases, so that config.log is a bit easier to follow.
80818
80819 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80822         both are 64 bits, since this seems to be the tradition, and this
80823         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80824         we ever run into a host that prefers long long to long in this
80825         case, we'll need another configure-time test.  Problem reported by
80826         Jim Meyering.
80827
80828 2006-07-02  Eric Blake  <ebb9@byu.net>
80829
80830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80831
80832 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80833
80834         * modules/inttypes (Depends-on): No longer depends on stdint.
80835         * modules/stdint (Description): Say more about assumptions.
80836         Say that the fast types might differ.  Say macros are used.
80837         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80838         (Makefile.am): Revise list of substituted symbols to match
80839         new stdint.m4.
80840         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80841         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80842         * tests/test-stdint.c (verify_same_types)
80843         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80844         the code conforms to C99/C89.
80845         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80846         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80847
80848 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80851         but fix a bug, by requiring at least 64 bits.
80852         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80853         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80854         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80855         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80856
80857         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80858         changes.  Make 2.59 a prerequisite.  Check and substitute for
80859         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80860         inttypes.h.  Do not use special include files; just use the
80861         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80862         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80863         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80864         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80865         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80866         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80867         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80868         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80869         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80870         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80871         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80872         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80873         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80874         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80875         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80876         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80877         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80878         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80879         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80880         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80881         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80882         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80883         not check for things that C99 does not require, e.g., int8_t.  If
80884         a test isn't needed unless <stdint.h> isn't working, and is
80885         unlikely to be needed for any other reason, then don't do it
80886         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80887         size_t, since we assume C89 freestanding at least.  Do not check
80888         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80889         the right thing even if the types are not defined.  Instead use:
80890         (gl_STDINT_TYPE_PROPERTIES): New macro.
80891         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80892         testing whether <sys/types.h> clashes, as Autoconf does this for
80893         us now.  All uses removed.
80894         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80895         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80896         (gl_CHECK_TYPE_SAME):
80897         Remove; no longer needed.
80898         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80899         exists, since we'll return 0 anyway in that case.
80900         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80901
80902 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80903
80904         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80905         possible collision with system files.
80906         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80907         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80908         WCHAR_MIN and WCHAR_MAX in this case.
80909         (<stddef.h>): Do not include; no longer needed.
80910         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80911         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80912         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80913         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80914         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80915         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80916         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80917         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80918         !defined(__c99))]: Include in this case too, since it's harmless
80919         now.
80920         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80921         dangerous to do so.
80922         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80923         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80924         (_STDINT_MIN, _STDINT_MAX): New macros.
80925         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80926         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80927         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80928         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80929         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80930         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80931         macros, not typedefs; this simplifies things quite a bit.
80932         Use long int for all types narrower than int64_t.
80933         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80934         Define in terms of long long int or int64_t or long int,
80935         not int64_t or int32_t.  This saves some compile-time testing.
80936         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80937         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80938         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80939         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80940         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80941         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80942         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80943         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80944         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80945         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80946         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80947         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80948         undef any previous version and define our own version, for
80949         simplicity and consistency with the new macros for types.
80950         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80951         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80952         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80953         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80954         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80955         @WINT_T_SUFFIX@ to keep things simple here.
80956         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80957         Simplify by assuming typical 8/16/32/64 host, since we're
80958         already doing that elsewhere anyway.
80959         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80960         and assume long long int is 64 bits if available.  This
80961         speeds up 'configure'.
80962
80963 2006-07-01  Eric Blake  <ebb9@byu.net>
80964
80965         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80966         Reported by Andreas Buening.
80967
80968 2006-07-01  Eric Blake  <ebb9@byu.net>
80969
80970         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80971
80972 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80973
80974         * lib/getaddrinfo.c: fixed typo
80975
80976 2006-06-29  Jim Meyering  <jim@meyering.net>
80977
80978         * modules/strftime (Maintainer): Add my name, since with the
80979         FPRINTFTIME changes strftime.c has forked from glibc.
80980
80981 2006-06-29  Eric Blake  <ebb9@byu.net>
80982
80983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80984
80985 2006-06-29  Eric Blake  <ebb9@byu.net>
80986
80987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80988
80989 2006-06-29  Eric Blake  <ebb9@byu.net>
80990
80991         * lib/stat_.h: New file.
80992
80993 2006-06-29  Eric Blake  <ebb9@byu.net>
80994
80995         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80996         unused static function.
80997
80998 2006-06-29  Eric Blake  <ebb9@byu.net>
80999
81000         * doc/functions.texi (Function Portability): Document missing lstat
81001         on mingw.
81002
81003 2006-06-29  Eric Blake  <ebb9@byu.net>
81004
81005         * MODULES.html.sh: Add sys_stat.
81006         * modules/sys_stat: New module.
81007         * modules/mkstemp (Depends-on): Add sys_stat.
81008
81009 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81010
81011         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81012
81013 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81014
81015         * m4/c-bs-a.m4: Removed.
81016
81017 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81018
81019         * lib/strftime.c: Assume strftime() exists.
81020
81021 2006-06-29  Derek Price  <derek@ximbiot.com>
81022
81023         * modules/c-bs-a: Removed - \a is C89.
81024         * MODULES.html.sh: Remove c-bs-a.
81025
81026 2006-06-29  Bruno Haible  <bruno@clisp.org>
81027
81028         * modules/wcwidth (License): Change to LGPL.
81029
81030 2006-06-28  Simon Josefsson  <jas@extundo.com>
81031
81032         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81033         on _WIN32.
81034
81035         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81036         getnameinfo.
81037
81038 2006-06-28  Simon Josefsson  <jas@extundo.com>
81039
81040         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81041
81042 2006-06-28  Simon Josefsson  <jas@extundo.com>
81043
81044         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81045         functions there.  It will succeed on Windows XP, but on Windows
81046         2000 and (presumably) earlier, it will fail, and use the internal
81047         re-implementation.
81048         (use_win32_p): New function.
81049         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81050         Support AI_NUMERICSERV to disable getservbyname.
81051         (getnameinfo): New function, only supports
81052         NI_NUMERICHOST|NI_NUMERICSERV for now.
81053
81054         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81055         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81056         getnameinfo.
81057
81058 2006-06-28  Eric Blake  <ebb9@byu.net>
81059
81060         * modules/wcwidth: New file.
81061         * modules/mbchar (Depends-on): Add wcwidth.
81062         * modules/mbswidth (Depends-on): Add wcwidth.
81063         * MODULES.html.sh: Add wcwidth.
81064
81065 2006-06-28  Eric Blake  <ebb9@byu.net>
81066
81067         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81069
81070 2006-06-28  Eric Blake  <ebb9@byu.net>
81071
81072         * lib/xvasprintf.h: Fix comments.
81073
81074 2006-06-28  Eric Blake  <ebb9@byu.net>
81075
81076         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81077         * lib/mbswidth.c (wcwidth): Move from here...
81078         * lib/wcwidth.h: ...to this new file.
81079
81080 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81081
81082         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81083
81084         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81085         it's obsolete.
81086         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81087
81088 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81089
81090         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81091         Autoconf 2.60 says this stuff was obsolete.
81092
81093 2006-06-28  Bruno Haible  <bruno@clisp.org>
81094
81095         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81096
81097 2006-06-28  Bruno Haible  <bruno@clisp.org>
81098
81099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81100         gt_TYPE_WCHAR_T.
81101
81102 2006-06-28  Bruno Haible  <bruno@clisp.org>
81103
81104         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81105         declaration for wcwidth.
81106         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81107
81108 2006-06-28  Bruno Haible  <bruno@clisp.org>
81109
81110         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81111         (mkdir): Define using _mkdir.
81112
81113 2006-06-28  Bruno Haible  <bruno@clisp.org>
81114
81115         * lib/getaddrinfo.h: Fix POSIX URL.
81116         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81117         _WIN32.
81118         (use_win32_p): Make static.
81119         (getaddrinfo): Reject service name if it is empty or does not consist
81120         solely of decimal digits, or if its value is > 65535.
81121         (getnameinfo): Remove useless casts.
81122
81123 2006-06-27  Simon Josefsson  <jas@extundo.com>
81124
81125         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81126         Eggert and Martin Lambers.
81127
81128 2006-06-27  Simon Josefsson  <jas@extundo.com>
81129
81130         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81131         Eggert and Martin Lambers.
81132
81133 2006-06-27  Bruno Haible  <bruno@clisp.org>
81134
81135         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81136         result to 0, not to empty.
81137         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81138
81139 2006-06-27  Bruno Haible  <bruno@clisp.org>
81140
81141         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81142
81143 2006-06-26  Simon Josefsson  <jas@extundo.com>
81144
81145         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81146         present.
81147
81148 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81151         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81153
81154 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81155
81156         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81157
81158 2006-06-26  Bruno Haible  <bruno@clisp.org>
81159
81160         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81161
81162 2006-06-26  Bruno Haible  <bruno@clisp.org>
81163
81164         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81165
81166 2006-06-26  Bruno Haible  <bruno@clisp.org>
81167
81168         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81169         SGI C compiler in pre-C99 mode.
81170         Suggested by Mark D. Baushke and Larry Jones.
81171
81172 2006-06-26  Bruno Haible  <bruno@clisp.org>
81173
81174         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81175         WCHAR_MAX.
81176         Reported by Mark D. Baushke and Larry Jones.
81177
81178 2006-06-26  Bruno Haible  <bruno@clisp.org>
81179
81180         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81181         in pre-C99 mode.
81182         Suggested by Mark D. Baushke and Larry Jones.
81183
81184 2006-06-23  Simon Josefsson  <jas@extundo.com>
81185             Bruno Haible  <bruno@clisp.org>
81186
81187         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81188         Emit mostlyclean-local rule.
81189         (func_emit_tests_Makefile_am): Likewise.
81190         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81191
81192 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81193
81194         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81195
81196 2006-06-23  Bruno Haible  <bruno@clisp.org>
81197
81198         * tests/test-stdint.c: Update to match ISO C 99 Technical
81199         Corrigendum 1.
81200
81201 2006-06-23  Bruno Haible  <bruno@clisp.org>
81202
81203         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81204
81205 2006-06-23  Bruno Haible  <bruno@clisp.org>
81206
81207         * lib/stdint_.h: Treat IRIX like OpenBSD.
81208
81209 2006-06-23  Bruno Haible  <bruno@clisp.org>
81210
81211         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81212         ISO C 99 Technical Corrigendum 1.
81213
81214 2006-06-22  Simon Josefsson  <jas@extundo.com>
81215
81216         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81217         MinGW.
81218
81219 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81222         needed.  Some compiler complained about some of them.  Problem reported
81223         by Larry Jones in
81224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81225
81226 2006-06-21  Simon Josefsson  <jas@extundo.com>
81227
81228         * tests/test-getaddrinfo.c: New file.
81229
81230         * modules/getaddrinfo-tests: New file.
81231
81232         * MODULES.html.sh: Add inet_pton.
81233
81234         * modules/inet_pton: New file.
81235
81236 2006-06-21  Simon Josefsson  <jas@extundo.com>
81237
81238         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81239         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81240         of using the (limited) gnulib implementation on Windows XP.
81241
81242         * m4/inet_pton.m4: New file.
81243
81244 2006-06-21  Simon Josefsson  <jas@extundo.com>
81245
81246         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81247         variable.
81248
81249         * lib/socket_.h: Don't define WINVER.
81250
81251         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81252         slightly modified to work in gnulib.
81253
81254 2006-06-21  Simon Josefsson  <jas@extundo.com>
81255
81256         * doc/gnulib.texi (Windows sockets): Add.
81257
81258 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         * lib/read-file.c (fread_file): Start with buffer allocation of
81261         0 bytes rather than 1 byte; this simplifies the code.
81262         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81263         code to free buffer and save/restore errno.
81264         (internal_read_file): Remove unused local.
81265
81266 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81267
81268         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81269         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81270         Problem reported by Denis Excoffier in
81271         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81272
81273 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81274
81275         * modules/sys_socket, modules/socklen: Include sys/types since
81276         FreeBSD 4.x's sys/socket.h needs it.
81277
81278 2006-06-19  Simon Josefsson  <jas@extundo.com>
81279
81280         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81281
81282 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81283
81284         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81285
81286 2006-06-19  Bruno Haible  <bruno@clisp.org>
81287
81288         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81289         and FULL_PATH_INTTYPES_H in angle brackets.
81290         Reported by Mark D. Baushke <mdb@gnu.org>.
81291
81292 2006-06-17  Eric Blake  <ebb9@byu.net>
81293
81294         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81295         errno.
81296
81297 2006-06-17  Bruno Haible  <bruno@clisp.org>
81298
81299         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81300         <sys/inttypes.h>.
81301
81302 2006-06-17  Bruno Haible  <bruno@clisp.org>
81303
81304         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81305         whether errno is declared. Assume <errno.h> declares errno.
81306
81307 2006-06-17  Bruno Haible  <bruno@clisp.org>
81308
81309         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81310
81311 2006-06-17  Bruno Haible  <bruno@clisp.org>
81312
81313         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81314         problem on Solaris 2.5.1.
81315
81316 2006-06-16  Eric Blake  <ebb9@byu.net>
81317
81318         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81319         * lib/unicodeio.c [!defined errno]: Likewise.
81320         * lib/strtol.c [!defined errno]: Likewise.
81321         * lib/strtod.c [!defined errno]: Likewise.
81322
81323 2006-06-15  Eric Blake  <ebb9@byu.net>
81324
81325         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81326
81327 2006-06-15  Eric Blake  <ebb9@byu.net>
81328
81329         * config/srclist.txt (ssize_t.m4): Lose sync.
81330
81331 2006-06-15  Bruno Haible  <bruno@clisp.org>
81332
81333         * modules/stdint (Files): Include m4/full-header-path.m4,
81334         m4/size_max.m4, m4/wchar_t.m4.
81335         (Makefile.am): Many more substitutions.
81336         * modules/stdint-tests: New file.
81337         * tests/test-stdint.c: New file.
81338
81339 2006-06-15  Bruno Haible  <bruno@clisp.org>
81340
81341         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81342         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81343         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81344         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81345         gl_CHECK_TYPE_SAME): New macros.
81346
81347 2006-06-15  Bruno Haible  <bruno@clisp.org>
81348
81349         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81350
81351 2006-06-15  Bruno Haible  <bruno@clisp.org>
81352
81353         * lib/stdint_.h: Rewritten to be fully auto-configured.
81354         Fixes bug on HP-UX/IA64.
81355
81356 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         * lib/getdate.y (__attribute__): Don't define if already defined.
81359         Problem reported by Larry Jones.
81360         * lib/utimens.c (__attribute__): Likewise.
81361
81362 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81363
81364         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81365         reported by Andreas Schwab.
81366
81367 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81368             Bruno Haible  <bruno@clisp.org>
81369
81370         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81371         check for the declaration of strnlen and a run test that exposes the
81372         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81373         rpl_strndup.
81374
81375 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81376             Bruno Haible  <bruno@clisp.org>
81377
81378         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81379
81380 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81381
81382         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81383         compile test, for Tru64 4.0D.
81384
81385 2006-05-28  Karl Berry  <karl@gnu.org>
81386
81387         * config/srclist.txt (printf-args.c): lose sync.
81388
81389 2006-05-26  Martin Lambers  <marlam@marlam.de>
81390
81391         * lib/getpass.c: Updates the test for the native W32 API, and adds
81392         missing includes, thus fixing compilation warnings.
81393
81394 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81395
81396         * lib/exclude.c (exclude_fnmatch): New function.
81397         (excluded_file_name): Call exclude_fnmatch.
81398         * lib/exclude.h (excluded_file_name): New prototype
81399
81400 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81401
81402         * lib/tempname.c (small_open, large_open): New macros.
81403         (__open, __open64) [!_LIBC]: Remove.
81404         (__gen_tempname): Use small_open and large_open instead of __open
81405         and __open64.  This fixes a portability bug on HP-UX 11.11i
81406         reported by Simon Wing-Tang in
81407         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81408
81409 2006-05-24  Bruno Haible  <bruno@clisp.org>
81410
81411         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81412         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81413         Reported by Thorsten Maerz <torte@netztorte.de> via
81414         Aaron Stone <aaron@serendipity.cx>.
81415
81416 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81419         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81420         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81421         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81422         not really conditional on the cache.
81423         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81424
81425 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81428         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81429         (my_usleep): Don't mishandle maximum value.
81430
81431 2006-05-19  Jim Meyering  <jim@meyering.net>
81432
81433         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81434
81435 2006-05-17  Bruno Haible  <bruno@clisp.org>
81436
81437         Cygwin portability.
81438         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81439
81440 2006-05-17  Bruno Haible  <bruno@clisp.org>
81441
81442         * lib/stdint_.h: Fix recognition of Cygwin.
81443
81444 2006-05-15  Bruno Haible  <bruno@clisp.org>
81445
81446         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81447         on libtool patch by Ralf Wildenhues.
81448
81449 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81450
81451         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81452         test for C99 conformance; (bool) 0.5 is an integer constant
81453         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81454         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81455
81456 2006-05-11  Simon Josefsson  <jas@extundo.com>
81457
81458         * m4/xvasprintf.m4: Fix obvious typo.
81459
81460 2006-05-11  Jim Meyering  <jim@meyering.net>
81461
81462         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81463         James Lemley.
81464
81465 2006-05-10  Simon Josefsson  <jas@extundo.com>
81466
81467         * lib/md4.c: Typo fix, update copyright years.
81468         (K1, K2): Don't use L because it turn computations into 64-bit on
81469         64-bit platforms.
81470
81471 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81472
81473         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81474         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81475         unwanted sign propagation, e.g., on hosts with 64-bit int.
81476         There still are some problems with reeelly weird theoretical hosts
81477         (e.g., 33-bit int) but it's not worth worrying about now.
81478         * lib/sha1.c (rol): Likewise.
81479         (K1, K2, K3, K4): Remove unnecessary L suffix.
81480
81481 2006-05-10  Bruno Haible  <bruno@clisp.org>
81482
81483         * lib/des.c: Cast to avoid warnings.
81484
81485 2006-05-09  Bruno Haible  <bruno@clisp.org>
81486
81487         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81488         (Depends-on): Depend also on xsize, stdarg.
81489         (configure.ac): Add gl_XVASPRINTF.
81490
81491 2006-05-09  Bruno Haible  <bruno@clisp.org>
81492
81493         * m4/xvasprintf.m4: New file.
81494
81495 2006-05-09  Bruno Haible  <bruno@clisp.org>
81496
81497         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81498         (EOVERFLOW): Define fallback value.
81499         (xstrcat): New function.
81500         (xvasprintf): Recognize the special case of a string concatenation.
81501
81502 2006-05-08  Eric Blake  <ebb9@byu.net>
81503
81504         * gnulib-tool (func_version): Base copyright year on CVS date.
81505         (func_emit_copyright_notice): New function.
81506         (func_emit_lib_Makefile_am): Use it.
81507         (func_emit_tests_Makefile_am): Likewise.
81508         (func_import): Likewise.
81509
81510 2006-05-08  Bruno Haible  <bruno@clisp.org>
81511
81512         * modules/stdarg: New file.
81513         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81514
81515 2006-05-08  Bruno Haible  <bruno@clisp.org>
81516
81517         * m4/stdarg.m4: New file, from GNU gettext.
81518
81519 2006-05-08  Bruno Haible  <bruno@clisp.org>
81520
81521         * config/srclist.txt (build-aux/config.rpath): different from latest
81522         release.
81523
81524 2006-05-08  Bruno Haible  <bruno@clisp.org>
81525
81526         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81527
81528 2006-05-05  Jim Meyering  <jim@meyering.net>
81529
81530         * m4/warning.m4: New file, derived from bison's file by the same name.
81531
81532 2006-05-03  Bruno Haible  <bruno@clisp.org>
81533
81534         * lib/stdint_.h: Shorter URL.
81535         * lib/inttypes.h: Likewise.
81536
81537 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81538
81539         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81540
81541 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81542
81543         * lib/verify.h: Document the internals better.  Most of this change
81544         was written by Bruno Haible.
81545
81546 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81547
81548         * doc/verify.texi: New file, partly based on a proposal by
81549         Bruno Haible.
81550
81551 2006-05-02  Bruno Haible  <bruno@clisp.org>
81552
81553         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81554         test from here...
81555         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81556
81557 2006-04-29  Bruno Haible  <bruno@clisp.org>
81558
81559         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81560         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81561
81562 2006-04-29  Bruno Haible  <bruno@clisp.org>
81563
81564         * gnulib-tool: Make --update option actually work.
81565
81566 2006-04-29  Bruno Haible  <bruno@clisp.org>
81567
81568         * doc/gcd.texi: New file.
81569         * doc/gnulib.texi: Include it.
81570
81571 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * lib/getdate.y (get_date): When adding relative date, start with the
81574         initial time, not with the result of the first mktime call.
81575
81576 2006-04-25  Bruno Haible  <bruno@clisp.org>
81577
81578         * gnulib-tool (func_import): Output the include directives in three
81579         blocks, sorted separately.
81580         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81581
81582 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81583
81584         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81585         to define main with arguments, for C++.  Reported by Eric Blake.
81586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81587         Prefer 'int main ()' to 'int main (void)', for C++.
81588         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81590         for 'main', for C99 and C++.
81591
81592 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81593
81594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81595         Don't assume that exit status -1 is valid.
81596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81597         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81598         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81599         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81600         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81601         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81602         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81603         functions can be used without declaring them, or that you can
81604         exit with status -1.
81605         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81606
81607 2006-04-24  Karl Berry  <karl@gnu.org>
81608
81609         * config/srclist.txt (longdouble.m4): sync lost.
81610
81611 2006-04-24  Eric Blake  <ebb9@byu.net>
81612
81613         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81614
81615 2006-04-24  Bruno Haible  <bruno@clisp.org>
81616
81617         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81618         poll() implementation in AIX.
81619         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81620
81621 2006-04-24  Bruno Haible  <bruno@clisp.org>
81622
81623         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81624         assigned exactly once.
81625
81626 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81627             Bruno Haible  <bruno@clisp.org>
81628
81629         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81630         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81631         for AM_CPPFLAGS.
81632
81633 2006-04-23  Bruno Haible  <bruno@clisp.org>
81634
81635         * modules/copy-file: Depend on unistd.
81636         * modules/execute: Likewise.
81637         * modules/fatal-signal: Likewise.
81638         * modules/findprog: Likewise.
81639         * modules/mkdtemp : Likewise.
81640         * modules/pipe: Likewise.
81641         * modules/wait-process: Likewise.
81642
81643 2006-04-23  Bruno Haible  <bruno@clisp.org>
81644
81645         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81646         condition was already detected.
81647         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81648
81649 2006-04-23  Bruno Haible  <bruno@clisp.org>
81650
81651         * lib/copy-file.c: Include <unistd.h> unconditionally.
81652         * lib/execute.c: Likewise.
81653         * lib/fatal-signal.c: Likewise.
81654         * lib/findprog.c: Likewise.
81655         * lib/mkdtemp.c: Likewise.
81656         * lib/pipe.h: Likewise.
81657         * lib/pipe.c: Likewise.
81658         * lib/wait-process.h: Likewise.
81659
81660 2006-04-23  Bruno Haible  <bruno@clisp.org>
81661
81662         * gnulib-tool (func_usage): Fix --import description. Document
81663         --update.
81664         (func_import): Create temporary file in a temporary directory, if
81665         --dry-run is specified. Silence errors from 'grep' when there are no
81666         m4 files in $m4dir.
81667         (func_create_testdir): Silence errors from 'grep' when there are no
81668         m4 files in $m4dir.
81669         Reported by Karl Berry <karl@freefriends.org>.
81670
81671 2006-04-20  Bruno Haible  <bruno@clisp.org>
81672
81673         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81674         one argument, so that the code will be portable to Autoconf 2.60.
81675         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81676         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81677         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81678
81679 2006-04-19  Derek Price  <derek@ximbiot.com>
81680             Eric Blake  <ebb9@byu.net>
81681
81682         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81683         rather than "/full/path.h".  Update comment to match.  Shorten &
81684         generalize m4_translit call via AS_TR_CPP.
81685
81686 2006-04-19  Derek Price  <derek@ximbiot.com>
81687             Eric Blake  <ebb9@byu.net>
81688
81689         * lib/inttypes.h: Correct grammar in comment.
81690
81691 2006-04-18  Derek Price  <derek@ximbiot.com>
81692             Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         * modules/inttypes: New file.
81695         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81696
81697 2006-04-18  Derek Price  <derek@ximbiot.com>
81698             Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81701         New files.
81702
81703 2006-04-18  Derek Price  <derek@ximbiot.com>
81704             Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         * lib/inttypes.h: New file.
81707         * lib/strtoimax.c: Assume <inttypes.h>.
81708
81709 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81710
81711         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81712         isn't mounted.  Problem reported by Kir Kolyshkin.
81713
81714 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81715
81716         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81717         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81718         Derek R. Price.
81719         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81720         implementation.
81721
81722 2006-04-12  Eric Blake  <ebb9@byu.net>
81723
81724         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81725         is now done automatically by the corresponding Autoconf macro.
81726
81727 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81730         time_r.h.
81731
81732 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81733
81734         Merge regex changes from libc, removing some of our
81735         POSIX-conformance changes that were rejected and redoing them in a
81736         less-intrusive way.
81737
81738         * lib/regcomp.c (re_compile_internal, init_dfa):
81739         Length arg is now size_t, not Idx.  All uses changed.
81740         (peek_token): Forward decl now says internal_function.
81741         (__re_error_msgid, __re_error_msgid_idx):
81742         Now static rather than extern with attribute_hidden.
81743         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81744         For some reason libc prefers K&R style defns for external functions.
81745         (regerror) [!defined _LIBC]: Likewise.
81746         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81747         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81748         (build_range_exp, build_collating_symbol):
81749         Use K&R-style defn.
81750         (re_compile_fastmap): Use '\0' to memset, not 0.
81751         (utf8_sb_map): Make the calculations more obvious.
81752         (init_dfa, parse_bracket_exp, build_charclass_op):
81753         Call calloc and cast result, as glibc does.
81754         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81755         (build_range_exp, build_collating_symbol):
81756         Now internal functions.
81757
81758         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81759
81760         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81761         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81762         Don't depend on VMS; depend on __VMS instead, for POSIX
81763         namespace cleanness.
81764         (regoff_t): Define to ssize_t, not long int.
81765
81766         Remove the REG_ macros named below.  Instead, make the old names
81767         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81768         __USE_GNU_REGEX.
81769         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81770         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81771         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81772         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81773         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81774         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81775         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81776         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81777         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81778         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81779         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81780         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81781         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81782         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81783         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81784         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81785         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81786         (REG_NREGS):
81787         Remove.  All uses replaced by the old RE_* names.
81788         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81789         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81790         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81791         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81792         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81793         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81794         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81795         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81796         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81797         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81798         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81799         Don't bother having these macros be independent of each others'
81800         values, since they no longer exist in the POSIX name space.
81801
81802         Rename the following member names back to their old names,
81803         unless !__USE_GNU_REGEX.  All uses changed back.
81804         (buffer): Renamed from re_buffer.
81805         (allocated): Renamed from re_allocated.
81806         (used): Renamed from re_used.
81807         (syntax): Renamed from re_syntax.
81808         (fastmap): Renamed from re_fastmap.
81809         (translate): Renamed from re_translate.
81810         (can_be_null): Renamed from re_can_be_null.
81811         (regs_allocated): Renamed from re_regs_allocated.
81812         (fastmap_accurate): Renamed from re_fastmap_accurate.
81813         (no_sub): Renamed from re_no_sub.
81814         (not_bol): Renamed from re_not_bol.
81815         (not_eol): Renamed from re_not_eol.
81816         (newline_anchor): Renamed from re_newline_anchor.
81817         (num_regs): Renamed from rm_num_regs.
81818         (start): Renamed from rm_start.
81819         (end): Renamed from rm_end.
81820
81821         (free_state): Move up a bit.
81822
81823         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81824         #define to be empty.
81825         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81826         when that is what is intended.
81827         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81828         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81829         (MAX): New macro.
81830         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81831         All uses changed back to re_malloc, etc.  It's now the caller's
81832         responsibility to check for overflow; all callers changed.
81833         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81834         (re_x2nrealloc): Remove.
81835         (free_state): Remove decl.
81836
81837         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81838         (re_set_registers, re_exec):
81839         Use K&R-style defn.
81840
81841         2006-01-31  Roland McGrath  <roland@redhat.com>
81842
81843         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81844         Reported by Mike Frysinger <vapier@gentoo.org>.
81845
81846         2006-01-15  Andreas Jaeger  <aj@suse.de>
81847
81848         [BZ #1950]
81849         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81850         build_wcs_upper_buffer change.
81851         (build_wcs_upper_buffer): Change return type.
81852
81853         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81854
81855         * lib/regex_internal.h: Include <stdint.h> if available.
81856
81857         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81858
81859         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81860
81861         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81862
81863         * lib/regcomp.c: Adjust for changed secondary hash function.
81864
81865         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81866
81867         * lib/regex.h: Pretty printing.
81868         Clean up namespace a bit.
81869
81870         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81871
81872         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81873         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81874
81875         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81876                     Ulrich Drepper  <drepper@redhat.com>
81877
81878         [BZ #1302]
81879         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81880         changed.
81881         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81882
81883         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81884
81885         [BZ #281]
81886         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81887         * lib/regcomp.c: Remove unnecessary uses of
81888         unsigned RE_TRANSLATE_TYPE.
81889         * lib/regex_internal.h: Likewise.
81890         * lib/regex_internal.c: Likewise.
81891         * lib/regexec.c: Likewise.
81892         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81893
81894         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81895
81896         * lib/regexec.c (find_recover_state): Remove unnecessary
81897         initialization.
81898         (transit_state_bkref): Make DFA a const pointer.
81899         (get_subexp): Likewise.
81900         (check_arrival): Likewise.
81901         (update_cur_sifted_state): Likewise.
81902         (re_search_internal): Likewise.
81903         (prune_impossible_nodes): Likewise.
81904         (acquire_init_state_context): Likewise.
81905         (proceed_next_node): Likewise.
81906         (set_regs): Likewise.
81907         (free_fail_stack_return): Likewise.
81908         (check_arrival_expand_ecl): Mark DFA parameter as const.
81909         (check_arrival_expand_ecl_sub): Likewise.
81910         (check_subexp_limits): Likewise.
81911         (sub_epsilon_src_nodes):  Likewise.
81912         (add_epsilon_src_nodes):  Likewise.
81913         (merge_state_array): Likewise.
81914         (update_regs): Likewise.
81915         (build_trtable): Likewise.
81916         (sift_states_backward): Mark MCTX parameter as const.
81917         (build_sifted_states): Likewise.
81918         (update_cur_sifted_state): Likewise.
81919         (sift_states_mkref): Likewise.
81920         (check_arrival_expand_ecl): Mark eclosure as const.
81921         (check_dst_limits_calc_pos_1): Likewise.
81922         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81923         pointer.
81924
81925         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81926
81927         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81928         (transit_state_sb): Likewise.
81929         (transit_state_mb): Likewise.
81930         (sift_states_iter_mb): Likewise.
81931         (check_arrival_add_next_nodes): Likewise.
81932         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81933         [_LIBC] (re_search_2_stub): Use mempcpy.
81934
81935         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81936         mbrtowc for very simple UTF-8 case.
81937
81938         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81939         a pointer-to-const.
81940         (re_acquire_state_context): Likewise.
81941         * lib/regex_internal.h: Adjust prototypes.
81942
81943         * lib/regex.c: Prevent using C++ compilers.
81944
81945         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81946         (re_acquire_state_context): Likewise.
81947
81948 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81949
81950         * modules/regex (Depends-on): Add ssize_t.
81951
81952 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81953
81954         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81955         translation table.
81956
81957 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81958
81959         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81960
81961 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81962             Bruno Haible  <bruno@clisp.org>
81963
81964         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81965         <sys/types.h> and <inttypes.h>.
81966
81967 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81968
81969         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81970         `__error_t_defined', so argp.h will not typedef the former.
81971
81972 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81975         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81976         glibc names.  Even if glibc is changed to conform to POSIX, the
81977         traditional names will be available anyway, since regex depends on
81978         the extensions module.  Also, fix a longstanding typo in the
81979         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81980         reported by Emanuele Giaquinta.  Also, change sense of cached
81981         variable, so that the message makes sense.
81982
81983 2006-03-24  Simon Josefsson  <jas@extundo.com>
81984
81985         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81986         including some doc fixes.
81987         (base64_encode_alloc): Fix +1 bug on allocation failures.
81988
81989 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81990
81991         * lib/base64.c (base64_encode): Do not read past end of array with
81992         unsanitized input on systems with CHAR_BIT > 8.
81993
81994 2006-03-24  Eric Blake  <ebb9@byu.net>
81995
81996         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81997
81998 2006-03-22  Karl Berry  <karl@gnu.org>
81999
82000         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82001         * config/srclistvars.sh (COREUTILS): new var.
82002
82003 2006-03-17  Jim Meyering  <jim@meyering.net>
82004
82005         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82006         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82007
82008 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82009
82010         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82011         no longer needs it.  Instead, check that regoff_t is as least
82012         as wide as ptrdiff_t.
82013
82014         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82015         so that our regex.h stays compatible with the installed regex.
82016         This is helpful for installers who configure --without-included-regex.
82017         Problem reported by Emanuele Giaquinta.
82018
82019 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82022         Typedef to long int, not to off_, as POSIX will likely change
82023         in that direction.
82024
82025 2006-03-15  Eric Blake  <ebb9@byu.net>
82026
82027         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82028
82029 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82030
82031         * lib/argp-help.c (validate_uparams): Fix typo
82032         * lib/argp-parse.c (argp_default_options): Consistently begin help
82033         messages with a lowercase letter.
82034
82035 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82036
82037         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82038         overrun buffers and shouldn't be used (much as gets shouldn't be
82039         used).
82040         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82041
82042 2006-03-08  Simon Josefsson  <jas@extundo.com>
82043
82044         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82045         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82046
82047 2006-03-08  Simon Josefsson  <jas@extundo.com>
82048
82049         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82050         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82051
82052 2006-03-08  Simon Josefsson  <jas@extundo.com>
82053
82054         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82055         signal that configure disabled the device.
82056
82057 2006-03-08  Simon Josefsson  <jas@extundo.com>
82058
82059         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82060         languages.
82061
82062 2006-03-07  Simon Josefsson  <jas@extundo.com>
82063
82064         * modules/getopt (Depends-on): Add unistd.
82065
82066         * modules/unistd: New file.
82067
82068 2006-03-07  Simon Josefsson  <jas@extundo.com>
82069
82070         * modules/gc-random: New file.
82071
82072 2006-03-07  Simon Josefsson  <jas@extundo.com>
82073
82074         * m4/unistd_h.m4: New file.
82075
82076 2006-03-07  Simon Josefsson  <jas@extundo.com>
82077
82078         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82079         test to be side-effect free by storing the result in the cache
82080         variable gl_cv_lib_readline, and moving the assignment of
82081         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82082         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82083
82084 2006-03-07  Simon Josefsson  <jas@extundo.com>
82085
82086         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82087         error on missing devices (the functions will return an error).
82088
82089         * m4/gc.m4: Move random stuff to gc-random.m4
82090
82091 2006-03-07  Simon Josefsson  <jas@extundo.com>
82092
82093         * lib/unistd_.h: New file.
82094
82095 2006-03-07  Simon Josefsson  <jas@extundo.com>
82096
82097         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82098
82099 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82100
82101         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82102         Problem reported by Juan Manuel Guerrero.
82103
82104 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82105
82106         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82107         the unistd module.
82108         * lib/getlogin_r.c: Likewise.
82109         * lib/getlogin_r.h: Likewise.
82110         * lib/glob.c: Likewise.
82111         * lib/pagealign_alloc.c: Likewise.
82112         * lib/unistd_.h: Remove; no longer needed.
82113
82114 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82115
82116         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82117         Add unistd.
82118         * modules/c-stack (Depends-on): Add unistd.
82119         * modules/getlogin_r: Likewise.
82120         * modules/glob: Likewise.
82121         * modules/pagealign_alloc: Likewise.
82122         * modules/unistd (Files): Remove lib/unistd_.h.
82123         (EXTRA_DIST): Remove.
82124         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82125         need unistd_.h.
82126         (MOSTLYCLEANFILES): Remove unistd.h-t.
82127
82128 2006-03-03  Simon Josefsson  <jas@extundo.com>
82129
82130         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82131
82132 2006-03-03  Simon Josefsson  <jas@extundo.com>
82133
82134         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82135         libidn and bison.
82136
82137 2006-03-03  Simon Josefsson  <jas@extundo.com>
82138
82139         * build-aux/maint.mk: Add indent target.
82140
82141 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82142
82143         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82144         our replacement poll.h in any case, to avoid a differing
82145         declaration from a system header.  Seen on AIX.
82146
82147 2006-03-01  Simon Josefsson  <jas@extundo.com>
82148
82149         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82150         <kasal@ucw.cz>.
82151
82152 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82153
82154         * modules/gettime (Depends-on): Add extensions module.
82155         * modules/nanosleep (Depends-on): Likewise.
82156         * modules/settime (Depends-on): Likewise.
82157
82158 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82159
82160         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82161         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82162         pedantically.
82163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82164         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82165
82166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82167         not "==".  Reported by Ralf Wildenhues.
82168
82169 2006-03-01  Karl Berry  <karl@gnu.org>
82170
82171         * doc/Copyright/request-*: new files, synced from gnuorg.
82172
82173 2006-03-01  Karl Berry  <karl@gnu.org>
82174
82175         * config/srclist.txt (Copyright/*): new entries.
82176
82177 2006-02-28  Simon Josefsson  <jas@extundo.com>
82178
82179         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82180
82181 2006-02-27  Simon Josefsson  <jas@extundo.com>
82182
82183         * lib/base64.h: Indent #define's.  From Jim Meyering
82184         <jim@meyering.net>.
82185
82186 2006-02-27  Jim Meyering  <jim@meyering.net>
82187
82188         Revert the change of 2006-02-24, so these files can continue
82189         to be sync'd from gettext.
82190         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82191         of `config.h'.
82192
82193 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         * modules/intprops: New file.
82196         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82197         Add intprops.
82198         * modules/getloadavg (Files): Remove lib/intprops.h.
82199         (Depends-on): Add intprops.
82200         * modules/human: Likewise.
82201         * modules/inttostr: Likewise.
82202         * modules/openat: Likewise.
82203         * modules/sig2str: Likewise.
82204         * modules/userspec: Likewise.
82205         * modules/utimecmp: Likewise.
82206         * modules/xnanosleep: Likewise.
82207         * modules/xstrtol: Likewise.
82208
82209 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82210
82211         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82212         * modules/lock-tests (TESTS): Use $(EXEEXT).
82213         * modules/tls-tests: Likewise.
82214         * modules/argp-tests: Likewise.
82215         (check_PROGRAMS): New var, replacing...
82216         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82217
82218 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82219
82220         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82221         `config.h'.
82222
82223 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82224
82225         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82226
82227 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82228
82229         Sync from coreutils.
82230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82231         gl_CHDIR_SAFER.
82232
82233 2006-02-22  Jim Meyering  <jim@meyering.net>
82234
82235         Sync from coreutils.
82236         * m4/chdir-safer.m4: New file.
82237
82238 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82241         AT_FDCWD exceeds INT_MAX.
82242         * lib/openat.h (AT_FDCWD): Likewise.
82243
82244 2006-02-17  Eric Blake  <address@hidden>
82245
82246         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82247
82248 2006-02-16  Simon Josefsson  <jas@extundo.com>
82249
82250         * modules/getaddrinfo (Depends-on): Add sys_socket.
82251
82252 2006-02-15  Simon Josefsson  <jas@extundo.com>
82253
82254         * build-aux/maint.mk: Add dsyntax-check rule.
82255
82256 2006-02-15  Eric Blake  <ebb9@byu.net>
82257
82258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82259         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82260         'present but cannot compile' warnings on cygwin.
82261         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82262         use ws2tcpip.h if sys/socket.h works.
82263         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82264         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82265
82266 2006-02-14  Simon Josefsson  <jas@extundo.com>
82267
82268         * modules/maintainer-makefile (Files): Rename.
82269
82270         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82271         and (the local) Makefile.cfg to maint-cfg.mk.
82272
82273         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82274         to the latter.
82275
82276         * modules/maintainer-makefile: New module.
82277
82278         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82279         severaly stripped to make it possible to build it up from scratch
82280         with reliable tests.
82281
82282         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82283         fixes to permit overriding the default actions when configure and
82284         makefile are not available.
82285
82286 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82287
82288         Sync from coreutils.
82289         * modules/lstat (Depends-on): Don't depend on xalloc.
82290         (License): Change from GPL to LGPL, since this is now simply a
82291         replacement for a libc function.
82292
82293 2006-02-14  Jim Meyering  <jim@meyering.net>
82294
82295         Sync from coreutils.
82296
82297         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82298         failure on deficient systems, and simplify gnulib lgpl dependencies.
82299         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82300         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82301
82302         * lib/xalloc-die.c: Remove unused definition of N_.
82303
82304 2006-02-14  Jim Meyering  <jim@meyering.net>
82305
82306         Sync from coreutils.
82307         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82308         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82309         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82310         double-quote uses of that variable, to accommodate the rare case in
82311         which getmntent is available in none of the libraries checked.  This
82312         happens at least on FreeBSD 5.0.
82313
82314 2006-02-13  Simon Josefsson  <jas@extundo.com>
82315
82316         * gnulib-tool (Usage): Fix --import, from
82317         karl@freefriends.org (Karl Berry).
82318
82319 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82320
82321         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82322
82323 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82324
82325         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82326         "autoupdate" on 2005-12-12.
82327
82328 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82329
82330         * modules/closeout (Depends-on): Remove atexit.
82331
82332 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82333
82334         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82335         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82336
82337 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82338
82339         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82340         __EXTENSIONS__ if this causes compilation to fail.  Problem
82341         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82342         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82343
82344 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82347         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82349         All uses changed.
82350
82351 2006-01-26  Simon Josefsson  <jas@extundo.com>
82352
82353         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82354         prototype is visible on mingw32.
82355
82356         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82357         for mingw32.
82358
82359         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82360         mingw32).
82361
82362 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82365         attempt to open for write; this always fails, at least on POSIX
82366         hosts.  This reinstates the 2006-01-09 change, which was
82367         inadvertently removed.
82368
82369 2006-01-26  Bruno Haible  <bruno@clisp.org>
82370
82371         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82372         Reported by Paul Eggert.
82373
82374 2006-01-26  Bruno Haible  <bruno@clisp.org>
82375             Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         * lib/stdbool_.h (_Bool)
82378         [(! (defined __cplusplus || defined __BEOS__)
82379           && !defined __GNUC__
82380           && !(defined __HP_cc || defined __xlc__
82381                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82382                || defined __sgi))]:
82383         #define to signed char in these cases too; this simplifies
82384         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82385         etc., separately) and makes it more conservative.
82386
82387 2006-01-25  Simon Josefsson  <jas@extundo.com>
82388
82389         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82390         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82391         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82392
82393 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82394
82395         * lib/argp-namefrob.h: Bugfix. Remove stray #
82396
82397 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82398
82399         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82400         so that we test the test.
82401         Check for yet another HP-UX cc bug involving *bool |= bool.
82402
82403 2006-01-25  Karl Berry  <karl@gnu.org>
82404
82405         * config/srclist.txt (vasnprintf.c): sync lost.
82406
82407 2006-01-25  Jim Meyering  <jim@meyering.net>
82408
82409         Sync from the stable (b5) branch of coreutils:
82410
82411         * lib/fts.c (fts_children): Don't let close() clobber errno from
82412         failed fchdir().
82413
82414         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82415         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82416         a dangling symlink.  That can also happen at least for ELOOP.
82417         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82418         FYI, this bug predates the inclusion of fts.c in coreutils.
82419
82420         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82421         in their own block, so pre-c99 compilers don't object.
82422
82423         Avoid the double-free (first in fts_read, second in fts_close) that
82424         would occur when an `active' directory is made inaccessible (e.g.,
82425         via chmod a-x) during a traversal.
82426         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82427         before returning.  Reproduce this failure by
82428         mkdir -p a/b; cd a; chmod a-x . b
82429         Reported by Stavros Passas.
82430
82431 2006-01-25  Jim Meyering  <jim@meyering.net>
82432
82433         * lib/fileblocks.c: Remove more useless parentheses.
82434         * lib/readutmp.h: Likewise.
82435
82436 2006-01-25  Bruno Haible  <bruno@clisp.org>
82437
82438         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82439         warnings.
82440         Reported by Paul Eggert.
82441
82442 2006-01-25  Bruno Haible  <bruno@clisp.org>
82443
82444         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82445         rid of a trap command. For Solaris sh.
82446         Reported by Mark D. Baushke <mdb@gnu.org>.
82447
82448 2006-01-24  Simon Josefsson  <jas@extundo.com>
82449
82450         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82451         Bruno.
82452
82453 2006-01-24  Karl Berry  <karl@gnu.org>
82454
82455         * config/srclist.txt (argp-namefrob.h): sync lost.
82456
82457 2006-01-24  Jim Meyering  <jim@meyering.net>
82458
82459         * modules/openat (Files): Add lib/intprops.h.
82460         From Mark D. Baushke.
82461
82462 2006-01-24  Jim Meyering  <jim@meyering.net>
82463
82464         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82465         Reported by Mark D. Baushke.
82466
82467 2006-01-24  Jim Meyering  <jim@meyering.net>
82468
82469         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82470
82471 2006-01-24  Bruno Haible  <bruno@clisp.org>
82472
82473         * modules/strnlen (Maintainer): Change from glibc to all.
82474
82475 2006-01-24  Bruno Haible  <bruno@clisp.org>
82476
82477         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82478         Patch by Paul Eggert.
82479
82480 2006-01-24  Bruno Haible  <bruno@clisp.org>
82481
82482         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82483         already has it.
82484         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82485         2005-11-26.
82486
82487         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82488         'signed char' to avoid problems with the built-in _Bool type.
82489         Reported by Paul Eggert on 2005-11-26.
82490
82491 2006-01-24  Bruno Haible  <bruno@clisp.org>
82492
82493         * gnulib-tool (func_import): Avoid constructing complicated sed
82494         expressions inside backquote.
82495         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82496
82497 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82498
82499         These changes imported from libc.
82500         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82501         test and two separate function calls.
82502         * lib/strndup.c (__strndup): Add libc_hidden_def.
82503
82504 2006-01-23  Simon Josefsson  <jas@extundo.com>
82505
82506         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82507         Remove the test_*_SOURCES variable: automake infers it by default.
82508         * modules/tls-tests: Likewise.
82509
82510 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82511
82512         Work around porting bugs reported by Dieter in
82513         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82514         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82515         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82516         Include "getopt.h" first, to check interface.
82517         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82518         !HAVE_DECL_GETENV.
82519         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82520         (__strndup): Revert to K&R-style function dfns, the glibc style.
82521         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82522         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82523         Include strnlen.h first, to get prototype properly.
82524         (strnlen): Renamed from __strnlen.
82525         Remove weak alias.
82526
82527 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82530
82531 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82532
82533         * config/srclist.txt: Adjust to reflect glibc reorganization.
82534         This affects only comments.
82535
82536 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82537
82538          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82539          Reported by Bruce Korb <bkorb@gnu.org>.
82540
82541 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82542
82543         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82544         to pacify gcc -Wswitch-default.
82545
82546 2006-01-22  Bruno Haible  <bruno@clisp.org>
82547
82548         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82549         temporary buffer for sprintf, take into account the precision also
82550         for 'd', 'i', 'u', 'o', 'x', 'X'.
82551
82552 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82553
82554         * modules/argp-tests: New module
82555         * tests/test-argp.c: New file
82556         * tests/test-argp-2.sh: New file
82557
82558 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82559
82560         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82561         (__argp_base_name): Removed
82562         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82563         typo.
82564         (__argp_base_name): Provide macro definition or extern declaration
82565         depending on the configuration
82566
82567 2006-01-20  Simon Josefsson  <jas@extundo.com>
82568
82569         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82570
82571 2006-01-20  Simon Josefsson  <jas@extundo.com>
82572
82573         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82574
82575 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82576
82577         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82578         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82579         Suggested by Bruno Haible.
82580
82581 2006-01-20  Karl Berry  <karl@gnu.org>
82582
82583         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82584         until changes propagate, I guess.
82585
82586 2006-01-19  Simon Josefsson  <jas@extundo.com>
82587
82588         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82589
82590 2006-01-19  Simon Josefsson  <jas@extundo.com>
82591
82592         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82593
82594 2006-01-19  Simon Josefsson  <jas@extundo.com>
82595
82596         * gnulib-tool: Set check_PROGRAMS.
82597
82598         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82599         modules/des-tests, modules/gc-arcfour-tests,
82600         modules/gc-arctwo-tests, modules/gc-des-tests,
82601         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82602         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82603         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82604         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82605         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82606         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82607         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82608         test_*_SOURCES.
82609
82610 2006-01-18  Simon Josefsson  <jas@extundo.com>
82611
82612         * modules/socklen (Depends-on): Depend on sys_socket.
82613
82614 2006-01-18  Simon Josefsson  <jas@extundo.com>
82615
82616         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82617         modules/des-tests, modules/gc-arcfour-tests,
82618         modules/gc-arctwo-tests, modules/gc-des-tests,
82619         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82620         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82621         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82622         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82623         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82624         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82625         $(EXEEXT) to automake TESTS variable, for mingw32.
82626
82627 2006-01-17  Simon Josefsson  <jas@extundo.com>
82628
82629         * modules/socklen (Include): Need sys/socket.h.
82630
82631 2006-01-17  Bruno Haible  <bruno@clisp.org>
82632
82633         * modules/ssize_t (Include): Add <sys/types.h>.
82634
82635 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82636
82637         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82638         it's not portable and it doesn't work with cross-compiles.
82639         Problem reported by Bruno Haible.  Fix missing-$ typo in
82640         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82641         -zignore from being used with Sun's C compiler.
82642
82643 2006-01-12  Simon Josefsson  <jas@extundo.com>
82644
82645         * lib/base64.c: Fix warning, reported by Bruno Haible
82646         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82647
82648 2006-01-12  Bruno Haible  <bruno@clisp.org>
82649
82650         * modules/ldd: New file.
82651         * build-aux/ldd.sh.in: New file.
82652         * MODULES.html.sh (Support for building libraries and executables): Add
82653         ldd.
82654
82655 2006-01-12  Bruno Haible  <bruno@clisp.org>
82656
82657         * m4/ldd.m4: New file.
82658
82659 2006-01-12  Bruno Haible  <bruno@clisp.org>
82660
82661         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82662         endless loop while replacing $auxdir with build-aux.
82663
82664 2006-01-11  Simon Josefsson  <jas@extundo.com>
82665
82666         * lib/stdint_.h (SIZE_MAX): Add missing (.
82667
82668 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         Sync from coreutils.
82671         * lib/md5.c: Fix commentary typos.
82672         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82673         * lib/md5.h (__attribute__): Remove; unused.
82674         * lib/sha1.c: Fix commentary to match md5 better.
82675         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82676         so that we don't need to worry about alignment.  All uses changed.
82677         This merges the 2005-10-28 md5 change into sha1.
82678
82679 2006-01-11  Jim Meyering  <jim@meyering.net>
82680
82681         Sync from coreutils.
82682         * lib/md5.c (OP): Fix spacing.
82683
82684 2006-01-11  Bruno Haible  <bruno@clisp.org>
82685
82686         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82687         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82688         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82689
82690 2006-01-11  Bruno Haible  <bruno@clisp.org>
82691
82692         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82693         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82694         the "early" section as well.
82695
82696 2006-01-11  Bruno Haible  <bruno@clisp.org>
82697
82698         Avoid "ar: no archive members specified" error on MacOS X.
82699         * gnulib-tool (func_modules_add_dummy): New function.
82700         (func_import, func_create_testdir): Invoke it.
82701
82702 2006-01-11  Bruno Haible  <bruno@clisp.org>
82703
82704         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82705         with $auxdir in AC_CONFIG_FILES statements.
82706
82707 2006-01-11  Bruno Haible  <bruno@clisp.org>
82708
82709         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82710         Initialize also noinst_HEADERS to empty.
82711
82712 2006-01-11  Bruno Haible  <bruno@clisp.org>
82713
82714         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82715         variables.
82716         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82717         autoreconf.
82718
82719 2006-01-11  Bruno Haible  <bruno@clisp.org>
82720
82721         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82722         overridable by the user.
82723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82724
82725 2006-01-10  Simon Josefsson  <jas@extundo.com>
82726
82727         * modules/sys_socket: New file.
82728
82729 2006-01-10  Simon Josefsson  <jas@extundo.com>
82730
82731         * m4/sys_socket_h.m4: New file.
82732
82733 2006-01-10  Simon Josefsson  <jas@extundo.com>
82734
82735         * lib/socket_.h: New file.
82736
82737 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82738
82739         * modules/readutmp (Maintainer): Add myself.
82740
82741 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82744         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82745         People who are still concerned with buggy memcmp implementations
82746         can invoke gl_FUNC_MEMCMP themselves.
82747
82748 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82749
82750         * lib/regex_internal.h (BITSET_WORD_BITS):
82751         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82752         preprocessor mishandles large unsigned values as if they were signed.
82753         Problem reported by Claudio Fontana in
82754         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82755
82756 2006-01-10  Jim Meyering  <jim@meyering.net>
82757
82758         Avoid the double-free (first in fts_read, second in fts_close) that
82759         would occur when an `active' directory is made inaccessible (e.g.,
82760         via chmod a-x) during a traversal.
82761         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82762         before returning.  Reproduce this failure by
82763         mkdir -p a/b; cd a; chmod a-x . b
82764         Reported by Stavros Passas.
82765
82766         Sync from coreutils.
82767         * lib/sha1.c: Tweak grammar in a comment.
82768
82769 2006-01-10  Jim Meyering  <jim@meyering.net>
82770
82771         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82772         Patch by Joerg Sonnenberger.
82773
82774 2006-01-10  Bruno Haible  <bruno@clisp.org>
82775
82776         * modules/readutmp: Depend on module free.
82777         * modules/strtok_r: Depend on module restrict.
82778
82779 2006-01-10  Bruno Haible  <bruno@clisp.org>
82780
82781         * modules/gettext (configure.ac): Add an invocation of
82782         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82783
82784 2006-01-10  Bruno Haible  <bruno@clisp.org>
82785
82786         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82787         Reported by Werner Lemberg <wl@gnu.org>.
82788
82789 2006-01-10  Bruno Haible  <bruno@clisp.org>
82790
82791         * lib/localcharset.c: Update from GNU gettext.
82792
82793 2006-01-10  Bruno Haible  <bruno@clisp.org>
82794
82795         * lib/argp.h (__const): Remove macro. Use const instead.
82796         * lib/argp-fmtstream.h (__const): Likewise.
82797         * lib/glob_.h (__const): Remove macro.
82798         * lib/glob-libc.h: Use const instead of __const.
82799
82800 2006-01-10  Bruno Haible  <bruno@clisp.org>
82801
82802         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82803         variable.
82804         Needed to avoid an automake error regarding the 'gettext' module.
82805
82806 2006-01-09  Simon Josefsson  <jas@extundo.com>
82807
82808         * modules/inet_ntop (Depends-on): Add restrict.
82809
82810 2006-01-09  Simon Josefsson  <jas@extundo.com>
82811
82812         * modules/gc-rijndael-tests (License): Put under LGPL.
82813
82814         * modules/gc-des-tests (License): Likewise.
82815
82816         * modules/gc-arcfour-tests (License): Likewise.
82817
82818         * modules/gc-arctwo-tests (License): Likewise.
82819
82820         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82821
82822         * modules/gc-hmac-sha1-tests (Files): Likewise.
82823
82824         * modules/gc-hmac-md5-tests (License): Likewise.
82825
82826         * modules/gc-sha1-tests (License): Likewise.
82827
82828         * modules/gc-md5-tests (License): Likewise.
82829
82830         * modules/gc-md4-tests (License): Likewise.
82831
82832         * modules/gc-md2-tests (License): Likewise.
82833
82834         * modules/gc-tests (License): Likewise.
82835
82836         * modules/des-tests (License): Likewise.
82837
82838         * modules/md4-tests (License): Likewise.
82839
82840         * modules/md2-tests (License): Likewise.
82841
82842 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82843
82844         Sync from coreutils:
82845
82846         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82847         * modules/lib-ignore: New file.
82848         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82849         chdir-safer.m4, lchmod.m4.
82850         * modules/openat: Add mkdirat.c, openat-priv.h.
82851
82852 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         Sync from coreutils.
82855         * m4/lib-ignore.m4: New file.
82856         * m4/lchmod.m4: New file.
82857
82858 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82859
82860         Sync from coreutils.
82861         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82862         for write access: POSIX says that must fail.
82863         * lib/fts.c (diropen): Likewise.
82864         * lib/save-cwd.c (save_cwd): Likewise.
82865         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82866         well, for minor improvements on hosts that lack O_DIRECTORY.
82867         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82868         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82869         Fall back on chown if open failed with EACCES.
82870
82871         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82872         Report an error at compile-time if only a 1-second nominal clock
82873         resolution is found.
82874
82875         * lib/lchmod.h: New file.
82876         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82877         (make_dir_parents): Use lchown rather than chown, and
82878         lchmod rather than chmod.
82879
82880         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82881         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82882         "proc" reported by n0dalus.
82883
82884         * lib/mountlist.c: Include <limits.h>.
82885         (dev_from_mount_options)
82886         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82887         New function.  It no longer assumes "dev=" has the System V meaning
82888         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82889         (read_file_system_list)
82890         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82891         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82892         dev= in that case.
82893
82894         * lib/posixtm.h (PDS_PRE_2000): New macro.
82895         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82896         allow_century.  All usages changed.  Reject dates outside the range
82897         1969-1999 if PDS_PRE_2000 is used.
82898
82899 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         Sync from coreutils.
82902         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82903         (Time of day items): Mention the possibility of leap seconds.
82904         Problem reported by Dr. David Alan Gilbert.
82905
82906 2006-01-09  Jim Meyering  <jim@meyering.net>
82907
82908         Sync from coreutils.
82909
82910         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82911
82912         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82913
82914         * lib/modechange.c (mode_compile): Reject an invalid mode string
82915         that starts with an octal digit.  From Andreas Gruenbacher.
82916
82917         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82918         and dup to open_safer and dup_safer, respectively.
82919         (openat_permissive): Fix typo in comment.
82920
82921         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82922         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82923         (_): Remove; no longer needed.
82924         (openat): Renamed from rpl_openat; no need for rpl_openat
82925         since openat.h renames openat for us.
82926         Replace most of the body with a call to openat_permissive,
82927         to avoid duplicate code.
82928         Port to (probably hypothetical) environments were mode_t is
82929         wider than int.
82930         (openat_permissive): Require mode arg, so that we can check
82931         types better.  Put it just after flags.  Change cwd failure
82932         indicator from pointer-to-bool to pointer-to-errno-value.
82933         All callers changed.
82934         Invoke openat_save_fail and/or openat_restore_fail if
82935         cwd_errno is null, so that openat can call us.
82936         (openat_permissive, fdopendir, fstatat, unlinkat):
82937         Simplify errno handling to avoid some duplicate code,
82938         as it's OK to set errno on success.
82939         * lib/openat.h: Revamp code so that function macros depend on
82940         __OPENAT_PREFIX only, not also on AT_FDCWD.
82941         (openat_ro): Remove.  Caller changed to use openat_permissive.
82942         (openat_permissive): Now a macro, if not a function.
82943         (openat_restore_fail, openat_save_fail): Now always functions,
82944         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82945
82946         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82947         and openat.c.
82948         * lib/mkdirat.c: Include openat-priv.h.
82949         Remove definitions of macros defined therein.
82950         * lib/openat.c: Likewise.
82951
82952         * lib/mkdirat.c (mkdirat): New file and function.
82953         * lib/openat.h (mkdirat): Declare.
82954
82955         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82956
82957         * lib/openat.h (openat_permissive): Declare.
82958         (openat_ro): Define.
82959
82960         * lib/openat.c (EXPECTED_ERRNO): New macro.
82961         (openat_permissive): New function -- used in remove.c rewrite.
82962         (all functions): Set errno just before returning, only if there
82963         was an actual failure.
82964         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82965
82966         Emulate openat-family functions using Linux's procfs, if possible.
82967         Idea and some code based on Ulrich Drepper's glibc changes.
82968
82969         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82970         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82971         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82972         before falling back on save_cwd and restore_cwd.
82973         (fdopendir, fstatat, unlinkat): Likewise.
82974
82975         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82976         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82977
82978         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82979         as second argument to va_arg.  Otherwise, some versions of gcc
82980         warn that `if this code is reached, the program will abort'.
82981
82982 2006-01-09  Jim Meyering  <jim@meyering.net>
82983
82984         Sync from coreutils.
82985         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82986         Require openat-priv.h.
82987
82988 2006-01-09  Bruno Haible  <bruno@clisp.org>
82989
82990         * modules/strnlen (Include): Use strnlen.h.
82991
82992 2006-01-09  Bruno Haible  <bruno@clisp.org>
82993
82994         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82995
82996 2006-01-09  Bruno Haible  <bruno@clisp.org>
82997
82998         * lib/sysexit_.h (EX_OK): New macro.
82999         Suggested by Martin Lambers <marlam@marlam.de>.
83000
83001 2006-01-09  Bruno Haible  <bruno@clisp.org>
83002
83003         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83004         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83005
83006 2006-01-09  Bruno Haible  <bruno@clisp.org>
83007
83008         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83009         numbers.
83010
83011 2006-01-09  Bruno Haible  <bruno@clisp.org>
83012
83013         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83014         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83015         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83016         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83017
83018 2006-01-09  Bruno Haible  <bruno@clisp.org>
83019
83020         * build-aux/javacomp.sh.in: New file, moved from lib/.
83021         * modules/javacomp-script (Files): Update.
83022         (configure.ac): Add AC_CONFIG_FILES invocation.
83023         (EXTRA_DIST): Remove variable.
83024
83025         * build-aux/javaexec.sh.in: New file, moved from lib/.
83026         * modules/javaexec (Files): Update.
83027         (configure.ac): Add AC_CONFIG_FILES invocation.
83028         (EXTRA_DIST): Remove javaexec.sh.in.
83029
83030         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83031         * modules/csharpcomp-script (Files): Update.
83032         (configure.ac): Add AC_CONFIG_FILES invocation.
83033         (EXTRA_DIST): Remove variable.
83034
83035         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83036         * modules/csharpexec (Files): Update.
83037         (configure.ac): Add AC_CONFIG_FILES invocation.
83038         (EXTRA_DIST): Remove csharpexec.sh.in.
83039
83040 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83041
83042         Sync from coreutils.
83043
83044         Add POSIX ACL support
83045         * lib/acl.h (copy_acl, set_acl): Add declarations.
83046         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83047         systems other than Linux.
83048         (chmod_or_fchmod): New function: use fchmod when possible,
83049         and chmod otherwise.
83050         (file_has_acl): Add a POSIX ACL implementation, with a
83051         Linux-specific subcase.
83052         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83053         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83054         acls are unsupported.
83055         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83056         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83057         are unsupported.
83058
83059 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83060
83061         Sync from coreutils.
83062         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83063
83064 2006-01-07  Bruno Haible  <bruno@clisp.org>
83065
83066         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83067         gl_EARLY.
83068
83069 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83070
83071         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83072         Problem reported for Mingw by Mark Junker.
83073
83074 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83075
83076         * README: Gnulib normally doesn't generate a tarball.
83077
83078 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83079
83080         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83081         long int, not int, for nanosecond counts, so that people who are
83082         used to POSIX struct timespec won't be surprised.  Reported by Jim
83083         Meyering.
83084
83085 2005-12-28  Bruno Haible  <bruno@clisp.org>
83086
83087         * build-aux/config.rpath: Update from GNU gettext.
83088
83089 2005-12-16  Jim Meyering  <jim@meyering.net>
83090
83091         * modules/fprintftime: New module.
83092         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83093
83094 2005-12-16  Jim Meyering  <jim@meyering.net>
83095
83096         * m4/fprintftime.m4: New file.
83097
83098 2005-12-16  Jim Meyering  <jim@meyering.net>
83099
83100         * lib/fprintftime.c, lib/fprintftime.h: New files.
83101
83102 2005-12-15  Simon Josefsson  <jas@extundo.com>
83103
83104         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83105         new m4/socklen.m4.
83106
83107 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83108
83109         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83110         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83111
83112 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83113
83114         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83115         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83116         struct uparams is valid. Fall back to the default values if it is
83117         not.
83118
83119 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83120
83121         * modules/argp (Files): Add argp-pin.c
83122         (Depends-on): dirname
83123         (lib_SOURCES): Add argp-pin.c
83124
83125 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83126
83127         * m4/argp.m4:  Check if program_invocation_name and
83128         program_invocation_short_name are declared and define appropriate
83129         macros if they are not.
83130
83131 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83132
83133         * lib/argp-help.c (__argp_base_name): New function
83134         (__argp_short_program_name): Rewrite using __argp_base_name
83135         * lib/argp-namefrob.h: Define program_invocation_name and
83136         program_invocation_short_name if requested
83137         (__argp_base_name): Add prototype
83138         * lib/argp-parse.c (argp_def): Use gettext wrappers
83139         (argp_default_parser): Use __argp_base_name
83140         * lib/argp-pin.c: New file. Defines program_invocation_name and
83141         program_invocation_short_name on systems that lack them.
83142
83143 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83144
83145         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83146         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83147         porting problem reported by Georg Schwarz in
83148         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83149
83150 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83151
83152         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83153         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83154         porting problem reported by Georg Schwarz in
83155         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83156
83157 2005-12-05  Bruno Haible  <bruno@clisp.org>
83158
83159         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83160         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83161         Reported by Mark Junker <mjscod@gmx.de>.
83162
83163 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83166         Use implementation from Albert Chin, with some
83167         comments/corrections by Stepan Kasal and myself.
83168
83169 2005-12-02  Bruno Haible  <bruno@clisp.org>
83170
83171         * gnulib-tool (func_import): Accept GPLed build tool modules when
83172         --lgpl is given.
83173         * modules/csharpcomp-script: New file.
83174         * modules/csharpcomp: Depend on it.
83175         * modules/javacomp-script: New file.
83176         * modules/javacomp: Depend on it.
83177         Suggested by Simon Josefsson.
83178
83179 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83180
83181         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83182         statement, to work around an HP-UX 10.20 compiler bug reported by
83183         Peter O'Gorman.
83184
83185 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83186
83187         * modules/savedir (Depends-on): Add openat.
83188
83189 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83192         (uintmax_t) [defined uintmax_t]: Do not declare.
83193         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83194         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83195         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83196         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83197         sake of portability to weird hosts that C allows (though we don't
83198         know of any practical examples).
83199
83200         * lib/savedir.h (fdsavedir): New decl.
83201         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83202         contains most of the former guts of savedir.
83203         (savedir): Use savedirstream.
83204         Include "openat.h".
83205
83206 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83207
83208         * modules/obstack (Files): Add m4/ulonglong.m4.
83209         Problem reported by Davide Angelocola.
83210
83211 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83212
83213         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83214         coreutils no longer futzes with rounding modes.
83215
83216 2005-11-14  Jim Meyering  <jim@meyering.net>
83217
83218         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83219         replacement of mkstemp.
83220
83221 2005-11-10  Simon Josefsson  <jas@extundo.com>
83222
83223         * lib/readline.c: Remove EOL.
83224
83225 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83226
83227         * modules/gethrxtime (Depends-on): Add gettime.
83228
83229 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83230
83231         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83232         or gettimeofday; no longer needed.
83233
83234 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83237         time business.
83238         (gethrxtime) [! (HAVE_NANOUPTIME
83239         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83240         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83241         our own approximation.
83242
83243 2005-11-08  Eric Blake  <ebb9@byu.net>
83244
83245         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83246
83247 2005-11-08  Eric Blake  <ebb9@byu.net>
83248
83249         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83250
83251 2005-11-04  Bruno Haible  <bruno@clisp.org>
83252
83253         * gnulib-tool: Implement --update mode.
83254
83255 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83256
83257         Fix porting problem reported by Theodoros V. Kalamatianos.
83258         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83259         Don't assume that futimes failing means we must fail.
83260
83261 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83262
83263         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83264         variables to suggest the intended function of the PATH_MAX check.
83265
83266 2005-10-30  Kean Johnston  <jkj@sco.com>
83267
83268         Trivial changes to support SCO systems.
83269         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83270         as PATH_MAX.
83271         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83272         where __ptr is null when no I/O is pending.
83273
83274 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83275
83276         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83277         leave errno alone.  Problem reported by Dmitry V. Levin.
83278
83279 2005-10-28  Simon Josefsson  <jas@extundo.com>
83280
83281         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83282         Test more.
83283
83284         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83285
83286         * modules/md2, modules/md2-tests: New files.
83287
83288 2005-10-28  Simon Josefsson  <jas@extundo.com>
83289
83290         * m4/inet_ntop.m4: More tests.
83291
83292         * m4/gc-md2.m4, md2.m4: New file.
83293
83294 2005-10-28  Simon Josefsson  <jas@extundo.com>
83295
83296         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83297         "restrict" keywords, as per POSIX.  Protect the function
83298         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83299         Don't use K&R prototypes.  Check the sprintf return values.
83300         Re-define EAFNOSUPPORT if not present.  Indent.
83301
83302         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83303         suggested by Bruno Haible <bruno@clisp.org>.
83304
83305         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83306
83307         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83308
83309         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83310         libgcrypt).
83311
83312         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83313
83314         * lib/md2.h, lib/md2.c: New files.
83315
83316 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83317
83318         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83319         errno alone.  Problem reported by Frederic Jolliton.
83320
83321 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83322
83323         * modules/verify (License): Change from GPL to LGPL.  This is a
83324         tiny module and there are apparently near-equivalents that are
83325         under the BSD license.
83326
83327 2005-10-24  Simon Josefsson  <jas@extundo.com>
83328
83329         * modules/sha1: Relicense to LGPL.
83330
83331 2005-10-24  Simon Josefsson  <jas@extundo.com>
83332
83333         * lib/md4.h: Shrink buffer size, now that we changed the type.
83334
83335 2005-10-23  Simon Josefsson  <jas@extundo.com>
83336
83337         * gnulib-tool (func_import): Fix --tests-base.
83338
83339 2005-10-22  Simon Josefsson  <jas@extundo.com>
83340
83341         * modules/arcfour (Depends-on): Need stdint.
83342
83343 2005-10-22  Simon Josefsson  <jas@extundo.com>
83344
83345         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83346         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83347
83348 2005-10-22  Simon Josefsson  <jas@extundo.com>
83349
83350         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83351         suggested by Bruno Haible <bruno@clisp.org>.
83352
83353 2005-10-22  Simon Josefsson  <jas@extundo.com>
83354
83355         * lib/crc.h: Include stddef.h, for size_t.
83356
83357 2005-10-22  Simon Josefsson  <jas@extundo.com>
83358
83359         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83360         arcfour_context struct (simplify test vector testing in GNU
83361         Shishi).
83362
83363 2005-10-21  Simon Josefsson  <jas@extundo.com>
83364
83365         * modules/des, modules/des-tests: New files.
83366
83367         * modules/gc-des, modules/gc-des-tests: New files.
83368
83369         * tests/test-des.c, tests/test-gc-des.c: New file.
83370
83371 2005-10-21  Simon Josefsson  <jas@extundo.com>
83372
83373         * modules/arctwo, modules/arctwo-tests: New files.
83374
83375         * tests/test-arctwo.c: New file.
83376
83377         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83378
83379         * tests/test-gc-arctwo.c: New file.
83380
83381 2005-10-21  Simon Josefsson  <jas@extundo.com>
83382
83383         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83384         Bruno Haible <bruno@clisp.org>.
83385
83386         * m4/gc-des.m4: New file.
83387
83388 2005-10-21  Simon Josefsson  <jas@extundo.com>
83389
83390         * m4/arctwo.m4: New file.
83391
83392         * m4/gc-arctwo.m4: New file.
83393
83394 2005-10-21  Simon Josefsson  <jas@extundo.com>
83395
83396         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83397         block.
83398
83399 2005-10-21  Simon Josefsson  <jas@extundo.com>
83400
83401         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83402         <bruno@clisp.org>.
83403
83404         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83405
83406         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83407         Bruno Haible <bruno@clisp.org>.
83408
83409         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83410         <bruno@clisp.org>.
83411
83412 2005-10-21  Simon Josefsson  <jas@extundo.com>
83413
83414         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83415
83416 2005-10-21  Simon Josefsson  <jas@extundo.com>
83417
83418         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83419
83420 2005-10-21  Simon Josefsson  <jas@extundo.com>
83421
83422         * lib/des.h, lib/des.c: New files.
83423
83424         * lib/gc-gnulib.c: Support DES.c
83425
83426 2005-10-21  Simon Josefsson  <jas@extundo.com>
83427
83428         * lib/arctwo.h, lib/arctwo.c: New files.
83429
83430         * lib/gc-gnulib.c: Support ARCTWO.
83431
83432 2005-10-21  Simon Josefsson  <jas@extundo.com>
83433
83434         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83435         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83436
83437 2005-10-21  Simon Josefsson  <jas@extundo.com>
83438
83439         * gnulib-tool (func_import, func_create_testdir): Define automake
83440         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83441         Makefile.am snippet),
83442         suggested by Bruno Haible <bruno@clisp.org>.
83443
83444         * modules/gc (Makefile.am): Use it.
83445
83446 2005-10-21  Bruno Haible  <bruno@clisp.org>
83447
83448         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83449         patch.
83450
83451 2005-10-19  Simon Josefsson  <jas@extundo.com>
83452
83453         * tests/test-gc-rijndael.c: New file.
83454
83455         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83456
83457 2005-10-19  Simon Josefsson  <jas@extundo.com>
83458
83459         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83460         interface too.
83461
83462 2005-10-19  Simon Josefsson  <jas@extundo.com>
83463
83464         * tests/test-gc-arcfour.c: New file.
83465
83466         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83467
83468 2005-10-19  Simon Josefsson  <jas@extundo.com>
83469
83470         * modules/gc-md4, modules/gc-md4-tests: New file.
83471
83472         * tests/test-gc-md4.c: New file.
83473
83474 2005-10-19  Simon Josefsson  <jas@extundo.com>
83475
83476         * m4/gc-md4.m4: New file.
83477
83478 2005-10-19  Simon Josefsson  <jas@extundo.com>
83479
83480         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83481         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83482         <kasal@ucw.cz>.
83483
83484 2005-10-19  Simon Josefsson  <jas@extundo.com>
83485
83486         * m4/gc-arcfour.m4: New file.
83487
83488         * m4/gc-rijndael.m4: New file.
83489
83490 2005-10-19  Simon Josefsson  <jas@extundo.com>
83491
83492         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83493
83494 2005-10-19  Simon Josefsson  <jas@extundo.com>
83495
83496         * lib/gc-gnulib.c: Support ARCFOUR.
83497
83498 2005-10-19  Simon Josefsson  <jas@extundo.com>
83499
83500         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83501         support.
83502
83503         * lib/gc.h: Add ECB enum type.
83504
83505         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83506
83507 2005-10-18  Simon Josefsson  <jas@extundo.com>
83508
83509         * tests/test-md5.c: New file.
83510
83511         * modules/md5-tests: New file.
83512
83513 2005-10-18  Simon Josefsson  <jas@extundo.com>
83514
83515         * tests/test-md4.c: New file.
83516
83517         * modules/md4, modules/md4-tests: New files.
83518
83519 2005-10-18  Simon Josefsson  <jas@extundo.com>
83520
83521         * m4/md4.m4: New file.
83522
83523 2005-10-18  Simon Josefsson  <jas@extundo.com>
83524
83525         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83526
83527 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83528
83529         * gnulib-tool (func_create_testdir): Omit the second check whether
83530         BUILT_SOURCES in nonempty.
83531
83532 2005-10-17  Simon Josefsson  <jas@extundo.com>
83533
83534         * tests/test-rijndael.c: New file.
83535
83536 2005-10-17  Simon Josefsson  <jas@extundo.com>
83537
83538         * modules/sha1: Depend on stdint instead of md5.
83539
83540         * modules/md5: Depend on stdint, remove uint32_t.
83541
83542 2005-10-17  Simon Josefsson  <jas@extundo.com>
83543
83544         * modules/gc-sha1-tests: New file.
83545
83546         * tests/test-gc-sha1.c: New file.
83547
83548 2005-10-17  Simon Josefsson  <jas@extundo.com>
83549
83550         * m4/md5.m4: Remove call to uint32_t.m4.
83551
83552 2005-10-17  Simon Josefsson  <jas@extundo.com>
83553
83554         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83555
83556         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83557         md5.h.
83558
83559         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83560
83561         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83562
83563 2005-10-17  Simon Josefsson  <jas@extundo.com>
83564
83565         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83566
83567 2005-10-17  Simon Josefsson  <jas@extundo.com>
83568
83569         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83570
83571 2005-10-17  Simon Josefsson  <jas@extundo.com>
83572
83573         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83574
83575         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83576
83577 2005-10-17  Bruno Haible  <bruno@clisp.org>
83578
83579         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83580         that it can also be used in a test.
83581
83582 2005-10-16  Bruno Haible  <bruno@clisp.org>
83583
83584         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83585         TESTS_ENVIRONMENT, so that individual tests can augment it.
83586
83587         * gnulib-tool (func_create_testdir): Use an intermediate target for
83588         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83589         macros, like $(ALLOCA_H), which cannot be passed through the command
83590         line.
83591
83592 2005-10-15  Simon Josefsson  <jas@extundo.com>
83593
83594         * modules/rijndael-tests: New file.
83595
83596         * modules/rijndael: New file.
83597
83598 2005-10-15  Simon Josefsson  <jas@extundo.com>
83599
83600         * m4/rijndael.m4: New file.
83601
83602 2005-10-15  Simon Josefsson  <jas@extundo.com>
83603
83604         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83605
83606         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83607
83608 2005-10-14  Simon Josefsson  <jas@extundo.com>
83609
83610         * tests/test-arcfour.c: New file.
83611
83612         * modules/arcfour, modules/arcfour-tests: New files.
83613
83614 2005-10-14  Simon Josefsson  <jas@extundo.com>
83615
83616         * m4/arcfour.m4: New file.
83617
83618 2005-10-14  Simon Josefsson  <jas@extundo.com>
83619
83620         * lib/arcfour.h, lib/arcfour.c: New files.
83621
83622 2005-10-14  Roland McGrath  <roland@redhat.com>
83623
83624         Import from libc.  [BZ #1331]
83625         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83626         macro argument.
83627         Reported by Matej Vela <vela@debian.org>.
83628
83629 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83632         include <wchar.h>; no longer needed.
83633
83634 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83637
83638 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83639         and  Ulrich Drepper  <drepper@redhat.com>
83640
83641         Import from libc.
83642         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83643         instead of inline stream orientation test and two separate
83644         function calls.  Pay no attention to USE_IN_LIBIO.
83645
83646 2005-10-13  Simon Josefsson  <jas@extundo.com>
83647
83648         * modules/gc-hmac-md5-tests: New file.
83649
83650         * tests/test-gc-hmac-sha1.c: New file.
83651
83652         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83653
83654         * modules/gc-hmac-md5-tests: New file.
83655
83656         * tests/test-gc-md5.c: New file.
83657
83658         * modules/gc-md5-tests: New file.
83659
83660 2005-10-13  Simon Josefsson  <jas@extundo.com>
83661
83662         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83663         Move memory allocation outside of loop.
83664
83665 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83666
83667         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83668         intermediate directory is in a read-only file system.  Problem
83669         reported by Eric Blake.
83670
83671 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83672
83673         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83674
83675 2005-10-12  Simon Josefsson  <jas@extundo.com>
83676
83677         * tests/test-hmac-sha1.c: New file.
83678
83679         * modules/hmac-sha1-tests: New file.
83680
83681         * modules/hmac-sha1: New file.
83682
83683 2005-10-12  Simon Josefsson  <jas@extundo.com>
83684
83685         * modules/gc-sha1: New file.
83686
83687 2005-10-12  Simon Josefsson  <jas@extundo.com>
83688
83689         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83690
83691         * tests/test-gc-pbkdf2-sha1.c: New file.
83692
83693 2005-10-12  Simon Josefsson  <jas@extundo.com>
83694
83695         * modules/gc-md5, modules/gc-hmac-md5: New files.
83696
83697         * modules/gc (Files): Remove md5, memxor and hmac files.
83698
83699 2005-10-12  Simon Josefsson  <jas@extundo.com>
83700
83701         * m4/gc-pbkdf2-sha1.m4: New file.
83702
83703         * m4/gc-hmac-sha1.m4: New file.
83704
83705         * m4/gc-sha1: New file.
83706
83707         * m4/hmac-sha1.m4: New file.
83708
83709 2005-10-12  Simon Josefsson  <jas@extundo.com>
83710
83711         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83712
83713         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83714
83715 2005-10-12  Simon Josefsson  <jas@extundo.com>
83716
83717         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83718         suggested by Bruno Haible <bruno@clisp.org>.
83719
83720 2005-10-12  Simon Josefsson  <jas@extundo.com>
83721
83722         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83723
83724 2005-10-12  Simon Josefsson  <jas@extundo.com>
83725
83726         * lib/gc-pbkdf2-sha1.c: New file.
83727
83728         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83729
83730 2005-10-12  Simon Josefsson  <jas@extundo.com>
83731
83732         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83733
83734         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83735
83736 2005-10-12  Simon Josefsson  <jas@extundo.com>
83737
83738         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83739         GC_USE_HMAC_MD5, respectively.
83740
83741         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83742         (gc_md5): Fix typo.
83743
83744         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83745
83746         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83747
83748         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83749
83750 2005-10-12  Bruno Haible  <bruno@clisp.org>
83751
83752         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83753         Reported by Stepan Kasal <kasal@ucw.cz>.
83754
83755 2005-10-11  Simon Josefsson  <jas@extundo.com>
83756
83757         * tests/test-crc.c: New file.
83758
83759         * modules/crc, modules/crc-tests: New files.
83760
83761 2005-10-11  Simon Josefsson  <jas@extundo.com>
83762
83763         * m4/crc.m4: New file.
83764
83765 2005-10-11  Simon Josefsson  <jas@extundo.com>
83766
83767         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83768
83769         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83770
83771         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83772
83773 2005-10-11  Simon Josefsson  <jas@extundo.com>
83774
83775         * lib/crc.h, lib/crc.c: New files.
83776
83777         * lib/gc.h (gc_hash_buffer): Add doc.
83778
83779 2005-10-11  Bruno Haible  <bruno@clisp.org>
83780
83781         * modules/c-strcasestr: New file.
83782         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83783
83784 2005-10-11  Bruno Haible  <bruno@clisp.org>
83785
83786         * modules/c-strcase: New file.
83787         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83788
83789 2005-10-11  Bruno Haible  <bruno@clisp.org>
83790
83791         * lib/strcasecmp.c: Include limits.h.
83792         (strcasecmp): Avoid integer overflow on exotic platforms.
83793         * lib/strncasecmp.c: Include limits.h.
83794         (strncasecmp): Avoid integer overflow on exotic platforms.
83795         Reported by Paul Eggert.
83796
83797 2005-10-11  Bruno Haible  <bruno@clisp.org>
83798
83799         * lib/c-strcasestr.h: New file, from GNU gettext.
83800         * lib/c-strcasestr.c: New file, from GNU gettext.
83801
83802 2005-10-11  Bruno Haible  <bruno@clisp.org>
83803
83804         * lib/c-strcase.h: New file, from GNU gettext.
83805         * lib/c-strcasecmp.c: New file, from GNU gettext.
83806         * lib/c-strncasecmp.c: New file, from GNU gettext.
83807
83808 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * modules/mempcpy (License): GPL -> LGPL.
83811         * modules/strchrnul (License): Likewise.
83812         * modules/sysexits (License): Likewise.
83813
83814 2005-10-08  Simon Josefsson  <jas@extundo.com>
83815
83816         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83817
83818 2005-10-07  Simon Josefsson  <jas@extundo.com>
83819
83820         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83821
83822 2005-10-06  Simon Josefsson  <jas@extundo.com>
83823
83824         * tests/test-hmac-md5.c: New file.
83825
83826         * modules/hmac-md5-tests: New file.
83827
83828         * modules/hmac-md5: New file.
83829
83830 2005-10-06  Simon Josefsson  <jas@extundo.com>
83831
83832         * m4/hmac-md5.m4: New file.
83833
83834         * m4/memxor.m4: Require gl_C_RESTRICT.
83835
83836 2005-10-06  Simon Josefsson  <jas@extundo.com>
83837
83838         * lib/memxor.c (memxor): Avoid casts and warnings.
83839
83840 2005-10-06  Simon Josefsson  <jas@extundo.com>
83841
83842         * lib/hmac-md5.c: New file.
83843
83844         * lib/hmac.h: New file.
83845
83846 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83847
83848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83849         promotes to int, not unsigned int, to catch the AIX 5.3
83850         compiler bug.
83851
83852 2005-10-05  Simon Josefsson  <jas@extundo.com>
83853
83854         * modules/memxor: New file.
83855
83856         * modules/iconv (Files): Move config.rpath to havelib, it is used
83857         there.
83858
83859         * modules/havelib (Files): Add config.rpath.
83860
83861 2005-10-05  Simon Josefsson  <jas@extundo.com>
83862
83863         * m4/memxor.m4: New file.
83864
83865 2005-10-05  Simon Josefsson  <jas@extundo.com>
83866
83867         * lib/memxor.c (memxor): Fix compiler error.
83868
83869         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83870         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83871
83872         * lib/memxor.h, lib/memxor.c: New files.
83873
83874         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83875         we assume all systems have it, suggested by Jim Meyering
83876         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83877         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83878         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83879         same reasons.
83880
83881 2005-10-05  Simon Josefsson  <jas@extundo.com>
83882
83883         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83884
83885 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83886
83887         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83888         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83889         needed, since the source code now assumes these .h files.
83890
83891 2005-10-05  Derek Price  <derek@ximbiot.com>
83892
83893         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83894
83895 2005-10-05  Bruno Haible  <bruno@clisp.org>
83896
83897         * modules/stdint (License): Change to LGPL.
83898
83899 2005-10-04  Simon Josefsson  <jas@extundo.com>
83900
83901         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83902         D. Baushke" <mdb@gnu.org>.
83903
83904 2005-10-04  Bruno Haible  <bruno@clisp.org>
83905
83906         * lib/verify.h (verify_true): Provide alternative definition for C++.
83907
83908 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83909
83910         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83911         (SSIZE_MAX): New macro, if not already defined.
83912         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83913         than 2 GiB.
83914
83915 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83916
83917         Sync from coreutils.
83918         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83919         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83920         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83921         ULLONG_MAX doesn't work with 2.7.2.1.
83922
83923 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83924
83925         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83926         From Ben Pfaff.
83927
83928         * modules/exclude (Depends-on): Depend on verify.
83929         * modules/strtoimax (Depends-on): Likewise.
83930         * modules/utimecmp (Depends-on): Likewise.
83931
83932 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83933
83934         * lib/exclude.c: Include verify.h.
83935         (verify): Remove.  All callers changed to use verify.h's version.
83936         * lib/strtoimax.c: Likewise.
83937         * lib/utimecmp.c: Likewis.e
83938
83939         Sync from coreutils.
83940         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83941         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83942         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83943         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83944         bother returning ENOSYS if settimeofday or stime fails; just let
83945         them return whatever errno they want to return.
83946         * lib/utimens.c: Include unistd.h, for dup2.
83947         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83948         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83949
83950 2005-10-02  Jim Meyering  <jim@meyering.net>
83951
83952         Sync from coreutils.
83953         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83954         from glibc-2.2.5 that fails for read-only files.
83955
83956 2005-10-02  Jim Meyering  <jim@meyering.net>
83957
83958         Sync from coreutils.
83959         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83960         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83961         `#if HAVE_CONFIG_H'.
83962         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83963         Remove AT_FDCWD test.
83964         Do not consume the fd unless successful.
83965         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83966         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83967         block, so that we don't even try to compile it if settimeofday is
83968         available.  This works around a compilation failure on OSF1 V5.1,
83969         due to stime requiring a `long int*' while tv_sec is `int'.
83970
83971 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83972
83973         Sync from coreutils.
83974         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83975         against `yes', rather than just testing for nonempty.
83976
83977 2005-10-01  Simon Josefsson  <jas@extundo.com>
83978
83979         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83980         and Darwin.
83981
83982         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83983         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83984         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83985         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83986         Check if struct addrinfo is declared.
83987
83988 2005-10-01  Simon Josefsson  <jas@extundo.com>
83989
83990         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83991         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83992         AI_* and EAI_* definitions.  Protect function declarations.
83993
83994 2005-10-01  Jim Meyering  <jim@meyering.net>
83995
83996         Sync from coreutils.
83997
83998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83999         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84000         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84001         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84002         in the inet and nsl libraries.  Required on Solaris 5.7.
84003
84004 2005-10-01  Jim Meyering  <jim@meyering.net>
84005
84006         Sync from coreutils.
84007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84008         in the inet and nsl libraries.  Required on Solaris 5.7.
84009
84010 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84011
84012         * lib/getdelim.c (getdelim): Remove unused variables.
84013
84014 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84015
84016         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84017         so that the code works even with ancient cpp.  Portability problem
84018         with GCC 2.7.2.1 reported by Thomas M.Ott.
84019
84020 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * modules/regex (Depends-on): Add strcase.
84023
84024         * modules/gethostname (Licence): Change from GPL to LGPL, since
84025         gethostname.c is a trivial implementation of a standard library
84026         function.
84027         * modules/poll (License): Change from GPL to LGPL, since it's
84028         derived from LGPL code.
84029
84030 2005-09-27  Jim Meyering  <jim@meyering.net>
84031
84032         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84033         HAVE_CONFIG_H.
84034
84035         * lib/intprops.h (signed_type_or_expr__): Define.
84036         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84037         for unsigned types.
84038
84039 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         * lib/verify.h (verify_expr): Remove, replacing with:
84042         (verify_true): New macro that returns true instead of void.
84043         (verify_type__): Remove.
84044         (verify): Use verify_true rather than verify_type__.
84045
84046 2005-09-26  Bruno Haible  <bruno@clisp.org>
84047
84048         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84049         is necessary.
84050         (lib_SOURCES): Remove mbchar.c.
84051         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84052         (Files): Add m4/mbrtowc.m4.
84053         * modules/mbiter: Likewise.
84054         * modules/mbuiter: Likewise.
84055
84056 2005-09-26  Bruno Haible  <bruno@clisp.org>
84057
84058         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84059         compile mbchar.c if they are not both present.
84060         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84061         * m4/mbiter.m4 (gl_MBITER): Likewise.
84062         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84063         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84064         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84065
84066 2005-09-25  Jim Meyering  <jim@meyering.net>
84067
84068         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84069         also uses socklen_t.
84070
84071 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84072
84073         * lib/utimens.c (ENOSYS): Define if not already defined.
84074         (futimens): Support having a null PATH if the file descriptor
84075         is nonnegative.
84076
84077         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84078         Remove.
84079         (__attribute): Define to empty unless GCC 3.1 or later.
84080         This works around a core dump on OpenBSD 3.4, which has GCC
84081         2.95.3, which dumps core when given __attribute__(()).  It also
84082         simplifies other tests, since we really don't want to bother with
84083         worrying about which ancient version of GCC supported what.
84084         Original problem reported by Yoann Vandoorselaere, with part of
84085         the fix suggested by Derek Price.
84086
84087 2005-09-24  Jim Meyering  <jim@meyering.net>
84088
84089         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84090         so we can once again use a positive bitfield width of 1 -- now we
84091         don't have to explain why we were using a bitfield width of 2.
84092
84093 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84094
84095         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84096         and similarly for the other external symbols.  Problem reported
84097         by James Gallager.
84098
84099         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84100         bug reported by Jim Meyering.
84101
84102         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84103         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84104         not needed, since socklen is a prerequisite module.
84105
84106 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84107
84108         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84109         Problem reported by Eric Blake.
84110         (getaddrinfo): Initialize se so that it's not garbage.
84111         Redo internal storage allocation so that it doesn't make unportable
84112         assumptions about alignment.
84113         Fix a memory leak.
84114
84115         * lib/utimens.c (futimens): Use futimesat if available.
84116         Prefer it to futimes since it doesn't have the futimes bug.
84117
84118         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84119         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84120         Instead, declare a function that returns a pointer to an array,
84121         and use verify_type__ to declare the size of the array.
84122         Problem and germ of a solution reported by Bruno Haible.
84123         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84124         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84125
84126 2005-09-23  Jim Meyering  <jim@meyering.net>
84127
84128         Sync from coreutils.
84129         Correct build failure (socklen_t not defined) on at least
84130         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84131         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84132
84133 2005-09-23  Jim Meyering  <jim@meyering.net>
84134
84135         * modules/getaddrinfo (Depends-on): Add socklen.
84136
84137 2005-09-23  Bruno Haible  <bruno@clisp.org>
84138
84139         * tests/test-verify.c: New file.
84140
84141 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84142
84143         Sync from coreutils.
84144
84145         * modules/argmatch (Depends-on): Add verify.
84146         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84147         unistd-safer.
84148         * modules/save-cwd (Depends-on): Likewise.
84149
84150         * modules/openat (Files): Add lib/openat-die.c.
84151         (Depends-on): Remove error, exitfail.
84152         Add dirname.
84153
84154         * modules/verify: New file.
84155         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84156         with "verify" module.
84157
84158 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84159
84160         Sync from coreutils.
84161
84162         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84163         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84164         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84165         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84166         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84167         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84168         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84169         Don't bother checking for string.h, stdlib.h, unistd.h.
84170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84171         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84172         module's job.
84173         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84174         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84175
84176         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84177         (gl_GETDATE): Use it.
84178
84179         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84180
84181 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84182
84183         Sync from coreutils.
84184
84185         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84186         stat-time.h.
84187         * lib/argmatch.h: Include verify.h
84188         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84189         (ARGMATCH_ASSERT): Remove; unused.
84190         * lib/canonicalize.c: Assume STDC_HEADERS.
84191         * lib/exclude.c: Include "strcase.h".
84192         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84193         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84194         and stdio-safer.h.
84195         (getusershell): Call fopen, not fopen_safer.
84196         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84197         Do not include unistd-safer.h.
84198         (save_cwd): Don't call fd_safer; no longer needed
84199         now that we include fcntl--.h.
84200
84201         * lib/getdate.y (relative_time): New type.
84202         (RELATIVE_TIME_0): New constant.
84203         (parser_control): Use relative_time instead of doing it ourselves.
84204         (%union): Add new relative_time rel member.
84205         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84206         Now typeless.
84207         (relunit, relunit_snumber): Now of type rel.
84208         (zone, rel, relunit, get_date): Adjust to above changes.
84209
84210         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84211         Do not include unistd-safer.h.
84212         (getloadavg): Don't call fd_safer; no longer needed
84213         now that we include fcntl--.h.
84214
84215         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84216         (make_dir_parents): Treat ENOSYS like EEXIST.
84217
84218         Improve quality of diagnostics on restore_cwd failure.
84219         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84220         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84221         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84222         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84223         each time through the loop.  Do not diagnose restore_cwd failure;
84224         that is the caller's job (and perhaps the caller does not care).
84225
84226         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84227         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84228         If the file already exists but is not a directory, don't bother
84229         to try to make its parents.
84230         Close potential file descriptor leak if we can't chdir("/") (!).
84231         Don't always return true if chdir($PWD) fails; return true only
84232         if the requested action was done successfully (except for the
84233         chdir($PWD)).
84234         Don't log final directory unless we actually made it.
84235         Refactor to avoid duplicate code to fix up permissions.
84236         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84237
84238         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84239         to make it a bit faster and (I hope) clearer.
84240         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84241         Fix bug in formats like %2N.
84242
84243         * lib/verify.h: New file.
84244
84245 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84246
84247         Sync from coreutils.
84248         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84249
84250 2005-09-22  Jim Meyering  <jim@meyering.net>
84251
84252         Sync from coreutils.
84253
84254         * m4/lstat.m4 (gl_FUNC_LSTAT):
84255         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84256         Remove obsolete comment.
84257         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84258         * m4/xstrtod.m4: Likewise.
84259
84260         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84261
84262 2005-09-22  Jim Meyering  <jim@meyering.net>
84263
84264         Sync from coreutils.
84265
84266         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84267
84268         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84269         the .tm_year member, since otherwise gcc-4.0 would now warn about
84270         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84271
84272         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84273         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84274
84275         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84276         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84277         when run in a time zone for which daylight savings time is in effect
84278         for the starting date.
84279
84280         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84281         stop us from restricting permissions of just-created absolute-named
84282         directories.
84283         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84284         to restore initial working directory.
84285         * lib/mkdir-p.c (make_dir_parents): New parameter:
84286         different_working_dir, to tell caller if/when we change the working
84287         directory and are unable to return to the initial one.
84288         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84289         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84290         `return false'.  This fixes a bug introduced on 2004-07-30.
84291
84292         * lib/openat.c (fdopendir): Be sure to close the supplied
84293         file descriptor before returning.  This makes our replacement
84294         implementation a little closer to Solaris's, where fdopendir
84295         ties the file descriptor to the returned DIR* pointer.
84296         * lib/openat.c (unlinkat): New function.
84297         * lib/openat.h (unlinkat): Add prototype.
84298         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84299         (openat_restore_fail): Rename from openat_restore_die.
84300         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84301
84302         Provide an alternative to exiting immediately upon save_cwd or
84303         restore_cwd failure.  Now, an application can arrange e.g.,
84304         to perform a longjump in that case.
84305         * lib/openat.c: Include dirname.h.
84306         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84307         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84308         and openat_restore_die rather than calling error directly.
84309         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84310
84311         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84312         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84313         define.
84314
84315         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84316         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84317                             int utc, int nanoseconds);
84318         Background:
84319         date should not have to allocate a megabyte of virtual memory to
84320         handle a format argument like +%1048575T.  When implemented with
84321         strftime, it must allocate such a buffer, use strftime to fill it
84322         in, print it, then free it.
84323         With fprintftime, it simply prints everything and exits.
84324         With no need for memory allocation, that's one fewer way to fail.
84325         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84326         optional field width, not before, so we accept %9:z, not %:9z.
84327         (my_strftime): Be sure to use L_('x') for literals.
84328
84329         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84330         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84331         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84332         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84333         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84334         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84335         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84336         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84337         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84338         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84339         * lib/xgethostname.c, lib/xreadlink.c:
84340         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84341
84342         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84343         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84344         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84345         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84346         and don't include <sys/file.h>).
84347
84348 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84349
84350         Sync from coreutils.
84351
84352         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84353         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84354         [!LDAV_DONE]: Avoid unused variable warning.
84355
84356 2005-09-21  Bruno Haible  <bruno@clisp.org>
84357
84358         * lib/unicodeio.h (unicode_to_mb): New declaration.
84359
84360 2005-09-20  Derek Price  <derek@ximbiot.com>
84361
84362         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84363         getaddrinfo.h.
84364
84365 2005-09-20  Bruno Haible  <bruno@clisp.org>
84366
84367         * gnulib-tool: Remove trailing slashes from the values specified for
84368         --source-base, --m4-base, --tests-base, --aux-dir.
84369         Suggested by Simon Josefsson <jas@extundo.com>.
84370
84371 2005-09-20  Bruno Haible  <bruno@clisp.org>
84372
84373         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84374         func_modules_to_filelist, func_import, func_create_testdir): Make all
84375         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84376         change when gnulib-tool is invoked in a different locale.
84377
84378 2005-09-19  Simon Josefsson  <jas@extundo.com>
84379
84380         * m4/socklen.m4: Fix typo.
84381
84382 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84383
84384         Use a consistent style for including <config.h>.
84385         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84386         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84387         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84388         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84389         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84390         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84391         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84392         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84393         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84394         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84395         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84396         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84397         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84398         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84399         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84400         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84401         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84402         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84403         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84404         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84405         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84406         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84407         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84408         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84409         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84410         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84411         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84412         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84413         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84414         lib/xstrtoumax.c, lib/yesno.c:
84415         Standardize inclusion of config.h.
84416         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84417         lib/inttostr.h:  Removed inclusion of config.h from header files.
84418         * lib/inttostr.c:  Adjusted in-tree users.
84419         * lib/timespec.h: Remove superfluous warning to include config.h.
84420         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84421         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84422         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84423         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84424         config.h with HAVE_CONFIG_H.
84425
84426 2005-09-19  Jim Meyering  <jim@meyering.net>
84427
84428         * modules/pathmax (License): Change to LGPL.
84429
84430 2005-09-19  Derek Price  <derek@ximbiot.com>
84431
84432         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84433
84434 2005-09-19  Bruno Haible  <bruno@clisp.org>
84435
84436         * gnulib-tool (import): Provide default for --tests-base.
84437
84438 2005-09-19  Bruno Haible  <bruno@clisp.org>
84439
84440         * doc/quote.texi: New file, extracted from gnulib.texi.
84441         * doc/ctime.texi: New file, extracted from gnulib.texi.
84442         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84443         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84444         * doc/gnulib.texi: Include them.
84445
84446 2005-09-18  Bruno Haible  <bruno@clisp.org>
84447
84448         Portability fix.
84449         * gnulib-tool (func_readlink): New function.
84450         (func_ln_if_changed): Use it.
84451
84452 2005-09-18  Bruno Haible  <bruno@clisp.org>
84453
84454         * gnulib-tool: Support --with-tests also with --import.
84455         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84456         (func_import): Use variables $testsbase and $inctests. Emit a
84457         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84458         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84459         SUBDIRS += $testsdir.
84460         (func_create_testdir): Update.
84461
84462 2005-09-18  Bruno Haible  <bruno@clisp.org>
84463
84464         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84465         instead of $dry_run.
84466         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84467         (func_ln_if_changed): Don't handle dry-run here.
84468         (func_import): In dry-run mode, detect more precisely which actions
84469         would be performed, and don't use "...ing" verbs.
84470
84471 2005-09-18  Bruno Haible  <bruno@clisp.org>
84472
84473         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84474         (func_import): Use join on two temporary files instead of three nested
84475         loops, in order to determine which files are new or old.
84476
84477 2005-09-18  Bruno Haible  <bruno@clisp.org>
84478
84479         * gnulib-tool (func_import): Comment out code that spits out the
84480         new files with --dry-run.
84481
84482 2005-09-18  Bruno Haible  <bruno@clisp.org>
84483
84484         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84485
84486 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84487
84488         * lib/stat-time.h: New file.
84489         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84490         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84491         in a different way.
84492         (timespec_cmp): New function.
84493         * lib/utimecmp.c: Include stat-time.h.
84494         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84495         members exist, not on the obsolescent ST_MTIM_NSEC.
84496         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84497
84498 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84499
84500         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84501
84502 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84503
84504         * MODULES.html.sh (File system functions): Add stat-time.
84505         * modules/stat-time: New file.
84506         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84507         is now done in a different way, by the stat-time module.
84508         * modules/utimecmp (Depends-on): Add stat-time.
84509
84510 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84511
84512         * m4/st_mtim.m4: Remove.  Superseded by...
84513         * m4/stat-time.m4: New file.
84514         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84515         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84516
84517 2005-09-15  Derek Price  <derek@ximbiot.com>
84518
84519         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84520
84521 2005-09-15  Derek Price  <derek@ximbiot.com>
84522
84523         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84524         * lib/regex_internal.c: Ditto, using this...
84525         (__GNUC_PREREQ): ...new macro.
84526         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84527         using...
84528         (__GNUC_PREREQ): ...this new macro.
84529
84530         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84531
84532 2005-09-15  Derek Price  <derek@ximbiot.com>
84533             Paul Eggert  <eggert@cs.ucla.edu>
84534
84535         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84536         changes, consolidating in...
84537         * lib/regex_internal.h: ...this file.
84538
84539 2005-09-13  Jim Meyering  <jim@meyering.net>
84540
84541         * lib/canon-host.c: Filter through gnu indent and reword comments
84542         slightly.
84543         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84544
84545 2005-09-13  Derek Price  <derek@ximbiot.com>
84546
84547         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84548         failure.
84549         Reported by Jim Meyering  <jim@meyering.net>.
84550
84551 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84552
84553         * lib/base64.c: Typo.
84554         (base64_encode): Put b64str in initialized data section.
84555
84556 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84557
84558         Merge glibc and coreutils changes into gnulib, plus a few
84559         extra fixes.
84560         * lib/md5.c: Use #error rather than a string.
84561         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84562         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84563         (__attribute__): Define to empty for non recent-GCC.
84564         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84565         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84566         Renamed from their non-__ counterparts, with new macros replacing
84567         them if not _LIBC.  Add __THROW attribute.
84568         (rol): Remove.
84569         (struct md5_ctx): Align buffer if using GCC.
84570         * lib/sha1.h (struct sha1_ctx): Likewise.
84571         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84572         The old name was backwards.
84573         (NOTSWAP): Remove; not used.
84574         (rol): New macro, moved here from md5.h.
84575         (sha1_process_block): Remove a FIXME that doesn't make sense.
84576
84577 2005-09-12  Derek Price  <derek@ximbiot.com>
84578
84579         Return usable errors from canon-host.
84580         * lib/canon-host.h: New file.
84581         * lib/canon-host.c (canon_host): Wrap...
84582         (canon_host_r): ...this new function, which now relies exclusively on
84583         getaddrinfo.
84584         (ch_strerror): New function.
84585         (last_cherror): New global.
84586         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84587         interface.
84588         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84589         void *.
84590         (freeaddrinfo): Free ai->ai_canonname when set.
84591
84592 2005-09-12  Derek Price  <derek@ximbiot.com>
84593
84594         Make canon-host require getaddrinfo.
84595         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84596         AC_LIBSOURCE canon-host.h.  Call...
84597         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84598         gl_GETADDRINFO.
84599         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84600
84601 2005-09-12  Derek Price  <derek@ximbiot.com>
84602
84603         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84604         LGPL.
84605         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84606
84607 2005-09-12  Derek Price  <derek@ximbiot.com>
84608
84609         * lib/gai_strerror.c: Include config.h when available.  Include
84610         getaddrinfo.h before other headers to test interface.
84611         Reported by Larry Jones <lawrence.jones@ugs.com>.
84612
84613 2005-09-12  Derek Price  <derek@ximbiot.com>
84614             Paul Eggert  <eggert@cs.ucla.edu>
84615
84616         * modules/glob (Files): Add glob-libc.h.
84617
84618 2005-09-12  Derek Price  <derek@ximbiot.com>
84619             Paul Eggert  <eggert@cs.ucla.edu>
84620
84621         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84622         glob_.h, glob-libc.h.
84623         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84624
84625 2005-09-12  Derek Price  <derek@ximbiot.com>
84626             Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84629         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84630         protecting things that should be done only in gnulib contexts.
84631         * lib/glob_.h: New file, containing only the glob things needed for
84632         gnulib.
84633         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84634         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84635         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84636         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84637         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84638         and to respect the namespace rules better.
84639
84640 2005-09-08  Simon Josefsson  <jas@extundo.com>
84641
84642         * modules/socklen: New file.
84643
84644 2005-09-08  Simon Josefsson  <jas@extundo.com>
84645
84646         * m4/socklen.m4: New file.
84647
84648 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84649
84650         * modules/utimens (Files): Add m4/utimbuf.m4, since
84651         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84652         Reported by Sergey Poznyakoff.
84653
84654 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84655
84656         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84657         definitions, since that's the preferred style in glibc.
84658         Fix a minor spacing issue, and update copyright notice to match
84659         glibc's.
84660
84661 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84664
84665 2005-09-06  Simon Josefsson  <jas@extundo.com>
84666
84667         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84668         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84669
84670 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84671
84672         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84673         warning.
84674
84675 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84676
84677         * config/srclist.txt: Add glibc bug 1302.
84678
84679 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84680
84681         Change bitset word type from unsigned int to unsigned long int,
84682         as this has better performance on typical 64-bit hosts.
84683         Port bitset code to hosts with unusual word sizes.
84684         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84685         (build_collating_symbol):
84686         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84687         argument is a bitset.  This is merely a style issue, but it makes
84688         it clearer that an entire array is expected.
84689         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84690         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84691         Port to the case where bitset_word is not the same as unsigned int.
84692         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84693         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84694         Likewise.
84695         * lib/regexec.c (check_dst_limits_calc_pos_1,
84696         check_subexp_matching_top):
84697         (build_trtable, group_nodes_into_DFAstates):
84698         Likewise.
84699         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84700         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84701         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84702         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84703         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84704         * lib/regcomp.c (optimize_subexps, lower_subexp):
84705         Work even if bitset_word has holes in its bitwise representation.
84706         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84707         * lib/regexec.c (check_dst_limits_calc_pos_1,
84708         check_subexp_matching_top):
84709         Likewise.
84710         * lib/regex_internal.c (re_string_reconstruct):
84711         Don't assume UCHAR_MAX == 255.
84712         * lib/regex_internal.h (bitset_set_all): Likewise.
84713         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84714         All uses changed.
84715         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84716         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84717         All uses changed.
84718         (BITSET_WORD_MAX): New macro.
84719         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84720         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84721         (bitset_empty, bitset_copy):
84722         Prefer sizeof (bitset) to multiplying it out ourselves.
84723         (bitset_not_merge): Remove; unused.
84724         (bitset_contain): Return bool, not unsigned int with one bit on.
84725         All callers changed.
84726         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84727         alignment than re_node_set; do this by defining a new internal
84728         type struct dests_alloc and using it to allocate memory.
84729
84730 2005-09-05  Bruno Haible  <bruno@clisp.org>
84731
84732         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84733         links.
84734
84735 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84736
84737         * modules/size_max (Makefile.am): Add size_max.h
84738
84739 2005-09-04  Derek Price  <derek@ximbiot.com>
84740
84741         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84742
84743 2005-09-03  Simon Josefsson  <jas@extundo.com>
84744
84745         * gnulib-tool: Fix typo.
84746
84747 2005-09-03  Simon Josefsson  <jas@extundo.com>
84748
84749         * config/srclist.txt: Add glibc bug 1293.
84750
84751 2005-09-03  Derek Price  <derek@ximbiot.com>
84752
84753         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84754         From Larry Jones <lawrence.jones@ugs.com>.
84755
84756 2005-09-02  Simon Josefsson  <jas@extundo.com>
84757
84758         * modules/socklen: New file.
84759
84760 2005-09-02  Simon Josefsson  <jas@extundo.com>
84761
84762         * modules/havelib: New module.
84763
84764         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84765         Use havelib.
84766
84767 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84768
84769         Check for arithmetic overflow when calculating sizes, to prevent
84770         some buffer-overflow issues.  These patches are conservative, in the
84771         sense that when I couldn't determine whether an overflow was possible,
84772         I inserted a run-time check.
84773         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84774         macros.
84775         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84776         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84777         (re_xnrealloc, re_x2nrealloc): New inline functions.
84778         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84779         parse_bracket_exp):
84780         (build_equiv_class, build_charclass): Check for arithmetic overflow
84781         in size expression calculations.
84782         * lib/regex_internal.c (re_string_realloc_buffers):
84783         (build_wcs_upper_buffer, re_node_set_add_intersect):
84784         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84785         (re_dfa_add_node, register_state): Likewise.
84786         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84787         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84788         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84789         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84790
84791 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84792
84793         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84794         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84795
84796 2005-09-02  Bruno Haible  <bruno@clisp.org>
84797
84798         Support for lib vs. lib64 distinction on biarch platforms.
84799         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84800         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84801         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84802
84803 2005-09-02  Bruno Haible  <bruno@clisp.org>
84804
84805         * gnulib-tool (import): In the other first-use case, provide defaults
84806         as well.
84807
84808 2005-09-02  Bruno Haible  <bruno@clisp.org>
84809
84810         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84811         patches not yet found in the latest gettext release.
84812
84813 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84814
84815         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84816         to avoid a collision with bits/local_lim.h in glibc.
84817         All uses changed.  Problem reported by Dmitry V. Levin in
84818         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84819
84820         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84821         bugs in int versus size_t comparisons.
84822         (re_string_context_at): Fix bug where the code assumed that
84823         Idx is signed.
84824
84825         Use bool where appropriate.
84826         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84827         All callers changed.
84828         (calc_eclosure_iter): Likewise, for ROOT arg.
84829         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84830         (build_charclass_op): Likewise, for NON_MATCH arg.
84831         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84832         (re_string_construct_common): Likewise, for ICASE arg.
84833         * lib/regexec.c (re_search_2_stub, re_search_stub):
84834         Likewise, for RET_LEN arg.
84835         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84836         (set_regs): Likewise, for FL_BACKTRACK arg.
84837         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84838         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84839         (calc_eclosure_iter, parse_bracket_exp):
84840         Use bool for internal variables that are booleans.
84841         * lib/regexec.c (re_search_internal, check_matching,
84842         proceed_next_node):
84843         (set_regs, build_sifted_states, sift_states_bkref):
84844         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84845         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84846         (find_collation_sequence_value):
84847         Likewise.
84848         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84849         (re_node_set_compare):
84850         Return bool, not int. All callers changed.
84851         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84852         (build_trtable, check_node_accept): Likewise.
84853         * lib/regex_internal.h: Include stdbool.h.
84854
84855         Fix bugs uncovered when converting to bool.
84856         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84857         failure instead of charging ahead blindly.
84858         * lib/regex_internal.c (register_state): Likewise.
84859         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84860         for freeing internal storage.
84861         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84862         bitset pieces used as boolean, to avoid undefined behavior
84863         on hosts that do int overflow checking.
84864
84865 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84866
84867         * config/srclist.txt: Add glibc bugs 1285-1287.
84868
84869 2005-09-01  Jim Meyering  <jim@meyering.net>
84870
84871         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84872         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84873         Require gl_STAT_MACROS, too.
84874
84875 2005-09-01  Bruno Haible  <bruno@clisp.org>
84876
84877         * gnulib-tool (import): In the first-use case, provide defaults.
84878
84879 2005-09-01  Bruno Haible  <bruno@clisp.org>
84880
84881         * gnulib-tool (func_import): Remove the .tmp files.
84882
84883 2005-09-01  Bruno Haible  <bruno@clisp.org>
84884
84885         * gnulib-tool (func_import): Fix handling of symbolic links.
84886
84887 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84890         old glibc regex code mishandles strings longer than 2**31 bytes.
84891         This patch fixes this when the regex code is used in gnulib
84892         (i.e., outside glibc).
84893
84894         This patch should not affect the use of the regex code inside
84895         glibc.  No doubt this problem also needs to be handled for glibc
84896         as well, but the result will be an incompatible change to the
84897         glibc ABI, and the old ABI will have to be supported too.  That
84898         can be the the subject for another patch.
84899
84900         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84901         governing whether the rest of this patch is active.  By default,
84902         the macro is disabled and the patch has no effect.
84903         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84904         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84905         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84906         (re_match_2, re_set_registers): Use the new types.
84907         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84908         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84909         New macros.
84910         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84911         (re_string_context_at, bin_tree_t, re_dfastate_t):
84912         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84913         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84914         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84915         (re_string_char_size_at, re_string_wchar_at):
84916         (re_string_elem_size_at):
84917         Use the new types and macros to port to 64-bit hosts.
84918         Use unsigned types for internal values, so that the code
84919         mostly works even for arrays larger than SSIZE_MAX.
84920         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84921         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84922         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84923         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84924         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84925         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84926         (calc_inveclosure, parse_dup_op, build_range_exp):
84927         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84928         (fetch_number, create_token_tree, mark_opt_subexp):
84929         Likewise.
84930         * lib/regex_internal.c (re_string_construct_common,
84931         create_ci_newstate):
84932         (create_cd_newstate, re_string_allocate, re_string_construct):
84933         (re_string_realloc_buffers, build_wcs_upper_buffer):
84934         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84935         (re_string_reconstruct, re_string_peek_byte_case):
84936         (re_string_fetch_byte_case, re_string_context_at):
84937         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84938         (re_node_set_init_copy, re_node_set_add_intersect):
84939         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84940         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84941         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84942         (re_acquire_state, re_acquire_state_context, register_state):
84943         Likewise.
84944         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84945         search_cur_bkref_entry):
84946         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84947         (re_search_internal, re_search_2_stub, re_search_stub)
84948         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84949         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84950         (update_cur_sifted_state, check_dst_limits):
84951         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84952         (check_subexp_limits, sift_states_bkref, merge_state_array):
84953         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84954         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84955         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84956         (expand_bkref_cache, check_node_accept_bytes):
84957         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84958         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84959         (acquire_init_state_context, check_halt_node_context):
84960         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84961         (sift_states_backward, clean_state_log_if_needed):
84962         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84963         (find_recover_state, transit_state_sb, transit_state_mb):
84964         (transit_state_bkref, build_trtable, match_ctx_clean):
84965         Likewise.
84966         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84967         to work around an assumption that REG_MISSING is negative.
84968
84969         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84970         (seek_collating_symbol_entry) [defined _LIBC]:
84971         (lookup_collation_sequence_value) [defined _LIBC]:
84972         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84973         Use prototypes rather than old-style function definitions.
84974         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84975         (transit_state_sb) [0]:
84976         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84977
84978         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84979         rm_eo.
84980
84981         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84982         (optimize_subexps, lower_subexp):
84983         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84984         since the signed shift might overflow.  Use 1u<<31 instead.
84985         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84986         Likewise.
84987         * lib/regexec.c (check_dst_limits_calc_pos_1,
84988         check_subexp_matching_top): Likewise.
84989
84990         * lib/regcomp.c (optimize_subexps, lower_subexp):
84991         Use CHAR_BIT rather than 8, for clarity.
84992         * lib/regexec.c (check_dst_limits_calc_pos_1):
84993         (check_subexp_matching_top): Likewise.
84994         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84995         have to worry about portability issues when shifting it left.
84996         Remove no-longer-needed test for table_size > 0.
84997         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84998         in a word, as the resulting behavior is undefined.
84999         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85000         in one case, a <= should have been an <, and in another case the
85001         whole test was missing.
85002         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85003         the standard name CHAR_BIT.
85004         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85005         this is not true on one's complement and signed-magnitude hosts.
85006
85007         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85008         next_last_offset.
85009         (struct re_dfa_t): Remove unused member states_alloc.
85010         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85011
85012 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85013
85014         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85015         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85016         and large-file glibc and in 32-bit large-file Solaris.
85017
85018 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85019
85020         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85021         lengths fit in regoff_t; this isn't true if regoff_t is the same
85022         width as size_t.
85023         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85024         (= START + RANGE) instead of RANGE.  This avoids overflow
85025         problems when regoff_t is the same width as size_t.
85026         All callers changed.
85027         (re_search_2_stub): Check for overflow when adding the
85028         sizes of the two strings.
85029         (re_search_stub): Check for overflow when adding START
85030         to RANGE; if it occurs, substitute the extreme value.
85031
85032 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85035
85036 2005-08-31  Jim Meyering  <jim@meyering.net>
85037
85038         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85039         a pointer-to-const.
85040         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85041         (register_state): Likewise.
85042         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85043         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85044         (group_nodes_into_DFAstates): Likewise.
85045
85046 2005-08-31  Jim Meyering  <jim@meyering.net>
85047
85048         * check-module: Add a FIXME comment.
85049
85050 2005-08-31  Eric Blake  <ebb9@byu.net>
85051
85052         * modules/unistd-safer (Files): Add unistd--.h.
85053         * modules/stdio-safer (Files): Add stdio--.h.
85054
85055 2005-08-31  Derek Price  <derek@ximbiot.com>
85056
85057         * lib/getdelim.c (getdelim): Return EOF on EOF.
85058         Reported by Larry Jones <lawrence.jones@ugs.com>.
85059
85060 2005-08-31  Bruno Haible  <bruno@clisp.org>
85061
85062         Avoid unnecessary diffs in the generated lib/Makefile.am.
85063         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85064         the generated files.
85065         (func_import): Don't set cmd.
85066
85067 2005-08-31  Bruno Haible  <bruno@clisp.org>
85068
85069         * lib/strstr.c: Include <stddef.h>, for NULL.
85070         * lib/strcasestr.c: Likewise.
85071         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85072
85073 2005-08-31  Bruno Haible  <bruno@clisp.org>
85074
85075         * gnulib-tool: New option --macro-prefix.
85076         (func_import): Use macro_prefix.
85077         (import): Handle option --macro-prefix.
85078
85079 2005-08-31  Bruno Haible  <bruno@clisp.org>
85080
85081         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85082         Also use new variables cached_lgpl, cached_libtool.
85083
85084 2005-08-31  Bruno Haible  <bruno@clisp.org>
85085
85086         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85087         always instantiating them.
85088
85089 2005-08-31  Bruno Haible  <bruno@clisp.org>
85090
85091         * gnulib-tool (func_import): Read the previous cached settings
85092         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85093         earlier added by gnulib but are now dropped. Warn when a gnulib file
85094         overwrites a non-gnulib file.
85095
85096 2005-08-31  Bruno Haible  <bruno@clisp.org>
85097
85098         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85099         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85100         projects that don't keep autogenerated files in CVS. Put into
85101         actioncmd only the specified modules, not the transitive closure.
85102
85103 2005-08-31  Bruno Haible  <bruno@clisp.org>
85104
85105         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85106         Create directories that shall be filled.
85107         (import): Don't look for gl_* macros in configure.ac. Recurse across
85108         all directories containing a gnulib-cache.m4 files, if meaningful.
85109
85110 2005-08-31  Bruno Haible  <bruno@clisp.org>
85111
85112         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85113         (import): Set seen_libtool when we see gl_LIBTOOL.
85114
85115 2005-08-31  Bruno Haible  <bruno@clisp.org>
85116
85117         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85118         declaration macro definitions from generated gnulib.m4.
85119
85120 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85121
85122         * lib/iconvme.h: Add prototype for iconv_alloc.
85123
85124 2005-08-29  Simon Josefsson  <jas@extundo.com>
85125
85126         * lib/iconvme.c: Fix errno.
85127
85128 2005-08-29  Bruno Haible  <bruno@clisp.org>
85129
85130         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85131         that it works when the directory contains spaces.
85132
85133 2005-08-29  Bruno Haible  <bruno@clisp.org>
85134
85135         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85136
85137 2005-08-29  Bruno Haible  <bruno@clisp.org>
85138
85139         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85140         Emit more advice.
85141
85142 2005-08-29  Bruno Haible  <bruno@clisp.org>
85143         and Stepan Kasal  <kasal@ucw.cz>
85144
85145         * check-module: If more parameters are given, check each of them
85146         separately; add more exceptions, as noted by Jim Meyering.
85147         (check_module): New procedure.
85148         (%exempt_header): Now contains all exceptions.
85149
85150 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85151
85152         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85153
85154 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85155
85156         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85157
85158 2005-08-28  Bruno Haible  <bruno@clisp.org>
85159
85160         * m4/gnulib-tool.m4: New file.
85161
85162 2005-08-27  Jim Meyering  <jim@meyering.net>
85163
85164         * modules/unistd-safer (Files): Add pipe-safer.c.
85165         * modules/fcntl-safer (Files): Add creat-safer.c.
85166
85167 2005-08-27  Jim Meyering  <jim@meyering.net>
85168
85169         * m4/stdlib-safer.m4: New file.  From coreutils.
85170         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85171         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85172         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85173         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85174         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85175
85176 2005-08-27  Jim Meyering  <jim@meyering.net>
85177
85178         * lib/fopen-safer.c: Merge minor changes from coreutils.
85179         * lib/dup-safer.c: Likewise.
85180         * lib/fd-safer.c: Likewise.
85181
85182         Merge from coreutils.
85183         * lib/stdio--.h: New file.
85184         * lib/stdlib--.h: New file.
85185         * lib/mkstemp-safer.c: New file.
85186
85187         GNU tar needs these.
85188         * lib/pipe-safer.c: New file.
85189         * lib/creat-safer.c: New file.
85190         * lib/fcntl--.h (creat): Define to creat_safer.
85191         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85192         * lib/unistd--.h (pipe): Define to pipe_safer.
85193         * lib/unistd-safer.h: Declare pipe_safer.
85194
85195 2005-08-26  Simon Josefsson  <jas@extundo.com>
85196
85197         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85198         Haible <bruno@clisp.org>.
85199
85200 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85201
85202         * lib/regex_internal.h: Remove all references to
85203         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85204         or better.
85205         (bitset_not, bitset_merge, bitset_not_merge):
85206         (bitset_mask, re_string_allocate, re_string_construct):
85207         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85208         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85209         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85210         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85211         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85212         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85213         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85214         (re_acquire_state_context):
85215         Remove unnecessary forward decls.
85216         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85217         Put __attribute at function definition,
85218         now that the function decl has been removed.
85219         * lib/regex_internal.c (re_string_peek_byte_case):
85220         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85221         Likewise.
85222
85223 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85224
85225         * m4/regex.m4: Add AC_PREREQ(2.50).
85226         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85227
85228 2005-08-25  Simon Josefsson  <jas@extundo.com>
85229
85230         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85231         __fsetlocking.
85232
85233 2005-08-25  Simon Josefsson  <jas@extundo.com>
85234
85235         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85236         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85237         GLIBC specific code.
85238
85239 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85240
85241         Make regex safe for g++.  This fixes one real bug (an "err"
85242         that should have been "*err").  g++ problem reported by
85243         Sam Steingold.
85244         * lib/regex_internal.h (re_calloc): New macro, consistent with
85245         re_malloc etc.  All callers of calloc changed to use re_calloc.
85246         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85247         not int.  All callers changed.
85248         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85249         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85250         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85251         (find_recover_state): Change "err" to "*err"; this fixes what
85252         appears to be a real bug.
85253         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85254         versus int.
85255
85256 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85257
85258         * modules/regex (Depends-on): Add malloc, since the code
85259         assumes that !malloc(0) means failure.
85260
85261 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85262
85263         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85264
85265         alloca modernization/simplification for regex.
85266         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85267         needs to be at the start of the file, and can be moved into
85268         regex_internal.h and simplified.
85269         * lib/regex_internal.h: Include <alloca.h>.
85270         (__libc_use_alloca) [!defined _LIBC]: New macro.
85271         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85272         now works outside glibc.
85273
85274 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85275
85276         * config/srclist.txt: Add glibc bugs 1241, 1245.
85277
85278 2005-08-25  Jim Meyering  <jim@meyering.net>
85279
85280         * lib/open-safer.c: Include <config.h>.
85281         Otherwise, we'd lose LARGEFILE support in any file using
85282         e.g. "fcntl--.h"
85283
85284 2005-08-25  Bruno Haible  <bruno@clisp.org>
85285
85286         * m4/minmax.m4: Require autoconf 2.52.
85287         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85288         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85289         alternatives of translit over the alphabet.
85290         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85291
85292 2005-08-24  Simon Josefsson  <jas@extundo.com>
85293
85294         * tests/test-getpass.c: New file.
85295
85296 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85299         for GNU regex features.
85300
85301 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85302
85303         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85304         * lib/regex.h (regerror): Likewise.
85305
85306         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85307         requires this.  (The code never needed it.)
85308
85309         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85310         All uses of recently-renamed identifiers changed to use the new,
85311         POSIX-compliant names.  The code will build and run just fine
85312         without these changes, but it's better to eat our own dog food
85313         and use the standard-conforming names.
85314
85315         * lib/regex.h: Fix a multitude of POSIX name space violations.
85316         These changes have an effect only for programs that define
85317         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85318         do not change anything for programs compiled in the normal way.
85319         Also, there is no effect on the ABI.
85320
85321         (_REGEX_SOURCE): New macro.
85322         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85323         defined and _GNU_SOURCE is not; this fixes a name space violation.
85324
85325         Rename the following macros to obey POSIX requirements.
85326         The old names are still visible as macros if _REGEX_SOURCE is defined.
85327         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85328         RE_BACKSLASH_ESCAPE_IN_LISTS.
85329         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85330         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85331         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85332         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85333         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85334         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85335         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85336         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85337         (REG_INTERVALS): renamed from RE_INTERVALS.
85338         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85339         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85340         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85341         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85342         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85343         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85344         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85345         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85346         RE_UNMATCHED_RIGHT_PAREN_ORD.
85347         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85348         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85349         (REG_DEBUG): renamed from RE_DEBUG.
85350         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85351         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85352         unusual, since we can't clash with the POSIX REG_ICASE.
85353         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85354         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85355         (REG_NO_SUB): renamed from RE_NO_SUB.
85356         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85357         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85358         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85359         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85360         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85361         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85362         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85363         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85364         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85365         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85366         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85367         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85368         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85369         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85370         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85371         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85372         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85373         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85374         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85375         (REG_FIXED): Renamed from REGS_FIXED.
85376         (REG_NREGS): Renamed from RE_NREGS.
85377
85378         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85379         of other REG_* macros, since POSIX says the user is allowed to
85380         #undef these macros selectively.
85381
85382         (reg_errcode_t): Update comment stating what other tables need
85383         to be consistent.
85384
85385         Rename the following enum values to obey POSIX requirements.
85386         The old names are still visible as macros.
85387         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85388         is not defined, since GNU is supposed to be a superset of POSIX as
85389         much as possible, and since we want reg_errcode_t to be a signed
85390         type for implementation consistency.
85391         (_REG_NOERROR): Renamed from REG_NOERROR.
85392         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85393         (_REG_BADPAT): Renamed from REG_BADPAT.
85394         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85395         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85396         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85397         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85398         (_REG_EBRACK): Renamed from REG_EBRACK.
85399         (_REG_EPAREN): Renamed from REG_EPAREN.
85400         (_REG_EBRACE): Renamed from REG_EBRACE.
85401         (_REG_BADBR): Renamed from REG_BADBR.
85402         (_REG_ERANGE): Renamed from REG_ERANGE.
85403         (_REG_ESPACE): Renamed from REG_ESPACE.
85404         (_REG_BADRPT): Renamed from REG_BADRPT.
85405         (_REG_EEND): Renamed from REG_EEND.
85406         (_REG_ESIZE): Renamed from REG_ESIZE.
85407         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85408         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85409         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85410         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85411         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85412
85413         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85414         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85415         changed.  But support the old name if the new one is not defined
85416         and if _REGEX_SOURCE.
85417
85418         Change the following member names in struct re_pattern_buffer.
85419         The old names are still supported if !_REGEX_SOURCE.
85420         The new names are always supported, regardless of _REGEX_SOURCE.
85421         (re_buffer): Renamed from buffer.
85422         (re_allocated): Renamed from allocated.
85423         (re_used): Renamed from used.
85424         (re_syntax): Renamed from syntax.
85425         (re_fastmap): Renamed from fastmap.
85426         (re_translate): Renamed from translate.
85427         (re_can_be_null): Renamed from can_be_null.
85428         (re_regs_allocated): Renamed from regs_allocated.
85429         (re_fastmap_accurate): Renamed from fastmap_accurate.
85430         (re_no_sub): Renamed from no_sub.
85431         (re_not_bol): Renamed from not_bol.
85432         (re_not_eol): Renamed from not_eol.
85433         (re_newline_anchor): Renamed from newline_anchor.
85434
85435         Change the following member names in struct re_registers.
85436         The old names are still supported if !_REGEX_SOURCE.
85437         The new names are always supported, regardless of _REGEX_SOURCE.
85438         (rm_num_regs): Renamed from num_regs.
85439         (rm_start): Renamed from start.
85440         (rm_end): Renamed from end.
85441
85442         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85443         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85444         Prepend __ to parameter names.
85445
85446         Undo yesterday's changes.
85447
85448 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85449
85450         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85451         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85452         lib/regex.c.
85453
85454 2005-08-24  Jim Meyering  <jim@meyering.net>
85455
85456         Sync from coreutils.
85457         * m4/fcntl-safer.m4: New file.
85458
85459         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85460         and object files for this module.
85461
85462 2005-08-24  Jim Meyering  <jim@meyering.net>
85463
85464         Sync from coreutils.
85465         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85466
85467 2005-08-24  Jim Meyering  <jim@meyering.net>
85468
85469         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85470         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85471
85472 2005-08-24  Jim Meyering  <jim@meyering.net>
85473
85474         * modules/fcntl-safer: New module.
85475         * modules/fts (Depends-on): Add fcntl-safer.
85476         * MODULES.html.sh (File descriptor based Input/Output):
85477         Add fcntl-safer.
85478
85479 2005-08-24  Bruno Haible  <bruno@clisp.org>
85480
85481         Support for unit test modules.
85482         * modules/README: Mention tests modules.
85483         * modules/TEMPLATE-TESTS: New file.
85484         * gnulib-tool: New options --extract-tests-module, --with-tests and
85485         --tests-base (unused for the moment).
85486         (testsbase, inctests): New variables.
85487         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85488         (func_verify_module): Exclude TEMPLATE-TESTS.
85489         (func_verify_nontests_module, func_verify_tests_module): New functions.
85490         (func_get_dependencies): Add implicit dependency for tests modules.
85491         (func_get_tests_module): New function.
85492         (func_modules_transitive_closure): When --with-tests was specified,
85493         include the unit tests as well, unless explicitly avoided.
85494         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85495         (func_emit_tests_Makefile_am): New function.
85496         (func_create_testdir): When --with-tests was specified, emit a
85497         tests/ directory.
85498         * MODULES.html.sh (Future developments): Update.
85499
85500 2005-08-24  Bruno Haible  <bruno@clisp.org>
85501
85502         * modules/tls-tests: New file.
85503         * tests/test-tls.c: New file, from GNU gettext.
85504
85505 2005-08-24  Bruno Haible  <bruno@clisp.org>
85506
85507         * modules/lock-tests: New file.
85508         * tests/test-lock.c: New file, from GNU gettext.
85509
85510 2005-08-24  Bruno Haible  <bruno@clisp.org>
85511
85512         * lib/lock.h: Add multiple inclusion guard.
85513         * lib/tls.h: Add multiple inclusion guard.
85514
85515 2005-08-24  Bruno Haible  <bruno@clisp.org>
85516
85517         * gnulib-tool: Add support for the --aux-dir option to
85518         --create-testdir, --create-megatestdir, --test, --megatest.
85519         (func_create_testdir, func_create_megatestdir): Optionally emit a
85520         AC_CONFIG_AUX_DIR directive.
85521         (create-testdir, create-megatestdir, test, megatest): Provide a
85522         default value for $auxdir.
85523
85524 2005-08-24  Bruno Haible  <bruno@clisp.org>
85525
85526         * gnulib-tool (import): Use compound statement instead of subshell
85527         where possible.
85528
85529 2005-08-24  Bruno Haible  <bruno@clisp.org>
85530
85531         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85532
85533 2005-08-24  Bruno Haible  <bruno@clisp.org>
85534
85535         * gnulib-tool (func_version): Update.
85536
85537 2005-08-24  Bruno Haible  <bruno@clisp.org>
85538
85539         * gnulib-tool (func_import, func_create_testdir,
85540         func_create_megatestdir): Quote all autoconf macro arguments.
85541
85542 2005-08-24  Bruno Haible  <bruno@clisp.org>
85543
85544         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85545         option --force, because --force causes the aclocal.m4 of each
85546         subdirectory to be newer than the corresponding config.h.in.
85547
85548 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85549
85550         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85551         All contents moved to gl_REGEX.
85552         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85553         assume that it does.
85554
85555 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85556
85557         * lib/regex.h (REG_NOSYS)
85558         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85559         Define, since POSIX requires it as of 2001.
85560         (_REG_ENOSYS)
85561         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85562         New private symbol, used to keep the enum signed in all cases.
85563         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85564         Youngman in
85565         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85566
85567         * lib/regex_internal.c (re_string_skip_chars, register_state):
85568         (calc_state_hash):
85569         Remove forward decls; no longer needed now that we use prototypes.
85570         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85571         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85572         (clean_state_log_if_needed): Likewise.
85573
85574 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85575
85576         * config/srclist.txt: Add glibc bugs 1231-1233.
85577
85578 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85579
85580         Fix problems reported by Sam Steingold in
85581         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85582         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85583         assumed that reg_errcode_t is a signed type, which is not
85584         necessarily true if _XOPEN_SOURCE is not defined.
85585         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85586         since some compilers warn about it otherwise.
85587
85588 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85589
85590         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85591         (init_word_char, create_initial_state, duplicate_node_closure):
85592         (fetch_token, peek_token_bracket, build_range_exp):
85593         (build_collating_symbol): Remove forward decls; no longer needed
85594         now that we use prototypes.
85595
85596         * lib/regcomp.c:
85597         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85598         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85599         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85600         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85601         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85602         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85603         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85604         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85605         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85606         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85607         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85608         (build_charclass, build_charclass_op, fetch_number, create_tree):
85609         (create_token_tree, mark_opt_subexp, duplicate_tree):
85610         Use prototypes rather than old-style definitions.
85611
85612         * lib/regex_internal.c:
85613         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85614         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85615         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85616         (re_string_reconstruct, re_string_peek_byte_case):
85617         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85618         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85619         (re_node_set_init_copy, re_node_set_add_intersect):
85620         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85621         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85622         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85623         (re_acquire_state, re_acquire_state_context, register_state):
85624         (create_ci_newstate, create_cd_newstate, free_state):
85625         Likewise.
85626         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85627         re_search_2):
85628         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85629         (re_search_internal, prune_impossible_nodes):
85630         (acquire_init_state_context, check_matching, static):
85631         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85632         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85633         (update_regs, sift_states_backward, build_sifted_states):
85634         (clean_state_log_if_needed, merge_state_array):
85635         (update_cur_sifted_state, add_epsilon_src_nodes):
85636         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85637         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85638         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85639         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85640         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85641         (check_arrival, check_arrival_add_next_nodes):
85642         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85643         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85644         (check_node_accept_bytes, check_node_accept, extend_buffers):
85645         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85646         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85647         (sift_ctx_init):
85648         Likewise.
85649
85650         * lib/regex_internal.h:
85651         (re_string_allocate, re_string_construct, re_string_reconstruct):
85652         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85653         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85654         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85655         (re_string_context_at, re_string_peek_byte_case):
85656         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85657         is defined, since we now use prototypes always.
85658
85659         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85660         C89 or better.  All uses removed.
85661
85662 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85663
85664         * config/srclist.txt: Add glibc bugs 1220-1227.
85665
85666 2005-08-20  Jim Meyering  <jim@meyering.net>
85667
85668         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85669         of unused local, dfa.
85670
85671 2005-08-20  Bruno Haible  <bruno@clisp.org>
85672
85673         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85674
85675 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85676
85677         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85678         (re_node_set_insert_last, re_dfa_add_node):
85679         Rename local variables to avoid GCC shadowing warnings.
85680
85681 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85682
85683         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85684         [defined lint]: Suppress bogus uninitialized-variable warnings.
85685
85686         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85687         and let the caller return REG_ESPACE if out of space.  This
85688         removes an uninitialied-variable warning with GCC 4.0.1, and also
85689         avoids taking the address of a local variable.  All callers
85690         changed.
85691
85692 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85693
85694         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85695         $LIBCSRC/posix/regexec.c.
85696         Add glibc bug 1217 for regcomp.c.
85697
85698 2005-08-19  Jim Meyering  <jim@meyering.net>
85699
85700         * lib/regexec.c (proceed_next_node): Redo local variables to
85701         avoid GCC shadowing warnings.
85702
85703 2005-08-18  Bruno Haible  <bruno@clisp.org>
85704
85705         * lib/strstr.c (strstr): Fix return value in multibyte case.
85706         * lib/strcasestr.c (strcasestr): Likewise.
85707
85708 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85709
85710         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85711
85712 2005-08-17  Jim Meyering  <jim@meyering.net>
85713
85714         Make the %s format (seconds since the epoch) work for a negative
85715         number and when used with a zero-padded field width, e.g. %015s.
85716
85717         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85718         label so that it precedes the code to set `digits'.  Otherwise,
85719         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85720         print `00-22'.  Now, it prints `-0022', as it should.
85721
85722 2005-08-17  Bruno Haible  <bruno@clisp.org>
85723
85724         * modules/strstr (Files): Add m4/mbrtowc.m4.
85725         (Depends-on): Add mbuiter.
85726
85727 2005-08-17  Bruno Haible  <bruno@clisp.org>
85728
85729         * modules/strcasestr: New file.
85730         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85731         strcasestr.
85732
85733 2005-08-17  Bruno Haible  <bruno@clisp.org>
85734
85735         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85736
85737 2005-08-17  Bruno Haible  <bruno@clisp.org>
85738
85739         * modules/mbuiter: New file.
85740         * MODULES.html.sh (Extended multibyte and wide character utilities):
85741         Add mbuiter.
85742
85743 2005-08-17  Bruno Haible  <bruno@clisp.org>
85744
85745         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85746         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85747
85748 2005-08-17  Bruno Haible  <bruno@clisp.org>
85749
85750         * m4/strcasestr.m4: New file.
85751
85752 2005-08-17  Bruno Haible  <bruno@clisp.org>
85753
85754         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85755         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85756
85757 2005-08-17  Bruno Haible  <bruno@clisp.org>
85758
85759         * lib/strcasestr.h: New file.
85760         * lib/strcasestr.c: New file.
85761
85762 2005-08-17  Bruno Haible  <bruno@clisp.org>
85763
85764         * lib/strcasecmp.c: Use mbuiter.h.
85765
85766 2005-08-17  Bruno Haible  <bruno@clisp.org>
85767
85768         * lib/mbuiter.h: New file.
85769
85770 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85771
85772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85773         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85774         and gl_GETOPT are both invoked via different paths (as happens
85775         with GNU tar CVS because it uses both argp and getopt), the former
85776         wins.
85777
85778 2005-08-16  Bruno Haible  <bruno@clisp.org>
85779
85780         * modules/tls: New file.
85781         * MODULES.html.sh (Multithreading): Add tls.
85782
85783 2005-08-16  Bruno Haible  <bruno@clisp.org>
85784
85785         * modules/strnlen1: New file.
85786         * MODULES.html.sh (String handling): Add strnlen1.
85787
85788 2005-08-16  Bruno Haible  <bruno@clisp.org>
85789
85790         * modules/strcase (Files): Add m4/mbrtowc.m4.
85791         (Depends-on): Add strnlen1, mbchar.
85792
85793 2005-08-16  Bruno Haible  <bruno@clisp.org>
85794
85795         * modules/mbiter: New file.
85796         * MODULES.html.sh (Extended multibyte and wide character utilities):
85797         Add mbiter.
85798
85799 2005-08-16  Bruno Haible  <bruno@clisp.org>
85800
85801         * modules/mbfile: New file.
85802         * MODULES.html.sh (Extended multibyte and wide character utilities):
85803         Add mbfile.
85804
85805 2005-08-16  Bruno Haible  <bruno@clisp.org>
85806
85807         * modules/mbchar: New file.
85808         * MODULES.html.sh (Extended multibyte and wide character utilities):
85809         New section.
85810
85811 2005-08-16  Bruno Haible  <bruno@clisp.org>
85812
85813         * m4/tls.m4: New file, from GNU gettext.
85814
85815 2005-08-16  Bruno Haible  <bruno@clisp.org>
85816
85817         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85818         always.
85819         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85820
85821 2005-08-16  Bruno Haible  <bruno@clisp.org>
85822
85823         * m4/mbiter.m4: New file.
85824
85825 2005-08-16  Bruno Haible  <bruno@clisp.org>
85826
85827         * m4/mbfile.m4: New file.
85828
85829 2005-08-16  Bruno Haible  <bruno@clisp.org>
85830
85831         * m4/mbchar.m4: New file.
85832
85833 2005-08-16  Bruno Haible  <bruno@clisp.org>
85834
85835         * lib/tls.h: New file, from GNU gettext.
85836         * lib/tls.c: New file, from GNU gettext.
85837
85838 2005-08-16  Bruno Haible  <bruno@clisp.org>
85839
85840         * lib/strnlen1.h: New file.
85841         * lib/strnlen1.c: New file.
85842
85843 2005-08-16  Bruno Haible  <bruno@clisp.org>
85844
85845         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85846         (mbi_init): Update.
85847         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85848         NUL byte, not after it.
85849
85850 2005-08-16  Bruno Haible  <bruno@clisp.org>
85851
85852         * lib/strcase.h (strcasecmp): Add note in comments.
85853         * lib/strncasecmp.c: Use code from strcasecmp.c.
85854         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85855         (strcasecmp): Work correctly in multibyte locales.
85856
85857 2005-08-16  Bruno Haible  <bruno@clisp.org>
85858
85859         * lib/mbiter.h: New file.
85860
85861 2005-08-16  Bruno Haible  <bruno@clisp.org>
85862
85863         * lib/mbfile.h: New file.
85864
85865 2005-08-16  Bruno Haible  <bruno@clisp.org>
85866
85867         * lib/mbchar.h: New file.
85868         * lib/mbchar.c: New file.
85869
85870 2005-08-16  Bruno Haible  <bruno@clisp.org>
85871
85872         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85873         the valid ones. Makes the comparison operations transitive:
85874         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85875         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85876
85877 2005-08-15  Simon Josefsson  <jas@extundo.com>
85878
85879         * modules/ssize_t (License): Change to 'unlimited'.
85880
85881         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85882
85883 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85884
85885         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85886         Add comments for each pending glibc patch.
85887
85888 2005-08-15  Bruno Haible  <bruno@clisp.org>
85889
85890         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85891         __cplusplus is defined.
85892
85893 2005-08-14  Jim Meyering  <jim@meyering.net>
85894
85895         Sync from coreutils.
85896
85897         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85898         Use the hash-table-based cycle-detection code not just when
85899         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85900         Reported by James Youngman in
85901         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85902         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85903         FTS_TIGHT_CYCLE_CHECK.
85904         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85905         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85906         once again.
85907         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85908         * lib/fts.c (fd_safer): Remove decl.
85909         Include fcntl--.h rather than unistd-safer.h
85910         (fts_safe_changedir): Don't call fd_safer; no longer needed
85911         now that we include fcntl--.h.
85912
85913 2005-08-12  Simon Josefsson  <jas@extundo.com>
85914
85915         * modules/getndelim2: Use ssize_t module.
85916         * modules/getnline: Likewise.
85917         * modules/safe-read: Likewise.
85918         * modules/xreadlink: Likewise.
85919
85920         * modules/ssize_t: New file.
85921
85922 2005-08-12  Simon Josefsson  <jas@extundo.com>
85923
85924         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85925
85926 2005-08-12  Simon Josefsson  <jas@extundo.com>
85927
85928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85929         ssize_t.
85930
85931 2005-08-12  Simon Josefsson  <jas@extundo.com>
85932
85933         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85934         readline, getdelim and check_version.
85935         (Support for systems lacking ISO C 99: Sizes of integer types):
85936         Add size_max.
85937
85938 2005-08-12  Bruno Haible  <bruno@clisp.org>
85939
85940         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85941
85942 2005-08-11  Simon Josefsson  <jas@extundo.com>
85943
85944         * modules/readline: New file.
85945
85946         * modules/strnlen (Files): Add strnlen.h.
85947
85948 2005-08-11  Simon Josefsson  <jas@extundo.com>
85949
85950         * m4/readline.m4: New file.
85951
85952 2005-08-11  Simon Josefsson  <jas@extundo.com>
85953
85954         * lib/readline.h, readline.c: New file.
85955
85956 2005-08-11  Simon Josefsson  <jas@extundo.com>
85957
85958         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85959         gl_AVOID.
85960
85961 2005-08-11  Bruno Haible  <bruno@clisp.org>
85962
85963         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85964
85965 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85966
85967         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85968
85969 2005-08-10  Simon Josefsson  <jas@extundo.com>
85970
85971         * tests/test-iconvme.c: New file.
85972
85973 2005-08-10  Simon Josefsson  <jas@extundo.com>
85974
85975         * m4/strnlen.m4: New file.
85976
85977         * m4/strndup.m4: Don't check for strnlen declaration, done in
85978         strnlen.m4.
85979
85980 2005-08-10  Simon Josefsson  <jas@extundo.com>
85981
85982         * lib/strndup.c: Use strnlen.h.
85983
85984         * lib/strnlen.h: New file.
85985
85986 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85987
85988         * README: Typos.
85989
85990 2005-08-02  Simon Josefsson  <jas@extundo.com>
85991
85992         * modules/readline: New file.
85993
85994 2005-08-02  Simon Josefsson  <jas@extundo.com>
85995
85996         * modules/getdelim: New file.
85997
85998         * modules/getline: Rewrite, don't use getndelim2.
85999
86000 2005-08-02  Simon Josefsson  <jas@extundo.com>
86001
86002         * m4/getline.m4: Separate out getdelim stuff into separate module.
86003
86004         * m4/getdelim.m4: New file.
86005
86006 2005-08-02  Simon Josefsson  <jas@extundo.com>
86007
86008         * lib/getline.h, getline.c: Rewrite.
86009
86010         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86011
86012 2005-07-31  Bruno Haible  <bruno@clisp.org>
86013
86014         * lib/lock.h (gl_lock_initializer): New macro.
86015         (gl_lock_define_initialized): Use it.
86016         (gl_rwlock_initializer): New macro.
86017         (gl_rwlock_define_initialized): Use it.
86018         (gl_recursive_lock_initializer): New macro.
86019         (gl_recursive_lock_define_initialized): Use it.
86020
86021 2005-07-30  Karl Berry  <karl@gnu.org>
86022
86023         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86024         Report from Ben Pfaff, regarding getopt.
86025
86026 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86027
86028         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86029         normal way.
86030         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86031         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86032         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86033         (gl_GETOPT): Use the new macros.  Most of the implementation
86034         is moved to the new macros.  This is for programs like Emacs
86035         that don't want all the functionality of gl_GETOPT.
86036
86037 2005-07-26  Bruno Haible  <bruno@clisp.org>
86038
86039         * m4/lock.m4: Update from GNU gettext.
86040
86041 2005-07-26  Bruno Haible  <bruno@clisp.org>
86042
86043         * lib/lock.h: Update from GNU gettext.
86044         * lib/lock.c: Update from GNU gettext.
86045
86046 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86047
86048         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86049         obsolescent AC_TRY_RUN.  Include the default includes files, for
86050         'exit'.
86051
86052 2005-07-24  Bruno Haible  <bruno@clisp.org>
86053
86054         * modules/visibility: New file.
86055         * MODULES.html.sh (Misc): Add visibility.
86056
86057 2005-07-24  Bruno Haible  <bruno@clisp.org>
86058
86059         * m4/visibility.m4: New file.
86060
86061 2005-07-24  Bruno Haible  <bruno@clisp.org>
86062
86063         * doc/visibility.texi: New file.
86064
86065 2005-07-22  Bruno Haible  <bruno@clisp.org>
86066
86067         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86068         $(ALLOCA_H), redundant through BUILT_SOURCES.
86069         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86070         redundant through BUILT_SOURCES.
86071         * modules/byteswap (Makefile.am): Remove explicit dependency on
86072         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86073         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86074         $(FNMATCH_H), redundant through BUILT_SOURCES.
86075         * modules/getopt (Makefile.am): Remove explicit dependency on
86076         $(GETOPT_H), redundant through BUILT_SOURCES.
86077         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86078         redundant through BUILT_SOURCES.
86079         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86080         redundant through BUILT_SOURCES.
86081         * modules/stdbool (Makefile.am): Remove explicit dependency on
86082         $(STDBOOL_H), redundant through BUILT_SOURCES.
86083         * modules/stdint (Makefile.am): Remove explicit dependency on
86084         $(STDINT_H), redundant through BUILT_SOURCES.
86085         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86086         Remove explicit dependency on $(SYSEXITS_H).
86087         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86088
86089 2005-07-18  Simon Josefsson  <jas@extundo.com>
86090
86091         * lib/check-version.c (check_version): Accept identical versions too.
86092
86093 2005-07-18  Bruno Haible  <bruno@clisp.org>
86094
86095         * modules/lock: New file.
86096         * MODULES.html.sh (Multithreading): New section.
86097
86098 2005-07-18  Bruno Haible  <bruno@clisp.org>
86099
86100         * m4/lock.m4: New file, from GNU gettext.
86101
86102 2005-07-18  Bruno Haible  <bruno@clisp.org>
86103
86104         * lib/lock.h: New file, from GNU gettext.
86105         * lib/lock.c: New file, from GNU gettext.
86106
86107 2005-07-18  Bruno Haible  <bruno@clisp.org>
86108
86109         * lib/lock.h (gl_once_t): New type.
86110         (gl_once_define, gl_once): New macros.
86111         * lib/lock.c (fresh_once): New variable.
86112         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86113         functions.
86114
86115 2005-07-16  Simon Josefsson  <jas@extundo.com>
86116
86117         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86118         workaround, suggested by Bruno.
86119
86120 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * modules/xalloc (Depends-on): Add xalloc-die.
86123         * modules/xvasprintf (Depends-on): Add xalloc-die.
86124
86125 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86126
86127         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86128         with a minor change.
86129
86130 2005-07-15  Bruno Haible  <bruno@clisp.org>
86131
86132         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86133         When using lib/poll.c, define poll as rpl_poll.
86134
86135 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86136
86137         * modules/argp (Depends-on): Remove unlocked-io.
86138
86139 2005-07-14  Derek Price  <derek@ximbiot.com>
86140
86141         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86142         for glob symlink bug.
86143
86144 2005-07-14  Bruno Haible  <bruno@clisp.org>
86145
86146         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86147         Instead, test for *_unlocked function declarations directly.
86148
86149 2005-07-11  Simon Josefsson  <jas@extundo.com>
86150
86151         * modules/size_max: New file.
86152
86153         * modules/xsize: Depend on size_max module for size_max.m4.
86154
86155 2005-07-11  Simon Josefsson  <jas@extundo.com>
86156
86157         * lib/size_max.h: New file.
86158
86159 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86160
86161         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86162         copyright symbol and the year.
86163         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86164         (version_etc_va): Use parameterized copyright notice.
86165         Reword to conform to the current GNU coding standards.
86166
86167 2005-07-11  Karl Berry  <karl@gnu.org>
86168
86169         * doc/gnulib.texi (Quoting): new node.
86170         (Initial import): more info, from Patrice.
86171
86172 2005-07-11  Bruno Haible  <bruno@clisp.org>
86173
86174         * gnulib-tool (func_usage): Document option --avoid.
86175         (Command line options): Handle --avoid.
86176         (func_acceptable): New function.
86177         (func_modules_transitive_closure): Use it.
86178
86179 2005-07-11  Bruno Haible  <bruno@clisp.org>
86180
86181         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86182         Reported by Jim Meyering.
86183
86184 2005-07-10  Bruno Haible  <bruno@clisp.org>
86185
86186         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86187         Needed when size_t is smaller than 'unsigned int'.
86188         Reported by Paul Eggert.
86189
86190 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86191
86192         * modules/argp (Depends-on): Add unlocked-io
86193
86194 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86195
86196         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86197         block of defines.
86198
86199 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86200
86201         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86202         fix now.
86203
86204 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86205         and Paul Eggert  <eggert@cs.ucla.edu>
86206
86207         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86208         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86209
86210 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86211
86212         * modules/regex (Files): Add lib/regex_internal.c,
86213         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86214         (Depends-on): Add extensions.
86215         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86216
86217 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86218
86219         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86220         pathconf.
86221         * m4/same.m4 (gl_SAME): Likewise.
86222         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86223
86224         * m4/regex.m4: Adjust to new libc regex implementation.
86225         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86226         all the .c and .h parts of (the new) regex.
86227         Quote the m4 stuff better.
86228         Check for RE_ICASE bug of old gnulib.
86229         Check for REG_STARTEND of recent libc.
86230         Rename local variables from jm_* to gl_*.
86231         Quote operand of "test -f".
86232         Say "recent enough" version of libc, not "version 2".
86233         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86234         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86235         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86236         Remove check for btowc, isascii.
86237         Require AM_LANGINFO_CODESET.
86238
86239 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86240
86241         * lib/regex.c, regex.h: Sync from libc.
86242         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86243         * lib/regexec.c:
86244         New files, synced from libc, except that regex_internal.h
86245         currently has a small porting fix.
86246
86247 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86248
86249         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86250         regex_internal.c, regexec.c.
86251         Add regex_internal.h too, but as a comment, since the libc version
86252         is currently broken in gnulib mode.
86253
86254 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         Support programs like Emacs that use gnulib but not gettext.
86257         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86258         * modules/gettext-h: New file.
86259         * modules/gettext (Files): Remove lib/gettext.h.
86260         (Depends-on): Add gettext-h.
86261         (Makefile.am): Remove lib_SOURCES.
86262         * modules/argmatch, modules/c-stack, modules/closeout:
86263         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86264         * modules/execute, modules/file-type, modules/getaddrinfo:
86265         * modules/getopt, modules/human, modules/javacomp:
86266         * modules/javaexec, modules/mkdir-p, modules/obstack:
86267         * modules/openat, modules/pagealign_alloc, modules/pipe:
86268         * modules/quotearg, modules/regex, modules/rpmatch:
86269         * modules/unicodeio, modules/userspec, modules/version-etc:
86270         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86271         * modules/xsetenv:
86272         Depend on gettext-h, not gettext.
86273
86274 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86275
86276         * gnulib-tool (func_import): Add support for 'public domain' license.
86277         * modules/alloca, modules/atexit, modules/memmove:
86278         Now public domain, not GPL.
86279         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86280         * modules/realloc, modules/strerror, modules/strtod:
86281         Now LGPL, not GPL.
86282
86283 2005-07-05  Bruno Haible  <bruno@clisp.org>
86284
86285         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86286         autoconf CVS. Needed for mingw.
86287
86288 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86289
86290         Remove the dependency of the strftime module on the tzset module.
86291         * modules/strftime (Depends-on): Remove dependency on tzset.
86292
86293 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86294
86295         Remove the dependency of the strftime module on the tzset module.
86296         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86297         gl_FUNC_TZSET_CLOBBER.
86298
86299 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86300
86301         Remove the dependency of the strftime module on the tzset module.
86302         * lib/strftime.c (my_strftime)
86303         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86304         Copy the input structure, to work around some of the bug with
86305         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86306         Solaris releases, you should also use the tzset module, but we won't
86307         require it as a dependency any more since we don't want LGPLed code
86308         to depend on GPLed code.
86309
86310 2005-07-02  Jim Meyering  <jim@meyering.net>
86311
86312         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86313         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86314         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86315         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86316
86317 2005-07-02  Jim Meyering  <jim@meyering.net>
86318
86319         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86320
86321 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86322
86323         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86324         declares only 'struct timespec;' (!).
86325
86326 2005-07-01  Jim Meyering  <jim@meyering.net>
86327
86328         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86329         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86330         * lib/save-cwd.c, tempname.c:
86331         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86332         and don't include <sys/file.h>).
86333
86334 2005-06-29  Jim Meyering  <jim@meyering.net>
86335
86336         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86337         type name.  Use the variable name instead.
86338         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86339         Likewise.
86340
86341 2005-06-28  Simon Josefsson  <jas@extundo.com>
86342
86343         * modules/check-version (Files): Add check-version.m4.
86344
86345 2005-06-28  Simon Josefsson  <jas@extundo.com>
86346
86347         * m4/check-version.m4: New file, suggested by Jim Meyering
86348         <jim@meyering.net>.
86349
86350 2005-06-28  Simon Josefsson  <jas@extundo.com>
86351
86352         * lib/check-version.h, lib/check-version.c: New files.
86353
86354 2005-06-28  Simon Josefsson  <jas@extundo.com>
86355
86356         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86357         collision with global variable.  Better indentation.  Don't
86358         increment buffer pointer beyond buffer end.  Based on comments
86359         from Paul Eggert <eggert@cs.ucla.edu>.
86360
86361         * lib/base64.h: Indent.
86362
86363 2005-06-28  Simon Josefsson  <jas@extundo.com>
86364
86365         * doc/gnulib.texi (Library version handling): New section.
86366
86367 2005-06-28  Jim Meyering  <jim@meyering.net>
86368
86369         * check-module (find_included_lib_files): Hard-code another
86370         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86371         but modules/fts-lgpl (correctly) does not list those files.
86372
86373         * modules/canonicalize (Files): Add lib/pathmax.h.
86374
86375 2005-06-25  Simon Josefsson  <jas@extundo.com>
86376
86377         * modules/check-version: New file.
86378
86379 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86380
86381         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86382         initializer of struct addrinfo, as an indication that we don't
86383         care how many members the structure has.
86384
86385 2005-06-24  Derek Price  <derek@ximbiot.com>
86386         and Bruno Haible  <bruno@clisp.org>
86387
86388         Remove stat module & update lstat.
86389         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86390         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86391         * m4/stat.m4: Remove this file.
86392
86393 2005-06-24  Derek Price  <derek@ximbiot.com>
86394         and Bruno Haible  <bruno@clisp.org>
86395
86396         Remove stat module & update lstat.
86397         * lib/stat.c: Remove this file...
86398         (slash_aware_lstat): ...moving this content and its support...
86399         * lib/lstat.c (rpl_lstat): ...into here.
86400         * lib/lstat.h: New file.
86401
86402 2005-06-24  Derek Price  <derek@ximbiot.com>
86403         and Bruno Haible  <bruno@clisp.org>
86404
86405         Remove stat module & update lstat.
86406         * config/srclist.txt (libc sources): Remove stat.
86407
86408 2005-06-24  Derek Price  <derek@ximbiot.com>
86409         and Bruno Haible  <bruno@clisp.org>
86410
86411         Remove stat module & update lstat.
86412         * MODULES.html.sh (stat): Remove.
86413         * MODULES.html: Regenerated.
86414         * modules/lstat (Description): Correct function name.
86415         (Files): Add "lstat.h".
86416         (Depends-on): Remove stat, add xalloc, stat-macros.
86417         * modules/stat: Remove this file.
86418         (Include): Add "lstat.h", remove <sys/stat.h>.
86419
86420 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86421
86422         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86423         (ranged_convert): Don't save conversion in a temporary struct.
86424         This causes a warning with GCC 4.0.0, and anyway in the typical
86425         case it's not worth the extra 100 bytes or so of code.
86426         (ranged_convert, __mktime_internal): When calling a function via a
86427         pointer P, use P () rather than (*P) (), as we now assume C89 or
86428         better.
86429
86430 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86431
86432         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86433         "who -r" failed to give output.  Problem reported by Tim Waugh.
86434
86435         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86436         (xcalloc): Use it to avoid needless tests.
86437         Problem reported by Jim Meyering.
86438
86439 2005-06-20  Derek Price  <derek@ximbiot.com>
86440
86441         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86442         unnecessary for Autoconfs > 2.59c.
86443
86444 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86445
86446         * lib/argp.h (__option_is_short): Check upper limit of
86447         __key. Isprint() requires its argument to have the value
86448         of an unsigned char or EOF.
86449
86450 2005-06-16  Jim Meyering  <jim@meyering.net>
86451
86452         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86453         when either N or S is zero.
86454
86455 2005-06-16  Derek Price  <derek@ximbiot.com>
86456
86457         * m4/bison.m4: Declare YACC & YFLAGS precious.
86458
86459 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86460
86461         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86462         multibyte string or pattern, fall back on unibyte matching.
86463         Problem reported by James Youngman.
86464
86465 2005-06-08  Bruno Haible  <bruno@clisp.org>
86466
86467         * modules/csharpcomp: New file.
86468         * MODULES.html.sh (C#): Add csharpcomp.
86469
86470 2005-06-08  Bruno Haible  <bruno@clisp.org>
86471
86472         * m4/csharpcomp.m4: New file, from GNU gettext.
86473
86474 2005-06-08  Bruno Haible  <bruno@clisp.org>
86475
86476         * lib/csharpcomp.h: New file, from GNU gettext.
86477         * lib/csharpcomp.c: New file, from GNU gettext.
86478         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86479
86480 2005-06-08  Bruno Haible  <bruno@clisp.org>
86481
86482         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86483         warning on mingw.
86484
86485 2005-06-07  Derek Price  <derek@ximbiot.com>
86486
86487         Sync from CVS.
86488         * lib/glob_.h: Indent nested #ifdef.
86489
86490 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86491
86492         Sync from coreutils.
86493         Use "file name" when talking about file names, instead of "filename"
86494         or "path", as per the GNU coding standards.
86495         * lib/mkdir-p.c: Renamed from makepath.c.
86496         (make_dir_parents): Renamed from make_path.  All callers changed.
86497         * lib/mkdir-p.h: Likewise.  All includers changed.
86498         * lib/filenamecat.c: Renamed from path-concat.c.
86499         (file_name_concat): Renamed from path_concat.  All callers changed.
86500         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86501         * lib/filenamecat.h: Likewise.  All includers changed.
86502         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86503         in comments or local variable names.
86504         * lib/basename.c: Likewise.
86505         * lib/canonicalize.c, canonicalize.h: Likewise.
86506         * lib/dirname.c, dirname.h: Likewise.
86507         * lib/euidaccess.c: Likewise.
86508         * lib/exclude.c: Likewise
86509         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86510         * lib/fsusage.c, fsuage.h: Likewise.
86511         * lib/fts.c, fts_.h: Likewise.
86512         * lib/getcwd.c: Likewise.
86513         * lib/getloadavg.c: Likewise.
86514         * lib/mkstemp.c: Likewise.
86515         * lib/mountlist.c, mountlist.h: Likewise.
86516         * lib/openat.c, openat.h: Likewise.
86517         * lib/readlink-stub.c: Likewise.
86518         * lib/readutmp.c, readutmp.h: Likewise.
86519         * lib/rename.c: Likewise.
86520         * lib/rmdir.c: Likewise.
86521         * lib/same.c: Likewise.
86522         * lib/savedir.c: Likewise.
86523         * lib/stripslash.c: Likewise.
86524         * lib/tempname.c: Likewise.
86525         * lib/xreadlink.c: Likewise.
86526         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86527         All uses changed.
86528         * lib/exclude.h: Likewise.
86529
86530         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86531         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86532         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86533         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86534         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86535         files have been getting away with it for years (MORE/BSD 4.3
86536         is extinct now).
86537         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86538         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86539
86540         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86541         Define to 256, not 255, as per modern POSIX.
86542
86543 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86544
86545         Sync from coreutils.
86546         Use "file name" when talking about file names, instead of "filename"
86547         or "path", as per the GNU coding standards.
86548         * MODULES.html.sh: mkdir-p renamed from makepath.
86549         filenamecat renamed from path-concat.
86550         * modules/filenamecat: Renamed from modules/path-concat.
86551         (Files): filenamecat.h and filenamecat.c renamed from
86552         path-concat.h and path-concat.c.
86553         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86554         (Include): filenamecat.h, not path-concat.h.
86555         * modules/mkdir-p: Renamed from modules/makepath.
86556         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86557         makepath.c.
86558         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86559         (Include): mkdir-p.h, not makepath.h.
86560
86561 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86562
86563         Sync from coreutils.
86564         * m4/mkdir-p.m4: Renamed from makepath.m4.
86565         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86566         Rename files from makepath.c to mkdir-p.c, and from
86567         makepath.h to mkdir-p.h.
86568         * m4/filenamecat.m4: Renamed from path-concat.m4.
86569         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86570         Rename files from path-concat.c to filenamecat.c,
86571         and from path-concat.h to filenamecat.h.
86572         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86573         "file name" in local variables or comments.
86574         * m4/rename.m4: Likewise.
86575
86576 2005-06-01  Bruno Haible  <bruno@clisp.org>
86577
86578         * modules/csharpexec: New file.
86579         * MODULES.html.sh (C#): New section.
86580
86581 2005-06-01  Bruno Haible  <bruno@clisp.org>
86582
86583         * m4/csharp.m4: New file, from GNU gettext.
86584         * m4/csharpexec.m4: New file, from GNU gettext.
86585
86586 2005-06-01  Bruno Haible  <bruno@clisp.org>
86587
86588         * lib/csharpexec.h: New file, from GNU gettext.
86589         * lib/csharpexec.c: New file, from GNU gettext.
86590         * lib/csharpexec.sh.in: New file, from GNU gettext.
86591
86592 2005-05-31  Derek Price  <derek@ximbiot.com>
86593             Paul Eggert  <eggert@cs.ucla.edu>
86594
86595         Sync from cvs.
86596         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86597
86598 2005-05-31  Derek Price  <derek@ximbiot.com>
86599             Paul Eggert  <eggert@cs.ucla.edu>
86600
86601         Sync from cvs.
86602         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86603
86604 2005-05-29  Derek Price  <derek@ximbiot.com>
86605
86606         * config/srclist.txt (glob_.h, glob.c): Add these files.
86607
86608 2005-05-29  Derek Price  <derek@ximbiot.com>
86609
86610         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86611         * modules/glob: New file.
86612         * modules/getlogin_r: Add link to POSIX spec in description.
86613
86614 2005-05-29  Derek Price  <derek@ximbiot.com>
86615             Paul Eggert  <eggert@cs.ucla.edu>
86616
86617         * m4/glob.m4: New file.
86618
86619 2005-05-29  Derek Price  <derek@ximbiot.com>
86620             Paul Eggert  <eggert@cs.ucla.edu>
86621
86622         * lib/glob_.h, lib/glob.c: New files.
86623
86624 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86625
86626         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86627         * modules/fts-lgpl (Depends-on): Remove gettext.
86628
86629 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86630
86631         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86632         and don't require gt_INTTYPES_PRI.
86633
86634 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86635
86636         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86637
86638         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86639         the configuration hassle isn't worth it.
86640         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86641         (LONGEST_MODIFIER, PRIuMAX): Remove.
86642
86643 2005-05-27  Bruno Haible  <bruno@clisp.org>
86644
86645         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86646
86647 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86648
86649         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86650         _POSIX_PTHREAD_SEMANTICS for Solaris.
86651
86652 2005-05-25  Derek Price  <derek@ximbiot.com>
86653
86654         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86655
86656 2005-05-25  Derek Price  <derek@ximbiot.com>
86657             Paul Eggert  <eggert@cs.ucla.edu>
86658
86659         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86660         * lib/getlogin_r.c, getlogin_r.h: New files.
86661
86662 2005-05-25  Bruno Haible  <bruno@clisp.org>
86663             Derek Price  <derek@ximbiot.com>
86664
86665         * lib/getlogin_r.h: Simplify API documentation.
86666
86667 2005-05-23  Derek Price  <derek@ximbiot.com>
86668
86669         * modules/minmax (Files): Add m4/minmax.m4.
86670         (configure.ac): Add gl_MINMAX.
86671
86672 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86673
86674         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86675         so that unistd-safer.h (GPL'ed code) need not be included.
86676
86677 2005-05-22  Bruno Haible  <bruno@clisp.org>
86678
86679         * m4/minmax.m4: New file.
86680         Based on a patch by Derek Price <derek@ximbiot.com>.
86681
86682 2005-05-22  Bruno Haible  <bruno@clisp.org>
86683
86684         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86685         (INT64_MIN): Fix definition.
86686         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86687
86688         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86689         NEED_SIGNED_INT_TYPES.
86690
86691         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86692         HAVE_SYSTEM_INTTYPES.
86693
86694 2005-05-22  Bruno Haible  <bruno@clisp.org>
86695
86696         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86697         Also include <sys/param.h> if it defines MIN, MAX.
86698         Based on a patch by Derek Price <derek@ximbiot.com>.
86699
86700 2005-05-21  Jim Meyering  <jim@meyering.net>
86701
86702         * modules/fts (Files): Add m4/inttypes-pri.m4.
86703         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86704
86705 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86706
86707         New fts module.
86708         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86709         (setup_dir, free_dir): New functions.
86710         (enter_dir, leave_dir): Define trivial
86711         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86712         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86713         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86714         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86715         Move to fts-cycle.c.
86716         (fts_open): Use setup_dir.
86717         (fts_close): Use free_dir.
86718         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86719         This adds a label and some gotos, but the alternatives were messier.
86720         Check for memory allocation failure when entering a dir.
86721         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86722         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86723         (FTS): New member fts_cycle, that is a union that contains the
86724         old active_dir_ht and cycle_state.  All uses changed to mention
86725         fts_cycle.ht and fts_cycle.state.
86726         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86727         fts.c, with the following changes:
86728         (setup_dir, free_dir): New functions.
86729         (enter_dir): Now returns bool.  Return true if successful, false
86730         if memory exhausted.  All callers changed.
86731         Do not bother partly cleaning up on
86732         memory allocation failure; that is free_dir's job.
86733         However, free ad if hash_insert fails, to avoid memory leak.
86734         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86735         fts->fts_options to see which union member to use.
86736
86737 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86738
86739         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86740         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86741
86742 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86743
86744         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86745
86746 2005-05-20  Jim Meyering  <jim@meyering.net>
86747
86748         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86749         Now a macro, to pacify GCC.
86750
86751 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86752
86753         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86754         of -1.
86755
86756 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86757
86758         * lib/chown.c (rpl_chown): Return -1 on failure.
86759
86760 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86761
86762         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86763         Don't check for stddef.h.
86764         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86765         don't use its results.
86766         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86767         since we include them unconditionally.  Don't require
86768         AM_STDBOOL_H, since stdbool is a prerequisite.
86769         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86770         since we assume C89 or better.
86771         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86772         as we don't use their results.
86773         Don't check for fchdir, memmove, memset, strrchr, as we use
86774         them unconditionally.
86775         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86776         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86777
86778 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86779
86780         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86781         Include <stddef.h> unconditionally, since we assume C89 now.
86782         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86783         * lib/fts.c: Include fts_.h first, to check interface.
86784         Do not include intprops.h; no longer needed.
86785         Include cycle-check.h and hash.h, since fts_.h no longer does.
86786         Remove unnecessary casts of closedir to void.
86787         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86788         decide whether to decrement nlinks.
86789         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86790         (FTS): Use struct hash_table * instead of Hash_table, so that
86791         we no longer need to include hash.h here.
86792
86793 2005-05-18  Jim Meyering  <jim@meyering.net>
86794
86795         * modules/dirfd (License): Change to LGPL.  Most of the code
86796         is already in the public domain.
86797
86798 2005-05-18  Jim Meyering  <jim@meyering.net>
86799
86800         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86801         Reported by Yoann Vandoorselaere.
86802
86803 2005-05-17  Jim Meyering  <jim@meyering.net>
86804
86805         * m4/fts.m4: New file, from coreutils.
86806
86807 2005-05-17  Jim Meyering  <jim@meyering.net>
86808
86809         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86810
86811 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86812
86813         Sync from coreutils.
86814         * m4/unlinkdir.m4: New file.
86815
86816 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86817
86818         Sync from coreutils.
86819         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86820         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86821         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86822         White space changes only.
86823         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86824         special.
86825         * lib/yesno.c: Include getline.h, not ctype.h.
86826         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86827         Use getline to remove arbitrary restriction on response length.
86828
86829 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86830
86831         * config/srclist-update: Spell out "Street" in FSF postal
86832         mail address; this is the style the FSF seems to prefer.
86833
86834         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86835         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86836         this updates FSF postal mail address.
86837
86838         Sync from coreutils.
86839         * modules/unlinkdir: New file.
86840         * modules/yesno (Depends-on): Add getline.
86841         * MODULES.html.sh (File system functions): Add unlinkdir.
86842
86843 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86844
86845         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86846         lib/strsep.h:
86847         Change the initial comment to refer to GPL, not LGPL.
86848         gnulib-tool will change it to LGPL as needed.
86849
86850         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86851         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86852         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86853         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86854         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86855         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86856         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86857         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86858         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86859         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86860         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86861         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86862         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86863         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86864         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86865         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86866         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86867         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86868         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86869         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86870         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86871         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86872         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86873         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86874         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86875         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86876         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86877         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86878         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86879         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86880         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86881         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86882         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86883         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86884         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86885         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86886         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86887         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86888         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86889         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86890         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86891         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86892         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86893         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86894         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86895         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86896         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86897         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86898         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86899         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86900         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86901         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86902         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86903         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86904         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86905         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86906         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86907         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86908         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86909         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86910         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86911         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86912         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86913         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86914         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86915         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86916         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86917         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86918         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86919         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86920         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86921         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86922         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86923         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86924         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86925         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86926         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86927         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86928         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86929         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86930         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86931         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86932         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86933         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86934         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86935         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86936         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86937         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86938         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86939         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86940         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86941         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86942         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86943         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86944         lib/yesno.c, lib/yesno.h:
86945         Update FSF postal mail address.
86946
86947 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86950         tests/test-memmem.c, tests/test-stpncpy.c:
86951         Update FSF postal mail address.
86952
86953 2005-05-13  Bruno Haible  <bruno@clisp.org>
86954
86955         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86956         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86957         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86958         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86959         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86960         Add support for 64-bit integers in the MSVC compiler.
86961
86962 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86963
86964         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86965
86966 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86967
86968         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86969
86970 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         * doc/getdate.texi (General date syntax): Don't say that date
86973         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86974         Problem reported by Nic Ferrier.
86975
86976 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86977
86978         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86979         specified in ai_socktype. Fix invalid ai_protocol
86980         check. ai_protocol is usually set to 0 or depending on
86981         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86982         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86983         ai_socktype / ai_protocol in the returned addrinfo structure.
86984
86985 2005-05-10  Simon Josefsson  <jas@extundo.com>
86986
86987         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86988         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86989
86990 2005-05-10  Karl Berry  <karl@gnu.org>
86991
86992         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86993         (from http://www.gnu.org/licenses).
86994         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86995         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86996         fdl.texi suffices.
86997
86998 2005-05-10  Karl Berry  <karl@gnu.org>
86999
87000         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87001         (COPYING.DOC): remove.
87002
87003         * config/srclist-update: new FSF address.
87004
87005 2005-05-10  Derek Price  <derek@ximbiot.com>
87006
87007         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87008         possible.
87009
87010 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87011             Bruno Haible  <bruno@clisp.org>
87012
87013         * modules/inet_ntop: New file.
87014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87015         inet_ntop.
87016
87017 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87018             Bruno Haible  <bruno@clisp.org>
87019
87020         * m4/inet_ntop.m4: New file.
87021
87022 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87023             Bruno Haible  <bruno@clisp.org>
87024
87025         * lib/inet_ntop.h: New file.
87026         * lib/inet_ntop.c: New file, from glibc with modifications.
87027
87028 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87029
87030         * modules/time_r (License): Change to LGPL.
87031         * modules/extensions (License): Change to LGPL.  Actually,
87032         the license is more permissive than that, but currently gnulib-tool
87033         doesn't know how to handle more-permissive licenses.
87034
87035         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87036         Problem reported by Dave Love.
87037
87038 2005-05-08  Jim Meyering  <jim@meyering.net>
87039
87040         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87041         blank.
87042
87043 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87044
87045         * modules/argmatch (Depends-on): Add stdbool.
87046         * modules/backupfile (Depends-on): Likewise.
87047         * modules/chdir-long (Depends-on): Likewise.
87048         * modules/closeout (Depends-on): Likewise.
87049         * modules/cycle-check (Depends-on): Likewise.
87050         * modules/dirname (Depends-on): Likewise.
87051         * modules/fnmatch (Depends-on): Likewise.
87052         * modules/fsusage (Depends-on): Likewise.
87053         * modules/fwriteerror (Depends-on): Likewise.
87054         * modules/getcwd (Depends-on): Likewise.
87055         * modules/getloadavg (Depends-on): Likewise.
87056         * modules/hard-locale (Depends-on): Likewise.
87057         * modules/makepath (Depends-on): Likewise.
87058         * modules/mountlist (Depends-on): Likewise.
87059         * modules/nanosleep (Depends-on): Likewise.
87060         * modules/posixtm (Depends-on): Likewise.
87061         * modules/quotearg (Depends-on): Likewise.
87062         * modules/readtokens (Depends-on): Likewise.
87063         * modules/readtokens0 (Depends-on): Likewise.
87064         * modules/readutmp (Depends-on): Likewise.
87065         * modules/save-cwd (Depends-on): Likewise.
87066         * modules/strftime (Depends-on): Likewise.
87067         * modules/userspec (Depends-on): Likewise.
87068         * modules/utimecmp (Depends-on): Likewise.
87069         * modules/xgetcwd (Depends-on): Likewise.
87070         * modules/xnanosleep (Depends-on): Likewise.
87071         * modules/xstrtod (Depends-on): Likewise.
87072         * modules/yesno (Depends-on): Likewise.
87073
87074 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87075
87076         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87077         needless checks.
87078
87079 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87080
87081         Merge from coreutils.  Among other things,
87082         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87083         * lib/fd-safer.c: New file.
87084         * lib/fcntl-safer.h, open-safer.c: Remove.
87085         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87086         * lib/dup-safer.c: Include unistd-safer.h first.
87087         Don't include errno.h.
87088         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87089         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87090         * lib/file-type.c: Rely on file-type.h change.
87091         * lib/getloadavg.c: Include unistd-safer.h.
87092         (getloadavg): Use safer open.
87093         * lib/getusershell.c: Include "stdio-safer.h".
87094         (getusershell): Use safer fopen.
87095         * lib/long-options.c (long_options): Use NULL rather than 0.
87096         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87097         'free'.
87098         * lib/modechange.c: Likewise.
87099         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87100         (MODE_DONE): New constant.
87101         (struct mode_change): Remove 'next' member.
87102         (make_node_op_equals): New function; like the old one of the
87103         same name, except it allocates an array.
87104         (mode_compile, mode_create_from_ref): Use it.
87105         (mode_compile): Allocate result as an array, not a linked list.
87106         Parse octal string ourself, so that we catch mistakes like "+0".
87107         (mode_adjust): Arg is an array, not a linked list.
87108         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87109         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87110         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87111         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87112         Remove.  This is now stat-macros.h's job.
87113         (talloc): Remove.  All callers replaced by xalloc, so that
87114         our invokers don't have to worry about reporting memory failures.
87115         (make_node_op_equals): Remove.
87116         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87117         New constants.
87118         (struct mode_change): Moved here from modechange.h.
87119         (mode_append_entry): Remove.
87120         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87121         apps to have incorrect behavior.  Use simpler algorithm for head
87122         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87123         Detect more invalid usages rather than having somewhat-random behavior.
87124         Don't insert an "a=" action, as that leads to incorrect behavior.
87125         (mode_compile, mode_create_from_ref): Return NULL on error instead
87126         of an enum, since now there's only one way to have an error.  All
87127         callers changed.
87128         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87129         at the correct time.  Simplify calculation of "+u" and its ilk.
87130         Don't mishandle "+X".
87131         (mode_free): Remove "register" and localize decls.
87132         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87133         (struct mode_change): Move to modechange.c; callers don't
87134         need to see this stuff.
87135         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87136         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87137         (mode_change, mode_adjust): Reflect the new signatures noted above.
87138         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87139         that might redefine system include files.
87140         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87141         (my_usleep): Use NULL rather than (void *) 0.
87142         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87143         Use siginterrupt to specify that system calls should be interrupted.
87144         (rpl_nanosleep): Move initialization of suspended closer to call of
87145         my_usleep.
87146         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87147         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87148         (desirable_utmp_entry): New function.
87149         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87150         using x2nrealloc, to simplify logic.
87151         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87152         size calculation.  Do not assume utmp file is a regular file.
87153         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87154         (READ_UTMP_CHECK_PIDS): New constant.
87155         * lib/save-cwd.c: Include unistd-safer.h.
87156         (save_cwd): Use fd_safer.
87157         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87158         [!_LIBC] Include "stat-macros.h" instead.
87159         * lib/unistd-safer.h (fd_safer): New decl.
87160
87161 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87162
87163         * modules/getloadavg (Depends-on): Add unistd-safer.
87164         * modules/getusershell (Depends-on): Add stdio-safer.
87165         * modules/lstat (Depends-on): Remove xalloc.
87166         * modules/mkstemp (Depends-on): Add stat-macros.
87167         * modules/modechange (Depends-on): Remove xstrtol.
87168         Add stat-macros, xalloc.
87169         * modules/save-cwd (Depends-on): Add unistd-safer.
87170         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87171         * modules/unistd-safer (Files): Add lib/fd-safer.c
87172         (Makefile.am): Remove lib_SOURCES.
87173
87174         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87175         Remove fcntl-safer; unistd-safer supersedes it.
87176
87177 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87178
87179         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87180         AC_HEADER_STAT.
87181         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87182         (gl_PREREQ_CHOWN): Remove.
87183         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87184         it.  Don't require AC_HEADER_STAT.
87185         (gl_PREREQ_LSTAT): Remove.
87186         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87187         Don't require AC_HEADER_STAT.
87188         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87189         (gl_PREREQ_RMDIR): Remove.
87190         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87191         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87192         the stat-macros module a prerequisite.
87193         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87194         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87195         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87196         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87197         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87198         variable names.
87199         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87200         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87201         variable prefixes.
87202         * m4/fcntl-safer.m4: Remove.
87203         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87204         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87205         Invoke gl_PREREQ_FD_SAFER.
87206         (gl_PREREQ_FD_SAFER): New macro.
87207         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87208         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87209         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87210         Remove duplicate call to AC_LIBOBJ(readutmp).
87211         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87212
87213         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87214         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87215
87216 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87217
87218         * MODULES.html.sh (Misc): Add byteswap.
87219
87220 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87221
87222         * modules/getcwd (Depends-on): Add extensions.
87223         * modules/openat (Depends-on): Likewise.
87224
87225 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87226
87227         * modules/byteswap: New file.
87228
87229 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87230
87231         * m4/byteswap.m4: New file.
87232
87233 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87234
87235         * lib/byteswap_.h: New file.
87236
87237 2005-04-25  Karl Berry  <karl@gnu.org>
87238
87239         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87240
87241 2005-04-25  Albert Chin  <china@thewrittenword.com>
87242
87243         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87244         Toolkit C bug.
87245
87246 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87247
87248         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87249         (func_ln_if_changed): Remove forcibly for no error message
87250         in case file does not exist.
87251
87252 2005-04-19  Simon Josefsson  <jas@extundo.com>
87253
87254         * gnulib-tool (Options): Make --symlink mean --symbolic.
87255
87256 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87257
87258         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87259
87260 2005-04-16  Simon Josefsson  <jas@extundo.com>
87261
87262         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87263
87264 2005-04-15  Simon Josefsson  <jas@extundo.com>
87265
87266         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87267
87268 2005-04-15  Simon Josefsson  <jas@extundo.com>
87269
87270         * gnulib-tool: Rename --symlink to --symbolic.
87271
87272 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87273
87274         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87275         symbolic links to files instead of copying/moving.  Add --aux-dir,
87276         specifying directory relative --dir where auxiliary build tools
87277         are placed.
87278
87279 2005-04-14  Bruno Haible  <bruno@clisp.org>
87280
87281         * modules/allocsa (License): Change to LGPL.
87282         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87283
87284 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87285
87286         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87287         that "UTC +1 second" continues to work.  Problem reported
87288         by Dmitry V. Levin.
87289         (relunit_snumber): New rule.
87290         (relunit): Use it.
87291
87292 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87293
87294         * lib/getdate.y (universal_time_zone_table): New constant.
87295         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87296         universal_time_zone_table.
87297         (lookup_zone): Prefer universal_time_zone_table to
87298         local_time_zone_table, so that "GMT" time stamps are allowed in
87299         London during the summer.  Problem reported by Ian Abbott.
87300
87301 2005-04-12  Jim Meyering  <jim@meyering.net>
87302
87303         * lib/human.c (humblock): Set *options even when returning due to
87304         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87305         warning from gcc-4.
87306
87307 2005-04-09  Jim Meyering  <jim@meyering.net>
87308
87309         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87310         -Wuninitialized: initialize tm0.tm_year.
87311
87312 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87313
87314         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87315         count, since there's no maximum.  All uses changed.
87316         Add member dsts_seen.
87317         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87318         not being INT_MAX.
87319         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87320         Use pc_rels_seen to decide whether a date is absolute.
87321
87322         * lib/getdate.y (number): Don't overwrite year.
87323         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87324         check.
87325
87326 2005-04-02  Simon Josefsson  <jas@extundo.com>
87327
87328         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87329         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87330
87331 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87332
87333         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87334         where no absolute path name can be longer than PATH_MAX.
87335
87336 2005-03-27  Jim Meyering  <jim@meyering.net>
87337
87338         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87339
87340 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87341
87342         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87343         "one's complement" -> "ones' complement" in comment, as per Knuth.
87344         "value of type" -> "type or expression" in comment.
87345         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87346
87347 2005-03-26  Jim Meyering  <jim@meyering.net>
87348
87349         Comment nits.
87350         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87351         Correct typos: s/or/of/.
87352
87353 2005-03-26  Jim Meyering  <jim@meyering.net>
87354
87355         * modules/check-include-files: Move to ../ and rename to...
87356         * check-module: ...this.
87357
87358 2005-03-25  Jim Meyering  <jim@meyering.net>
87359
87360         * modules/xvasprintf (Files): Add xalloc.h.
87361
87362 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87363
87364         * modules/gettext (Files): config/config.rpath ->
87365         build-aux/config.rpath
87366         * modules/iconv (Files): Likewise.
87367         Problem reported by Oskar Liljeblad.
87368
87369 2005-03-23  Jim Meyering  <jim@meyering.net>
87370
87371         * modules/check-include-files: New script to check for
87372         missing dependencies, multiple includes, etc.
87373
87374         * modules/c-strtold (Depends-on): Add xalloc.
87375         * modules/c-strtod (Depends-on): Add xalloc.
87376         * modules/hash (Depends-on): Add xalloc.
87377         (Files): Remove lib/xalloc.h.
87378
87379         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87380         * modules/userspec (Files): Add lib/inttostr.h.
87381
87382 2005-03-23  Jim Meyering  <jim@meyering.net>
87383
87384         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87385
87386 2005-03-22  Jim Meyering  <jim@meyering.net>
87387
87388         * modules/stat-macros: New module.
87389         * modules/canonicalize, modules/euidaccess, modules/file-type,
87390         * modules/filemode, modules/lchown, modules/makepath,
87391         * modules/rmdir, modules/stat: Depend on new stat-macros module
87392         rather than listing lib/stat-macros.h manually.
87393         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87394
87395 2005-03-22  Jim Meyering  <jim@meyering.net>
87396
87397         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87398
87399 2005-03-22  Bruno Haible  <bruno@clisp.org>
87400
87401         * config/srclist.txt: Replace target directory 'config' with
87402         'build-aux'.
87403         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87404         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87405         ../build-aux/.
87406
87407 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87408
87409         * modules/chdir-long (Depends-on): Add mempcpy.
87410
87411         * modules/acl, modules/backupfile, modules/c-strtod,
87412         modules/c-strtold, modules/canon-host, modules/canonicalize,
87413         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87414         modules/exclude, modules/exitfail, modules/file-type,
87415         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87416         modules/getdate, modules/getline, modules/getpagesize,
87417         modules/getpass, modules/getugroups, modules/group-member,
87418         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87419         modules/inttostr, modules/long-options, modules/makepath,
87420         modules/md5, modules/memcasecmp, modules/memcoll,
87421         modules/modechange, modules/mountlist, modules/path-concat,
87422         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87423         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87424         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87425         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87426         modules/strftime, modules/strndup, modules/strverscmp,
87427         modules/timespec, modules/unlocked-io, modules/userspec,
87428         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87429         modules/yesno:
87430         Remove lib_SOURCES line from Makefile.am section, as this is now
87431         done automatically by the corresponding Autoconf macro.
87432
87433 2005-03-21  Jim Meyering  <jim@meyering.net>
87434
87435         Changes imported from coreutils.
87436
87437         * lib/cycle-check.c: Don't include xalloc.h.
87438
87439         * lib/path-concat.c: Don't include assert.h.
87440         (path_concat): Remove assertion that would have triggered
87441         for ABASE starting with more than one slash.
87442         Reported by Andreas Schwab.
87443
87444         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87445         properly when ABASE is an absolute file name.
87446         Correct the description of this function.
87447         Include <assert.h>.
87448         Add an assertion and a test driver.
87449         This fixes a bug introduced on 2004-07-02.
87450         Andreas Schwab reported the resulting failure of cp --parents:
87451         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87452
87453 2005-03-21  Jim Meyering  <jim@meyering.net>
87454
87455         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87456         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87457
87458 2005-03-21  Jim Meyering  <jim@meyering.net>
87459         and  Paul Eggert  <eggert@cs.ucla.edu>
87460
87461         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87462         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87463         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87464         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87465         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87466         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87467         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87468         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87469         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87470         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87471         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87472         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87473         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87474         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87475         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87476         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87477         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87478         for these modules.
87479
87480 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87481
87482         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87483         (which shouldn't happen), generate nothing instead of returning 0
87484         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87485
87486 2005-03-16  Bruno Haible  <bruno@clisp.org>
87487
87488         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87489         HAVE_LONGLONG_64BIT.
87490
87491 2005-03-16  Bruno Haible  <bruno@clisp.org>
87492
87493         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87494         HAVE_LONGLONG_64BIT.
87495
87496 2005-03-16  Bruno Haible  <bruno@clisp.org>
87497
87498         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87499         HAVE_LONGLONG_64BIT.
87500
87501 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87502
87503         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87504         reliably distinguish strftime failure from empty output on POSIX
87505         hosts.
87506
87507 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87508
87509         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87510         (iconv_string): Don't guess a size-zero buffer, as that might cause
87511         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87512         result would be 'too large', where 'too large' is (heuristically)
87513         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87514         overflow concerns.  This will prevent some unwanted malloc failures
87515         when the inputs are very large.
87516
87517 2005-03-15  Karl Berry  <karl@gnu.org>
87518
87519         * config/srclist.txt (config.rpath): from gettext.
87520         * config/config.rpath: update.
87521
87522 2005-03-15  Bruno Haible  <bruno@clisp.org>
87523
87524         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87525         to 'negate'.
87526
87527         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87528         variable.
87529
87530         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87531         results.
87532
87533 2005-03-14  Simon Josefsson  <jas@extundo.com>
87534
87535         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87536         <fx@gnu.org>.
87537
87538 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87539
87540         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87541         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87542         intprops.h.
87543         * lib/strtol.c: Likewise.
87544
87545 2005-03-14  Jim Meyering  <jim@meyering.net>
87546
87547         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87548         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87549         to be nonzero so that we (and caller) can detect the difference
87550         between a valid zero-length expansion and an error return, even
87551         when the underlying strftime fails before writing anything into
87552         that location.
87553
87554 2005-03-14  Bruno Haible  <bruno@clisp.org>
87555
87556         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87557         Update from GNU gettext 0.14.3.
87558
87559 2005-03-10  Jim Meyering  <jim@meyering.net>
87560
87561         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87562
87563 2005-03-10  Jim Meyering  <jim@meyering.net>
87564
87565         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87566         so that this module works on systems without fchdir.
87567
87568 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87569
87570         Factor int-properties macros into a single file, except for
87571         glibc-related files.
87572         * lib/intprops.h: New file.
87573         * lib/getloadavg.c: Include it instead of limits.h.
87574         (INT_STRLEN_BOUND): Remove.
87575         * lib/human.c: Include intprops.h.
87576         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87577         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87578         302/1000.
87579         * lib/inttostr.h: Include intprops.h instead of limits.h.
87580         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87581         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87582         for consistency with intprops.h.
87583         (time_t_is_integer, twos_complement_arithmetic): Use them.
87584         * lib/sig2str.h: Include <signal.h>, intprops.h.
87585         (INT_STRLEN_BOUND): Remove.
87586         * lib/strftime.c (TYPE_SIGNED): Remove.
87587         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87588         * lib/strtol.c: Adjust comments to match intprops.h.
87589         * lib/userspec.c: Include intprops.h.
87590         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87591         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87592         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87593         instead of rolling our own expressions.
87594         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87595
87596         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87597         instead of int.
87598         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87599         the right thing even if adding 1900 would overflow.  Similarly
87600         for tm_mon + 1 and tm_yday + 1.
87601         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87602         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87603         (DO_SIGNED_NUMBER): New macro.
87604         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87605
87606 2005-03-07  Bruno Haible  <bruno@clisp.org>
87607
87608         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87609
87610 2005-03-07  Bruno Haible  <bruno@clisp.org>
87611
87612         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87613
87614 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87615
87616         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87617         (func_import): Only replace files via --import when they have actually
87618         changed.
87619
87620 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87621
87622         * m4/mmap-anon.m4: New file.
87623         * m4/pagealign_alloc.m4: New file.
87624
87625 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87626             Bruno Haible  <bruno@clisp.org>
87627
87628         * modules/pagealign_alloc: New file.
87629         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87630
87631 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87632             Bruno Haible  <bruno@clisp.org>
87633
87634         * lib/pagealign_alloc.h: New file.
87635         * lib/pagealign_alloc.c: New file.
87636
87637 2005-03-03  Bruno Haible  <bruno@clisp.org>
87638
87639         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87640         Use an all-permissive copyright notice, recommended by RMS.
87641
87642 2005-03-02  Bruno Haible  <bruno@clisp.org>
87643
87644         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87645         of AIX, the replacement has to be done only after <string.h> is
87646         included, therefore not in config.h. stpncpy.h does the replacement,
87647         and stpncpy.c uses it.
87648
87649 2005-03-02  Bruno Haible  <bruno@clisp.org>
87650
87651         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87652         stpncpy.c uses it.
87653
87654 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87655
87656         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87657         The workaround isn't strictly needed for POSIX conformance, and
87658         it's too much of a pain to configure and maintain.  We'll ask
87659         people to fix their kernels instead.
87660         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87661         (NANOSLEEP_BUG_WORKAROUND): Remove.
87662         (xnanosleep): Remove the workaround.
87663
87664 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87665
87666         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87667         Reported by Derek Price.
87668         (Include): Add "timespec.h".
87669
87670         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87671
87672 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87673
87674         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87675         to detect nanosleep bug.
87676
87677 2005-03-01  Bruno Haible  <bruno@clisp.org>
87678
87679         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87680
87681 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87682
87683         * modules/gethrxtime: New file.
87684         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87685         (Depends-on): Add gethrxtime.
87686         (configure.ac): Add gl_XNANOSLEEP.
87687         (Makefile.am): Remove lib_SOURCES line.
87688
87689 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87690
87691         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87692         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87693
87694 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87695
87696         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87697         * lib/timespec.h (gettime): Return void, since it always
87698         succeeds now.  All uses changed.
87699         * lib/gettime.c (gettime): Likewise.
87700         [HAVE_NANOTIME]: Prefer nanotime.
87701         Assume gettimeofday succeeds, as POSIX requires.
87702         Assime time () succeeds, since other code already does.
87703         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87704         (timespec_subtract): Remove.
87705         (NANOSLEEP_BUG_WORKAROUND): New constant.
87706         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87707         things considerably.  Use it only on GNU/Linux hosts, since the
87708         workaround shouldn't be needed elsewhere.
87709
87710 2005-02-24  Bruno Haible  <bruno@clisp.org>
87711
87712         * modules/gettext (Files): Add m4/glibc2.m4.
87713
87714 2005-02-24  Bruno Haible  <bruno@clisp.org>
87715
87716         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87717         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87718         * m4/progtest.m4:
87719         Update from GNU gettext 0.14.2.
87720         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87721
87722 2005-02-24  Bruno Haible  <bruno@clisp.org>
87723
87724         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87725         * lib/config.charset: Update from GNU gettext 0.14.2.
87726
87727 2005-02-24  Bruno Haible  <bruno@clisp.org>
87728
87729         * lib/gettext.h: Update from GNU gettext 0.14.2.
87730
87731 2005-02-23  Simon Josefsson  <jas@extundo.com>
87732
87733         * m4/iconvme.m4: New file.
87734
87735 2005-02-23  Jim Meyering  <jim@meyering.net>
87736
87737         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87738         change.
87739         Thanks to Bruno Haible for catching it.
87740
87741 2005-02-22  Simon Josefsson  <jas@extundo.com>
87742
87743         * modules/iconvme: New file.
87744
87745         * MODULES.html.sh: Add iconvme.
87746
87747 2005-02-22  Simon Josefsson  <jas@extundo.com>
87748
87749         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87750
87751 2005-02-22  Simon Josefsson  <jas@extundo.com>
87752
87753         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87754
87755 2005-02-22  Jim Meyering  <jim@meyering.net>
87756
87757         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87758         s/ifndef/ifdef/.
87759
87760 2005-02-20  Neil Conway  <neilc@samurai.com>
87761
87762         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87763         returned by OSX/Darwin if the specified buffer is not large
87764         enough for the hostname.
87765
87766 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87767
87768         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87769         pass it to _help, otherwise the latter coredumps trying to
87770         dereference state.root_argp.
87771
87772 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87773
87774         * modules/chdir-long (Depends-on): Add memrchr.
87775         * modules/memrchr (Files): Add lib/memrchr.h.
87776         (Include): "memrchr.h".
87777
87778 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87779
87780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87781
87782 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         * lib/memrchr.h: New file.
87785         * lib/chdir-long.c: Include it.
87786         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87787         Don't bother including stddef.h.
87788
87789 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87790
87791         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87792         inclusion.
87793         Include <sys/types.h>, for dev_t.
87794         (ME_DUMMY, ME_REMOTE): Move from here....
87795         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87796         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87797         Dmitry V. Levin.
87798         Include mountlist.h first, to test the interface.
87799
87800 2005-01-29  Bruno Haible  <bruno@clisp.org>
87801
87802         * lib/progname.c (program_name): Initialize.
87803         Needed when linking statically on MacOS X.
87804
87805 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87806
87807         Sync from coreutils.
87808         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87809         (Depends-on): Add c-strtod.
87810         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87811
87812 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87813
87814         Sync from coreutils.
87815         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87816
87817         Remove files that are specific to coreutils.
87818         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87819
87820 2005-01-28  Bruno Haible  <bruno@clisp.org>
87821
87822         * modules/javacomp: New file.
87823         * MODULES.html.sh (Java): Add javacomp.
87824
87825 2005-01-28  Bruno Haible  <bruno@clisp.org>
87826
87827         * m4/javacomp.m4: New file, from GNU gettext.
87828
87829 2005-01-28  Bruno Haible  <bruno@clisp.org>
87830
87831         * lib/javacomp.sh.in: New file, from GNU gettext.
87832         * lib/javacomp.h: New file, from GNU gettext.
87833         * lib/javacomp.c: New file, from GNU gettext.
87834
87835 2005-01-26  Simon Josefsson  <jas@extundo.com>
87836
87837         * lib/gai_strerror.c: Use GPL in header.
87838
87839 2005-01-26  Bruno Haible  <bruno@clisp.org>
87840
87841         * modules/javaexec: New file.
87842         * MODULES.html.sh (Java): Add javaexec.
87843
87844 2005-01-26  Bruno Haible  <bruno@clisp.org>
87845
87846         * m4/javaexec.m4: New file, from GNU gettext.
87847
87848 2005-01-26  Bruno Haible  <bruno@clisp.org>
87849
87850         * lib/javaexec.sh.in: New file, from GNU gettext.
87851         * lib/javaexec.h: New file, from GNU gettext.
87852         * lib/javaexec.c: New file, from GNU gettext.
87853
87854 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87855
87856         * modules/lchown (Depends-on): Remove lchown.h
87857
87858 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87859
87860         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87861         must be defined if the header file was not found, in order
87862         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87863
87864 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87865
87866         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87867         initializers for struct pentry_state.
87868         (__argp_error): Check return value of __asprintf
87869         (__argp_failure): Translate error message
87870
87871         * lib/argp-parse.c: Removed braces around the expansion of N_()
87872
87873 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87874
87875         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87876         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87877         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87878         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87879         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87880         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87881         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87882         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87883         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87884         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87885         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87886         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87887         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87888         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87889         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87890         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87891         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87892         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87893         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87894         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87895         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87896         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87897         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87898         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87899         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87900         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87901         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87902         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87903         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87904         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87905         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87906         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87907         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87908         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87909         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87910         Use an all-permissive copyright notice, recommended by RMS.
87911
87912 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87913
87914         * modules/chdir-long (Depends-on): Remove mempcpy.
87915
87916 2005-01-21  Jim Meyering  <jim@meyering.net>
87917
87918         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87919         same value as for Solaris 9.
87920
87921         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87922         component length.  This included changing the parameter to be
87923         of type `char *' rather than `char const *'.
87924         * lib/chdir-long.h (chdir_long): Update prototype.
87925
87926         * lib/openat.c (fdopendir, fstatat): New functions.
87927         * lib/openat.h: Include headers required for use of DIR and struct
87928         stat.
87929         [AT_SYMLINK_NOFOLLOW]: Define.
87930         (fdopendir, fstatat): Add prototypes.
87931
87932 2005-01-21  Bruno Haible  <bruno@clisp.org>
87933
87934         * modules/classpath: New file.
87935         * MODULES.html.sh (Java): Add classpath.
87936
87937 2005-01-21  Bruno Haible  <bruno@clisp.org>
87938
87939         * lib/classpath.h: New file, from GNU gettext.
87940         * lib/classpath.c: New file, from GNU gettext.
87941
87942 2005-01-20  Simon Josefsson  <jas@extundo.com>
87943
87944         * modules/version-etc-fsf: New file.
87945
87946 2005-01-20  Simon Josefsson  <jas@extundo.com>
87947
87948         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87949         * lib/version-etc.c: Remove version_etc_copyright.
87950         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87951         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87952
87953 2005-01-20  Simon Josefsson  <jas@extundo.com>
87954
87955         * lib/base64.h (isbase64): Add.
87956
87957         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87958         using a unsigned prototype, don't inline.
87959         (base64_decode): Use it.
87960
87961 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87962
87963         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87964         it.
87965
87966 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87967
87968         * lib/save-cwd.c (save_cwd): Remove code to support the case
87969         where fchdir is missing or flaky.
87970
87971 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87972
87973         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87974
87975 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87976
87977         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87978         AC_LIBSOURCES now does this.
87979         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87980         with new ullong_max module.
87981
87982 2005-01-19  Bruno Haible  <bruno@clisp.org>
87983
87984         * modules/sh-quote: New file.
87985         * MODULES.html.sh (Executing programs): Add sh-quote.
87986
87987 2005-01-19  Bruno Haible  <bruno@clisp.org>
87988
87989         * lib/sh-quote.h: New file, from GNU gettext.
87990         * lib/sh-quote.c: New file, from GNU gettext.
87991
87992 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87993
87994         Merge from coreutils.
87995         * m4/ullong_max.m4: New file.
87996         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87997         (gl_MACROS): Assume localeconv exists.
87998
87999 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88000
88001         Merge changes from coreutils, as described below in several
88002         changelogs dated today.
88003
88004         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88005         (O_DIRECTORY): Remove; not needed here, since "." must be
88006         a directory.  All uses removed.
88007         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88008         universal on Suns, and we also need to test for IRIX.
88009         Revamp code to use 'if' rather than '#if'.
88010         Avoid unnecessary comparison of cwd->desc to 0.
88011
88012         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88013         for known valid error numbers rather than observed invalid ones.
88014
88015 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88016
88017         * modules/ullong_max: New file.
88018
88019         * modules/chdir-long, modules/openat: New files.
88020         * modules/save-cwd (Depends-on): Depend on chdir-long.
88021         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88022
88023 2005-01-18  Jim Meyering  <jim@meyering.net>
88024
88025         Merge from coreutils.
88026         * m4/chdir-long.m4, m4/openat.m4: New files.
88027         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88028         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88029         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88030         is sane and DOES follow symlinks.  Besides, testing 20 different
88031         systems found no broken chown implementations.
88032         Prompted by a change in rsync's copy of this macro.
88033         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88034
88035         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88036
88037         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88038         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88039         NULL-means-set-to-current-time semantics.
88040         Remove temporary file immediately, rather than waiting
88041         for configure's at-exit trap code to do it.
88042
88043 2005-01-18  Jim Meyering  <jim@meyering.net>
88044
88045         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88046
88047         * lib/utimens.c (futimens): Account for the fact that futimes
88048         can also fail with errno == ENOSYS or errno == ENOENT.
88049         Patch from Dmitry V. Levin.
88050
88051         Change the name of the robust chdir function from chdir to chdir_long.
88052         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88053         (restore_cwd): Use chdir_long, not chdir.
88054         * lib/chdir-long.c: Renamed from chdir.c.
88055         * lib/chdir-long.h: Renamed from chdir.h.
88056         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88057         Hurd.
88058
88059 2005-01-18  Bruno Haible  <bruno@clisp.org>
88060
88061         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88062         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88063         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88064         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88065         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88066         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88067         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88068         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88069         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88070         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88071         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88072         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88073         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88074         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88075         Use an all-permissive copyright notice, recommended by RMS.
88076
88077 2005-01-18  Bob Proulx  <bob@proulx.com>
88078
88079         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88080         simplify offsetof() macro construct to avoid compile failure with
88081         native HP-UX 11.0 ANSI C compiler.
88082
88083 2005-01-17  Bruno Haible  <bruno@clisp.org>
88084
88085         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88086         redundant because stpncpy.m4 takes care of it.
88087
88088 2005-01-17  Bruno Haible  <bruno@clisp.org>
88089
88090         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88091
88092 2005-01-17  Bruno Haible  <bruno@clisp.org>
88093
88094         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88095         used.
88096
88097 2005-01-17  Bruno Haible  <bruno@clisp.org>
88098
88099         * lib/fwriteerror.h (fwriteerror): Change specification to include
88100         fclose.
88101         * lib/fwriteerror.c: Include <stdbool.h>.
88102         (fwriteerror): At the end, close the file stream. Record whether
88103         stdout was already closed.
88104
88105 2005-01-17  Bruno Haible  <bruno@clisp.org>
88106
88107         * lib/execute.c (environ): Declare if needed.
88108         * lib/pipe.c (environ): Likewise.
88109         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88110
88111 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88112
88113         * modules/argp: Depend on vsnprintf
88114
88115 2005-01-10  Jim Meyering  <jim@meyering.net>
88116
88117         * modules/closeout (Depends-on): Add atexit.
88118
88119 2005-01-06  Bruno Haible  <bruno@clisp.org>
88120
88121         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88122
88123 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88126         definitions to be after all include files, to avoid collisions.
88127         Problem reported by Bob Proulx.
88128
88129 2005-01-04  Jim Meyering  <jim@meyering.net>
88130
88131         Changes imported from coreutils.
88132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88133         as the mkstemp template, use a temporary directory and an
88134         8.3-friendly template to avoid trouble on systems like DJGPP.
88135         Reported by Juan M. Guerrero via Stepan Kasal.
88136         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88137         close. Remove the temporary directory right away, rather than waiting
88138         for configure's at-exit trap code to do it.
88139         Suggestion from Stepan Kasal.
88140
88141 2005-01-01  Simon Josefsson  <jas@extundo.com>
88142
88143         * gnulib-tool: Print #include directives when --import'ing.
88144
88145 2004-12-28  Simon Josefsson  <jas@extundo.com>
88146
88147         * tests/test-base64.c: Include required header files.  Remove
88148         unused variables.
88149
88150 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88151
88152         * modules/error (Depends-on): Remove gettext.
88153
88154 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88155
88156         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88157         not needed.  This removes a dependency on the gettext module.
88158         [defined _LIBC]: Do not include <libintl.h>; not needed.
88159
88160 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88161
88162         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88163         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88164
88165 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88166
88167         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88168         HAVE_DECL_STRTOLD.
88169
88170 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88171
88172         * modules/getdate (Depends-on): Remove alloca-opt.
88173
88174 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88175
88176         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88177
88178 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88179
88180         * lib/argp-parse.c: Include <stddef.h>.
88181         (alignof, alignto): New macros.
88182         (parser_init): Don't assume that void * is aligned sufficiently
88183         for struct option.
88184
88185         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88186         need to extend the stack.
88187         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88188         large.
88189
88190 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88191
88192         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88193
88194 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88195
88196         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88197         (2004-10-24) change.  Apparently this was a false alarm.
88198
88199         * modules/getdate: Depend on alloca-opt, not alloca.
88200
88201 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88202
88203         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88204         Remove now-obsolete comment about AIX.
88205         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88206         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88207         (YYMAXDEPTH): New macro.
88208
88209 2004-12-18  Simon Josefsson  <jas@extundo.com>
88210
88211         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88212
88213 2004-12-18  Bruno Haible  <bruno@clisp.org>
88214
88215         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88216
88217 2004-12-18  Bruno Haible  <bruno@clisp.org>
88218
88219         * lib/fatal-signal.c (fatal_signals): Make non-const.
88220         (init_fatal_signals): New function.
88221         (uninstall_handlers, install_handlers): Ignore signals that were set to
88222         SIG_IGN.
88223         (at_fatal_signal): Call init_fatal_signals.
88224         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88225         SIG_IGN.
88226         Reported by Paul Eggert.
88227
88228 2004-12-18  Bruno Haible  <bruno@clisp.org>
88229
88230         * doc/alloca.texi: New file.
88231         * doc/alloca-opt.texi: New file.
88232
88233 2004-12-17  Jim Meyering  <jim@meyering.net>
88234
88235         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88236         Otherwise, install-sh could exit with improper exit status when
88237         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88238
88239 2004-12-16  Simon Josefsson  <jas@extundo.com>
88240
88241         * tests/test-base64.c: Add license.
88242
88243 2004-12-15  Stepan Kasal  <address@hidden>
88244
88245         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88246
88247 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88248
88249         * modules/getcwd (Files): Add m4/d-ino.m4.
88250         Suggested by Mark D. Baushke.
88251
88252 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88253
88254         * lib/getdate.y (textint): New member "negative".
88255         (time_zone_hhmm): New function.
88256         Expect 14 shift-reduce conflicts, not 13.
88257         (o_colon_minutes): New rule.
88258         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88259         (yylex): Set the "negative" member of signed numbers.
88260
88261 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88262
88263         * doc/getdate.texi (Time of day items, Time zone items):
88264         Describe new formats +00:00, UTC+00:00.
88265
88266 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88267
88268         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88269         spurious "-l"s.  Problem reported by Stepan Kasal.
88270
88271 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88272
88273         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88274         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88275
88276 2004-12-04  Simon Josefsson  <jas@extundo.com>
88277
88278         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88279         Vandoorselaere <yoann@prelude-ids.org>.
88280
88281 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88282
88283         Changes imported from coreutils.
88284         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88285         exist.
88286         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88287
88288 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88289
88290         Changes imported from coreutils.
88291         * lib/hard-locale.c: Assume <locale.h> exists.
88292         Include "strdup.h".
88293         (GLIBC_VERSION): New macro.
88294         (hard_locale): Assume setlocale exists.
88295         Rewrite to avoid #ifdef.
88296         Use strdup rather than malloc + strcpy.
88297         * lib/human.c: Assume <locale.h> exists.
88298         (human_readable): Assume localeconv exists.
88299
88300 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88301
88302         * modules/hard-locale (Depends-on): Add strdup.
88303
88304 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88305
88306         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88307         convert T2, not T.  (Imported from libc.)
88308
88309 2004-11-30  Simon Josefsson  <jas@extundo.com>
88310
88311         * modules/restrict (License): Change to LGPL.
88312
88313 2004-11-30  Simon Josefsson  <jas@extundo.com>
88314
88315         * m4/restrict.m4: Add copyright and copying conditions.
88316
88317 2004-11-30  Simon Josefsson  <jas@extundo.com>
88318
88319         * m4/base64.m4: New file.
88320
88321 2004-11-30  Simon Josefsson  <jas@extundo.com>
88322
88323         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88324         base64.
88325
88326         * tests/test-base64.c: New file.
88327
88328         * modules/base64: New file.
88329
88330 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88331
88332         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88333         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88334
88335         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88336
88337 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88338
88339         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88340         (__getcwd.c): Don't restore errno; glibc doesn't.
88341         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88342         first, falling back to our code only if its results look suspicious.
88343         Ensure that the resulting buffer is only as large as necessary.
88344
88345         * lib/readutmp.c: Include readutmp.h first.
88346         Include <errno.h>, since readutmp.h no longer does that.
88347         * lib/readutmp.h: Don't include <errno.h>,
88348         <sys/param.h>, <time.h>; not needed to establish interface.
88349         (errno): Remove decl.
88350         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88351         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88352         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88353
88354 2004-11-28  Simon Josefsson  <jas@extundo.com>
88355
88356         * lib/base64.h, base64.c: New file.
88357
88358 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88359
88360         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88361
88362 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88363
88364         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88365         (Depends-on): Remove pathmax, same.  Add mempcpy.
88366         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88367         (Makefile.am): Append getcwd.h to lib_SOURCES.
88368         (Include): Add getcwd.h.
88369         (Maintainer): Change from Jim Meyering to "all, glibc",
88370         since getdate now uses intended-for-glibc code.
88371         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88372         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88373
88374 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88375
88376         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88377         HP's ANSI C compiler.
88378         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88379         Declaring int functions causes warnings on some modern systems and
88380         shouldn't be needed to compile on ancient ones.
88381         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88382         defined.
88383
88384         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88385         with the following changes.
88386         (__set_errno): Parenthesize properly.
88387         Include <stdbool.h>.
88388         (MIN, MAX, MATCHING_INO): New macros.
88389         (__getcwd): Define with prototype, not K&R form.
88390         Use heuristics to allocate default buffer on stack if possible.
88391         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88392         behavior, and to avoid the PATH_MAX limit when computing
88393         ../../../../...
88394         Use MATCHING_INO to compare inode number to file.
88395         Check for arithmetic overflow in size calculations.
88396         Fix bug in reallocation of dot array that caused getcwd to fail
88397         on directories nested deeper than 75.
88398         Be more careful about saving errno on error.
88399         Do not use realloc; use only free+malloc, as this is a bit
88400         more flexible and avoids a needless copy operation.
88401         Do not inspect st_dev and st_ino for symbolic links; POSIX
88402         doesn't specify the latter.
88403         Check for closedir errors.
88404         Avoid needless casts.
88405         Use "#ifdef weak_alias" around weak_alias, to be like other
88406         glibc code.
88407         The following changes to getcwd.c have effect only when used in
88408         gnulib; they have no effect inside glibc proper.
88409         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88410         as alloca isn't used.
88411         (alloca, __alloca): Likewise.
88412         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88413         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88414         unconditionally, as gnulib assumes C89 or better.
88415         Do not include <sys/param.h>.
88416         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88417         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88418         better.
88419         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88420         Include <dirent.h> in a way that is compatible with modern Autoconf.
88421         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88422         New macros, if not already defined.
88423         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88424         Use "_LIBC", not "defined _LIBC", for consistency.
88425         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88426         a mempcpy module.
88427         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88428         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88429         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88430         credit only to Jim Meyering and adjust the copyright dates.
88431         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88432         <stdlib.h>, <unistd.h>, "pathmax.h".
88433         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88434         (INITIAL_BUFFER_SIZE): Remove.
88435         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88436
88437 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88438
88439         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88440         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88441         Use the _ONCE methods, for efficiency.
88442         Check for fcntl.h.  In test program, include <errno.h>
88443         and <fcntl.h> if available.  Remove old K&R cruft from
88444         test program.  Check for common errors in GNU/Linux,
88445         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88446         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88447         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88448         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88449         name accordingly.
88450         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88451         accommodate new getcwd.c.
88452         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88453         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88454         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88455         that's all we need now.
88456
88457 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88458
88459         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88460         argp-parse.c depends on getopt internals, that means we should
88461         always use our getopt, to be on the safe side.
88462         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88463         order not to spoil the result of an eventual previous invocation
88464         of gl_GETOPT_SUBSTITUTE.
88465
88466 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88467
88468         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88469         redefinition warnings. To avoid them, include the defines
88470         in `#if !defined __need_getopt ... #endif'. The only place
88471         where __getopt_argv_const is used is in definitions
88472         of getopt_long and getopt_long_only below, which are as well
88473         protected by `#ifndef __need_getopt'.
88474         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88475         __need_getopt after including <stdio.h> and <unistd.h> These
88476         headers might have defined it.
88477
88478 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88479
88480         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88481
88482 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88483
88484         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88485         (futimens): New function, which uses futimes if available.
88486         (futimens, utimens): Support timespec==NULL, with same semantics
88487         as utime and utimens.
88488         * lib/utimens.h (futimens): New decl.
88489
88490 2004-11-23  Jim Meyering  <jim@meyering.net>
88491
88492         * lib/getopt_.h: Remove trailing blanks.
88493
88494 2004-11-23  Jim Meyering  <jim@meyering.net>
88495
88496         * lib/__fpending.c: Add comment.
88497
88498 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88499
88500         * modules/canonicalize (Depends-on): Add xreadlink.
88501         Problem reported by James Youngman.
88502
88503 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88504
88505         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88506         New macros.
88507         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88508         optopt): Use them instead of invoking ## directly; otherwise, the
88509         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88510
88511 2004-11-19  Bruno Haible  <bruno@clisp.org>
88512
88513         * lib/strtok_r.c: Move comments from here...
88514         * lib/strtok_r.h: ... to here.
88515
88516 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88517
88518         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88519         implementations that mishandle size_t overflow.
88520
88521 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88522
88523         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88524         might fail.  Problem reported by Yoann Vandoorselaere.
88525         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88526         implementations that mishandle size_t overflow.
88527
88528 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88529
88530         * modules/canon-host (Depends-on): Add strdup.
88531
88532 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88533
88534         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88535
88536 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88537
88538         * lib/canon-host.c: Include "strdup.h".
88539         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88540         Use strdup instead of malloc/strcpy to duplicate strings.
88541
88542         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88543         (human_space_before_unit): New constant.
88544         * lib/human.c (human_readable): Support it.
88545
88546         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88547         (xgetcwd): Set errno correctly when failing.
88548         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88549         the failure is actually due to a PATH_MAX problem.
88550
88551         Further getopt changes to make it more likely that glibc will
88552         buy the changes back.
88553         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88554         (getopt): Use it, so to preserve glibc semantic
88555         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88556         when compiling for libc.
88557         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88558         (getopt_long, getopt_long_only): Use it.
88559
88560         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88561         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88562         (getopt): Argv is now char * const *, as per standard.
88563         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88564         not char *__getopt_argv_const *.
88565         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88566         _getopt_long_only_r): Likewise.
88567         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88568         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88569         _getopt_long_r, _getopt_long_only_r): Likewise.
88570         * lib/getopt_.h (__getopt_argv_const): Remove.
88571         (getopt): Argv is now char * const *, as per standard.
88572
88573         * lib/getdate.y (tORDINAL): New token.
88574         (day, relunit): Allow it for relative times.
88575         (relative_time_table): Use tORDINAL for ordinals.
88576
88577 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88578
88579         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88580         Document that "second" isn't allowed as an ordinal number.
88581
88582 2004-11-16  Jim Meyering  <jim@meyering.net>
88583
88584         * modules/closeout (Depends-on): Add fpending.
88585
88586 2004-11-15  Jim Meyering  <jim@meyering.net>
88587
88588         * lib/closeout.c: Include "__fpending.h" once again.
88589         Include <stdbool.h>.
88590         (close_stdout): Don't fail just because stdout was closed initially,
88591         since some programs don't write to stdout in the normal course of
88592         operation (other than --version and --help), and we don't want this
88593         function to make e.g. `touch file >&-' fail.
88594         But do fail if it was closed and someone has tried to write to it.
88595         E.g., `printf foo >&-' must fail.
88596
88597 2004-11-13  Jim Meyering  <jim@meyering.net>
88598
88599         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88600
88601 2004-11-12  Simon Josefsson  <jas@extundo.com>
88602
88603         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88604         small doc fix is still pending.
88605
88606 2004-11-11  Simon Josefsson  <jas@extundo.com>
88607
88608         * modules/strtok_r: New file.
88609
88610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88611         strtok_r.
88612
88613 2004-11-11  Simon Josefsson  <jas@extundo.com>
88614
88615         * m4/strtok_r.m4: New file.
88616
88617         * m4/getopt.m4: Replace opterr.
88618
88619 2004-11-11  Simon Josefsson  <jas@extundo.com>
88620
88621         * lib/strtok_r.h, strtok_r.c: New file.
88622
88623 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88624
88625         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88626         of replacing opterr, getopt, etc.  This should handle the
88627         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88628
88629 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88630
88631         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88632         we can stop lying to compilers about the constness of argv when we
88633         are compiled outside glibc.
88634         (getopt, getopt_long, getopt_long_only): Use it.
88635         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88636         _getopt_internal, getopt): Likewise.
88637         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88638         _getopt_long_only_r): Likewise.
88639         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88640         _getopt_long_r, _getopt_long_only_r): Likewise.
88641
88642         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88643         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88644         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88645         the other external symbols.
88646         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88647         declaration, since the above renaming now works around collisions.
88648
88649 2004-11-11  Jim Meyering  <jim@meyering.net>
88650
88651         * lib/linebreak.c: Remove trailing blanks.
88652         * lib/alloca_.h: Likewise.
88653         * lib/acosl.c: Likewise.
88654         * lib/euidaccess.c: Likewise.
88655         * lib/allocsa.h: Likewise.
88656
88657 2004-11-10  Simon Josefsson  <jas@extundo.com>
88658
88659         * m4/getaddrinfo.m4: New file.
88660
88661 2004-11-10  Simon Josefsson  <jas@extundo.com>
88662
88663         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88664
88665 2004-11-10  Simon Josefsson  <jas@extundo.com>
88666
88667         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88668         getaddrinfo.
88669
88670         * modules/getaddrinfo: New file.
88671
88672 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88673
88674         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88675
88676 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88677
88678         * lib/mktime.c (SHR): New macro, which is a portable
88679         substitute for >> that should work even on Crays.
88680         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88681         Problem reported by Mark D. Baushke in
88682         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88683         * lib/getdate.y (SHR): Likewise.
88684         (tm_diff): Use it.
88685         * lib/strftime.c (SHR): Likewise.
88686         (tm_diff): Use it.
88687         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88688         quote_these_too, so that right shifts are well defined.  All uses
88689         changed.
88690
88691 2004-11-10  Jim Meyering  <jim@meyering.net>
88692
88693         Ensure that no close failure goes unreported.
88694         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88695         return early when it seems there's nothing to flush.
88696         Don't include __fpending.h.
88697
88698 2004-11-10  Jim Meyering  <jim@meyering.net>
88699
88700         * modules/closeout (Depends-on): Remove fpending.
88701
88702 2004-11-10  Jim Meyering  <jim@meyering.net>
88703
88704         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88705
88706 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88707
88708         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88709         gl_FUNC_STRFTIME.
88710         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88711         and AC_REQUIRE when possible, to avoid duplicate checks.
88712         Check for <wchar.h>.
88713
88714 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88715
88716         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88717
88718 2004-11-09  Bruno Haible  <bruno@clisp.org>
88719
88720         * m4/sockpfaf.m4: New file.
88721
88722 2004-11-05  Bruno Haible  <bruno@clisp.org>
88723
88724         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88725         Reported by Mark D. Baushke <mdb@cvshome.org>.
88726
88727 2004-11-04  Bruno Haible  <bruno@clisp.org>
88728
88729         2004-09-11  Bruno Haible  <bruno@clisp.org>
88730                 * allocsa.valgrind: New file.
88731         2004-02-06  Bruno Haible  <bruno@clisp.org>
88732                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88733                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88734                 Reported by Christopher Seip <chris.seip@hp.com>.
88735
88736 2004-11-04  Bruno Haible  <bruno@clisp.org>
88737
88738         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88739         (Makefile.am): Distribute it.
88740
88741 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88742
88743         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88744         with errno == ERANGE if the buffer is too small.
88745         Problem reported by Mark D. Baushke.
88746
88747 2004-11-03  Albert Chin  <china@thewrittenword.com>
88748             Paul Eggert  <eggert@cs.ucla.edu>
88749
88750         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88751         equivalent, substitute $ac_type for equivalent type rather than
88752         blindly using uint32_t *always* which won't work if uint32_t is not
88753         available.  Define _UINT32_T to work around typedef of uint32_t if
88754         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88755         2.5.1.
88756
88757 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88758
88759         * m4/jm-macros.m4: Sync from coreutils.
88760         (gl_MACROS): Check for mbrlen, for pathchk.
88761         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88762
88763 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88764
88765         * lib/xreadlink.c (MAXSIZE): New macro.
88766         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88767         size does not exceed MAXSIZE.  Avoid cast.
88768         As suggested by Mark D. Baushke in
88769         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88770         if readlink fails with buffer size just under MAXSIZE, try again
88771         with MAXSIZE.
88772
88773 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88774
88775         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88776
88777 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88778         and  Paul Eggert  <eggert@cs.ucla.edu>
88779
88780         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88781         (get_date): Overparenthesize to avoid GCC warning.
88782
88783 2004-11-02  Bruno Haible  <bruno@clisp.org>
88784
88785         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88786         returns void.
88787
88788 2004-11-02  Bruno Haible  <bruno@clisp.org>
88789
88790         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88791         function returns void.
88792
88793 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88794
88795         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88796         fflush_unlocked, flockfile, funlockfile, funlockfile,
88797         fputs_unlocked, putc_unlocked.
88798
88799 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88800
88801         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88802         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88803         already declared.
88804
88805 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88806
88807         * modules/getdate (Files): Add doc/getdate.texi.
88808         (Depends-on): Add setenv, xalloc.
88809
88810 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88811
88812         * lib/getdate.y: Add support for TZ="foo" within a date string.
88813         Fix some bugs near time_t boundaries.  Reject dates with
88814         out-of-range components, e.g., "Sept 31".
88815         Include <stdlib.h>, "setenv.h", "xalloc.h".
88816         (ISDIGIT_LOCALE): Remove; unused.
88817         Note that the TZ and time functions used here are not reentrant.
88818         (mktime_ok, get_tz): New functions.
88819         (TZBUFSIZE): New constant.
88820         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88821         This requires that we sometimes generate our own TZ="XXX..." setting.
88822
88823 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88824
88825         * doc/getdate.texi: New file, from coreutils with modifications for
88826         the new TZ parsing.
88827
88828 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88829
88830         * lib/mktime.c (not_equal_tm): Remove redundant check.
88831
88832 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88833
88834         * modules/regex (lib_SOURCES): Add regex.c.
88835         Reported by James Youngman in
88836         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88837
88838 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88839
88840         * lib/getdate.y: Use Bison 1.875 features, and some minor
88841         code cleanups.  This change does not affect semantics.
88842         Don't include <stdlib.h>; no longer needed.
88843         Don't include unlocked-io.h; only the "#if TEST" code uses
88844         stdio, and performance isn't crucial there.
88845         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88846         Bison 1.875 features as described below.
88847         All uses of "PC." replaced by "pc->".
88848         (YYSTYPE): Add a forward declaration.
88849         (yylex, yyerror): Use full prototypes in forward decls.
88850         Use "%pure-parser" rather than obsolescent "%pure_parser".
88851         Use %parse-param and %lex-param instead of obsolescent
88852         YYPARSE_PARAM and YYLEX_PARAM.
88853         (meridian_table, month_and_day_table, time_units_table,
88854         relative_time_table, time_zone_table, military_table,
88855         lookup_zone, lookup_word, get_date):
88856         Use NULL instead of 0 where appropriate.
88857         (to_hour): Avoid abort (), to avoid a dependency on
88858         stdlib.h.
88859         (yyerror, yylex): Now accepts parser_control * arg.
88860         (main) [TEST]: Use '\0' rather than 0 for char.
88861
88862 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88863
88864         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88865
88866 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88867
88868         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88869         It's now the caller's responsibility to handle the case where
88870         !HAVE_GETPAGESIZE && !defined getpagesize.
88871
88872         * lib/mktime.c (leapyear): Arg is long int, not int.
88873
88874 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88875
88876         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88877
88878 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88879
88880         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88881         missing.  Problem reported by James Youngman.
88882
88883 2004-10-16  Simon Josefsson  <jas@extundo.com>
88884
88885         * gnulib-tool: Fix comments.  Fix parse problem.
88886         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88887
88888 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88889
88890         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88891         implementation of getopt_long.  Problem reported by Alexander Taler in:
88892         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88893
88894 2004-10-15  Bruno Haible  <bruno@clisp.org>
88895
88896         * gnulib-tool: Untabify. Initialize supplied_libname.
88897         (func_usage): More homogenous output.
88898         (func_modules_transitive_closure, func_modules_to_filelist,
88899         func_emit_lib_Makefile_am): New functions.
88900         (func_import): New function, extracted from big case statement. Use
88901         func_get_license, func_modules_transitive_closure,
88902         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88903         opt_lgpl. Don't use test -a, as it's not portable.
88904         (func_create_testdir): Use func_modules_transitive_closure,
88905         func_modules_to_filelist, func_emit_lib_Makefile_am.
88906
88907 2004-10-15  Bruno Haible  <bruno@clisp.org>
88908
88909         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88910
88911 2004-10-15  Bruno Haible  <bruno@clisp.org>
88912
88913         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88914         the portions belonging to each module.
88915         Suggested by Derek Robert Price <derek@ximbiot.com>.
88916
88917 2004-10-12  Simon Josefsson  <jas@extundo.com>
88918
88919         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88920         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88921         to real functions.
88922
88923 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88924
88925         * modules/vsnprintf: New file.
88926
88927 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88928
88929         * m4/vsnprintf.m4: New file.
88930
88931 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88932
88933         * lib/vsnprintf.h: New file.
88934         * lib/vsnprintf.c: New file.
88935
88936 2004-10-11  Bruno Haible  <bruno@clisp.org>
88937
88938         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88939         vsnprintf.
88940
88941 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88942
88943         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88944
88945 2004-10-07  Bruno Haible  <bruno@clisp.org>
88946
88947         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88948         fits into the provided buffer.
88949
88950 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88951
88952         * lib/diacrit.c, diacrit.h: Add GPL notice.
88953
88954         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88955         notice.
88956         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88957         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88958         This avoids a potential constant-folding bug.
88959
88960 2004-10-05  Bruno Haible  <bruno@clisp.org>
88961
88962         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88963         for the declaration of strsep.
88964
88965 2004-10-05  Bruno Haible  <bruno@clisp.org>
88966
88967         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88968
88969 2004-10-04  Simon Josefsson  <jas@extundo.com>
88970
88971         * modules/memmem: New file.
88972         * tests/test-memmem.c: New file.
88973         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88974
88975 2004-10-04  Simon Josefsson  <jas@extundo.com>
88976
88977         * m4/memmem.m4: New file.
88978
88979 2004-10-04  Simon Josefsson  <jas@extundo.com>
88980
88981         * lib/memmem.h: New file.
88982         * lib/memmem.c: New file, taken from glibc.
88983
88984 2004-10-04  Simon Josefsson  <jas@extundo.com>
88985
88986         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88987         '#ifdef USE_UNLOCKED_IO'.
88988
88989 2004-10-04  Simon Josefsson  <jas@extundo.com>
88990
88991         * config/srclist.txt: Add memmem from glibc.
88992
88993 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88994
88995         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88996
88997         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88998         modules/exclude, modules/getdate, modules/getline,
88999         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89000         modules/getusershell, modules/linebuffer, modules/md5,
89001         modules/mountlist, modules/posixtm, modules/readtokens,
89002         modules/readutmp, modules/regex, modules/sha1,
89003         modules/version-etc, modules/yesno:
89004         Remove dependency on unlocked-io.
89005
89006 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89007
89008         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89009
89010         * m4/unlocked-io.m4: Add copyright notice.
89011         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89012
89013 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89014
89015         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89016         * lib/xmalloc.c (xmemdup): Likewise.
89017         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89018         XFREE): Remove these long-obsolescent macros.
89019         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89020         * lib/xstrdup.c: Remove.
89021
89022         * lib/regex.c (re_comp): Cast gettext return value to char *,
89023         Problem reported by Martin Neitzel via Mark D. Baushke.
89024
89025 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89026
89027         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89028         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89029         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89030         regex.c, sha1.c, version-etc.c, yesno.c:
89031         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89032         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89033         the includer's responsibility.
89034
89035         Sync from coreutils.
89036
89037         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89038         points to the start of a string, as the C Standard says the
89039         resulting behavior is undefined.
89040
89041         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89042         simple -> simple_backups, numbered_existing ->
89043         numbered_existing_backups, numbered -> numbered_backups
89044         to avoid shadowing problems.  All uses changed.
89045         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89046         * lib/backupfile.c (check_extension, numbered_backup):
89047         Rename locals to avoid shadowing 'basename'.
89048         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89049         once.
89050
89051         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89052         * lib/.cvsignore: Add getopt.h.
89053
89054 2004-10-04  Bruno Haible  <bruno@clisp.org>
89055
89056         * modules/README: New file.
89057         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89058         not a module.
89059
89060 2004-10-02  Jim Meyering  <jim@meyering.net>
89061
89062         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89063
89064 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89065
89066         * modules/strsep: New file.
89067
89068 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89069
89070         * m4/strsep.m4: New file.
89071
89072 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89073
89074         * lib/strsep.h: New file.
89075         * lib/strsep.c: New file.
89076
89077 2004-10-01  Simon Josefsson  <jas@extundo.com>
89078
89079         * lib/snprintf.c (snprintf): Handle size==0.
89080
89081 2004-10-01  Simon Josefsson  <jas@extundo.com>
89082             Bruno Haible  <bruno@clisp.org>
89083
89084         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89085         (snprintf): Declare 'args'.
89086
89087 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89088
89089         * lib/snprintf.c: Remove comments as to why each header is needed.
89090
89091 2004-10-01  Bruno Haible  <bruno@clisp.org>
89092
89093         * MODULES.html.sh: Add strsep.
89094
89095 2004-09-30  Simon Josefsson  <jas@extundo.com>
89096
89097         * modules/snprintf: New file.
89098
89099 2004-09-30  Simon Josefsson  <jas@extundo.com>
89100
89101         * m4/snprintf.m4: New file.
89102
89103 2004-09-30  Simon Josefsson  <jas@extundo.com>
89104
89105         * lib/snprintf.h, lib/snprintf.c: New files.
89106
89107 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89108
89109         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89110         (hol_entry_help): Never translate an empty string.
89111         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89112         * lib/argp.h (OPTION_NO_TRANS): New option.
89113
89114 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89115
89116         * modules/argp (Maintainer): Replace Simon Josefsson
89117         by Sergey Poznyakoff.
89118
89119 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89120
89121         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89122         changes merged back into glibc.
89123
89124 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89125
89126         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89127
89128 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89129
89130         * lib/xvasprintf.c: Include xalloc.h.
89131         (xvasprintf): Use xalloc_die, not xmalloc_die.
89132
89133 2004-09-29  Bruno Haible  <bruno@clisp.org>
89134
89135         * modules/alloca-opt: New file, derived from modules/alloca.
89136         * modules/allocsa: Depend on alloca-opt instead of alloca.
89137         * modules/setenv: Likewise.
89138         * modules/vasnprintf: Likewise.
89139         * MODULES.html.sh: Add alloca-opt.
89140
89141 2004-09-28  Simon Josefsson  <jas@extundo.com>
89142
89143         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89144         LGPL, and to replace license template from GPL to LGPL.
89145
89146 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89147
89148         * modules/dummy: Change license to LGPL.
89149
89150 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89151
89152         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89153
89154 2004-09-24  Simon Josefsson  <jas@extundo.com>
89155
89156         * modules/minmax (License): Change from GPL to LGPL.
89157
89158 2004-09-23  Simon Josefsson  <jas@extundo.com>
89159
89160         * gnulib-tool (--import): Typo.
89161
89162 2004-09-23  Simon Josefsson  <jas@extundo.com>
89163
89164         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89165
89166 2004-09-22  Bruno Haible  <bruno@clisp.org>
89167
89168         * modules/*: Add 'License' field.
89169         * gnulib-tool: Accept --extract-license option.
89170         (func_get_license): New function.
89171
89172 2004-09-21  Bruno Haible  <bruno@clisp.org>
89173
89174         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89175         Reported by Simon Josefsson.
89176
89177 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89178
89179         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89180         gl_AC_TYPE_LONG_LONG.
89181
89182 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89183
89184         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89185
89186 2004-09-18  Simon Josefsson  <jas@extundo.com>
89187         and  Paul Eggert  <eggert@cs.ucla.edu>
89188
89189         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89190         calls with autoreconf.  Define GL_LIB.
89191
89192 2004-09-14  Karl Berry  <karl@gnu.org>
89193
89194         * config/srclist.txt: unsync setenv.c, sigh.
89195
89196 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89197
89198         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89199         Problem reported by Bruno Haible in:
89200         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89201
89202 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89203
89204         * config/srclist.txt: Comment out argp-pvh.c.
89205
89206 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89207
89208         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89209         in case some system header has #define'd it.  Problem reported by
89210         Soeren D. Schulze in
89211         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89212
89213 2004-09-09  Karl Berry  <karl@gnu.org>
89214
89215         * regex.[ch]: delete from the root.  These were supposed to be
89216                 synced with emacs cvs, but this has not happened for about
89217                 a year, and anyway nothing else uses emacs regex.[ch].
89218                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89219                 lib/regex[.ch] is untouched.
89220
89221 2004-09-09  Bruno Haible  <bruno@clisp.org>
89222
89223         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89224
89225 2004-09-09  Bruno Haible  <bruno@clisp.org>
89226
89227         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89228         modifications.
89229         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89230
89231 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89232
89233         * modules/xvasprintf: New file.
89234         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89235
89236 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89237
89238         * lib/xvasprintf.h: New file.
89239         * lib/xvasprintf.c: New file.
89240         * lib/xasprintf.c: New file.
89241
89242 2004-09-08  Bruno Haible  <bruno@clisp.org>
89243
89244         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89245
89246 2004-09-08  Bruno Haible  <bruno@clisp.org>
89247
89248         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89249         length is > INT_MAX.
89250         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89251         more.
89252
89253 2004-09-08  Bruno Haible  <bruno@clisp.org>
89254
89255         * lib/stdint_.h: New file, taken from GNU clisp.
89256
89257 2004-09-08  Bruno Haible  <bruno@clisp.org>
89258             Oskar Liljeblad  <oskar@osk.mine.nu>
89259
89260         * modules/stdint: New file.
89261         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89262
89263 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89264
89265         Import from coreutils.
89266         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89267         strings on unbounded length.  alloca's performance benefits aren't
89268         that important here.
89269         (V_STRDUP): Remove.
89270         (parse_with_separator): New function, with most of the internals
89271         of the old parse_user_spec.  Allow user to omit both user and group,
89272         for compatibility with FreeBSD.
89273         Clone only the user name, not the entire spec.
89274         Do not set *uid, *gid unless entirely successful.
89275         Avoid memory leak in some failing cases.
89276         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89277         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89278         (parse_user_spec): Rewrite to use parse_with_separator.
89279
89280 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89281
89282         * modules/userspec: Don't depend on alloca.
89283
89284 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89285
89286         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89287
89288 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89289
89290         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89291         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89292         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89293
89294 2004-08-16  Simon Josefsson  <jas@extundo.com>
89295
89296         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89297         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89298         Add --dry-run for --import.
89299         Let user provided command line parameters override configure.ac
89300         settings.
89301
89302 2004-08-12  Simon Josefsson  <jas@extundo.com>
89303
89304         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89305         as discussed with Paul Eggert in threads rooted at
89306         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89307         and
89308         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89309         Before, the test was empty, and relied on ELIDE_CODE in source
89310         code.)
89311         (gl_PREREQ_GETOPT): New macro.
89312         (gl_GETOPT): Use them.
89313
89314 2004-08-12  Simon Josefsson  <jas@extundo.com>
89315
89316         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89317         * lib/getopt_.h: Renamed from getopt.h.
89318
89319 2004-08-12  Simon Josefsson  <jas@extundo.com>
89320
89321         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89322         Change default library name from libfoo to libgnu.
89323         Now, if you have a configure.ac that says:
89324                 gl_SOURCE_BASE(gl)
89325                 gl_M4_BASE(gl/m4)
89326                 gl_MODULES(error getopt etcetera)
89327                 gl_INIT
89328         you can import all you need by running:
89329                 ../gnulib/gnulib-tool --import
89330
89331         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89332         (Makefile.am): Rewrite, use logic from argz.
89333         (Include): Use <getopt.h> instead of "getopt.h".
89334
89335 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89336
89337         * modules/argp (Files): Add m4/unlocked-io.m4.
89338         (Depends-on): Add extensions.
89339
89340 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89341
89342         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89343         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89344         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89345         Check for program_invocation_name, program_invocation_short_name,
89346         flockfile, funlockfile, features.h, _getopt_long_only_r.
89347
89348 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89349
89350         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89351         its complicated substitute.
89352         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89353         and program_invocation_name.
89354         (__argp_basename) [!_LIBC]: Remove; the only use was
89355         replaced by its body.
89356         (__argp_short_program_name): Change condition from
89357         !defined __argp_short_program_name to
89358         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89359         to match argp-namefrob.h.
89360         (__argp_failure): Don't assume strerror_r returns char *.
89361         * lib/argp-parse.c (N_): Define unconditionally.
89362         (argp_default_options): Fill out initializers with 0 to avoid
89363         gcc warnings.
89364
89365 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89366
89367         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89368         getopt1.c.
89369
89370 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89371
89372         Merge from coreutils.
89373
89374         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89375
89376         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89377         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89378
89379 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89380
89381         Merge from coreutils.
89382
89383         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89384         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89385         for Reliant Unix 5.43.
89386
89387         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89388         (union fooround): Use uintmax_t, not long int.
89389         The rest is a merge from libc:
89390         [defined _LIBC]: Include <shlib-compat.h>.
89391         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89392
89393         * lib/settime.c (settime): Recode to avoid warning with
89394         Sun Forte C 6U2.
89395
89396         * lib/strverscmp.c: Convert to UTF-8.
89397
89398 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89399
89400         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89401         m4/uintmax_t.m4.
89402
89403 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89404
89405         * modules/xalloc-die: New file.
89406         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89407
89408         * modules/md5 (Files): Add m4/uint32_t.m4.
89409         * modules/sha1: Renamed from modules/sha.
89410         (Files):
89411         Rename lib/sha.h to lib/sha1.h.
89412         Rename lib/sha.c to lib/sha1.c.
89413         Rename m4/sha.m4 to m4/sha1.m4.
89414         (lib_SOURCES): Likewise.
89415         (configure.ac): Rename gl_SHA to gl_SHA1.
89416         (Include): sha.h -> sha1.h.
89417
89418 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89419
89420         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89421         * m4/sha1.m4: Renamed from sha.m4.
89422         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89423
89424 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89425
89426         * lib/obstack.h (obstack_empty_p):
89427         Don't assume that chunk->contents is suitably aligned.
89428         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89429         Likewise. Problem reported by Benno in
89430         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89431
89432         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89433         readable.  This could be improved further but it'd take some work.
89434
89435 2004-08-08  Simon Josefsson  <jas@extundo.com>
89436
89437         * modules/xgethostname (Depends-on): Remove exit and error (not
89438         used).
89439
89440         * modules/getpass-gnu: Add getpass.h.
89441         (Depends-on): Add stdbool.
89442         * modules/getpass: Add getpass.h.
89443
89444 2004-08-08  Simon Josefsson  <jas@extundo.com>
89445
89446         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89447         Check getpass declaration.
89448
89449 2004-08-08  Simon Josefsson  <jas@extundo.com>
89450
89451         * lib/xgethostname.c: Don't include error.h (not used).
89452
89453         * lib/getpass.h: Add.
89454         * lib/getpass.c: Include getpass.h first.
89455
89456 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89457
89458         * lib/xalloc-die.c: New file.
89459         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89460         All uses removed.
89461         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89462         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89463         xalloc-die.c.
89464         (_, N_, xalloc_die): Move to xalloc-die.c.
89465         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89466         so that we needn't mess with xalloc_msg_memory_exhausted.
89467
89468         * lib/sha1.h: Renamed from sha.h.
89469         (SHA1_H): Renamed from _SHA_H.
89470         (sha1_ctx): Renamed from sha_ctx.
89471         (sha1_init_ctx): Renamed from sha_init_ctx.
89472         (sha1_process_block): Renamed from sha_process_block.
89473         (sha1_process_bytes): Renamed from sha_process_bytes.
89474         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89475         (sha1_read_ctx): Renamed from sha_read_ctx.
89476         (sha1_stream): Renamed from sha_stream.
89477         (sha1_buffer): Renamed from sha_buffer.
89478         * lib/sha1.c: Likewise; renamed from sha.c.
89479         Do not include <sys/types.h>.
89480         Include <stddef.h> rather than <stdlib.h>.
89481
89482 2004-08-08  Bruno Haible  <bruno@clisp.org>
89483
89484         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89485         FILESYSTEM_PREFIX_LEN.
89486         * lib/progreloc.c: Likewise.
89487         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89488
89489 2004-08-06  Simon Josefsson  <jas@extundo.com>
89490
89491         * modules/progname (Depends-on): Don't depend on stdbool.
89492
89493 2004-08-06  Simon Josefsson  <jas@extundo.com>
89494
89495         * modules/getsubopt: New file.
89496         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89497         getsubopt.
89498
89499 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89500
89501         More merge from coreutils.
89502
89503         * m4/utimens.m4, m4/utimecmp.m4: New files.
89504         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89505         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89506         prereq.m4, sha.m4: Import changes from coreutils.
89507
89508 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89509
89510         More merge from coreutils.
89511         * modules/raise, modules/readtokens0, modules/utimens:
89512         * modules/utimecmp, module/xnanosleep: New files.
89513         * modules/strftime: Add lib/strftime.h.
89514         Change include from <time.h> to "strftime.h".
89515         * modules/yesno: Add lib/yesno.h.
89516         * modules/backupfile: Remove lib/addext.c.
89517         * modules/euidaccess: Add stat-macros.h.
89518         * modules/canonicalize, modules/euidaccess,
89519         modules/filemode, modules/lchown, modules/makepath,
89520         modules/rmdir, modules/stat: Likewise.
89521
89522 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89523
89524         Merge from tar.
89525         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89526         SIZE_MAX is a valid preprocessor constant.
89527         (__argp_basename): Change from "#ifndef _LIBC"
89528         to "#ifndef __argp_short_program_name", so that
89529         we don't compile these functions for tar.
89530
89531         More merges from coreutils.
89532         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89533         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89534         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89535         * lib/addext.c: Remove; no longer needed.
89536         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89537         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89538         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89539         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89540         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89541         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89542         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89543         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89544         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89545         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89546         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89547         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89548         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89549         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89550         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89551         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89552         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89553         Import changes from coreutils.
89554
89555 2004-08-05  Simon Josefsson  <jas@extundo.com>
89556
89557         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89558
89559 2004-08-05  Simon Josefsson  <jas@extundo.com>
89560
89561         * m4/getsubopt.m4: New file.
89562
89563 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89564
89565         Merge from coreutils.
89566
89567         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89568         * m4/getcwd-path-max.m4: New files.
89569
89570         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89571         FILESYSTEM_PREFIX_LEN ->
89572         FILE_SYSTEM_PREFIX_LEN.
89573         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89574         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89575         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89576         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89577
89578         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89579         prerequisite modules now handle the DOS stuff.
89580         Don't check for unistd.h.
89581
89582 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89583
89584         Merge from coreutils.
89585
89586         * lib/.gdb-history: Remove; this doesn't belong here.
89587
89588         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89589         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89590         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89591         * lib/getcwd.c: New files.
89592
89593         * lib/dirname.h: Include <stdbool.h>.
89594         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89595         for consistency with POSIX terminology.  All uses changed.
89596         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89597         (strip_trailing_slashes): Use bool for booleans.
89598         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89599
89600         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89601         sometimes returns a positive errno value even when it succeeds.
89602         (print_errno_message) [!LIBC]: Fall back on strerror if
89603         __strerror_r fails.
89604
89605         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89606         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89607         (longest_relative_suffix): New function.
89608         (path_concat): Use it.  Assume first argument is not NULL.
89609         Port to DOS.  Omit redundant separators.
89610         Report an error instead of returning NULL.
89611         Use mempcpy instead of memcpy.
89612         (xpath_concat): Remove: not declared or used.
89613
89614         * lib/same.h: Include <stdbool.h>
89615         (same_name): Return bool, not int.
89616         * lib/same.c (same_name): Likewise.
89617         (errno): Don't declare; we assume C89 or better now.
89618
89619         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89620         if not already defined.
89621
89622         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89623         * lib/dup-safer.c (errno): Likewise.
89624
89625 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89626
89627         Merge from coreutils.
89628         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89629         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89630         * modules/path-concat: Don't depend on strdup.
89631
89632 2004-08-03  Simon Josefsson  <jas@extundo.com>
89633
89634         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89635         * lib/progname.h: Don't include stdbool.h.
89636
89637 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89638
89639         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89640         * MODULES.html.sh (func_all_modules): Remove fatal.
89641
89642 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89643
89644         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89645
89646 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89647
89648         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89649         working.
89650
89651 2004-08-02  Simon Josefsson  <jas@extundo.com>
89652
89653         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89654         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89655         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89656
89657 2004-08-01  Simon Josefsson  <jas@extundo.com>
89658
89659         * lib/xgetdomainname.c: Include stdlib.h, for free().
89660
89661 2004-07-19  Bruno Haible  <bruno@clisp.org>
89662
89663         * MODULES.html.sh (func_all_modules): Add dummy.
89664
89665 2004-07-16  Simon Josefsson  <jas@extundo.com>
89666
89667         * modules/dummy: New file.
89668
89669 2004-07-16  Simon Josefsson  <jas@extundo.com>
89670
89671         * lib/dummy.c: New file.
89672
89673 2004-07-16  Bruno Haible  <bruno@clisp.org>
89674
89675         * lib/backupfile.h: Add extern "C" for C++.
89676         * lib/closeout.h: Likewise.
89677         * lib/copy-file.h: Likewise.
89678         * lib/findprog.h: Likewise.
89679         * lib/full-write.h: Likewise.
89680         * lib/pathname.h: Likewise.
89681         * lib/progname.h: Likewise.
89682         * lib/stpcpy.h: Likewise.
89683         * lib/stpncpy.h: Likewise.
89684         * lib/strcase.h: Likewise.
89685         * lib/strstr.h: Likewise.
89686         * lib/xalloc.h: Likewise.
89687
89688         * lib/mbswidth.h: Add extern "C" for C++.
89689         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89690
89691 2004-07-13  Robert Millan  <robertmh@gnu.org>
89692
89693         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89694
89695 2004-07-09  Simon Josefsson  <jas@extundo.com>
89696
89697         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89698         failed without this.)
89699
89700 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89701
89702         * modules/chown (Files): Add lib/fchown-stub.c, since
89703         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89704
89705 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89706
89707         * lib/fchown-stub.c: New file.
89708
89709 2004-06-24  Jim Meyering  <jim@meyering.net>
89710
89711         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89712
89713 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89714
89715         * modules/argz: Omit "#include".
89716
89717         * MODULES.html.sh (func_all_modules): Add calloc, to match
89718         2004-06-01 addition of calloc module.
89719
89720 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89721
89722         * m4/argz.m4: New file, which is autoupdated from libtool.
89723
89724 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89725
89726         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89727         libtool.
89728
89729 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89730
89731         * config/srclist-update: Don't insist on "USA." before the
89732         close-comment, as libtool omits the period and puts the */ on a
89733         separate line.
89734         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89735         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89736
89737 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89738
89739         * modules/argz: New file.
89740         * MODULES.html.sh (func_all_modules): Add argz.
89741
89742 2004-06-12  Jim Meyering  <jim@meyering.net>
89743         and  Paul Eggert  <eggert@cs.ucla.edu>
89744
89745         * modules/hash (Files): Add lib/xalloc.h.
89746         * modules/pipe (Depends-on): Add wait-process.
89747         * modules/stat (Depends-on): Add xalloc.
89748         * modules/userspec (Files): Add lib/userspec.h.
89749         * modules/xstrto
89750
89751         Upgrade from gettext-0.13.
89752         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89753         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89754         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89755
89756 2004-06-10  Jim Meyering  <jim@meyering.net>
89757
89758         * lib/calloc.c: New file.
89759
89760 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89761
89762         * lib/getdate.y (yylex): Allow space between sign and number.
89763         Problem reported by Dan Jacobson.
89764
89765 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89766
89767         Merge from coreutils CVS.
89768
89769         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89770         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89771         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89772         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89773         xstrtol.m4: Fix copyright date and/or serial number.
89774
89775         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89776         See if we need an fchown replacement.
89777         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89778         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89779         and use the replacement function if we detect either defect.
89780
89781         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89782         gl_UTIMECMP.
89783
89784 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89785         and  Jim Meyering  <jim@meyering.net>
89786
89787         Merge from coreutils CVS.
89788
89789         * lib/stat-macros.h: New file, with contents from file-type.h
89790         and coreutils' system.h.
89791         * lib/file-type.c: Include "stat-macros.h".
89792         * lib/file-type.h (file_type): Move all macro definitions to new file,
89793         stat-macros.h.
89794
89795         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89796         Wrap old code with this conditional.
89797         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89798         function that does not dereference symlinks.
89799         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89800
89801         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89802         dependency problems.
89803         (xreadlink): Accept new arg SIZE, for efficiency.
89804         All decls and uses changed.
89805         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89806
89807         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89808         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89809
89810         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89811         sysexits.h.
89812
89813 2004-06-01  Jim Meyering  <jim@meyering.net>
89814
89815         * m4/calloc.m4: New file.
89816
89817 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89818
89819         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89820         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89821         Also, fix a typo in a diagnostic.
89822
89823 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89824
89825         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89826         or AC_FUNC_REALLOC.
89827
89828 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89829
89830         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89831         macros to be defined.
89832         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89833         the allocator returns NULL because the requested size is zero.
89834
89835 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89836
89837         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89838         var.  Add comment explaining why libc still defines it.  This
89839         merges the following patch from glibc:
89840         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89841
89842 2004-05-20  Andreas Schwab  <schwab@suse.de>
89843
89844         * m4/free.m4: Replace free if it not known to work, not the other
89845         way round.
89846
89847 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89848
89849         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89850         present in glibc since revision 1.1 of this file.
89851         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89852         obstack_alignment_mask, obstack_alloc, obstack_base,
89853         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89854         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89855         obstack_grow0, obstack_init, obstack_int_grow,
89856         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89857         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89858         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89859         nonexistent functions.
89860
89861 2004-05-18  Karl Berry  <karl@gnu.org>
89862
89863         * config/srclist.txt: break link for vasnprintf.c.
89864
89865 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89866
89867         Port obstack to the AS/400, where pointers are 16 bytes wide and
89868         you cannot cast an integer to a valid pointer.  This patch is
89869         currently waiting to be integrated into glibc; see
89870         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89871
89872         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89873         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89874         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89875         (struct obstack): temp member is now a union of a pointer and
89876         an integer, instead of an integer.  All integer uses changed.
89877         This does not affect the physical layout of struct obstack,
89878         except on hosts (like the AS/400) where the size or alignment of
89879         void * is greater than that of ptrdiff_t.
89880         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89881         __STDC__)]: Store temporary in pointer member of union, not
89882         integer member.
89883         * lib/obstack.c: Include <stddef.h>, for offsetof.
89884         (struct fooalign): Remove; it doesn't need a name.
89885         (union fooround): Change double to long double, and add void *.
89886         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89887         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89888         not a macro.  Hence the values are always int; so remove all
89889         casts-to-int in uses.
89890
89891 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89892
89893         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89894         we can get this patch merged into glibc.
89895
89896 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89897             Paul Eggert  <eggert@cs.ucla.edu>
89898
89899         * m4/argp: Depend on alloca.
89900
89901 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89902             Paul Eggert  <eggert@cs.ucla.edu>
89903
89904         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89905         freecoding.
89906
89907 2004-05-17  Bruno Haible  <bruno@clisp.org>
89908
89909         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89910         precision that consists of a '.' followed by an empty digit string.
89911         Patch by Tor Lillqvist <tml@iki.fi>.
89912
89913 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89914
89915         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89916         for backward compatibility with older code.  We need our own
89917         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89918         it under some other name, and our alloca.h will define it.
89919
89920 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89921             Derek Price  <derek@ximbiot.com>
89922
89923         * lib/alloca.c: Include <alloca.h>, to get our interface.
89924         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89925         include <alloca.h> first.  Use C89 prototype for alloca; this
89926         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89927         Use #elif for simplicity, since we can assume C89 now.
89928         Don't try to source the system alloca.h since it will not be found
89929         and to prevent recursively including its replacement.
89930         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89931         * lib/regex.c: Likewise.
89932
89933 2004-05-16  Derek Price  <derek@ximbiot.com>
89934             Paul Eggert  <eggert@cs.ucla.edu>
89935
89936         getline cleanup.  This changes the getndelim2 API: both order of
89937         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89938         no delimiter).
89939
89940         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89941         interface does that.
89942         (getline): Always use getdelim, so that we don't have two
89943         copies of this code.
89944         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89945         if available.
89946         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89947         (GETNDELIM2_MAXIMUM): New macro.
89948         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89949         instead of the old practice of delim2==0.  All callers changed.
89950         Return -1 on overflow, instead of returning junk.
89951         Do not set *linesize unless allocation succeeds.
89952         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89953         that we include sys/types.h.
89954         * lib/getnline.h: Likewise.
89955         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89956         (getndelim2): Reorder arguments.
89957         * lib/getnline.c (getnline, getndelim):
89958         Don't discard the NMAX argument.
89959         (getnline): Invoke getndelim, to avoid code duplication.
89960         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89961         of (size_t) -1 by callers of the getnline family.
89962
89963 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89964
89965         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89966         Check for gettimeofday.
89967         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89968         Check for settimeofday, stime.
89969
89970 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89971
89972         * lib/nanosleep.c (suspended): Change its type from int to
89973         sig_atomic_t volatile.
89974         (first_call): Make it private to rpl_nanosleep, and have it
89975         be zero initially as that's a bit faster.
89976         (my_usleep): Round up fractional times instead of truncating them,
89977         as this is the usual meaning for 'sleep'.
89978
89979         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89980         doesn't work.
89981         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89982         (ENOSYS): Define if not defined.
89983         (settime): Fall back on stime if it exists and settimeofday fails.
89984         But don't bother with fallbacks if a method fails with errno == EPERM.
89985
89986 2004-05-11  Jim Meyering  <jim@meyering.net>
89987
89988         Prior to this change, the save_cwd caller required read access to the
89989         current directory on most systems (ones with the fchdir function).
89990
89991         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89992         fails, try write-only, and finally, resort to using xgetcwd.
89993
89994 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89995
89996         * lib/obstack.c, obstack.h: Import changes from libc.
89997
89998 2004-04-28  Bruno Haible  <bruno@clisp.org>
89999
90000         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90001         also implicitly appends .exe to executables.
90002         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90003         accepts Windows pathnames.
90004         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90005         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90006         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90007         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90008         Reported by Derek Robert Price <derek@ximbiot.com>.
90009
90010 2004-04-21  Karl Berry  <karl@gnu.org>
90011
90012         * config/srclist.txt (localcharset.c): break sync.
90013
90014 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90015
90016         * m4/host-os.m4: Add a copyright notice.
90017
90018 2004-04-20  Jim Meyering  <jim@meyering.net>
90019
90020         Change UTILS_ to gl_ in AC_DEFINE'd names.
90021         Change utils_- and jm_-prefixed variables, too.
90022         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90023         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90024         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90025
90026         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90027         Don't emit trailing blanks.
90028         Also rename jm_-prefixed variables to have gl_ prefix.
90029
90030         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90031         Also rename jm_-prefixed variables to have gl_ prefix.
90032
90033         * m4/jm-macros.m4: Reflect the renamings.
90034         * m4/prereq.m4: Likewise.
90035
90036 2004-04-20  Jim Meyering  <jim@meyering.net>
90037
90038         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90039         memory.
90040
90041 2004-04-20  Jim Meyering  <jim@meyering.net>
90042             Bruno Haible  <bruno@clisp.org>
90043
90044         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90045         memory when realloc fails.
90046
90047 2004-04-19  Jim Meyering  <jim@meyering.net>
90048
90049         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90050         now that readutmp.c may call `free (0)'.
90051
90052 2004-04-19  Bruno Haible  <bruno@clisp.org>
90053
90054         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90055         * m4/inttypes_h.m4: Likewise.
90056         * m4/stdint_h.m4: Likewise.
90057         * m4/intmax_t.m4: Likewise.
90058         * m4/uintmax_t.m4: Likewise.
90059
90060 2004-04-18  Jim Meyering  <jim@meyering.net>
90061
90062         * m4/prereq.m4: Don't forbid jm_ prefix.
90063
90064         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90065         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90066         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90067         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90068         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90069         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90070         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90071         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90072         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90073         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90074         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90075         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90076         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90077         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90078         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90079         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90080         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90081         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90082         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90083
90084 2004-04-18  Jim Meyering  <jim@meyering.net>
90085
90086         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90087         failure, don't leak memory and do call END_UTMP_ENT.
90088
90089 2004-04-16  Jim Meyering  <jim@meyering.net>
90090
90091         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90092         coreutils' stat program.
90093         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90094
90095 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90096
90097         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90098         C89.
90099         (CHAR_BIT): Remove, since we assume C89.
90100         Include <stdint.h> if available, as per current Autoconf CVS advice.
90101
90102 2004-03-31  Jim Meyering  <jim@meyering.net>
90103
90104         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90105         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90106         * m4/xalloc.m4: Likewise.
90107
90108 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90109
90110         Merge from coreutils.
90111
90112         * m4/inttostr.m4: New file.
90113         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90114         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90115         Require gl_CLOCK_TIME.
90116         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90117
90118 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90119
90120         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90121         not bool, to be more consistent with Unix conventions.
90122         Suggested by Bruno Haible.
90123
90124         Merge from coreutils.
90125
90126         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90127         * lib/umaxtostr.c: New files.
90128
90129         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90130         the usual <time.h> dance.
90131         (get_date): Change signature to support fractional time stamps.
90132         All callers changed.
90133         * lib/getdate.y: Include "getdate.h" first, as we can now
90134         assume C89 and don't need to worry about 'const'.
90135         Similarly, include "unlocked-io.h" near start, not in middle.
90136         Include <limits.h>.
90137         (textint.value): Use long int rather than int.
90138         (textint.digits): Use size_t rather than int.
90139         (BILLION, LOG10_BILLION): New constants.
90140         (parser_control): New member rel_ns.  Members day_ordinal,
90141         time_zone, month, day, hour, minutes, rel_year, rel_month,
90142         rel_day, rel_hour, rel_minutes, rel_seconds
90143         are now long int, not int.  Member seconds is now struct timespec,
90144         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90145         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90146         not int.
90147         (%union.intval): Now long int, not int.
90148         New member timespec.
90149         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90150         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90151         (spec): Now is a timespec or an item list.
90152         (timespec, items): New nonterminals.
90153         (time, rel, relunit, number, get_date):
90154         Add support for fractional seconds.
90155         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90156         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90157         (to_hour): First arg is now long int, not int.
90158         (to_year): Returns long int, not int.
90159         Don't treat year -70 like 70.
90160         (tm_diff): Returns long int, not int.
90161         (lookup_word): Use bool instead of int when appropriate.
90162         (yylex): Use size_t for count, not int.
90163         Detect overflow when parsing large integer constants.
90164         Add support for fractions.
90165         (get_date): Make pointers 'const' if possible.
90166         Use more-portable code to detect integer overflow.
90167         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90168         Don't use ctime; it's not reliable if the year has >4 digits.
90169
90170         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90171         This is for compatibility with BSD.
90172
90173         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90174         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90175         From coreutils' system.h.
90176
90177         * lib/userspec.c: Don't include "posixver.h".
90178         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90179         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90180         compatible extension.  Simplify code by removing a boolean int
90181         that was always nonzero if a string was nonnull.
90182
90183 2004-03-30  Jim Meyering  <jim@meyering.net>
90184
90185         Merge from coreutils.
90186
90187         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90188         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90189         on some systems one must include <grp.h> before it.
90190         Reported by Christian Krackowizer.
90191
90192 2004-03-30  Jim Meyering  <jim@meyering.net>
90193
90194         Merge from coreutils.
90195
90196         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90197
90198         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90199         an empty input stream.
90200
90201         * lib/readtokens.c: Include <stdbool.h>.
90202         (readtoken): Use `size_t' rather than int/long.
90203         All callers adjusted.
90204         Use `bool' rather than `int' where appropriate.
90205         Use memset rather than an explicit loop.
90206         Use x2nrealloc rather than xrealloc.
90207         Allow the use of `\0' as a delimiter.
90208         (readtokens): Likewise.
90209         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90210
90211 2004-03-30  Jim Meyering  <jim@meyering.net>
90212
90213         * m4/realloc.m4: Remove file, since now it does no more than
90214         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90215         the `configure.ac' section of module/realloc.
90216         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90217
90218 2004-03-30  Bruno Haible  <bruno@clisp.org>
90219
90220         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90221         nonnull.
90222
90223 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90224
90225         Merge changes to getloadavg.c from coreutils and Emacs.
90226
90227         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90228         Define to an expression, not to the empty string.
90229         Include cloexec.h and xalloc.h.
90230         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90231         Use set_cloexec_flag rather than rolling our own.
90232         * lib/cloexec.c, lib/cloexec.h: New files.
90233
90234 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90235
90236         * m4/cloexec.m4: New file.
90237
90238 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90239
90240         * lib/getopt.h: Sync with libc CVS.
90241
90242 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90243             Bruno Haible  <bruno@clisp.org>
90244
90245         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90246         mbswidth.
90247
90248 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90249             Bruno Haible  <bruno@clisp.org>
90250
90251         * lib/mbswidth.h: Include <wchar.h> only if
90252         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90253         <wchar.h>.
90254         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90255
90256 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90257
90258         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90259         Sync with libc CVS.
90260         * lib/getopt_int.h: New file, also synced from libc.
90261
90262 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90263
90264         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90265         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90266         Bring back getopt.c, getopt.h, getopt1.c.
90267
90268 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90269
90270         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90271         All uses changed.  Check for sa_sigaction member; this fixes
90272         a bug first reported by Jason Andrade in
90273         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90274
90275 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90276
90277         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90278         '#if' expressions.  Unlike the code it replaces, it does not
90279         depend on (defined _SC_PAGESIZE).  However, it does depend on
90280         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90281         first reported by Jason Andrade in
90282         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90283
90284 2004-02-25  Simon Josefsson  <jas@extundo.com>
90285
90286         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90287
90288 2004-02-25  Simon Josefsson  <jas@extundo.com>
90289
90290         * lib/strdup.h: New file.
90291         * lib/strdup.c: Include it.
90292         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90293         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90294
90295 2004-02-23  Karl Berry  <karl@gnu.org>
90296
90297         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90298         (from fencepost.gnu.org:/gd/gnuorg).
90299
90300 2004-02-23  Karl Berry  <karl@gnu.org>
90301
90302         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90303         * config/srclist.txt: add maintain/standards documents.
90304
90305 2004-02-18  Bruno Haible  <bruno@clisp.org>
90306
90307         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90308         Reported by Derek Robert Price <derek@ximbiot.com>.
90309
90310 2004-02-16  Karl Berry  <karl@gnu.org>
90311
90312         * config/mkinstalldirs, install-sh: update from automake.
90313
90314 2004-02-06  Karl Berry  <karl@gnu.org>
90315
90316         * m4/po.m4: update from gettext 0.14.1.
90317
90318 2004-02-06  Karl Berry  <karl@gnu.org>
90319
90320         * lib/config.charset: update from gettext 0.14.1.
90321
90322 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90323
90324         Add comments and code, prompted by suggestions from Bruno Haible
90325         for sh-quote.
90326         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90327         describing the enum quoting_style values.
90328         * lib/quotearg.c (quotearg_alloc): New function.
90329         (quotearg_buffer_restyled): Treat lone { and } as special.
90330         Treat = as special.  Work around bug with older shells
90331         that "see" a '\' that is really the 2nd byte of a multibyte char.
90332         Quote empty string with shell_quoting_style.
90333
90334 2004-02-03  Bruno Haible  <bruno@clisp.org>
90335
90336         * m4/pipe.m4: New file, from GNU gettext.
90337
90338 2004-02-03  Bruno Haible  <bruno@clisp.org>
90339
90340         * lib/pipe.h: New file, from GNU gettext.
90341         * lib/pipe.c: New file, from GNU gettext.
90342
90343 2004-01-27  Bruno Haible  <bruno@clisp.org>
90344
90345         * m4/execute.m4: New file, from GNU gettext.
90346
90347 2004-01-27  Bruno Haible  <bruno@clisp.org>
90348
90349         * lib/execute.h: New file, from GNU gettext.
90350         * lib/execute.c: New file, from GNU gettext.
90351         * lib/w32spawn.h: New file, from GNU gettext.
90352
90353 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90354
90355         Merge from diffutils.
90356
90357         * lib/file-type.c (file_type): Add typed memory objects.
90358         * lib/file-type.h (S_TYPEISTMO): New macro.
90359
90360         * lib/c-stack.h (c_stack_action): Remove argv argument.
90361         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90362         (die): Don't calculate message unless segv_action returns.
90363         (get_stack_location, min_address_from_argv, max_address_from_argv,
90364         volatile stack_base, volatile_stack_size): Remove.
90365         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90366         that every segmentation violation is a stack overflow.  (Ouch!)
90367         See Debian bug 136249 (still outstanding) for more info about why
90368         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90369
90370 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90371
90372         Exit-status fix from coreutils.
90373
90374         Use exit_failure consistently in place of EXIT_FAILURE,
90375         so that program exit statuses are consistent on failure.
90376
90377         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90378         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90379         * lib/argmatch.h: Comment fix to match the above.
90380         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90381         Now a macro referring to exit_failure, instead of a separate
90382         variable.  Include "exitfail.h" to get it.
90383         * lib/xstrtol.h: Include "exitfail.h".
90384         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90385
90386         * lib/long-options.c (parse_long_options): Use prototype
90387         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90388         for clarity.
90389
90390 2004-01-21  Jim Meyering  <jim@meyering.net>
90391
90392         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90393         so as not to conflict with a different-sized __mktime_internal
90394         function in GNU libc.
90395         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90396         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90397
90398 2004-01-20  Karl Berry  <karl@gnu.org>
90399
90400         * config/config.guess: update from config.
90401
90402         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90403
90404 2004-01-20  Bruno Haible  <bruno@clisp.org>
90405
90406         Safer stack allocation.
90407         * lib/setenv.c: Include allocsa.h.
90408         (alloca): Remove fallback definition.
90409         (freea): Remove macro.
90410         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90411         instead of freea.
90412
90413 2004-01-20  Bruno Haible  <bruno@clisp.org>
90414
90415         * m4/eealloc.m4: New file, from GNU gettext.
90416
90417 2004-01-20  Bruno Haible  <bruno@clisp.org>
90418
90419         * m4/allocsa.m4: New file, from GNU gettext.
90420
90421 2004-01-20  Bruno Haible  <bruno@clisp.org>
90422
90423         * lib/xallocsa.h: New file, from GNU gettext.
90424         * lib/xallocsa.c: New file, from GNU gettext.
90425
90426 2004-01-20  Bruno Haible  <bruno@clisp.org>
90427
90428         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90429
90430 2004-01-20  Bruno Haible  <bruno@clisp.org>
90431
90432         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90433         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90434         specially.
90435
90436 2004-01-20  Bruno Haible  <bruno@clisp.org>
90437
90438         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90439         patch.
90440
90441 2004-01-20  Bruno Haible  <bruno@clisp.org>
90442
90443         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90444
90445 2004-01-20  Bruno Haible  <bruno@clisp.org>
90446
90447         * lib/eealloc.h: New file.
90448
90449 2004-01-20  Bruno Haible  <bruno@clisp.org>
90450
90451         * lib/binary-io.h: Avoid warnings on Cygwin.
90452
90453 2004-01-20  Bruno Haible  <bruno@clisp.org>
90454
90455         * lib/allocsa.h: New file, from GNU gettext.
90456         * lib/allocsa.c: New file, from GNU gettext.
90457
90458 2004-01-18  Karl Berry  <karl@gnu.org>
90459
90460         * doc/gpl.texi, doc/lgpl.texi: new files.
90461
90462 2004-01-18  Karl Berry  <karl@gnu.org>
90463
90464         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90465         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90466
90467 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90468
90469         Merge from coreutils.
90470
90471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90472         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90473         (gl_DEFAULT_POSIX2_VERSION): Move
90474         the documentation from 'configure' into 'config.hin',
90475         so that 'configure --help' isn't burdened by it and
90476         we don't have to worry about its formatting there.
90477         Reword the documentation so that it's more succinct
90478         and can be run together into a single paragraph.
90479         * m4/same.m4 (gl_SAME): Check for pathconf.
90480
90481 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90482
90483         Merge from coreutils.
90484
90485         * lib/posixver.c: Include posixver.h.
90486
90487         * lib/same.c: Include <stdbool.h>, <limits.h>.
90488         (_POSIX_NAME_MAX): Define if not defined.
90489         (MIN): New macro.
90490         (same_name): If file names are silently truncated, report
90491         that the file names are the same if they are the same after
90492         the silent truncation.
90493
90494         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90495         conversion function.
90496         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90497         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90498         longer needed.
90499
90500 2004-01-15  Jim Meyering  <jim@meyering.net>
90501
90502         Merge from coreutils.
90503
90504         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90505         if no library is required.
90506         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90507         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90508         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90509         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90510         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90511         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90512         value, $ac_cv_search_crypt, if it's "none required".
90513         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90514         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90515         not gl_FUNC_GETLOADAVG.
90516         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90517         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90518
90519 2004-01-15  Jim Meyering  <jim@meyering.net>
90520
90521         Merge from coreutils.
90522
90523         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90524         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90525         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90526
90527         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90528         optional configure-time default.
90529
90530         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90531
90532         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90533
90534 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90535
90536         Merge from coreutils.
90537
90538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90539         value, $ac_cv_search_nanosleep, if it's "none required".
90540
90541 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90542
90543         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90544         with like-named macro in fnmatch.c.
90545         (EXT): Use an internal constant instead.
90546
90547         Merge fnmatch patches from glibc.
90548         * lib/fnmatch.c (mbsinit): Remove define.
90549         Add libc_hidden_ver (__fnmatch, fnmatch).
90550         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90551         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90552
90553 2004-01-14  Karl Berry  <karl@gnu.org>
90554
90555         * config/install-sh: update from automake.
90556
90557 2004-01-13  Karl Berry  <karl@gnu.org>
90558
90559         * config/install-sh: update from automake.
90560
90561 2004-01-09  Karl Berry  <karl@gnu.org>
90562
90563         * config/install-sh: update from automake.
90564
90565 2004-01-05  Karl Berry  <karl@gnu.org>
90566
90567         * config/config.{sub,guess}: update from config.
90568
90569 2003-12-31  Karl Berry  <karl@gnu.org>
90570
90571         * config/depcomp: update from automake.
90572
90573 2003-12-14  Karl Berry  <karl@gnu.org>
90574
90575         * lib/config.charset: update from gettext-runtime.
90576
90577 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90578
90579         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90580         Bug reported by Alfred M. Szmidt.
90581
90582 2003-12-03  Bruno Haible  <bruno@clisp.org>
90583
90584         * m4/gettext.m4: Upgrade from gettext-0.13.
90585         * m4/po.m4: Upgrade from gettext-0.13.
90586         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90587         * m4/intmax.m4: New file, from gettext-0.13.
90588         * m4/printf-posix.m4: New file, from gettext-0.13.
90589
90590 2003-11-29  Karl Berry  <karl@gnu.org>
90591
90592         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90593
90594 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90595             Bruno Haible  <bruno@clisp.org>
90596
90597         * lib/printf-parse.h: Don't include sys/types.h.
90598         (ARG_NONE): New macro.
90599         (char_directive): Change type of *arg_index fields to size_t.
90600         * lib/printf-parse.c: Don't include sys/types.h.
90601         (SSIZE_MAX): Remove macro.
90602         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90603         Remove unnecessary overflow check.
90604         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90605         fields.
90606
90607 2003-11-25  Bruno Haible  <bruno@clisp.org>
90608
90609         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90610
90611 2003-11-25  Bruno Haible  <bruno@clisp.org>
90612
90613         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90614         gt_TYPE_SSIZE_T.
90615
90616 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90617
90618         * modules/alloca: Remove dependency on xalloc.
90619
90620 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90621
90622         * lib/alloca.c: Remove dependency on xalloc module.
90623         (xalloc_die): Remove.
90624         (memory_full) [!defined emacs]: New macro.
90625         [!defined emacs]: Don't include xalloc.h.
90626         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90627         address arithmetic overflows.  Change datatypes a bit to avoid
90628         unnecessary casts.
90629
90630 2003-11-22  Jim Meyering  <jim@meyering.net>
90631
90632         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90633         s/size/size_t/.
90634
90635 2003-11-21  Karl Berry  <karl@gnu.org>
90636
90637         * config/config.{sub,guess}: update from config.
90638
90639 2003-11-18  Karl Berry  <karl@gnu.org>
90640
90641         * config/config.{sub,guess}: update from config.
90642
90643         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90644
90645 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90646
90647         * README: Mention that S+T cannot overflow if S is the size of
90648         an existing object and T is sufficiently small.
90649
90650 2003-11-17  Jim Meyering  <jim@meyering.net>
90651
90652         On systems without utime and without a utimes function capable of
90653         dealing with a NULL struct utimbuf* argument, this utime replacement
90654         could -- in unusual circumstances -- leak a file descriptor.
90655         * lib/utime.c: Include <unistd.h> and <errno.h>.
90656         (utime_null): Be sure to close `fd' and to preserve errno.
90657         Reported by Geoff Collyer via Arnold Robbins.
90658
90659 2003-11-17  Bruno Haible  <bruno@clisp.org>
90660
90661         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90662         (Depends-on): Add xsize.
90663
90664 2003-11-17  Bruno Haible  <bruno@clisp.org>
90665
90666         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90667
90668 2003-11-17  Bruno Haible  <bruno@clisp.org>
90669
90670         * lib/vasnprintf.c (alloca): Remove fallback definition.
90671         (freea): Remove definition.
90672         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90673         Reported by Paul Eggert.
90674
90675 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90676             Bruno Haible  <bruno@clisp.org>
90677
90678         Protect against address arithmetic overflow.
90679         * lib/printf-args.h: Include stddef.h.
90680         (arguments): Change type of field 'count' to size_t.
90681         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90682         'unsigned int' where appropriate.
90683         * lib/printf-parse.h: Include sys/types.h.
90684         (char_directive): Change type of *arg_index fields to ssize_t.
90685         (char_directives): Change type of fields 'count', max_*_length to
90686         size_t.
90687         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90688         (SSIZE_MAX): Define fallback value.
90689         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90690         instead of 'int' where appropriate. Check a_allocated, d_allocated
90691         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90692         * lib/vasnprintf.c: Include xsize.h.
90693         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90694         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90695         overflow. Avoid wraparound when converting a width or precision from
90696         decimal to binary.
90697
90698 2003-11-16  Bruno Haible  <bruno@clisp.org>
90699
90700         Update from GNU gettext.
90701         * lib/printf-parse.c: Generalize to it can be compiled for wide
90702         strings.
90703         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90704         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90705         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90706         SNPRINTF): New macros.
90707         Don't include <alloca.h> if the file is used inside libintl.
90708         (local_wcslen): New function, for Solaris 2.5.1.
90709         (VASNPRINTF): Use it instead of wcslen.
90710
90711 2003-11-16  Bruno Haible  <bruno@clisp.org>
90712
90713         * lib/xsize.h (xmax): New function.
90714         (xsum, xsum3, xsum4): Declare as "pure" functions.
90715
90716 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90717
90718         * modules/xalloc (Files): Undo latest change, since xalloc.h
90719         no longer needs SIZE_MAX or PTRDIFF_MAX.
90720
90721 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90722
90723         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90724         gl_PTRDIFF_MAX.
90725
90726 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90727
90728         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90729         "return", to pacify some unknown compiler.  Problem reported
90730         by Joerg Schilling.
90731
90732 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90733
90734         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90735         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90736         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90737         heuristic is just as accurate as far as we know, and it removes a
90738         dependency on size_max.m4 and ptrdiff_max.m4.
90739
90740 2003-11-11  Bruno Haible  <bruno@clisp.org>
90741
90742         * modules/xsize (Files): Add m4/size_max.m4.
90743         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90744
90745 2003-11-11  Bruno Haible  <bruno@clisp.org>
90746
90747         * m4/size_max.m4: New file.
90748         * m4/ptrdiff_max.m4: New file.
90749         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90750         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90751         (gl_XALLOC): Invoke it.
90752
90753 2003-11-11  Bruno Haible  <bruno@clisp.org>
90754
90755         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90756         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90757         defined.
90758
90759 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90760
90761         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90762         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90763         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90764         From Bruno Haible.
90765         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90766         not (size_t) -1, since it's defined here.
90767
90768 2003-11-09  Karl Berry  <karl@gnu.org>
90769
90770         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90771
90772 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90773
90774         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90775         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90776         Reject sizes of exactly SIZE_MAX bytes.
90777         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90778         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90779
90780 2003-11-05  Bruno Haible  <bruno@clisp.org>
90781
90782         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90783         SIZE_MAX defined in <limits.h> on Solaris.
90784
90785 2003-11-04  Jim Meyering  <jim@meyering.net>
90786
90787         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90788         variable names, rather than @VAR@.
90789         * modules/poll: Likewise.
90790
90791 2003-11-04  Bruno Haible  <bruno@clisp.org>
90792
90793         * modules/xsize: New file.
90794         * modules/linebreak: Depend on xsize.
90795         * MODULES.html.sh (func_all_modules): Add xsize.
90796
90797 2003-11-04  Bruno Haible  <bruno@clisp.org>
90798
90799         * m4/xsize.m4: New file.
90800
90801 2003-11-04  Bruno Haible  <bruno@clisp.org>
90802
90803         * lib/xsize.h: New file.
90804         * lib/linebreak.c: Include xsize.h.
90805         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90806         argument for overflow.
90807         Suggested by Paul Eggert.
90808
90809 2003-11-03  Karl Berry  <karl@gnu.org>
90810
90811         * config/config.{guess,sub}: update from config.
90812
90813 2003-11-03  Jim Meyering  <jim@meyering.net>
90814
90815         * modules/userspec (lib_SOURCES): Add userspec.h.
90816         (Include): Add "userspec.h".
90817         Improve description.
90818
90819 2003-11-03  Jim Meyering  <jim@meyering.net>
90820
90821         * lib/userspec.c: Include "userspec.h".
90822         * lib/userspec.h: New file.
90823
90824 2003-11-03  Bruno Haible  <bruno@clisp.org>
90825
90826         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90827
90828 2003-11-03  Bruno Haible  <bruno@clisp.org>
90829
90830         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90831         available, to avoid (extremely rare) race condition.
90832         Suggested by Paul Eggert.
90833
90834 2003-11-02  Karl Berry  <karl@gnu.org>
90835
90836         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90837
90838 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90839
90840         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90841         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90842         (read_filesystem_list): Set and use me_type_malloced.
90843         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90844         whatever the type happens to be), for brevity and consistency.
90845         Check for size calculation overflow on Alphas running OSF/1.
90846
90847 2003-10-31  Jim Meyering  <jim@meyering.net>
90848
90849         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90850
90851         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90852
90853 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90854             Bruno Haible  <bruno@clisp.org>
90855
90856         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90857         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90858
90859 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90860
90861         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90862         netbsd*-gnu*.  Suggested by Robert Millan.
90863
90864 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90865
90866         * modules/group-member: Depend on stdbool.
90867
90868 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90869
90870         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90871
90872 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90873
90874         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90875         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90876         after the 'gnu' in these cases.  This fixes some bugs in the
90877         previous change, and is based on suggestions by Robert Millan.
90878
90879 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90880
90881         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90882         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90883         no longer needed.
90884         * lib/quotearg.c (quotearg_n_options): Use it.
90885         * lib/group-member.c: Include <stdbool.h>.
90886         (free_group_info): Arg is now const *; don't free arg.
90887         (get_group_info): Now returns bool and accepts struct group_info *,
90888         rather than returning a malloc'ed struct group_info *.
90889         All uses changed.  Check for overflow in internal size calculation.
90890
90891         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90892         rather than xmalloc/xrealloc.
90893         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90894         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90895         conformance bug: the old code used a pointer after freeing the
90896         storage that it addressed.
90897         * lib/hash.c (hash_initialize): Simplify the code by using
90898         xalloc_oversized rather than doing it by hand.
90899         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90900         the buffer preserved.  Use free and xmalloc instead.
90901         * lib/quotearg.c (quotearg_n_options): Likewise.
90902         Use a simpler test for size overflow.  Don't use xalloc_oversized
90903         because unsigned int might be wider than size_t (!); this suggests
90904         that we should switch from unsigned int to size_t for slot numbers.
90905
90906 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90907
90908         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90909         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90910         NetBSD kernels.  Requested by Richard Stallman.
90911
90912 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90913
90914         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90915         to allocate the returned structure.  Do not allocate a subarray,
90916         as x2nrealloc will do that.
90917         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90918         instead of xnrealloc.
90919         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90920
90921 2003-10-27  Bruno Haible  <bruno@clisp.org>
90922
90923         * lib/stdbool_.h: Better support for BeOS.
90924
90925 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90926
90927         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90928         now uses inline.
90929
90930 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90931
90932         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90933         callers that want to do their own size-overflow checking.  Include
90934         <stdbool.h>, since xalloc_oversized returns bool.
90935         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90936         to use xalloc_oversized.
90937
90938         Add two functions x2realloc, x2nrealloc, for programs that grow
90939         arrays dynamically by doubling their sizes.
90940         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90941         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90942         New functions.
90943
90944         Port to C99 semantics for 'inline' of external functions.
90945         Bug reported by Bruno Haible.
90946         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90947         with the old contents of xnmalloc.
90948         (xnmalloc, xmalloc): Use it.
90949         (xnrealloc_inline): New static inline function,
90950         with the old contents of xnrealloc.
90951         (xnrealloc, xrealloc): Use it.
90952
90953         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90954         that.
90955
90956 2003-10-26  Karl Berry  <karl@gnu.org>
90957
90958         * config/srclist.txt (COPYING.DOC): no longer available from
90959         /gd/gnuorg; don't know where the ultimate source is.
90960
90961 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90962
90963         Fix several address-calculation bugs in the hash modules,
90964         plus some minor code cleanup.
90965
90966         * lib/hash.h: Include <stdbool.h>, for bool.
90967         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90968         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90969         hash_get_n_entries, hash_get_max_bucket_length,
90970         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90971         hash_rehash): Use size_t rather than unsigned.
90972         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90973         hash_get_n_buckets_used, hash_get_n_entries,
90974         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90975         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90976         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90977         Likewise.
90978         (SIZE_MAX): Define if not defined.
90979         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90980         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90981         hash_print):
90982         Use const * when possible.
90983         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90984         (check_tuning): Fix bug: if tuning parameters were very close to
90985         0 or 1, rounding errors could have caused subscript violations.
90986         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90987         (hash_initialize): Add 'fail:' label
90988         to free table and return NULL, and use it to simplify code.
90989         Use calloc rather than clearing the storage ourself.
90990         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90991         buffer size calculations.
90992         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90993         Include <stddef.h>, for size_t.
90994         * lib/hash-pjw.c (hash_pjw): Likewise.
90995         Switch to method described by Bruno Haible.
90996         Include <limits.h>, for CHAR_BIT.
90997         (SIZE_BITS): New macro.
90998
90999 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91000
91001         * m4/getline.m4 (AM_FUNC_GETLINE):
91002         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91003         hosts.  Problem reported by Derek Robert Price in
91004         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91005         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91006         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91007
91008 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91009
91010         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91011         ceiling the allocation at NMAX bytes rather than silently
91012         discarding input bytes before NMAX is reached.  This makes
91013         a difference only if NMAX exceeds SIZE_MAX / 2.
91014
91015         * lib/obstack.c: Merge from glibc.
91016         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91017         Add libc_hidden_def (_obstack_newchunk).
91018         (_obstack_free) [! defined _LIBC]: Remove.
91019         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91020         a clone of the function body.
91021         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91022         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91023
91024         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91025         glibc.
91026         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91027         arg to memcpy.
91028
91029         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91030         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91031         Don't use lvalue casts, as GCC plans to remove support for them
91032         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91033         was also present in the non-GCC version, indicating that this
91034         code had always been buggy and had never been widely used.
91035         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91036         Use the fast variant of each macro, rather than copying the
91037         definiens of the fast variant; that way, we'll be more likely to
91038         catch future bugs in the fast variants.
91039
91040 2003-10-20  Bruno Haible  <bruno@clisp.org>
91041
91042         * modules/wait-process: New file.
91043         * MODULES.html.sh (func_all_modules): Add wait-process.
91044
91045 2003-10-20  Bruno Haible  <bruno@clisp.org>
91046
91047         * m4/wait-process.m4: New file.
91048
91049 2003-10-20  Bruno Haible  <bruno@clisp.org>
91050
91051         * lib/wait-process.h: New file, from GNU gettext.
91052         * lib/wait-process.c: New file, from GNU gettext.
91053
91054 2003-10-19  Jim Meyering  <jim@meyering.net>
91055
91056         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91057         HPUX 10.20.
91058
91059 2003-10-18  Karl Berry  <karl@gnu.org>
91060
91061         * config/config.guess: update from config.
91062
91063 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91064
91065         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91066         (getgroups): First arg is int, not size_t.
91067         Don't let 'free' mangle errno.
91068
91069 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91070
91071         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91072
91073 2003-10-16  Karl Berry  <karl@gnu.org>
91074
91075         * config/config.{guess,sub}: update from config.
91076
91077 2003-10-16  Jim Meyering  <jim@meyering.net>
91078
91079         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91080         memcpy.
91081
91082 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91083
91084         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91085         (SIZE_MAX): Remove.
91086         (new_exclude, add_exclude_file): Initial size no longer needs to
91087         be a power of 2.
91088         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91089         our own address arithmetic overflow checking.
91090
91091         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91092         (fnmatch): Do not alloca more than 2000 wide characters;
91093         instead, use malloc for large buffers.
91094         Check for address arithmetic overflow, and return -1
91095         with errno set to ENOMEM in that case.
91096         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91097         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91098         instead, return -1.  Check for address arithmetic overflow.
91099
91100 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91101
91102         Handle invalid suffixes and overflow independently, so that
91103         callers can treat them independently as needed.  Fix some bugs in
91104         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91105         suffix for a human-readable blocksize.  The major caller-visible
91106         change is the addition of a new
91107         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91108         that both overflow and suffix chars were found.
91109
91110         * lib/human.c (humblock): Don't check separately for invalid suffix
91111         char; that is xstrtoumax's job (now that its bug is fixed).
91112         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91113         INTMAX_MAX]: New macros.
91114         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91115         TYPE_MAXIMUM): New macros.
91116         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91117         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91118         if overflow occurs, as it's what __strtol does and it's more useful
91119         in practice.
91120         (__xstrtol): If __strtol reports some error other than ERANGE,
91121         reflect it to the caller as LONGINT_INVALID.  If it reports
91122         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91123         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91124         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91125         value.
91126         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91127         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91128         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91129         [defined UINTMAX_MAX]: New macros.
91130
91131 2003-10-14  Bruno Haible  <bruno@clisp.org>
91132
91133         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91134
91135 2003-10-14  Bruno Haible  <bruno@clisp.org>
91136
91137         * m4/sig_atomic_t: New file, from GNU gettext.
91138         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91139
91140 2003-10-14  Bruno Haible  <bruno@clisp.org>
91141
91142         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91143         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91144         Also use volatile where needed.
91145
91146 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91147
91148         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91149         Change maintainer from Bruno Haible to 'all'.
91150
91151 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91152
91153         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91154
91155 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91156
91157         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91158         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91159         and define in terms of the other primitives.
91160         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91161         (SIZE_MAX): Define if not already defined.
91162         (array_size_overflow): New function.
91163         (xalloc_die): Abort instead of exiting if 'error' returns.
91164         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91165         (xmalloc, xrealloc): Use them.
91166         (xcalloc): Check for address arithmetic overflow.
91167         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91168         a bit faster than strcpy.
91169
91170 2003-10-10  Simon Josefsson  <jas@extundo.com>
91171
91172         * modules/argp (Depends-on): Add restrict and strcase.
91173
91174 2003-10-10  Simon Josefsson  <jas@extundo.com>
91175
91176         * m4/argp.m4: Add AC_C_INLINE.
91177
91178 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91179
91180         Merge getpass from libc, plus a few fixes.
91181
91182         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91183         Include <stdbool.h>.
91184         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91185         __fsetlocking to empty.
91186         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91187         do include <bits/libc-lock.h>.
91188         Do not include <fcntl.h>; not needed.
91189         [_LIBC]: Include <wchar.h>.
91190         (NOTCANCEL_MODE): New macro.
91191         (flockfile, funlockfile) [_LIBC]: New macros.
91192         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91193         [!_LIBC]: New macros.
91194         (call_fclose): New function.
91195         (getpass): Use it.  Save tty stream separately; this simplifies the
91196         code and makes it more reliable if stdin happens to equal stdout.
91197         Invoke __fsetlocking on tty.
91198         Handle thread cancellation if needed.
91199         Namespace cleanup (use __tcgetattr, __getline).
91200         Use bool for Booleans.
91201         [USE_IN_LIBIO]: Handle wide streams.
91202         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91203         stream might go where.
91204
91205         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91206         doesn't have to include <stdio.h> before us.
91207         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91208         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91209         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91210         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91211         if not declared, so that we can use getpass.c code from libc without
91212         rewriting it.
91213         (flockfile, ftrylockfile, funlockfile): New macros.
91214
91215 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91216
91217         * modules/getpass: Depend on stdbool.
91218
91219 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91220
91221         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91222
91223 2003-10-07  Karl Berry  <karl@gnu.org>
91224
91225         * config/config.{guess,sub}: update from config.
91226
91227 2003-10-06  Jim Meyering  <jim@meyering.net>
91228             Bruno Haible  <bruno@clisp.org>
91229
91230         This lets translators provide better translations for the
91231         "Written by ..." part of --version output.
91232         * lib/version-etc.h: Include stdarg.h.
91233         (version_etc_copyright): Declare as readonly.
91234         (version_etc): Make this function variadic with a NULL-terminated list
91235         of author name strings.
91236         (version_etc_va): New declaration.
91237         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91238         (version_etc_copyright): Declare as readonly.
91239         (version_etc_va): New function. Provide a different translatable string
91240         for each possible number of authors < 10. Abbreviate when there are 10
91241         authors or more.
91242         (version_etc): Make this function variadic. Call version_etc_va.
91243         Suggestion from Gary V. Vaughan.
91244
91245         * lib/long-options.h (parse_long_options): Change prototype: the
91246         authors string is moved to the end and becomes variadic.
91247         * lib/long-options.c: Include stdarg.h.
91248         (parse_long_options): Make this function variadic, too.
91249         Call version_etc_va, not version_etc.
91250
91251 2003-10-06  Bruno Haible  <bruno@clisp.org>
91252
91253         * modules/version-etc-2: Remove file.
91254         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91255
91256 2003-10-06  Bruno Haible  <bruno@clisp.org>
91257
91258         * modules/fatal-signal: New file.
91259         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91260
91261 2003-10-06  Bruno Haible  <bruno@clisp.org>
91262
91263         * m4/fatal-signal.m4: New file.
91264         * m4/signalblocking.m4: New file, from GNU gettext.
91265
91266 2003-10-06  Bruno Haible  <bruno@clisp.org>
91267
91268         * lib/version-etc-2.h: Remove file.
91269         * lib/version-etc-2.c: Remove file.
91270
91271 2003-10-06  Bruno Haible  <bruno@clisp.org>
91272
91273         * lib/fatal-signal.h: New file, from GNU gettext.
91274         * lib/fatal-signal.c: New file, from GNU gettext.
91275
91276 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91277
91278         * README: Rework advice for preventing empty .o files.
91279         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91280         not <sys/types.h>.
91281
91282 2003-10-04  Karl Berry  <karl@gnu.org>
91283
91284         * lib/argp*: update from libc.
91285
91286 2003-10-04  Karl Berry  <karl@gnu.org>
91287
91288         * config/config.{guess,sub}: update from config.
91289
91290 2003-10-02  Bruno Haible  <bruno@clisp.org>
91291
91292         * modules/lchown (Include): Add lchown.h.
91293         * modules/time_r (Include): Use "..." syntax.
91294         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91295
91296 2003-10-01  Simon Josefsson  <jas@extundo.com>
91297
91298         * MODULES.html.sh (func_all_modules): Move gethostname from section
91299         'based on' to section 'lacking' POSIX:2001.
91300
91301 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91302
91303         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91304         to output mode on the same stream.
91305
91306 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91307
91308         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91309         Fix arg typo in previous patch.
91310
91311 2003-09-28  Jim Meyering  <jim@meyering.net>
91312
91313         * lib/error.c: Correct cpp indentation.
91314
91315 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91316
91317         * modules/free: New file.
91318
91319 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91320
91321         * m4/free.m4: New file.
91322
91323 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91324
91325         * lib/minmax.h (MIN, MAX)
91326         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91327         Omit the special code that used __typeof__, since we worry that
91328         it could be more trouble than it's worth.  See:
91329         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91330         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91331
91332         * lib/free.c: New file.
91333
91334 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91335
91336         Trivial fixes to Makefile.am parts of module listings.
91337         * modules/strstr: Append strstr.h to lib_SOURCES.
91338         * modules/strcase: Likewise, for strcase.h.
91339
91340 2003-09-27  Karl Berry  <karl@gnu.org>
91341
91342         * config/mkinstalldirs: update from automake.
91343
91344 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91345
91346         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91347         (error_tail): Do not loop, reallocating temporary buffer, since
91348         the output cannot contain more wide characters than the input
91349         contains bytes, the size must be big enough already.  This avoids
91350         one potential size overflow calculation.  Check for size overflow
91351         when calculating temporary buffer size.  Free temporary buffer
91352         when done, if it was allocated with malloc; this plugs a memory
91353         leak.  Remove casts from void * to pointers, that are no longer
91354         needed now that we're assuming C89 or better.
91355
91356         Merge error changes from glibc.
91357
91358         * lib/error.c, error.h: Update copyright notice header to match glibc.
91359         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91360         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91361         Disable cancellation while printing error.
91362         * lib/error.h: Prepend __ to parameter names.
91363
91364 2003-09-26  Jim Meyering  <jim@meyering.net>
91365
91366         * lib/error.c (error_tail): Move some declarations
91367         into inner scope where the local variables are used.
91368
91369 2003-09-26  Bruno Haible  <bruno@clisp.org>
91370
91371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91372         stpncpy().
91373         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91374
91375 2003-09-26  Bruno Haible  <bruno@clisp.org>
91376
91377         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91378         (stpncpy): Define as alias for gnu_stpncpy.
91379         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91380
91381 2003-09-25  Simon Josefsson  <jas@extundo.com>
91382
91383         * lib/xgetdomainname.h: New file.
91384         * lib/xgetdomainname.c: New file.
91385
91386 2003-09-25  Simon Josefsson  <jas@extundo.com>
91387             Bruno Haible  <bruno@clisp.org>
91388
91389         * modules/getdomainname: New file.
91390         * modules/xgetdomainname: New file.
91391         * MODULES.html.sh (func_all_modules): Add getdomainname,
91392         xgetdomainname.
91393
91394 2003-09-25  Simon Josefsson  <jas@extundo.com>
91395             Bruno Haible  <bruno@clisp.org>
91396
91397         * m4/getdomainname.m4: New file.
91398
91399 2003-09-25  Simon Josefsson  <jas@extundo.com>
91400             Bruno Haible  <bruno@clisp.org>
91401
91402         * lib/getdomainname.h: New file.
91403         * lib/getdomainname.c: New file.
91404
91405 2003-09-25  Karl Berry  <karl@gnu.org>
91406
91407         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91408
91409 2003-09-25  Karl Berry  <karl@gnu.org>
91410
91411         * config/install-sh: update from automake.
91412
91413 2003-09-25  Bruno Haible  <bruno@clisp.org>
91414
91415         * modules/version-etc-2: New file, from modules/version-etc with
91416         modifications.
91417         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91418
91419 2003-09-25  Bruno Haible  <bruno@clisp.org>
91420
91421         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91422         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91423
91424 2003-09-24  Simon Josefsson  <jas@extundo.com>
91425
91426         * modules/xgethostname: Add xgethostname.h.
91427
91428 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91429
91430         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91431         the buffer associated with the argument.  Bug reported by
91432         Simon Josefsson.
91433
91434 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91435
91436         * README: Document assumptions that 'int' is at least 32 bits
91437         wide, that integer arithmetic is 2's complement without overflow,
91438         that there are no holes in integer values, that adding sizes of
91439         two nonoverlapping objects can't overflow, and that all-bits-zero
91440         yields scalar zero.  Fix spelling and capitalization typos.
91441
91442 2003-09-19  Karl Berry  <karl@gnu.org>
91443
91444         * lib/argp.h: update from libc.
91445
91446 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91447
91448         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91449         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91450         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91451
91452 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91453
91454         * gnulib-tool: Use "test -h", not "test -L", for portability
91455         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91456         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91457         (sed_extract_prog): Issue s commands one-by-one, rather than
91458         using \| in one s command.
91459
91460 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91461
91462         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91463         input error, instead of returning NULL the next time we are called
91464         (and therefore losing track of errno).
91465
91466 2003-09-16  Bruno Haible  <bruno@clisp.org>
91467
91468         * gnulib-tool (func_create_testdir): Warn about duplicated
91469         dependencies.
91470
91471 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91472
91473         * modules/argmatch, modules/fatal, modules/obstack,
91474         modules/xalloc, modules/xgethostname: Sort dependencies by
91475         importance, not alphabetically.
91476
91477 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91478
91479         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91480         fails, so that the caller gets the proper errno.
91481
91482         * lib/readutmp.c (read_utmp): Likewise.
91483         Check for fstat error.  Close stream and free storage
91484         when failing.
91485
91486 2003-09-14  Karl Berry  <karl@gnu.org>
91487
91488         * config/srclist.txt (strdup.c): disable for c89 changes.
91489
91490 2003-09-14  Jim Meyering  <jim@meyering.net>
91491
91492         * lib/getloadavg.c: Correct cpp indentation.
91493         * lib/strdup.c: Likewise.
91494         * lib/vasnprintf.c: Likewise.
91495
91496 2003-09-14  Bruno Haible  <bruno@clisp.org>
91497
91498         * modules/fwriteerror: New file.
91499         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91500
91501 2003-09-14  Bruno Haible  <bruno@clisp.org>
91502
91503         * lib/fwriteerror.h: New file.
91504         * lib/fwriteerror.c: New file.
91505
91506 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91507
91508         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91509         modules/xgethostname, modules/xalloc: Depend on exit.
91510
91511 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91512
91513         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91514
91515         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91516         and AC_MINIX, too, so that their extensions are available.
91517
91518         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91519         This macro has been superseded by gl_BACKUPFILE.
91520
91521         More patches to assume C89 or better.
91522
91523         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91524
91525         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91526         unconditionally.
91527         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91528         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91529         Include <string.h>, <stdlib.h> unconditionally.
91530         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91531         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91532         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91533         headers or for string.h.
91534         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91535         or strtoul.
91536
91537         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91538         headers.
91539         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91540         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91541         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91542         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91543         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91544         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91545         memcpy, memset.
91546         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91547         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91548         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91549         strtol.
91550         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91551         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91552         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91553         strtoul.
91554
91555 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91556
91557         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91558         * lib/obstack.c [!defined _LIBC]: Likewise.
91559         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91560         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91561         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91562
91563         More changes to assume C89 or better.
91564
91565         * lib/error.c (error_tail): Assume vprintf.
91566
91567         * lib/argmatch.c (getenv): Remove decl.
91568         * lib/progreloc.c (get_full_program_name): Define via prototype.
91569         * lib/setenv.c (clearenv): Likewise.
91570         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91571         needed.
91572         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91573         (malloc, memcpy): Remove decls.
91574         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91575         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91576         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91577         (memcpy): Remove macro.
91578         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91579         (__P): Remove.  All uses removed.
91580         (PTR): Remove.  All uses changed to void *.
91581         (CHAR_BIT, NULL): Remove.
91582         (spaces, zeros, memset_space, memset_zero)
91583         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91584         Remove.
91585         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91586         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91587         Define with prototype.
91588         Remove now-unnecessary prototype decl.
91589         (extra_args_spec): Assume ANSI C.  All uses changed.
91590         (extra_args_spec_iso): Remove.
91591         (my_strftime, emacs_strftimeu): Define via prototype.
91592         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91593         unconditionally.
91594         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91595         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91596         (strtoul, strtol): Remove decls.
91597         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91598         LONG_MAX): Remove.
91599         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91600         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91601         (LOCALE_PARAM_PROTO): New macro.
91602         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91603         (INTERNAL (strtol), strtol): Define with a prototype.
91604         (PARAMS): Remove.  All uses removed.
91605         * lib/tempname.c: Include <string.h> unconditionally.
91606         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91607         * lib/xgethostname.c (main): Define with a prototype.
91608         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91609         Include <stdlib.h> unconditionally.
91610         (calloc, malloc, realloc, free): Remove decls.
91611         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91612         Include <stdlib.h> unconditionally.  Sort include file names.
91613         (strtod): Remove.
91614         (xstrtod): Define with a prototype.
91615         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91616         (strtol, strtoul): Remove decls.
91617
91618 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91619
91620         More patches to assume C89 or better.
91621         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91622         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91623         string.h, memchr, STDC_HEADERS.
91624
91625 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91626
91627         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91628         Include <stdlib.h>, <string.h> unconditionally.
91629         Remove now-unnecessary cast to char *.
91630         * lib/strnlen.c: Include <string.h> unconditionally.
91631         * lib/yesno.c (yesno): Define with a prototype.
91632
91633 2003-09-11  Bruno Haible  <bruno@clisp.org>
91634
91635         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91636
91637 2003-09-10  Jim Meyering  <jim@meyering.net>
91638
91639         * lib/error.c: Correct indentation of cpp directives.
91640
91641 2003-09-10  Bruno Haible  <bruno@clisp.org>
91642
91643         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91644         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91645         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91646         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91647         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91648         <stdlib.h> and <string.h> checks.
91649         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91650         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91651
91652 2003-09-10  Bruno Haible  <bruno@clisp.org>
91653
91654         * lib/strcspn.c: Include <string.h> unconditionally.
91655         * lib/strpbrk.c: Include <string.h> unconditionally.
91656         * lib/strstr.c: Include <string.h> unconditionally.
91657         * lib/unicodeio.c: Include <string.h> unconditionally.
91658         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91659         * lib/unsetenv.c: Likewise.
91660         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91661         * lib/yesno.c: Include <stdlib.h> unconditionally.
91662         (rpmatch): Add prototype.
91663
91664 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91665
91666         More patches to assume C89 or better.
91667         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91668         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91669         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91670         or for string.h.
91671         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91672         stdlib.h.
91673         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91674         C headers.
91675         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91676         string.h.
91677         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91678         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91679         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91680         or for string.h.
91681         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91682         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91683         C headers.
91684         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91685         memcpy.
91686         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91687         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91688         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91689         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91690         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91691         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91692         string.h, free.
91693         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91694         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91695         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91696         C headers, or for string.h.
91697         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91698         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91699         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91700         headers, memory.h, stdlib.h, string.h, strings.h.
91701         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91702         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91703         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91704         strchr.
91705         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91706         headers, memory.h, string.h.
91707         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91708         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91709         free.
91710         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91711         headers.
91712         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91713         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91714         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91715         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91716         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91717
91718 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91719
91720         More K&R removal.
91721
91722         * lib/acosl.c (main): Use a prototype.
91723         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91724         tanl.c: Likewise.
91725
91726         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91727
91728         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91729         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91730         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91731         with a prototype.
91732         * lib/getopt.c (const): Remove macro.
91733         Include <string.h> unconditionally.
91734         (my_index): Remove; all uses changed to strchr.
91735         (strlen): Remove decl.
91736         (exchange): Remove forward decl; no longer needed.
91737         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91738         Define with prototype.
91739         * lib/getopt1.c (const): Remove macro.
91740         (getopt_long, getopt_long_only, main): Define with prototype.
91741
91742         * lib/getugroups.c: Include <string.h> unconditionally.
91743
91744         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91745         (getusershell, setusershell, endusershell, readname, main):
91746         Define with prototypes.
91747
91748         * lib/group-member.c: Include group-member.h first.
91749         Include <stdlib.h> unconditionally.
91750
91751         * lib/hard-locale.c: Include hard-locale.h first.
91752         Include <stdlib.h>, <string.h> unconditionally.
91753
91754         * lib/hash.c (free, malloc): Remove decls.
91755         Include <stdlib.h> unconditionally.
91756
91757         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91758         (getenv): Do not declare.
91759
91760         * lib/idcache.c: Include <string.h> unconditionally.
91761
91762         * lib/long-options.c: Include long-options.h first, to test interface.
91763         Include <stdlib.h> unconditionally.
91764
91765         * lib/makepath.c: Include makepath.h first, to test interface.
91766         Include <stdlib.h> and <string.h> unconditionally.
91767
91768         * lib/linebuffer.c: Include <stdlib.h>.
91769         (free): Remove decl.
91770
91771         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91772         stddef.h. rpl_malloc returns void *, not char *.
91773         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91774         prototype.
91775
91776         * lib/md5.h: Include <limits.h> unconditionally.
91777         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91778         (__P): Remove; all uses removed.
91779         * lib/md5.c: Include "md5.h" first.
91780         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91781         md5_buffer, md5_process_bytes, md5_process_block):
91782         Define with prototypes.
91783         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91784         * lib/sha.c: Include "sha.h" first.
91785         Include <stdlib.h>, <string.h> unconditionally.
91786
91787         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91788         * lib/memcmp.c (__ptr_t): Likewise.
91789         * lib/memrchr.c (__ptr_t): Likewise.
91790         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91791         Include <string.h> unconditionally.
91792         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91793         * lib/memchr.c: Include <stdlib.h> unconditionally.
91794         * lib/memchr.c (LONG_MAX): Remove.
91795         * lib/memrchr.c (LONG_MAX): Likewise.
91796         * lib/memchr.c (__memchr): Define via a prototype.
91797         * lib/memrchr.c (__memrchr): Likewise.
91798         * lib/memcmp.c (__P): Remove, and remove all uses.
91799         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91800         Remove forward decls; no longer needed.
91801         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91802         Use types required by C89 in prototype.
91803
91804         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91805         * lib/savedir.c: Likewise.
91806         * lib/mkdir.c (free): Remove decl.
91807         * lib/rmdir.c (rmdir): Define with a prototype.
91808         * lib/savedir.c: Include savedir.h first, to test interface.
91809
91810         * lib/mktime.c (STDC_HEADERS): Remove.
91811         Include <stdlib.h>, <string.h> unconditionally.
91812
91813         * lib/modechange.c: Include <stdlib.h> unconditionally.
91814         (malloc): Remove decl.
91815
91816         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91817         (free): Remove decl.
91818
91819         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91820         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91821         (This type really should be intptr_t, but that's a C99ism.)
91822         (_obstack_memcpy): Remove: all uses changed to memcpy.
91823         Include <string.h> unconditionally.
91824         (struct obstack): Assume __STDC__ for types of members
91825         chunkfun, freefun, extra_arg.
91826         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91827         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91828         obstack_begin, obstack_specify_allocation,
91829         obstack_specify_allocation_with_arg, obstack_chunkfun,
91830         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91831         Remove unprototyped decls and the macros that use them.
91832         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91833         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91834         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91835         (defined __STDC__ && __STDC__)]:
91836         Remove nonprototyped code.
91837         Include <stdlib.h> unconditionally.
91838         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91839         _obstack_allocated_p, _obstack_free, obstack_free,
91840         _obstack_memory_used, print_and_abort):
91841         Define using prototypes.
91842         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91843         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91844         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91845         obstack_next_free, obstack_object_size, obstack_room) [0]:
91846         Remove unused, unprototyped code.
91847
91848         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91849
91850         * lib/physmem.c (physmem_total, physmem_available, main): Define
91851         with prototypes.
91852
91853         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91854         (main): Define with a prototype.
91855
91856         * lib/posixver.c (getenv): Remove decl.
91857
91858         * lib/putenv.c (malloc): Returns void *, not char *.
91859         Include <string.h> unconditionally.
91860         (strchr, memcpy, NULL): Do not define.
91861
91862         * lib/readtokens.c: Include readtokens.h first, to test interface.
91863         Include <stdlib.h>, <string.h> unconditionally.
91864         (init_tokenbuffer): Define with a prototype.
91865
91866         * lib/regex.c (PARAMS): Remove.  All uses removed.
91867         All uses of _RE_ARGS removed, too.
91868         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91869         unconditionally.
91870         (bzero): Assume memset exists.
91871         (memcmp, memcpy, NULL): Remove.
91872         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91873         char, or assignments to local vars of type signed char.
91874         (init_syntax_once, PREFIX(extract_number_and_incr),
91875         PREFIX(print_partial_compiled_pattern),
91876         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91877         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91878         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91879         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91880         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91881         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91882         wcs_compile_range, byte_compile_range, truncate_wchar,
91883         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91884         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91885         count_mbs_length, wcs_re_match_2_internal,
91886         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91887         PREFIX(alt_match_null_string_p),
91888         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91889         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91890         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91891         now-unnecessary declaration, if any.
91892         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91893         regcomp, regexec):
91894         Remove now-unnecessary casts among pointer types.
91895         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91896
91897         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91898         (free): Remove decl.
91899
91900         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91901
91902         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91903         (free): Remove decl.
91904
91905         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91906         * lib/xgetcwd.c: Likewise.
91907
91908         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91909         (free): Remove decl.
91910
91911         * lib/strchrnul.c (strchrnul): Define with a prototype.
91912         Fix bug: c_in was not converted to char before searching.
91913
91914         The following changes are not K&R related:
91915
91916         * lib/group-member.h: Include <sys/types.h>, so that this file is
91917         self-contained.
91918         * lib/makepath.h: Likewise.
91919
91920         * lib/getusershell.c (readname, default_index, line_size, readname):
91921         Use size_t, not int, for sizes.
91922         (readname): If the size overflows, report an error instead of
91923         looping forever.
91924
91925 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91926
91927         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91928         libc.
91929
91930 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91931
91932         * README: New section: portability guidelines.
91933
91934 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91935
91936         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91937         C89 spec.
91938
91939 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91940
91941         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91942
91943 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91944
91945         Assume C89 or better; remove K&R cruft.
91946         A few of these changes were first proposed by Derek Robert Price
91947         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91948
91949         * lib/addext.c: Include <string.h> unconditionally.
91950         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91951         Don't declare getenv or malloc.
91952
91953         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91954         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91955         (NULL): Remove.
91956         (find_stack_direction, alloca): Use prototypes.
91957
91958         * lib/atexit.c (atexit): Define using a prototype.
91959
91960         * lib/basename.c, dirname.c, stripslash.c:
91961         Include <string.h> unconditionally.
91962
91963         * lib/bcopy.c: Include <stddef.h>.
91964         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91965
91966         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91967
91968         * lib/error.h (error, error_at_line, error_print_progname)
91969         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91970         * lib/error.c: Include error.h first, to check interface.
91971         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91972         (VA_START): Remove; all uses changeed to va_start.
91973         (exit, strerror): Remove decls.
91974         (error_print_progname): Prototype uncondionally.
91975         Don't include <errno.h>; no longer needed.
91976         (private_strerror): Remove.
91977         (error_tail): Always define.
91978         (error, error_at_line): Assume C89 or better; always use prototypes.
91979         * lib/fatal.c: Include "fatal.h" first, to test interface.
91980         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91981         (VA_START): Remove; all uses changed to va_start.
91982         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91983         this case.
91984         (exit): Remove decl.
91985         (fatal): Prototype unconditionally.  Assume va_start works.
91986         Abort at end, to pacify gcc.
91987
91988         * lib/euidaccess.c (main): Define with a prototype.
91989
91990         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91991
91992         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91993
91994         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91995         prototypes.
91996         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91997         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91998         (getenv): Remove decl.
91999         (fnmatch): Define using a prototype.
92000         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92001         (FCT): Define using a prototype.
92002
92003         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92004
92005         * lib/gethostname.c: Include <stddef.h>.
92006         (gethostname): Define with prototype.  Length is size_t, not int.
92007
92008 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92009
92010         Assume C89 or better; remove K&R cruft.
92011         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92012         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92013         string.h, getenv, malloc.
92014         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92015         headers.
92016         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92017         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92018         do not check for strerror.
92019         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92020         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92021         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92022         do not check for doprnt or vprintf.
92023         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92024         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92025
92026 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92027
92028         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92029         getversion.c should have been removed then, but was accidentally
92030         preserved.
92031
92032         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92033         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92034
92035 2003-09-08  Karl Berry  <karl@gnu.org>
92036
92037         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92038                 config, forget about prep.
92039
92040         * config/depcomp, missing: update from automake.
92041
92042 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92043
92044         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92045         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92046
92047 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92048
92049         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92050         copy_tm_result.  Bug reported by Simon Josefsson in
92051         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92052
92053 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92054
92055         * m4/time_r.m4: New file.
92056         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92057         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92058         is. Check for timegm declaration.
92059         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92060         Do not check for gmtime_r.
92061         Replace mktime if __mktime_internal does not exist and if mktime
92062         hasn't been replaced already.
92063
92064 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92065
92066         * lib/time_r.c, lib/time_r.h: New files.
92067
92068         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92069         __localtime_r.
92070         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92071         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92072
92073         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92074         __gmtime_r.
92075         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92076         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92077         Include <time_r.h>.
92078
92079         * lib/timegm.c: Switch to glibc implementation, with the following
92080         changes:
92081         [defined HAVE_CONFIG_H]: Include <config.h>.
92082         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92083         (__mktime_internal) [!defined _LIBC]: New decl.
92084         (__gmtime_r) [!defined _LIBC]: New macro and function.
92085         (timegm): Use a prototype, since gnulib assumes C89.
92086         Do not bother declaring tmp to be const, as it's not really usefu.
92087         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92088         (timegm): Declare only if HAVE_DECL_TIMEGM.
92089
92090 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92091
92092         * MODULES.html.sh (func_all_modules): Add time_r.
92093         * modules/time_r: New file.
92094         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92095         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92096
92097 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92098
92099         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92100         Bug reported by Lute Kamstra in
92101         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92102
92103         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92104         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92105         course with correspondingly smaller numbers for tomorrow and
92106         yesterday.  From Tadayoshi Funaba.  Originally installed into
92107         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92108         coreutils merge?).
92109
92110 2003-08-31  Simon Josefsson  <jas@extundo.com>
92111
92112         * modules/timegm: New file.
92113         * MODULES.html.sh (func_all_modules): Add timegm.
92114
92115 2003-08-31  Simon Josefsson  <jas@extundo.com>
92116
92117         * m4/timegm.m4: New file.
92118
92119 2003-08-31  Simon Josefsson  <jas@extundo.com>
92120
92121         * lib/timegm.h: New file.
92122         * lib/timegm.c: New file.  Based on
92123         wget-1.8.2/src/http.c:mktime_from_utc.
92124
92125 2003-08-31  Karl Berry  <karl@gnu.org>
92126
92127         * lib/argp.h: update from libc.
92128
92129 2003-08-28  Bruno Haible  <bruno@clisp.org>
92130
92131         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92132         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92133         followed by '#define fnmatch fnmatch_posix' gives an error.
92134
92135 2003-08-28  Bruno Haible  <bruno@clisp.org>
92136
92137         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92138         warning on QNX, which defines O_BINARY to 000000.
92139
92140 2003-08-27  Jim Meyering  <jim@meyering.net>
92141
92142         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92143         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92144         would fail after 32.  Reported by Danny Levinson.  Details here:
92145         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92146
92147 2003-08-24  Bruno Haible  <bruno@clisp.org>
92148
92149         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92150         MSVC7 <stdio.h> is included later.
92151
92152 2003-08-22  Simon Josefsson  <jas@extundo.com>
92153
92154         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92155
92156 2003-08-20  Karl Berry  <karl@gnu.org>
92157
92158         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92159
92160 2003-08-20  Bruno Haible  <bruno@clisp.org>
92161
92162         * modules/progname: New file.
92163         * MODULES.html.sh (func_all_modules): Add progname.
92164
92165 2003-08-20  Bruno Haible  <bruno@clisp.org>
92166
92167         * lib/progname.h: New file, from GNU gettext.
92168         * lib/progname.c: New file, from GNU gettext.
92169         * lib/progreloc.c: New file, from GNU gettext.
92170
92171 2003-08-19  Jim Meyering  <jim@meyering.net>
92172
92173         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92174         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92175
92176 2003-08-19  Bruno Haible  <bruno@clisp.org>
92177
92178         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92179         more.
92180
92181 2003-08-19  Bruno Haible  <bruno@clisp.org>
92182
92183         * lib/xstrdup.c: Assume <string.h> exists.
92184
92185 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92186
92187         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92188         in makefile rules.
92189
92190 2003-08-18  Jim Meyering  <jim@meyering.net>
92191
92192         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92193         * m4/lib-ld.m4: Likewise.
92194
92195 2003-08-18  Jim Meyering  <jim@meyering.net>
92196
92197         * lib/setenv.h: Indent nested cpp directive.
92198         * lib/vasnprintf.c: Remove trailing blanks.
92199
92200 2003-08-17  Simon Josefsson  <jas@extundo.com>
92201
92202         * modules/xstrndup: New file.
92203         * MODULES.html.sh (func_all_modules): Add xstrndup.
92204
92205 2003-08-17  Simon Josefsson  <jas@extundo.com>
92206
92207         * modules/argp: Fix autoconf macro name. Add more dependencies.
92208
92209 2003-08-17  Simon Josefsson  <jas@extundo.com>
92210
92211         * m4/xstrndup.m4: New file.
92212
92213 2003-08-17  Simon Josefsson  <jas@extundo.com>
92214
92215         * m4/argp.m4: New file.
92216
92217 2003-08-17  Simon Josefsson  <jas@extundo.com>
92218             Bruno Haible  <bruno@clisp.org>
92219
92220         * lib/xstrndup.h: New file.
92221         * lib/xstrndup.c: New file.
92222
92223 2003-08-17  Bruno Haible  <bruno@clisp.org>
92224
92225         * modules/strndup (Files, Include): Add lib/strndup.h.
92226
92227 2003-08-17  Bruno Haible  <bruno@clisp.org>
92228
92229         * modules/euidaccess (Files): Add lib/euidaccess.h.
92230
92231 2003-08-17  Bruno Haible  <bruno@clisp.org>
92232
92233         * lib/strndup.h: New file.
92234
92235 2003-08-17  Bruno Haible  <bruno@clisp.org>
92236
92237         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92238         like AC_GNU_SOURCE.
92239         * modules/extensions (configure.ac): Comment out the invocation of
92240         gl_USE_SYSTEM_EXTENSIONS.
92241
92242 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92243
92244         Merges from coreutils, etc.
92245         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92246         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92247         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92248         fixing a typo.
92249         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92250         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92251
92252 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92253
92254         Document merge from coreutils.
92255         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92256         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92257         * modules/utime: Add m4/utimes-null.m4.
92258
92259 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92260
92261         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92262         space, undoing this 2003-08-12 change:
92263         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92264
92265 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92266
92267         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92268         strtoul.c from libc, undoing this 2003-08-12 change:
92269         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92270
92271 2003-08-16  Jim Meyering  <jim@meyering.net>
92272
92273         Merges from coreutils.
92274         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92275         prefix.  Adjust cache variables similarly.  Create 500 rather than
92276         just 300 files, to exercise bug on Darwin6.5, too.
92277         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92278         $missing_dir.
92279         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92280         AM_SYS_POSIX_TERMIOS.
92281         Reported by mkc@mathdogs.com.
92282         Also change use of $am_cv_sys_posix_termios
92283         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92284         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92285         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92286         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92287         in /proc/mounts until it finds one with matching device number.  This
92288         is unnecessary when the FILE argument *is* a mount point.  No stat call
92289         is necessary in that case.  So, disable the statvfs-testing code on
92290         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92291         as RedHat bug# 84846.
92292         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92293         to 1MB, so as not to render systems with no stack size limit (e.g.,
92294         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92295         Include <unistd.h>.  On some systems,
92296         it is required for the definition of _SC_PAGESIZE.
92297
92298 2003-08-16  Jim Meyering  <jim@meyering.net>
92299
92300         Merge from coreutils.
92301         * lib/xstrtoimax.c: #else #if -> #elif.
92302         * lib/xstrtoumax.c: Likewise.
92303
92304 2003-08-16  Jim Meyering  <jim@meyering.net>
92305
92306         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92307         * m4/utimes.m4: Removed.
92308         * m4/utimes-null.m4: Renamed from utimes.m4.
92309
92310         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92311         to 1MB, so as not to render systems with no stack size limit (e.g.,
92312         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92313         Include <unistd.h>.  On some systems,
92314         it is required for the definition of _SC_PAGESIZE.
92315
92316 2003-08-16  Jim Meyering  <jim@meyering.net>
92317         and Paul Eggert  <eggert@cs.ucla.edu>
92318
92319         Merges from coreutils, etc.
92320
92321         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92322         using the latest version from cvs.  This avoids problems with #line
92323         directives using a vendor (Sun) compiler.
92324         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92325         Don't set GETGROUPS_LIB here; now it's
92326         done via getgroups.m4's wrapper function.
92327         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92328         rather than just in sh-util/configure.in, so that the
92329         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92330         same.
92331         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92332         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92333         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92334         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92335         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92336         Remove code that is now done by the newly-required macros.
92337         Append $(EXEEXT) to DF_PROG.
92338         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92339         Do not invoke or require the following here,
92340         since prereq.m4 or some gnulib .m4 now does this for us:
92341         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92342         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92343         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92344         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92345         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92346         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92347         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92348         AC_FUNC_OBSTACK.
92349         Do not replace the following functions, as this is now the job
92350         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92351         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92352         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92353         atexit getpass, strdup, getpagesize.
92354         Replace 'raise'.
92355         Do not check for the following functions, as this is now the job
92356         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92357         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92358         setregid.
92359         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92360         Check for sys/sysctl.h.
92361         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92362         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92363         of checking for ssize_t ourselves.
92364
92365         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92366         Require every macro that gnulib/modules/* suggests for us.
92367         (jm_PREREQ_ADDEXT): New macro.
92368         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92369         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92370
92371         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92372         (gl_PHYSMEM): Use it.
92373         Also check for `table' function.
92374         Check for new headers and functions.
92375         Add check for sys/sysmp.h.
92376         With suggestions from Kaveh Ghazi.
92377         Ignore headers that are present but cannot be compiled.  This
92378         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92379         C 5.4.
92380
92381 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92382
92383         Document merge from coreutils.
92384         * modules/userspec: Depend on posixver.
92385         * modules/strftime: Depend on tzset.
92386
92387 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92388
92389         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92390         rather than tab, after '#' in shell-script copyright notices.
92391         Suggested by Bruno Haible.
92392
92393 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92394
92395         * config/srclist-update: Use three spaces, rather than tab, after '#'
92396         in shell-script copyright notices.  Suggested by Bruno Haible.
92397         Remove unnecessary parenthesization in regular expression.
92398
92399 2003-08-15  Jim Meyering  <jim@meyering.net>
92400
92401         Merge from coreutils.
92402         * lib/xgethostname.c: Include <stdlib.h>.
92403         (xghostname): Don't exit for anything other than memory-related
92404         failure; just return NULL.
92405         * lib/userspec.c: Include "posixver.h".
92406         (parse_user_spec): Accept `.' as a separator only
92407         in pre-POSIX-200112 mode.
92408         * lib/strtoimax.c: Use #elif rather than #else #if.
92409         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92410         Remove function, now that we can rely on a working tzset function.
92411         [!_LIBC]: Ensure that the required autoconf test has been run.
92412         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92413         Use underlying_strftime for %r.
92414         * lib/sha.c: Merge in some clean-up and optimization changes from
92415         glibc.
92416         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92417         Ensure that it is a multiple of 64.
92418         Rearrange loop exit tests so as to avoid performing an
92419         additional fread after encountering an error or EOF.
92420         * lib/realloc.c: Update copyright date.
92421
92422 2003-08-15  Jim Meyering  <jim@meyering.net>
92423         and Paul Eggert  <eggert@twinsun.com>
92424
92425         Merge from coreutils.
92426         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92427         member but strut utmpx does not.  Needed for AIX 4.3.3.
92428         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92429
92430 2003-08-15  Jim Meyering  <jim@meyering.net>
92431         and Paul Eggert  <eggert@cs.ucla.edu>
92432
92433         Merges from coreutils, etc.
92434         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92435         Require gl_FUNC_TZSET_CLOBBER.
92436         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92437         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92438         members.
92439
92440 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92441
92442         Help the merge from coreutils.
92443         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92444         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92445         * m4/tzset.m4: Use it too.
92446
92447 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92448
92449         * modules/tzset: New file.
92450
92451 2003-08-14  Jim Meyering  <jim@meyering.net>
92452
92453         Merges from coreutils.
92454         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92455         variable names, rather than @FNMATCH_H@.
92456         * modules/alloca: Likewise for $(ALLOCA_H).
92457
92458         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92459         the three copies of the literal target, `fnmatch.h'.
92460         * modules/alloca (alloca.h): Likewise.
92461
92462 2003-08-14  Jim Meyering  <jim@meyering.net>
92463
92464         Merge from coreutils.
92465         * m4/tzset.m4: New file.
92466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92467         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92468         otherwise, AIX 5.1 systems would end up using the latter.
92469         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92470         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92471         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92472         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92473
92474 2003-08-14  Jim Meyering  <jim@meyering.net>
92475
92476         Merge from coreutils.
92477         * lib/obstack.h: Whitespace changes.
92478         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92479         and xcalloc return values.
92480         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92481         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92482         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92483         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92484         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92485         error from mntctl.
92486         Use mntctl's return value to drive the entry-processing loop, since
92487         we can't rely on the value of the vmt_length member in the last
92488         entry.  On some systems doing so could result in exhausting
92489         virtual memory.  Based in part on a patch from Mike Jetzer.
92490
92491 2003-08-14  Jim Meyering  <jim@meyering.net>
92492         and Paul Eggert  <eggert@twinsun.com>
92493
92494         Merges from coreutils, plus other fixes.
92495         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92496         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92497         for credits and details.  Thanks to Kaveh Ghazi for helping
92498         to keep these files in sync.
92499         (ARRAY_SIZE): Define it.
92500         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92501         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92502         (memcasecmp): Don't assume size_t fits in unsigned int.
92503         Remove casts and duplicate code.
92504         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92505         (memcpy): Remove definition.
92506         Merge in some clean-up and optimization changes from glibc.
92507         [BLOCKSIZE]: Move definition to top of file.
92508         Ensure that it is a multiple of 64.
92509         Rearrange loop exit tests so as to avoid performing an
92510         additional fread after encountering an error or EOF.
92511         * lib/md5.h (md5_uintptr): Define.
92512         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92513         return to the initial working directory.  Preserve errno
92514         for caller.
92515         * lib/idcache.c: Include "xalloc.h".
92516         (xmalloc, xrealloc): Remove decls.
92517         (getuser): Remove casts no longer required in C89.
92518         * lib/human.c: Include stdio.h, for sprintf.
92519         * lib/group-member.c: Include "xalloc.h".
92520         (xmalloc, xrealloc): Remove decls.
92521         (get_group_info): Remove casts no longer required in C89.
92522         * lib/getusershell.c (readname): Remove casts no longer required in
92523         C89.
92524         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92525         * lib/getline.c: Whitespace fix, from coreutils.
92526
92527 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92528
92529         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92530         Check for isascii.
92531
92532         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92533         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92534         Undo previous (whitespace-only) change.
92535
92536 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92537
92538         * lib/exclude.c: Include <ctype.h>
92539         (IN_CTYPE_DOMAIN): New macro.
92540         (is_space): New fn.
92541         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92542         and empty lines.
92543
92544         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92545         Undo previous (whitespace-only) change.
92546
92547 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92548
92549         * config/srclist-update: Change update back to the old behavior,
92550         leaving whitespace alone.  Use one 'sed' command rather than a
92551         pipeline.
92552         (fixlicense): Now a variable, not a function.
92553         (remove_trailing_blanks): Remove.
92554         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92555         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92556         Undo previous (whitespace-only) change.
92557
92558 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92559
92560         Merge from coreutils.
92561         * modules/euidaccess: Add lib_SOURCES, include for new
92562         file euidaccess.h
92563
92564 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92565
92566         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92567         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92568         Normalize leading white space and remove trailing white space.
92569
92570         Merge from coreutils
92571         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92572
92573         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92574         0.12.1.  These files are now being upgraded automatically by
92575         ../config/srclist-update.
92576
92577 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92578
92579         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92580         Normalize leading white space and remove trailing white space.
92581         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92582         notice, as per ../config/srclist-update.
92583
92584         Merge from coreutils.
92585         * lib/euidaccess.h: New file.
92586         * lib/euidaccess.c: Include it.
92587         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92588         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92589         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92590
92591 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92592
92593         * config/srclist-update: Add copyright notice.
92594         (remove_id_lines, remove_trailing_blanks): New constants.
92595         (fixfile): Use them to normalize spacing a bit in copied files.
92596         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92597         Normalize leading white space and remove trailing white space.
92598
92599         * config/texinfo.tex: Sync with texinfo.
92600
92601         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92602         strtoul.c from libc, to merge coreutils whitespace changes.
92603
92604         * config/srclist.txt: Get the following m4 files from gettext:
92605         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92606         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92607         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92608         wint_t.m4.
92609
92610 2003-08-12  Karl Berry  <karl@gnu.org>
92611
92612         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92613         been made.
92614
92615 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92616
92617         * modules/gnu-source, m4/gnu-source.m4:
92618         Remove; we're assuming Autoconf 2.54 or later now.
92619         Suggested by Bruno Haible.
92620         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92621
92622 2003-08-11  Bruno Haible  <bruno@clisp.org>
92623
92624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92625
92626 2003-08-11  Bruno Haible  <bruno@clisp.org>
92627
92628         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92629         (vasnprintf): Use it instead of wcslen.
92630
92631 2003-08-11  Bruno Haible  <bruno@clisp.org>
92632
92633         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92634         value to ensure that _Bool promotes to int. Use #define for _Bool when
92635         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92636
92637 2003-08-10  Karl Berry  <karl@gnu.org>
92638
92639         * lib/regex.h: update from libc (whitespace fix).
92640
92641 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92642
92643         Merge some files from coreutils.  These changes were
92644         originally made by Jim Meyering.
92645         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92646         many older Unixes require this.
92647         * lib/alloca.c (alloca): Remove cast to argument of free;
92648         no longer needed in C89.
92649         * lib/alloca_.h, regex.h: Fix white space to match
92650         what GNU indent does.
92651
92652 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92653
92654         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92655         apparently Emacs's Unicode mode got confused before my 2003-08-05
92656         checkin.
92657
92658 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92659
92660         * m4/extensions.m4: New file.
92661         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92662         Require gl_USE_SYSTEM_EXTENSIONS.
92663         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92664         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92665
92666 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92667
92668         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92669         * modules/extensions, modules/gnu-source: New files.
92670         * modules/timespec, modules/unlocked-io: Depend on extensions.
92671
92672 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92673
92674         * modules/restrict: New file.
92675         * MODULES.html.sh (func_all_modules): Add restrict.
92676         * modules/regex: Depend on restrict.
92677
92678 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92679
92680         * m4/restrict.m4: New file.
92681         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92682
92683 2003-08-07  Bruno Haible  <bruno@clisp.org>
92684
92685         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92686         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92687
92688 2003-08-07  Bruno Haible  <bruno@clisp.org>
92689
92690         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92691         makes the module 'getndelim2' compatible with the module 'getline'.
92692
92693 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92694
92695         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92696         byte with "\201" to avoid glitches when editing that source file
92697         with multi-gnome-terminal.
92698
92699 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92700
92701         * lib/bumpalloc.h: Remove.
92702
92703 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92704
92705         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92706         * modules/bumpalloc: Remove.
92707
92708 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92709
92710         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92711         GNU coding style.
92712
92713         Merge from coreutils.
92714         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92715         1. From glibc.
92716         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92717         from Karl Berry, implemented by Jim Meyering.
92718         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92719         from Dmitry V. Levin.
92720         Remove anachronistic cast of xrealloc.
92721         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92722         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92723         type. Otherwise, it wouldn't compile with at least /bin/cc on
92724         ymp-cray-unicos9.0.2.X.
92725         Combine two mostly-identical uses of alloca into one.
92726         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92727
92728 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92729
92730         [From Emacs.]
92731
92732         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92733         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92734         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92735         obsolete NLIST_NAME_UNION.
92736         [__GNU__]: Undef BSD and FSCALE.
92737         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92738
92739 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92740
92741         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92742         an enum type, so that it's guaranteed to promote to int.  See:
92743         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92744
92745 2003-08-03  Karl Berry  <karl@gnu.org>
92746
92747         * config/depcomp: update from automake.
92748
92749 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92750
92751         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92752         (strerror): Don't assume that a printable int fits in 14 bytes.
92753
92754 2003-07-31  Bruno Haible  <bruno@clisp.org>
92755
92756         * modules/getpass-gnu: New file.
92757         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92758
92759 2003-07-31  Bruno Haible  <bruno@clisp.org>
92760
92761         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92762
92763 2003-07-24  Karl Berry  <karl@gnu.org>
92764
92765         * config/missing: update from automake.
92766
92767 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92768             Bruno Haible  <bruno@clisp.org>
92769
92770         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92771         * lib/getline.c (getline, getdelim): Likewise.
92772         Remove _GNU_SOURCE define; now it's defined in config.h through
92773         m4/getline.m4.
92774
92775 2003-07-23  Karl Berry  <karl@gnu.org>
92776
92777         * config/config.sub: update from prep.
92778
92779 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92780
92781         * modules/xalloc (Depends-on): Add exitfail.
92782         * modules/xmemcoll: Likewise.
92783
92784 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92785
92786         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92787         over-parenthesization in macros.
92788
92789         Sync with coreutils.
92790
92791         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92792         required by C99.
92793
92794         Use `exit_failure' for xalloc and xmemcoll instead of their own
92795         private exit-failure variables.
92796         * lib/xalloc.h (xalloc_exit_failure): Remove.
92797         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92798         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92799         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92800         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92801         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92802
92803 2003-07-20  Jim Meyering  <jim@meyering.net>
92804
92805         * modules/closeout (Depends-on): Add exitfail.
92806         Suggestion from Bruno Haible.
92807
92808 2003-07-19  Karl Berry  <karl@gnu.org>
92809
92810         * config/config.sub: update from prep.
92811
92812 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92813
92814         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92815         Remove.
92816         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92817         to test that it can stand by itself.  Include "exitfail.h".
92818         Clients should set exit_failure instead.
92819         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92820
92821 2003-07-18  Bruno Haible  <bruno@clisp.org>
92822
92823         * modules/getndelim2: New file.
92824         * modules/getline: Share files with module getndelim2.
92825         * modules/getnline: Depend on getndelim2 instead of sharing files with
92826         it. Add getnline.c to lib_SOURCES.
92827         * MODULES.html.sh (func_all_modules): Add getndelim2.
92828
92829 2003-07-18  Bruno Haible  <bruno@clisp.org>
92830
92831         * m4/getndelim2.m4: New file.
92832         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92833         invoke gl_PREREQ_GETNDELIM2.
92834         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92835         gl_PREREQ_GETNDELIM2.
92836         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92837         gl_GETNDELIM2.
92838
92839 2003-07-18  Bruno Haible  <bruno@clisp.org>
92840
92841         * lib/getndelim2.h: New file.
92842         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92843         getndelim2.h.
92844         (getndelim2): Make non-static. Change return type to ssize_t.
92845         * lib/getline.h: Change argument names.
92846         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92847         * lib/getnline.c: Include getndelim2.h.
92848
92849 2003-07-18  Andreas Schwab  <schwab@suse.de>
92850
92851         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92852
92853 2003-07-17  Karl Berry  <karl@gnu.org>
92854
92855         * config/config.sub: update from prep.
92856
92857 2003-07-17  Bruno Haible  <bruno@clisp.org>
92858
92859         * modules/getnline: New file.
92860         * modules/getline: Add lib/getndelim2.c to source file list.
92861         * MODULES.html.sh (func_all_modules): Add getnline.
92862
92863 2003-07-17  Bruno Haible  <bruno@clisp.org>
92864
92865         * m4/getnline.m4: New file.
92866
92867 2003-07-17  Bruno Haible  <bruno@clisp.org>
92868
92869         * m4/Makefile.am.in: Remove file.
92870         * m4/Makefile.am: Remove file.
92871         * m4/Makefile.in: Remove file.
92872
92873 2003-07-17  Bruno Haible  <bruno@clisp.org>
92874
92875         * lib/getnline.h: New file.
92876         * lib/getnline.c: New file.
92877         * lib/getndelim2.c: New file, extracted from getline.c.
92878         (getndelim2): Renamed from getdelim2, with added nmax argument.
92879         * lib/getline.c: Include getndelim2.c.
92880         (getdelim2): Moved out to getndelim2.c.
92881         (getline, getdelim): Update.
92882
92883 2003-07-17  Bruno Haible  <bruno@clisp.org>
92884
92885         * lib/Makefile.am: Remove file.
92886         * lib/Makefile.in: Remove file.
92887
92888 2003-07-17  Bruno Haible  <bruno@clisp.org>
92889
92890         * configure.in: Remove file.
92891         * Makefile.in: Remove file.
92892
92893 2003-07-17  Bruno Haible  <bruno@clisp.org>
92894
92895         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92896
92897 2003-07-16  Karl Berry  <karl@gnu.org>
92898
92899         * config/srclist-update: was running fixlicense twice, which caused
92900                 texinfo.tex to be nullified for some reason.  Simplify,
92901                 $gplsrc is no longer needed as far as I can see?
92902
92903 2003-07-16  Jim Meyering  <jim@meyering.net>
92904
92905         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92906
92907 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92908
92909         * config/srclist.txt: Get the following files from gettext-runtime/intl
92910         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92911         ref-del.sin.  From Bruno Haible.
92912         * config/srclist-update (fixfile): Change grep pattern again, since the
92913         previous fix didn't work (there was another trailing $).  Use
92914         '[$]' to escape the $s.
92915
92916 2003-07-15  Karl Berry  <karl@gnu.org>
92917
92918         * lib/vasnprintf.c: update from gettext.
92919
92920 2003-07-15  Karl Berry  <karl@gnu.org>
92921
92922         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92923         gets expanded when surrounded by '$'.
92924
92925 2003-07-15  Jim Meyering  <jim@meyering.net>
92926
92927         * modules/save-cwd: Don't depend on error.  From Derek Price.
92928
92929 2003-07-15  Jim Meyering  <jim@meyering.net>
92930
92931         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92932
92933 2003-07-14  Simon Josefsson  <jas@extundo.com>
92934
92935         * modules/mempcpy: New file.
92936         * MODULES.html.sh (func_all_modules): Add mempcpy.
92937
92938 2003-07-14  Simon Josefsson  <jas@extundo.com>
92939
92940         * m4/mempcpy.m4: New file.
92941
92942 2003-07-14  Simon Josefsson  <jas@extundo.com>
92943
92944         * lib/mempcpy.h: New file.
92945         * lib/mempcpy.c: New file.
92946
92947 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92948
92949         * modules/getdate, modules/posixtm: Depend on mktime.
92950
92951 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92952
92953         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92954         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92955         unicodeio.c, unicodeio.h, unlocked-io.h:
92956         Switch from LGPL to GPL.
92957
92958 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92959
92960         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92961         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92962         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92963         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92964         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92965         updated automatically by ../config/srclist-update.  This changes
92966         their license from LPGL to GPL.
92967
92968 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92969
92970         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92971         assumed to refer to the root of the most recent stable gettext version.
92972         * config/srclistvars.sh: Add defaults for eggert.
92973         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92974         Match "This program" as well as "The program".  This is needed
92975         for gettext.
92976
92977 2003-07-14  Jim Meyering  <jim@meyering.net>
92978
92979         Don't emit diagnostics.  Let callers do that.
92980         * lib/save-cwd.c: Don't include "error.h".
92981         (save_cwd): Don't call error.  Ensure that errno is valid
92982         when returning nonzero.
92983
92984         * lib/save-cwd.h (restore_cwd): Update prototype.
92985         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92986         Simplify.  Don't call error upon failure.  Let callers do that.
92987         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92988         when auditing is enabled.  But don't bother updating the #if.
92989
92990 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92991
92992         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92993         it breaks C++ compilation.
92994         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92995
92996 2003-07-10  Simon Josefsson  <jas@extundo.com>
92997
92998         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92999
93000 2003-07-10  Jim Meyering  <jim@meyering.net>
93001
93002         * m4/clock_time.m4: Remove trailing blank.
93003         * m4/intmax_t.m4: Likewise.
93004
93005 2003-07-10  Jim Meyering  <jim@meyering.net>
93006
93007         * lib/vasnprintf.c: Remove trailing blanks.
93008         Make cpp indentation consistent.
93009
93010 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93011
93012         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93013         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93014         Switch from LGPL to GPL.
93015
93016 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93017
93018         * config/srclist.txt: Sort sublists.  Add
93019         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93020         that differ from gnulib for one reason or another; we'd like this list
93021         to be smaller but for now let's document what we have.
93022
93023 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93024
93025         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93026         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93027         and sweeter "eval x=$x".
93028         * config/srclist.txt: Get lib/argp* from glibc.
93029
93030 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93031
93032         * lib/mktime.c: Fix some boundary cases and remove need for floating
93033         point.
93034
93035         Issue a compile-time diagnostic if time_t is floating point, or if
93036         two's complement arithmetic is not in effect, or if arithmetic
93037         right shift does not propagate the sign.  These assumptions were
93038         all in the original code but they weren't checked.
93039
93040         (TIME_T_MIDPOINT, verify): New macros.
93041         (__isleap): Remove; it has integer overflow problems.
93042         (leapyear): New function, without those problems.
93043         (ydhms_tm_diff): Remove; splitting into two parts.
93044         (ydhms_diff): New function, containing the arithmetic part of
93045         the old ydhms_tm_diff function.  Issue a compile-time
93046         diagnostic if we are not using C99 integer division.
93047         Avoid casts when possible.
93048         (guess_time_tm): New function, containing the checking part of
93049         the old ydhms_tm_diff function.  Return the new value, rather than
93050         the difference between it and the old.  Accept a new argument T
93051         so that *T specifies the old value.  Check for overflow in the result.
93052
93053         (__mktime_internal): Use a time_t offset, not a long int offset.
93054         This undoes the 2003-06-04 change, which is no longer needed now
93055         that we have better overflow checking.
93056         (localtime_offset): Likewise.
93057
93058         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93059         and long are 64-bit but int is only 32-bit.
93060         (ydhms_diff): Use long int to store year1 and yday1.
93061         Issue a compile-time diagnostic if long int is not wide enough.
93062
93063         (__mktime_internal): Use long int to store adjusted year and yday.
93064         Use plain C rather than preprocessor commands, if that doesn't
93065         affect efficiency.
93066         Check for overflow (and try to repair) after each probe
93067         rather than checking only at the very end.  This avoids some bugs
93068         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93069         does not equal GMT offset at maximum time).
93070         Use integer to check for overflow rather than floating point; this
93071         is more portable to non-IEEE hosts, and is a tad faster.
93072         When we detect that we are oscillating between two values,
93073         don't check whether tm_isdst has the requested value, since
93074         we already know the answer.  When tm_isdst has the wrong value,
93075         use a different heuristic to find the right one, based on the
93076         extreme values actually observed in practice in tz2003a,
93077         rather than the (overly optimistic) "previous 3 calendar quarters".
93078
93079         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93080         "T const" to accommodate glibc style.
93081         (check_result): Use less-confusing report format.  "long" -> "long int.
93082         (main): Likewise.
93083         Don't loop if the iteration overflows time_t.
93084         Allow a negative step in the iteration.
93085
93086 2003-07-06  Karl Berry  <karl@gnu.org>
93087
93088         * config/depcomp: update from automake.
93089         * config/config.sub: update from prep.
93090
93091 2003-07-03  Karl Berry  <karl@gnu.org>
93092
93093         * config/config.guess: update from prep.
93094
93095 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93096
93097         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93098         xreadlink.c now includes it unconditionally.
93099
93100 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93101
93102         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93103         having it depend on HAVE_SYS_TYPES_H.
93104
93105 2003-07-01  Bruno Haible  <bruno@clisp.org>
93106
93107         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93108         <sys/types.h> should be sufficient.
93109         Reported by Paul Eggert.
93110
93111 2003-06-26  Karl Berry  <karl@gnu.org>
93112
93113         * config/depcomp: update from automake.
93114
93115 2003-06-26  Bruno Haible  <bruno@clisp.org>
93116
93117         * modules/human: Depend on module stdbool.
93118
93119 2003-06-25  Bruno Haible  <bruno@clisp.org>
93120
93121         * modules/readlink: New file.
93122         * modules/xreadlink: Depend on it.
93123         * MODULES.html.sh (func_all_modules): Add readlink.
93124
93125 2003-06-25  Bruno Haible  <bruno@clisp.org>
93126
93127         * m4/readlink.m4: New file.
93128
93129 2003-06-25  Bruno Haible  <bruno@clisp.org>
93130
93131         * lib/readlink.c: New file.
93132
93133 2003-06-22  Karl Berry  <karl@gnu.org>
93134
93135         * config/srclist.txt: update mkinstalldirs from automake.
93136         * config/mkinstalldirs: update.
93137
93138 2003-06-22  Bruno Haible  <bruno@clisp.org>
93139
93140         Portability to mingw32.
93141         * m4/ssize_t.m4: New file, from GNU gettext.
93142         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93143         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93144
93145 2003-06-22  Bruno Haible  <bruno@clisp.org>
93146
93147         * modules/safe-read: Add m4/ssize_t.m4.
93148         * modules/xreadlink: Add m4/ssize_t.m4.
93149
93150 2003-06-20  Bruno Haible  <bruno@clisp.org>
93151
93152         Assume C89, so PARAMS isn't needed.
93153         * lib/unicodeio.h (PARAMS): Remove.
93154         * lib/unicodeio.c: Don't use PARAMS.
93155
93156 2003-06-18  Karl Berry  <karl@gnu.org>
93157
93158         * config/config.{guess,sub}: update from prep.
93159
93160 2003-06-18  Jim Meyering  <jim@meyering.net>
93161
93162         Merge changes from coreutils.
93163         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93164         Remove explicit declarations of xmalloc and realloc.
93165         Include xalloc.h.
93166         (read_utmp): Remove anachronistic cast of xmalloc.
93167
93168 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93169
93170         Assume C89, so PARAMS isn't needed.
93171         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93172         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93173         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93174         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93175         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93176         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93177         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93178         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93179         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93180         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93181         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93182         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93183         no longer needed. Anyway, config.h should always be included before any
93184         other file.
93185
93186 2003-06-11  Simon Josefsson  <jas@extundo.com>
93187
93188         * modules/sysexits: New file.
93189         * MODULES.html.sh (func_all_modules): Add sysexits.
93190
93191 2003-06-11  Simon Josefsson  <jas@extundo.com>
93192
93193         * lib/sysexit_.h: New file.
93194
93195 2003-06-11  Derek Price  <derek@ximbiot.com>
93196
93197         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93198         necessary.
93199
93200 2003-06-11  Bruno Haible  <bruno@clisp.org>
93201
93202         * m4/sysexits.m4: New file.
93203
93204 2003-06-10  Simon Josefsson  <jas@extundo.com>
93205
93206         * lib/argp.h: New file, from glibc.
93207         * lib/argp-ba.c: New file, from glibc.
93208         * lib/argp-eexst.c: New file, from glibc.
93209         * lib/argp-fmtstream.c: New file, from glibc.
93210         * lib/argp-fmtstream.h: New file, from glibc.
93211         * lib/argp-fs-xinl.c: New file, from glibc.
93212         * lib/argp-help.c: New file, from glibc.
93213         * lib/argp-namefrob.h: New file, from glibc.
93214         * lib/argp-parse.c: New file, from glibc.
93215         * lib/argp-pv.c: New file, from glibc.
93216         * lib/argp-pvh.c: New file, from glibc.
93217         * lib/argp-xinl.c: New file, from glibc.
93218
93219 2003-06-10  Simon Josefsson  <jas@extundo.com>
93220
93221         * modules/strchrnul: New file.
93222
93223 2003-06-10  Simon Josefsson  <jas@extundo.com>
93224
93225         * modules/argp: New file.
93226
93227 2003-06-10  Simon Josefsson  <jas@extundo.com>
93228
93229         * m4/strchrnul.m4: New file.
93230
93231 2003-06-10  Simon Josefsson  <jas@extundo.com>
93232
93233         * lib/strchrnul.h: New file.
93234         * lib/strchrnul.c: New file.
93235
93236 2003-06-10  Bruno Haible  <bruno@clisp.org>
93237
93238         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93239
93240 2003-06-07  Karl Berry  <karl@gnu.org>
93241
93242         * config/config.{guess,sub}: update from prep.
93243
93244 2003-06-07  Jim Meyering  <jim@meyering.net>
93245
93246         * modules/strtod: Use $(...) notation, not @...@ for
93247         AC_REPLACE'd variables.
93248         * modules/localcharset: Likewise.
93249
93250 2003-06-07  Jim Meyering  <jim@meyering.net>
93251
93252         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93253         in place of my name in the copyright comment.
93254         Remove definition and uses of __P.
93255
93256         From coreutils.
93257         * lib/stat.c: Don't declare xmalloc explicitly.
93258         Instead, include "xalloc.h".
93259         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93260         xrealloc, and xcalloc return values.
93261         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93262         Improve comment.
93263         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93264
93265 2003-06-07  Bruno Haible  <bruno@clisp.org>
93266
93267         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93268         avoid AC_CONFIG_LINKS.
93269         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93270         fnmatch.h, to avoid AC_CONFIG_LINKS.
93271         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93272
93273 2003-06-07  Bruno Haible  <bruno@clisp.org>
93274
93275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93276         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93277         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93278         directory.
93279         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93280         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93281         directory.
93282
93283 2003-06-06  Jim Meyering  <jim@meyering.net>
93284
93285         Merge from coreutils.
93286         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93287         Consolidate declarations and initializations of *_base* locals.
93288
93289         Merge from coreutils.
93290         This avoids a core dump on systems without GNU putenv,
93291         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93292         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93293         (unsetenv): New static function, from GNU libc.
93294         (rpl_putenv): Use it.
93295
93296         * lib/modechange.c: Remove trailing blanks.
93297
93298         Merge from coreutils.
93299         * lib/fsusage.c: Remove declaration of statfs.
93300         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93301
93302         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93303
93304 2003-06-06  Jim Meyering  <jim@meyering.net>
93305
93306         * lib/stdbool_.h: Renamed from stdbool.h.in.
93307
93308 2003-06-06  Jim Meyering  <jim@meyering.net>
93309             Bruno Haible  <bruno@clisp.org>
93310
93311         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93312         Adjust Makefile.am snippet not to redirect directly to target.
93313         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93314
93315 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93316
93317         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93318         mismatch, look in future quarters as well as past.  This fixes a
93319         bug when processing fall-backwards gaps immediately after a long
93320         period of daylight-saving time.
93321
93322         * lib/mktime.c: Assume freestanding C89 or better.
93323         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93324         (__P): Remove; not used.
93325         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93326         (mktime, not_equal_tm, print_tm, check_result,
93327         main): Use prototypes.  Use const * where appropriate.
93328         (main): Fix typo in testing code that uncovered by above changes.
93329         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93330
93331 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93332
93333         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93334         locale.h, localeconv.  This merges changes from coreutils.
93335
93336         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93337         It can be removed after the next Autoconf is released.
93338         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93339         needed.
93340
93341 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93342
93343         * lib/mktime.c: Fix Debian bug 177940
93344         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93345         (localtime_offset): Now long int, not time_t, because we want it
93346         to be guaranteed to be signed.  All uses changed.
93347         (__mktime_internal): If overflow would occur when adding offset,
93348         don't add it.
93349
93350         Merge 'human' changes from coreutils.  Rewrite to support
93351         locale-specific notations like thousands separators.
93352         * lib/human.c: Simplify authorship notice.
93353         Include human.h immediately after config.h.
93354         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93355         <limits.h>: Do not include, since human.h does.
93356         (SIZE_MAX, UINTMAX_MAX): New macros.
93357         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93358         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93359         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93360         (power_letter): Renamed from suffixes.
93361         (generate_suffix_backwards): Remove.
93362         (adjust_value): Now takes int style (because of human.h changes)
93363         and long double value (for greater precision on some platforms).
93364         (group_number): New function.
93365         (human_readable): Use it.  Use integer options, not enum.
93366         Put the options before the sizes in the arg list.
93367         Support all the new options.
93368         The old human_readable function has been removed;
93369         use inttostr.h instead.
93370         (human_readable, default_block_size, humblock):
93371         Use uintmax_t, not int, for block sizes.
93372         (human_readable_inexact, block_size_types): Remove.
93373         (block_size_opts): New constant.
93374         (human_options): Renamed from human_block_size, with new signature
93375         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93376         * lib/human.h: Add copyright and authorship notice.
93377         Include <limits.h> and <stdbool.h> unconditionally.
93378         (PARAMS): Remove.  All uses removed.
93379         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93380         (enum human_inexact_style): Remove tag; now a nameless enum.
93381         (human_floor, human_ceiling, human_round_to_even): Now have
93382         values 2, 0, 1 rather than -1, 1, 0.
93383         (human_group_digits, human_suppress_point_zero, human_autoscale,
93384         human_base_1024, human_SI, human_B): New constants.
93385         (human_readable_inexact, human_block_size): Remove.
93386         (human_readable): Size args are now uintmax_t, not int.
93387         (human_options): New decl.
93388
93389         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93390         unnecessary now that we assume C89 or better.  This change
93391         imported from coreutils.
93392
93393         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93394         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93395         in the 2003-05-30 sync from glibc.
93396
93397         .h files should stand alone, but we shouldn't include <sys/types.h>
93398         if we can get away with just <stddef.h>.
93399
93400         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93401         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93402         rather than <sys/types.h>, as we merely need size_t.
93403         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93404         to get size_t.
93405         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93406         Include <stdio.h>, to get FILE.
93407         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93408         memcasecmp.h has included <stddef.h> and all we need is size_t.
93409         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93410         our interface, instead of including <sys/types.h>
93411
93412 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93413
93414         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93415         now, as glibc mktime is buggy on non-glibc systems.
93416
93417 2003-06-03  Karl Berry  <karl@gnu.org>
93418
93419         * config/config.sub: update from prep.
93420
93421 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93422
93423         [from coreutils]
93424         Fix some minor time-related bugs with POSIX time arguments.
93425         Some valid time stamps were being rejected (notably -1, and
93426         time stamps before 1900 on 64-bit hosts).  And some invalid
93427         time stamps were being accepted, e.g. September 31.
93428
93429         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93430         that we can return (time_t) -1 successfully.
93431         * lib/posixtm.c: Likewise.
93432         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93433         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93434         (t): Remove static var.
93435         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93436         of static var.  All uses changed.
93437         (year): Do not reject years before 1900; they can occur with
93438         64-bit time_t.
93439         (posix_time_parse): Do not check for out-of-range components;
93440         that is now the caller's responsibility, since our checks were
93441         only approximations.
93442         (posixtime): Use mktime to check for out-of-range components,
93443         since it knows them exactly.
93444         If mktime returns (time_t) -1, check whether an error actually occurred
93445         by invoking localtime on -1.
93446         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93447         posixtime failures better.
93448         Improve the test data (in comments only).
93449
93450 2003-06-02  Karl Berry  <karl@gnu.org>
93451
93452         * config/mkinstalldirs (version): new variable.
93453         (--version): new option.
93454         (usage): improve message.
93455
93456 2003-05-30  Karl Berry  <karl@gnu.org>
93457
93458         * lib/mktime.c: update from libc.
93459
93460 2003-05-30  Bruno Haible  <bruno@clisp.org>
93461
93462         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93463         * config/config.rpath: Upgrade to gettext-0.12.1.
93464
93465 2003-05-30  Bruno Haible  <bruno@clisp.org>
93466
93467         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93468         * m4/nls.m4: New file, from gettext-0.12.1.
93469         * m4/po.m4: New file, from gettext-0.12.1.
93470         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93471
93472 2003-05-30  Bruno Haible  <bruno@clisp.org>
93473
93474         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93475         * lib/localcharset.h: Likewise.
93476         * lib/localcharset.c: Likewise.
93477
93478 2003-05-29  Karl Berry  <karl@gnu.org>
93479
93480         * config/config.rpath: update from gettext.
93481
93482 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93483
93484         Assume the headers required for C89 freestanding compilers.
93485         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93486         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93487         * m4/human.m4 (gl_HUMAN): Likewise.
93488         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93489         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93490         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93491         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93492         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93493         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93494
93495 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93496
93497         Assume the headers required for C89 freestanding compilers.
93498         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93499         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93500         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93501         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93502         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93503         define, since <limits.h> is guaranteed to do that.
93504         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93505         * lib/exclude.c: Include <stdbool.h> unconditionally.
93506         * lib/tempname.c: Include <stddef.h> unconditionally.
93507         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93508         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93509         <stddef.h> does that.
93510         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93511         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93512         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93513         needed.
93514         * lib/xstrtol.c: Likewise.
93515         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93516         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93517
93518         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93519         warnings on some platforms.
93520
93521         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93522         arbitrarily.
93523
93524 2003-05-26  Jim Meyering  <jim@meyering.net>
93525
93526         Merge in a change from coreutils:
93527         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93528         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93529         that condition, rather than `-1' which is slightly misleading.
93530         Change the name of the cache variable to have the gl_ prefix.
93531         Prompted by a patch from Richard Dawe for DJGPP.
93532
93533 2003-05-24  Karl Berry  <karl@gnu.org>
93534
93535         * config/config.guess: update from prep.
93536
93537 2003-05-22  Karl Berry  <karl@gnu.org>
93538
93539         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93540
93541 2003-05-20  Karl Berry  <karl@gnu.org>
93542
93543         * config/config.guess: update from prep.
93544
93545 2003-05-18  Karl Berry  <karl@gnu.org>
93546
93547         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93548         might actually be set by the user.
93549
93550         * config/depcomp, install-sh, mdate-sh: update from automake.
93551
93552 2003-05-17  Bruno Haible  <bruno@clisp.org>
93553
93554         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93555         invalid expansion for AC_EGREP_CPP.
93556         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93557         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93558         Suggested by Akim Demaille <akim@epita.fr> in
93559         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93560
93561 2003-05-12  Jim Meyering  <jim@meyering.net>
93562
93563         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93564         the space-padded-by-default conversion specifiers, %e, %k, %l.
93565
93566 2003-05-12  Bruno Haible  <bruno@clisp.org>
93567
93568         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93569         the string is longer than 4 KB.
93570
93571 2003-05-11  Karl Berry  <karl@gnu.org>
93572
93573         * config/config.{guess,sub}: update from prep.
93574
93575 2003-05-09  Bruno Haible  <bruno@clisp.org>
93576
93577         * modules/error: Add m4/strerror_r.m4 to file list.
93578
93579 2003-05-03  Bruno Haible  <bruno@clisp.org>
93580
93581         Upgrade to Unicode-4.0.
93582         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93583         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93584         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93585         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93586         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93587         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93588         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93589         Change width of U+E0100..U+E01EF from 1 to 0.
93590
93591 2003-04-25  Jim Meyering  <jim@meyering.net>
93592
93593         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93594         of type size_t, not int.
93595
93596 2003-04-25  Bruno Haible  <bruno@clisp.org>
93597
93598         * lib/copy-file.c: Include <stddef.h>, for size_t.
93599
93600 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93601
93602         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93603         code which expansion is under static control.  Patch imported from
93604         Akim Demaille's patch to Bison; see
93605         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93606
93607 2003-04-14  Bruno Haible  <bruno@clisp.org>
93608
93609         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93610
93611 2003-04-11  Jim Meyering  <jim@meyering.net>
93612
93613         Merge changes from Coreutils.
93614
93615         2003-03-22  Jim Meyering  <jim@meyering.net>
93616
93617         * lib/strftime.c (widen): Cast alloca return value to proper type.
93618
93619         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93620
93621         From GNU libc.
93622         * lib/strftime.c (my_strftime): Handle very large width
93623         specifications for numeric values correctly.  Improve checks for
93624         overflow.
93625
93626         2003-01-19  Jim Meyering  <jim@meyering.net>
93627
93628         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93629         definitions.
93630         (nl_get_alt_digit) [! defined my_strftime]: Define.
93631         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93632         _nl_get_alt_digit and _nl_get_walt_digit.
93633
93634         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93635         libc. These changes have no effect outside of _LIBC.
93636
93637 2003-04-10  Bruno Haible  <bruno@clisp.org>
93638
93639         * modules/findprog: New file.
93640         * MODULES.html.sh (func_all_modules): Add it.
93641
93642 2003-04-10  Bruno Haible  <bruno@clisp.org>
93643
93644         * m4/findprog.m4: New file.
93645         * m4/eaccess.m4: New file.
93646
93647 2003-04-10  Bruno Haible  <bruno@clisp.org>
93648
93649         * lib/findprog.h: New file, from GNU gettext.
93650         * lib/findprog.c: New file, from GNU gettext.
93651
93652 2003-04-05  Jim Meyering  <jim@meyering.net>
93653
93654         Merge changes from Coreutils.
93655
93656         * lib/exclude.h (PARAMS): Remove definition and uses.
93657         * lib/exclude.c: Remove uses of `PARAMS'.
93658
93659         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93660         Add test-cases for DOS filenames. Declare program_name.
93661         (main): Set up program_name.  Patch by Rich Dawe.
93662
93663         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93664         error from mntctl.
93665         Use mntctl's return value to drive the entry-processing loop, since
93666         we can't rely on the value of the vmt_length member in the last
93667         entry.  On some systems doing so could result in exhausting
93668         virtual memory.  Based in part on a patch from Mike Jetzer.
93669
93670 2003-04-04  Bruno Haible  <bruno@clisp.org>
93671
93672         * modules/linebreak: New file.
93673         * MODULES.html.sh (func_all_modules): Add it.
93674
93675 2003-04-04  Bruno Haible  <bruno@clisp.org>
93676
93677         * m4/linebreak.m4: New file.
93678
93679 2003-04-04  Bruno Haible  <bruno@clisp.org>
93680
93681         * lib/linebreak.h: New file, from GNU gettext.
93682         * lib/linebreak.c: New file, from GNU gettext with slight
93683         modifications.
93684         * lib/lbrkprop.h: New file, from GNU gettext.
93685
93686 2003-04-03  Bruno Haible  <bruno@clisp.org>
93687
93688         * modules/utf8-ucs4: New file.
93689         * modules/utf16-ucs4: New file.
93690         * modules/ucs4-utf8: New file.
93691         * modules/ucs4-utf16: New file.
93692         * MODULES.html.sh (func_all_modules): Add them.
93693
93694 2003-04-03  Bruno Haible  <bruno@clisp.org>
93695
93696         * m4/utf-ucs4.m4: New file.
93697         * m4/ucs4-utf.m4: New file.
93698
93699 2003-04-03  Bruno Haible  <bruno@clisp.org>
93700
93701         * lib/utf8-ucs4.h: New file, from GNU gettext.
93702         * lib/utf16-ucs4.h: New file, from GNU gettext.
93703         * lib/ucs4-utf8.h: New file, from GNU gettext.
93704         * lib/ucs4-utf16.h: New file, from GNU gettext.
93705
93706 2003-04-02  Bruno Haible  <bruno@clisp.org>
93707
93708         * modules/binary-io: New file.
93709         * MODULES.html.sh (func_all_modules): Add it.
93710
93711 2003-04-02  Bruno Haible  <bruno@clisp.org>
93712
93713         * lib/binary-io.h: New file, from GNU gettext.
93714
93715 2003-04-01  Bruno Haible  <bruno@clisp.org>
93716
93717         * modules/pathname: New file.
93718         * MODULES.html.sh (func_all_modules): Add it.
93719
93720 2003-04-01  Bruno Haible  <bruno@clisp.org>
93721
93722         * lib/pathname.h: New file, from GNU gettext.
93723         * lib/concatpath.c: New file, from GNU gettext.
93724
93725 2003-03-30  Bruno Haible  <bruno@clisp.org>
93726
93727         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93728
93729 2003-03-30  Bruno Haible  <bruno@clisp.org>
93730
93731         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93732         function chown() doesn't exist.
93733
93734 2003-03-28  Bruno Haible  <bruno@clisp.org>
93735
93736         * modules/copy-file: New file.
93737         * MODULES.html.sh (func_all_modules): Add it.
93738
93739 2003-03-28  Bruno Haible  <bruno@clisp.org>
93740
93741         * m4/copy-file.m4: New file.
93742
93743 2003-03-28  Bruno Haible  <bruno@clisp.org>
93744
93745         * lib/copy-file.h: New file, from GNU gettext.
93746         * lib/copy-file.c: New file, from GNU gettext.
93747
93748 2003-03-18  Jim Meyering  <jim@meyering.net>
93749
93750         * lib/quote.c (quote_n): Fix typo in comment.
93751
93752 2003-03-18  Bruno Haible  <bruno@clisp.org>
93753
93754         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93755         checking.
93756         * m4/onceonly_2_57.m4: Likewise.
93757
93758 2003-03-17  Bruno Haible  <bruno@clisp.org>
93759
93760         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93761         (m4_quote): Remove macro.
93762         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93763
93764 2003-03-14  Jim Meyering  <jim@meyering.net>
93765
93766         Merge changes from Coreutils.
93767         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93768         to be const, in order to avoid warnings.
93769         (obstack_room): Likewise.
93770         (obstack_empty_p): Likewise.
93771
93772 2003-03-14  Bruno Haible  <bruno@clisp.org>
93773
93774         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93775         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93776
93777 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93778
93779         Merge changes from Bison.
93780         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93781         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93782         when compiling Bison 1.875's `bitset bset = obstack_alloc
93783         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93784         * lib/hash.c: Include <stdbool.h> unconditionally.
93785
93786 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93787
93788         * m4/onceonly.m4 (m4_quote): New macro.
93789         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93790         Quote AC_FOREACH variable-expansions properly.
93791
93792 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93793
93794         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93795
93796 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93797
93798         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93799         Reported by Bruce Becker; see:
93800         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93801
93802 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93803             Bruno Haible  <bruno@clisp.org>
93804
93805         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93806         Reported by John Hughes, see
93807         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93808
93809 2003-02-20  Bruno Haible  <bruno@clisp.org>
93810
93811         * MODULES.html.sh (func_all_modules): Add poll.
93812
93813 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93814
93815         * modules/poll: New file.
93816
93817 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93818
93819         * lib/poll_.h: New file.
93820         * lib/poll.c: New file.
93821
93822 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93823
93824         * m4/poll.m4: New file.
93825
93826 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93827
93828         * modules/mathl: New file.
93829
93830 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93831
93832         * lib/mathl.h: New file.
93833         * lib/acosl.c: New file.
93834         * lib/asinl.c: New file.
93835         * lib/atanl.c: New file.
93836         * lib/ceill.c: New file.
93837         * lib/cosl.c: New file.
93838         * lib/expl.c: New file.
93839         * lib/floorl.c: New file.
93840         * lib/frexpl.c: New file.
93841         * lib/ldexpl.c: New file.
93842         * lib/logl.c: New file.
93843         * lib/sincosl.c: New file.
93844         * lib/sinl.c: New file.
93845         * lib/sqrtl.c: New file.
93846         * lib/tanl.c: New file.
93847         * lib/trigl.c: New file.
93848         * lib/trigl.h: New file.
93849
93850 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93851
93852         * m4/mathl.m4: New file.
93853
93854 2003-02-18  Bruno Haible  <bruno@clisp.org>
93855
93856         * MODULES.html.sh (func_all_modules): Add mathl.
93857
93858 2003-02-17  Bruno Haible  <bruno@clisp.org>
93859
93860         * modules/mkdtemp: New module.
93861         * MODULES.html.sh (func_all_modules): Add it.
93862
93863 2003-02-17  Bruno Haible  <bruno@clisp.org>
93864
93865         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93866
93867 2003-02-17  Bruno Haible  <bruno@clisp.org>
93868
93869         * lib/mkdtemp.h: New file, from GNU gettext.
93870         * lib/mkdtemp.c: New file, from GNU gettext.
93871
93872 2003-02-02  Jim Meyering  <jim@meyering.net>
93873
93874         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93875         e.g. glibc-2.2.93.
93876
93877 2003-01-31  Bruno Haible  <bruno@clisp.org>
93878
93879         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93880         'rpl_rename'.
93881         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93882         'rpl_strnlen'.
93883         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93884         'rpl_strtod'.
93885         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93886         'rpl_utime'.
93887
93888 2003-01-31  Bruno Haible  <bruno@clisp.org>
93889
93890         * lib/rename.c: #undef rename before defining rpl_rename.
93891         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93892
93893 2003-01-30  Bruno Haible  <bruno@clisp.org>
93894
93895         * modules/vasnprintf, modules/vasprintf: New modules.
93896         * MODULES.html.sh (func_all_modules): Add them.
93897
93898 2003-01-30  Bruno Haible  <bruno@clisp.org>
93899
93900         * m4/signed.m4: New file, from GNU gettext.
93901         * m4/longdouble.m4: New file, from GNU gettext.
93902         * m4/wchar_t.m4: New file, from GNU gettext.
93903         * m4/wint_t.m4: New file, from GNU gettext.
93904         * m4/vasnprintf.m4: New file.
93905         * m4/vasprintf.m4: New file.
93906
93907 2003-01-30  Bruno Haible  <bruno@clisp.org>
93908
93909         * lib/printf-args.h: New file, from GNU gettext.
93910         * lib/printf-args.c: New file, from GNU gettext.
93911         * lib/printf-parse.h: New file, from GNU gettext.
93912         * lib/printf-parse.c: New file, from GNU gettext.
93913         * lib/vasnprintf.h: New file, from GNU gettext.
93914         * lib/vasnprintf.c: New file, from GNU gettext.
93915         * lib/asnprintf.c: New file, from GNU gettext.
93916         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93917         * lib/vasprintf.c: New file, from GNU gettext.
93918         * lib/asprintf.c: New file, from GNU gettext.
93919
93920 2003-01-29  Bruno Haible  <bruno@clisp.org>
93921
93922         * modules/stpncpy: New module.
93923         * MODULES.html.sh (func_all_modules): Add it.
93924
93925 2003-01-29  Bruno Haible  <bruno@clisp.org>
93926
93927         * m4/stpncpy.m4: New file.
93928
93929 2003-01-29  Bruno Haible  <bruno@clisp.org>
93930
93931         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93932         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93933
93934 2003-01-28  Bruno Haible  <bruno@clisp.org>
93935
93936         * modules/c-ctype: New module.
93937         * MODULES.html.sh (func_all_modules): Add it.
93938
93939 2003-01-28  Bruno Haible  <bruno@clisp.org>
93940
93941         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93942         Paul Eggert.
93943         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93944         Paul Eggert.
93945
93946 2003-01-27  Bruno Haible  <bruno@clisp.org>
93947
93948         * modules/xsetenv: New module.
93949         * MODULES.html.sh (func_all_modules): Add it.
93950
93951 2003-01-27  Bruno Haible  <bruno@clisp.org>
93952
93953         * lib/xsetenv.h: New file, from GNU gettext.
93954         * lib/xsetenv.c: New file, from GNU gettext.
93955
93956 2003-01-23  Jim Meyering  <jim@meyering.net>
93957
93958         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93959         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93960
93961 2003-01-23  Bruno Haible  <bruno@clisp.org>
93962
93963         * modules/minmax: New module.
93964         * MODULES.html.sh (func_all_modules): Add it.
93965
93966 2003-01-23  Bruno Haible  <bruno@clisp.org>
93967
93968         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93969         Eggert.
93970
93971 2003-01-22  Bruno Haible  <bruno@clisp.org>
93972
93973         * modules/exit: New module.
93974         * MODULES.html.sh (func_all_modules): Add it.
93975
93976 2003-01-22  Bruno Haible  <bruno@clisp.org>
93977
93978         * lib/exit.h: New file, from GNU gettext.
93979
93980 2003-01-19  Bruno Haible  <bruno@clisp.org>
93981
93982         * gnulib-tool: Recognize option --extract-maintainer.
93983         (func_get_maintainer): New function.
93984         * modules/*: Add Maintainer entry.
93985
93986 2003-01-16  Jim Meyering  <jim@meyering.net>
93987
93988         * m4/regex.m4: The `regex' struct is both input and output.
93989         Initialize it before each use.  Patch by Tim Waugh.
93990
93991 2003-01-16  Bruno Haible  <bruno@clisp.org>
93992
93993         * MODULES.html.sh: Add a table of contents. Add the module name as
93994         leftmost column. Add hyperlinks.
93995
93996 2003-01-15  Bruno Haible  <bruno@clisp.org>
93997
93998         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93999
94000 2003-01-15  Bruno Haible  <bruno@clisp.org>
94001
94002         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94003         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94004         suffix.
94005
94006 2003-01-15  Bruno Haible  <bruno@clisp.org>
94007
94008         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94009
94010 2003-01-15  Bruno Haible  <bruno@clisp.org>
94011
94012         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94013         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94014
94015 2003-01-14  Jim Meyering  <jim@meyering.net>
94016
94017         * lib/same.c (same_name): Tweak a comment.
94018
94019 2003-01-14  Bruno Haible  <bruno@clisp.org>
94020
94021         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94022         when a string comparison is sufficient.
94023
94024 2003-01-14  Bruno Haible  <bruno@clisp.org>
94025
94026         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94027         'unsigned int'.
94028
94029 2003-01-14  Bruno Haible  <bruno@clisp.org>
94030
94031         * lib/hash-pjw.c: Add comment about low quality of this function.
94032
94033 2003-01-13  Bruno Haible  <bruno@clisp.org>
94034
94035         * modules/stpcpy: Distribute lib/stpcpy.h.
94036         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94037
94038 2003-01-13  Bruno Haible  <bruno@clisp.org>
94039
94040         * modules/*: Add a description.
94041         * modules/strpbrk: Fix Makefile.am snippet.
94042         * modules/strtoimax: Fix dependencies.
94043         * modules/strtoumax: Likewise.
94044
94045 2003-01-13  Bruno Haible  <bruno@clisp.org>
94046
94047         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94048         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94049         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94050
94051 2003-01-13  Bruno Haible  <bruno@clisp.org>
94052
94053         * gnulib-tool (func_create_testdir): Store config/* files in the main
94054         directory.
94055         * config.rpath: Move to ...
94056         * config/config.rpath: ... here.
94057         * modules/gettext: Contains config/config.rpath, not config.rpath.
94058         * modules/iconv: Likewise.
94059
94060 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94061
94062         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94063         to avoid collisions with libcurses and libreadline.
94064
94065         * m4/getstr.m4: Remove.
94066         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94067
94068 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94069
94070         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94071         to avoid collisions with libcurses and libreadline.
94072
94073         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94074         * lib/getstr.h, getstr.c: Remove.
94075         * lib/getline.c: Include "getline.h", to check interface.
94076         Move body of old getstr.c here: this defines MIN_CHUNK and
94077         declares getdelim2, which is renamed from getstr.
94078         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94079
94080         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94081         All uses changed.
94082         * lib/linebuffer.h: Likewise.
94083         (readline): Remove backward-compatibility macro.
94084
94085 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94086
94087         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94088         to avoid collisions with libcurses and libreadline.
94089         * getstr: Remove.
94090         * MODULES.html.sh: Remove getstr.
94091         * modules/getline: Depend on unlocked-io, not getstr.
94092
94093 2003-01-12  Jim Meyering  <jim@meyering.net>
94094
94095         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94096
94097 2003-01-10  Bruno Haible  <bruno@clisp.org>
94098
94099         * modules/alloca: Change Makefile.am requirements. Simplify Include
94100         requirements. Add lib/alloca_.h to file list.
94101
94102 2003-01-10  Bruno Haible  <bruno@clisp.org>
94103
94104         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94105
94106 2003-01-10  Bruno Haible  <bruno@clisp.org>
94107
94108         * lib/alloca_.h: New file.
94109         * lib/getdate.y: Unconditionally include alloca.h.
94110         * lib/makepath.c: Likewise.
94111         * lib/setenv.c: Likewise.
94112         * lib/userspec.c: Likewise.
94113
94114 2003-01-09  Karl Berry  <karl@gnu.org>
94115
94116         * MODULES.html.sh: include `dirname $0` in PATH, to find
94117         gnulib-tool.
94118
94119 2003-01-09  Bruno Haible  <bruno@clisp.org>
94120
94121         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94122         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94123
94124 2003-01-09  Bruno Haible  <bruno@clisp.org>
94125
94126         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94127
94128 2003-01-09  Bruno Haible  <bruno@clisp.org>
94129
94130         * lib/stdbool.h.in: New file.
94131
94132 2003-01-09  Bruno Haible  <bruno@clisp.org>
94133
94134         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94135         * MODULES.html.sh: Likewise.
94136
94137 2003-01-08  Jim Meyering  <jim@meyering.net>
94138
94139         * lib/full-write.c: Undefine and define-away `const' after inclusion
94140         of errno.h, not before.  Suggestion from Bruno Haible.
94141
94142 2003-01-08  Bruno Haible  <bruno@clisp.org>
94143
94144         * modules/full-read: Depend on full-write.
94145
94146 2003-01-08  Bruno Haible  <bruno@clisp.org>
94147
94148         * lib/safe-read.c: Include specification header first, to ensure its
94149         selfcontainedness.
94150         * lib/full-write.c: Likewise.
94151
94152 2003-01-07  Jim Meyering  <jim@meyering.net>
94153
94154         * lib/full-write.c: Rework so that it may serve to define full_read,
94155         too.
94156         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94157
94158 2003-01-07  Bruno Haible  <bruno@clisp.org>
94159
94160         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94161         <inttypes.h>.
94162         * lib/xstrtol.h: Likewise.
94163         * lib/xstrtoimax.c: Likewise.
94164         * lib/xstrtoumax.c: Likewise.
94165         * lib/human.h: Likewise.
94166
94167         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94168         on systems that have <inttypes.h> but not <stdint.h>.
94169
94170 2003-01-07  Bruno Haible  <bruno@clisp.org>
94171
94172         * MODULES.html.sh: Add copyright notice.
94173         (missed_files): Omit CVS directory entries.
94174         (func_module): Make it work with sed-3.02.
94175         * MODULES.txt: Remove file.
94176
94177 2003-01-06  Jim Meyering  <jim@meyering.net>
94178
94179         * lib/version-etc.c: Update year in translatable copyright string.
94180
94181 2003-01-03  Karl Berry  <karl@gnu.org>
94182
94183         * config/config.{guess,sub}: update from prep.
94184
94185 2003-01-02  Karl Berry  <karl@gnu.org>
94186
94187         * doc/COPYING.DOC: belatedly updated to 1.2.
94188
94189 2003-01-01  Karl Berry  <karl@gnu.org>
94190
94191         * gnulib-tool (func_verify_module): report module name $module in
94192         error message, not $1.
94193         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94194         be created, only if it doesn't exist.
94195         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94196
94197 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94198
94199         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94200
94201 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94202
94203         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94204         memcmp if strcoll doesn't work.
94205
94206 2002-12-31  Bruno Haible  <bruno@clisp.org>
94207
94208         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94209         nonempty.
94210
94211 2002-12-31  Bruno Haible  <bruno@clisp.org>
94212
94213         * lib/memcoll.c (STRCOLL): New macro.
94214         (memcoll): Use it.
94215
94216 2002-12-31  Bruno Haible  <bruno@clisp.org>
94217
94218         * lib/localcharset.h: New file.
94219         * lib/localcharset.c: Include it.
94220         * lib/unicodeio.c: Likewise.
94221
94222 2002-12-31  Bruno Haible  <bruno@clisp.org>
94223
94224         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94225         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94226
94227 2002-12-31  Bruno Haible  <bruno@clisp.org>
94228
94229         * lib/getline.h: Include <stddef.h>, for size_t.
94230
94231         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94232         * lib/unicodeio.c: Don't include <stddef.h>.
94233
94234 2002-12-31  Bruno Haible  <bruno@clisp.org>
94235
94236         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94237         HAVE_TM_ZONE.
94238
94239 2002-12-24  Karl Berry  <karl@gnu.org>
94240
94241         * config/config.guess: update from prep.
94242
94243 2002-12-24  Bruno Haible  <bruno@clisp.org>
94244
94245         General infrasructure.
94246         * m4/README: Rewritten.
94247         * m4/onceonly.m4: New file.
94248         * m4/onceonly_2_57.m4: New file.
94249
94250         Module atexit.
94251         * m4/atexit.m4: New file.
94252
94253         Module strtod.
94254         * m4/strtod.m4: New file.
94255
94256         Module strtol.
94257         * m4/strtol.m4: New file.
94258
94259         Module strtoul.
94260         * m4/strtoul.m4: New file.
94261
94262         Module memchr.
94263         * m4/memchr.m4: New file.
94264
94265         Module memcmp.
94266         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94267         (jm_FUNC_MEMCMP): Invoke it.
94268
94269         Module memcpy.
94270         * m4/memcpy.m4: New file.
94271
94272         Module memmove.
94273         * m4/memmove.m4: New file.
94274
94275         Module memset.
94276         * m4/memset.m4: New file.
94277
94278         Module strcspn.
94279         * m4/strcspn.m4: New file.
94280
94281         Module strpbrk.
94282         * m4/strpbrk.m4: New file.
94283
94284         Module strstr.
94285         * m4/strstr.m4: New file.
94286
94287         Module strerror.
94288         * m4/strerror.m4: New file.
94289
94290         Module mktime.
94291         * m4/mktime.m4: Renamed from jm-mktime.m4.
94292         (gl_PREREQ_MKTIME): New macro.
94293         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94294
94295         Module malloc.
94296         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94297         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94298         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94299
94300         Module realloc.
94301         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94302         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94303         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94304
94305         Module strftime.
94306         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94307         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94308         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94309         gl_TM_GMTOFF.
94310         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94311
94312         Module xalloc.
94313         * m4/xalloc.m4: New file.
94314
94315         Module alloca.
94316         * m4/alloca.m4: New file.
94317
94318         Module putenv.
94319         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94320         (jm_FUNC_PUTENV): Invoke it.
94321
94322         Module setenv.
94323         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94324         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94325         when invoked twice.
94326         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94327         gt_FUNC_SETENV.
94328
94329         Module memrchr.
94330         * m4/memrchr.m4: New file.
94331
94332         Module stpcpy.
94333         * m4/stpcpy.m4: New file.
94334
94335         Module strcase.
94336         * m4/strcase.m4: New file.
94337
94338         Module strdup.
94339         * m4/strdup.m4: New file.
94340
94341         Module strnlen.
94342         * m4/strnlen.m4: New file.
94343
94344         Module strndup.
94345         * m4/strndup.m4: New file.
94346
94347         Module xstrtod.
94348         * m4/xstrtod.m4: New file.
94349
94350         Module xstrtol.
94351         * m4/xstrtol.m4: New file.
94352
94353         Module getdate.
94354         * m4/getdate.m4: New file.
94355
94356         Module unlocked-io.
94357         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94358         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94359         * m4/jm-glibc-io.m4n: Remove file.
94360
94361         Module long-options.
94362         * m4/long-options.m4: New file.
94363
94364         Module md5.
94365         * m4/md5.m4: New file.
94366
94367         Module sha.
94368         * m4/sha.m4: New file.
94369
94370         Module getstr.
94371         * m4/getstr.m4: New file.
94372
94373         Module getline.
94374         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94375         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94376         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94377         simply getline. Infoke gl_PREREQ_GETLINE.
94378
94379         Module obstack.
94380         * m4/obstack.m4: New file.
94381
94382         Module hash.
94383         * m4/hash.m4: New file.
94384
94385         Module readtokens.
94386         * m4/readtokens.m4: New file.
94387
94388         Module strverscmp.
94389         * m4/strverscmp.m4: New file.
94390
94391         Module stdbool.
94392         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94393         OSF/1.
94394
94395         Module strtoll.
94396         * m4/strtoll.m4: New file.
94397
94398         Module strtoull.
94399         * m4/strtoull.m4: New file.
94400
94401         Module strtoimax.
94402         * m4/strtoimax.m4: New file.
94403
94404         Module strtoumax.
94405         * m4/strtoumax.m4: New file.
94406
94407         Module xstrtoimax.
94408         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94409         jm_AC_PREREQ_XSTRTOIMAX.
94410         Moved the strtol prerequisites to strtol.m4.
94411         Moved the strtoll prerequisites to strtoll.m4.
94412         Moved the strtoimax prerequisites to strtoimax.m4.
94413
94414         Module xstrtoumax.
94415         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94416         jm_AC_PREREQ_XSTRTOUMAX.
94417         Moved the strtoul prerequisites to strtoul.m4.
94418         Moved the strtoull prerequisites to strtoull.m4.
94419         Moved the strtoumax prerequisites to strtoumax.m4.
94420
94421         Module chown.
94422         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94423         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94424
94425         Module dup2.
94426         * m4/dup2.m4: New file.
94427
94428         Module ftruncate.
94429         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94430         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94431
94432         Module getgroups.
94433         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94434         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94435
94436         Module gettimeofday.
94437         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94438         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94439         gl_PREREQ_GETTIMEOFDAY.
94440
94441         Module mkdir.
94442         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94443         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94444
94445         Module mkstemp.
94446         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94447         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94448         jm_AC_TYPE_UINTMAX_T.
94449         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94450
94451         Module stat.
94452         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94453         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94454
94455         Module lstat.
94456         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94457         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94458
94459         Module timespec.
94460         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94461         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94462         * m4/st_mtim.m4: Indentation.
94463
94464         Module nanosleep.
94465         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94466         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94467         gl_PREREQ_NANOSLEEP.
94468
94469         Module regex.
94470         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94471         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94472         (gl_REGEX): New macro.
94473
94474         Module rename.
94475         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94476         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94477
94478         Module rmdir.
94479         * m4/rmdir.m4: New file.
94480
94481         Module utime.
94482         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94483         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94484         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94485
94486         Module dirname.
94487         * m4/dirname.m4: New file.
94488
94489         Module getopt.
94490         * m4/getopt.m4: New file.
94491
94492         Module unistd-safer.
94493         * m4/unistd-safer.m4: New file.
94494
94495         Module fnmatch.
94496         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94497         declaration.
94498         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94499         (gl_FUNC_FNMATCH_POSIX): New macro.
94500         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94501         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94502         simply fnmatch.
94503
94504         Module exclude.
94505         * m4/exclude.m4: New file.
94506
94507         Module human.
94508         * m4/human.m4: New file.
94509
94510         Module acl.
94511         * m4/acl.m4: Nop.
94512
94513         Module backupfile.
94514         * m4/backupfile.m4: New file.
94515         * m4/d-ino.m4: Indentation.
94516
94517         Module fsusage.
94518         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94519         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94520         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94521
94522         Module dirfd.
94523         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94524         requirements.
94525
94526         Module euidaccess.
94527         * m4/euidaccess.m4: New file.
94528
94529         Module file-type.
94530         * m4/file-type.m4: New file.
94531
94532         Module fileblocks.
94533         * m4/fileblocks.m4: New file.
94534
94535         Module filemode.
94536         * m4/filemode.m4: New file.
94537
94538         Module isdir.
94539         * m4/isdir.m4: New file.
94540
94541         Module lchown.
94542         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94543         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94544
94545         Module makepath.
94546         * m4/makepath.m4: New file.
94547
94548         Module modechange.
94549         * m4/modechange.m4: New file.
94550
94551         Module mountlist.
94552         * m4/mountlist.m4: New file.
94553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94554         Indentation.
94555
94556         Module path-concat.
94557         * m4/path-concat.m4: New file.
94558
94559         Module pathmax.
94560         * m4/pathmax.m4: New file.
94561
94562         Module same.
94563         * m4/same.m4: New file.
94564
94565         Module save-cwd.
94566         * m4/save-cwd.m4: New file.
94567
94568         Module savedir.
94569         * m4/savedir.m4: New file.
94570
94571         Module xgetcwd.
94572         * m4/xgetcwd.m4: New file.
94573         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94574
94575         Module xreadlink.
94576         * m4/xreadlink.m4: New file.
94577
94578         Module safe-read.
94579         * m4/safe-read.m4: New file.
94580
94581         Module safe-write.
94582         * m4/safe-write.m4: New file.
94583
94584         Module closeout.
94585         * m4/closeout.m4: New file.
94586
94587         Module stdio-safer.
94588         * m4/stdio-safer.m4: New file.
94589
94590         Module getpass.
94591         * m4/getpass.m4: New file.
94592
94593         Module getugroups.
94594         * m4/getugroups.m4: New file.
94595
94596         Module group-member.
94597         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94598         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94599
94600         Module idcache.
94601         * m4/idcache.m4: New file.
94602
94603         Module userspec.
94604         * m4/userspec.m4: New file.
94605
94606         Module gettime.
94607         * m4/clock_time.m4: New file.
94608         * m4/gettime.m4: New file.
94609
94610         Module settime.
94611         * m4/settime.m4: New file.
94612
94613         Module posixtm.
94614         * m4/posixtm.m4: New file.
94615
94616         Module gethostname.
94617         * m4/gethostname.m4: New file.
94618
94619         Module canon-host.
94620         * m4/canon-host.m4: New file.
94621
94622         Module gettext.
94623         * m4/codeset.m4: New file, from gettext-0.11.5.
94624         * m4/gettext.m4: New file, from gettext-0.11.5.
94625         * m4/glibc21.m4: New file, from gettext-0.11.5.
94626         * m4/iconv.m4: New file, from gettext-0.11.5.
94627         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94628         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94629         * m4/inttypes.m4: New file, from gettext-0.11.5.
94630         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94631         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94632         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94633         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94634         * m4/lib-link.m4: New file, from gettext-0.11.5.
94635         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94636         * m4/progtest.m4: New file, from gettext-0.11.5.
94637         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94638         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94639         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94640
94641         Module localcharset.
94642         * m4/localcharset.m4: New file.
94643
94644         Module hard-locale.
94645         * m4/hard-locale.m4: New file.
94646
94647         Module mbswidth.
94648         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94649         onceonly macros.
94650         * m4/mbrtowc.m4: Add comment.
94651
94652         Module memcasecmp.
94653         * m4/memcasecmp.m4: New file.
94654
94655         Module memcoll.
94656         * m4/memcoll.m4: New file.
94657
94658         Module unicodeio.
94659         * m4/unicodeio.m4: New file.
94660
94661         Module rpmatch.
94662         * m4/rpmatch.m4: New file.
94663
94664         Module yesno.
94665         * m4/yesno.m4: New file.
94666
94667         Module exitfail.
94668         * m4/exitfail.m4: New file.
94669
94670         Module c-stack.
94671         * m4/c-stack.m4 (gl_C_STACK): New macro.
94672         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94673
94674         Module error.
94675         * m4/error.m4 (gl_ERROR): New macro.
94676         (jm_PREREQ_ERROR): Use onceonly macros.
94677
94678         Module fatal.
94679         * m4/fatal.m4: New file.
94680
94681         Module getloadavg.
94682         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94683         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94684
94685         Module getpagesize.
94686         * m4/getpagesize.m4: New file.
94687
94688         Module getusershell.
94689         * m4/getusershell.m4: New file.
94690
94691         Module physmem.
94692         * m4/physmem.m4: New file.
94693
94694         Module posixver.
94695         * m4/posixver.m4: New file.
94696
94697         Module quotearg.
94698         * m4/quotearg.m4: New file.
94699
94700         Module quote.
94701         * m4/quote.m4: New file.
94702
94703         Module readutmp.
94704         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94705
94706         Module sig2str.
94707         * m4/sig2str.m4: New file.
94708
94709         Other.
94710         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94711         ulonglong.m4.
94712         * m4/intmax_t.m4: New file.
94713         * m4/d-type.m4: Indentation.
94714         * m4/jm-macros.m4: Update.
94715         * m4/prereq.m4 (jm_PREREQ): Update.
94716         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94717         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94718         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94719         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94720         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94721         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94722         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94723         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94724         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94725         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94726         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94727         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94728         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94729         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94730         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94731         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94732         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94733         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94734         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94735
94736 2002-12-24  Bruno Haible  <bruno@clisp.org>
94737
94738         * MODULES.txt: Update according to m4/ changes.
94739
94740         Module gettext.
94741         * config.rpath: New file, from gettext-0.11.5.
94742
94743         * modules/*: New module descriptions.
94744         * gnulib-tool: New file.
94745         * MODULES.html.sh: New file.
94746
94747 2002-12-21  Karl Berry  <karl@gnu.org>
94748
94749         * doc/fdl.texi: update to version 1.2.
94750
94751 2002-12-19  Karl Berry  <karl@gnu.org>
94752
94753         * config/config.guess: update from prep.
94754
94755 2002-12-18  Bruno Haible  <bruno@clisp.org>
94756
94757         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94758         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94759
94760 2002-12-17  Bruno Haible  <bruno@clisp.org>
94761
94762         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94763         stdlib.h, string.h.
94764
94765 2002-12-17  Bruno Haible  <bruno@clisp.org>
94766
94767         * lib/canon-host.c (strdup): Remove unused declaration.
94768
94769         * lib/fsusage.c: Include full_read.h.
94770         (get_fs_usage): Use full_read instead of safe_read.
94771
94772         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94773
94774 2002-12-12  Karl Berry  <karl@gnu.org>
94775
94776         * config/config.guess: update from prep.
94777
94778 2002-12-11  Bruno Haible  <bruno@clisp.org>
94779
94780         * m4/setenv.m4: New file, from gettext-0.11.5.
94781
94782 2002-12-11  Bruno Haible  <bruno@clisp.org>
94783
94784         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94785         not unsetenv().
94786         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94787         modifications:
94788
94789         2002-12-11  Bruno Haible  <bruno@clisp.org>
94790
94791                 * setenv.c (alloca): Fall back to malloc.
94792                 (freea): New macro.
94793                 (setenv): Use freea() to free memory allocated with alloca().
94794
94795         2002-11-13  Bruno Haible  <bruno@clisp.org>
94796
94797                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94798                 function declarations.
94799                 * unsetenv.c (unsetenv): Likewise.
94800
94801         2002-03-04  Bruno Haible  <bruno@clisp.org>
94802
94803                 Portability to AIX 4.3.3.
94804                 * unsetenv.c: New file, extracted from setenv.c.
94805                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94806
94807         2001-12-20  Bruno Haible  <bruno@clisp.org>
94808
94809                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94810                 use malloc instead. For SunOS 4.
94811
94812         2001-12-11  Bruno Haible  <bruno@clisp.org>
94813
94814                 * setenv.c: Declare alloca.
94815                 (compar_fn_t): New typedef.
94816                 (KNOWN_VALUE, STORE_VALUE): Use it.
94817
94818         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94819         setenv.h.
94820
94821 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94822
94823         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94824         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94825         Choose values that are less likely to collide with system fnmatch
94826         options.
94827         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94828         defined (e.g., a pure POSIX system).
94829         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94830         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94831
94832 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94833
94834         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94835         a pain in practice to deal with generated m4 files.  This change
94836         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94837
94838         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94839         and jm-glibc-io.m4, as they are no longer a special case.
94840         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94841         kludge and the auto-generation stuff.  Check only whether the
94842         functions are declared, not whether they exist, since older hosts
94843         that don't declare the functions can't use the optimization anyway.
94844
94845 2002-12-06  Jim Meyering  <jim@meyering.net>
94846
94847         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94848
94849         Merge in changes from libc's misc/error.c, in preparation
94850         for the merge of gnulib's changes back into libc.
94851
94852         * lib/error.c (_): Define only if not already defined.
94853         Move definition to follow all #include directives.
94854         Include unlocked-io.h only if !_LIBC.
94855         [_LIBC]: Include <libio/libioP.h>.
94856         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94857         (fflush): Tweak definition to use INTUSE.
94858         (putc): Define.
94859
94860 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94861
94862         * lib/alloca.c [defined emacs]: Include "lisp.h".
94863         (xalloc_die) [defined emacs]: New macro.
94864         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94865         [! defined emacs]: Include <xalloc.h>.
94866         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94867         (pointer): Typedef to POINTER_TYPE *.
94868         (malloc): Remove decl; we now always use xmalloc.
94869         (alloca): Use old-style definition, since Emacs needs this.
94870         Check for arithmetic overflow when computing combined size.
94871
94872 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94873
94874         Do not generate unlocked-io.h automatically, since it's easier to
94875         maintain it by hand.
94876
94877         * lib/unlocked-io.h: New file, from GNU diffutils,
94878         but with proper copyright notice and attribution.
94879         * lib/gen-uio: Remove.
94880         * lib/Makefile.am: Add copyright notice.
94881         (libfetish_a_SOURCES): Add unlocked-io.h.
94882         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94883         (DISTCLEANFILES, io_functions): Remove macros.
94884         (EXTRA_DIST): Remove gen_uio.
94885         (unlocked-io.h): Remove rule.
94886
94887 2002-12-04  Jim Meyering  <jim@meyering.net>
94888
94889         Reflect the fact that stat.c and lstat.c are no longer generated.
94890         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94891         (DISTCLEANFILES): Likewise.
94892         (EXTRA_DIST): Likewise.
94893         (all_local): Don't depend on stat.c or lstat.c.
94894         (stat.c, lstat.c): Remove rules.
94895         (EXTRA_DIST): Remove xstat.in.
94896
94897         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94898         * lib/stat.c: New file.  Contents mostly from xstat.in.
94899         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94900         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94901
94902         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94903         too.
94904         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94905
94906 2002-12-03  Jim Meyering  <jim@meyering.net>
94907
94908         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94909         but not semantics, to minimize the differences between these two files.
94910         (safe_read): Change comment to mention SAFE_READ_ERROR.
94911
94912         * lib/safe-read.c (IS_EINTR): Define.
94913         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94914
94915 2002-12-02  Jim Meyering  <jim@meyering.net>
94916
94917         * lib/safe-read.c (EINTR): Define.
94918         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94919         (INT_MAX): Provide fallback.
94920         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94921
94922         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94923
94924 2002-12-02  Bruno Haible  <bruno@clisp.org>
94925
94926         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94927         Define, taken from safe-read.c.
94928         (INT_MAX): Provide fallback.
94929         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94930         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94931
94932         * lib/safe-read.c (EINTR): Remove definition.
94933         (safe_read): Don't use EINTR if it is absent.
94934
94935 2002-12-01  Jim Meyering  <jim@meyering.net>
94936
94937         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94938         zero.
94939         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94940
94941 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94942
94943         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94944         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94945         with `if (! (value < limit)) abort ();', for readability.
94946
94947 2002-11-26  Karl Berry  <karl@gnu.org>
94948
94949         * lib/strdup.c: copy from libc again, with jim's ok.
94950         * lib/.cppi-disable: re-add strdup.c
94951
94952 2002-11-25  Karl Berry  <karl@gnu.org>
94953
94954         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94955         instead of "strtol.c".
94956
94957 2002-11-25  Karl Berry  <karl@gnu.org>
94958
94959         * config/install-sh: update from automake for variable quoting, $0 in
94960         error msgs, etc.
94961
94962         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94963         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94964         entry.
94965
94966 2002-11-25  Jim Meyering  <jim@meyering.net>
94967
94968         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94969
94970 2002-11-24  Karl Berry  <karl@gnu.org>
94971
94972         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94973         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94974
94975 2002-11-24  Jim Meyering  <jim@meyering.net>
94976
94977         Update from coreutils:
94978
94979         * lib/mktime.c: Merge in changes from libc.
94980
94981         Avoid a link-time failure on some Linux systems.
94982         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94983         (otherwise).
94984         (__mon_yday): Declare with the STATIC attribute.
94985         (__mktime_internal): Likewise.
94986         Based on a report from Greg Schafer.
94987
94988 2002-11-23  Jim Meyering  <jim@meyering.net>
94989
94990         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94991         Use `unsigned', not `int', as type of index.
94992
94993         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94994
94995         * lib/fsusage.c: Remove unneeded parentheses around operands of
94996         `defined'.
94997
94998 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94999
95000         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95001         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95002         so that we can be included first.
95003         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95004         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95005         No need to include stddef.h or sys/types.h any more.
95006         Surround local include files with "", not "<>".
95007         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95008         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95009         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95010         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95011         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95012         (ISPRINT): Remove; no longer needed now that we assume C89.
95013
95014         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95015         Preserve errno.
95016
95017         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95018         quotearg_char): Use SIZE_MAX rather than
95019         (size_t) -1 when we are talking about "infinity".
95020
95021         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95022
95023 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95024
95025         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95026         hint that one should use `if (! x) abort ();' rather than `assert
95027         (x);', and anyway it's one less thing to worry about configuring.
95028         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95029         hash_rehash, hash_insert): Use abort rather than assert.
95030
95031 2002-11-22  Bruno Haible  <bruno@clisp.org>
95032
95033         * lib/safe-read.h: Assume C89. Add comments.
95034         (safe_read): Change return type to size_t.
95035         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95036         byte counts > SSIZE_MAX correctly.
95037         * lib/safe-write.h: New file.
95038         * lib/safe-write.c: New file.
95039         * lib/full-read.h: New file.
95040         * lib/full-read.c: New file.
95041         * lib/full-write.h: Assume C89. Add comments.
95042         * lib/full-write.c: Include safe-write.h.
95043         (full_write): Rewritten to use safe_write.
95044         Suggested by Jim Meyering and Paul Eggert.
95045
95046 2002-11-21  Jim Meyering  <jim@meyering.net>
95047
95048         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95049
95050         Merge in changes from the coreutils.
95051
95052         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95053         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95054         <stdint.h>.
95055         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95056         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95057         int.  Work more efficiently if X is the same width as uintmax_t.
95058         Do not compare X to -1, to avoid bogus compiler warning.
95059         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95060         Don't assume that f_frsize and f_bsize are the same type.
95061
95062         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95063         warning on FreeBSD.
95064
95065         * lib/makepath.c (make_path): Restore umask *before* creating the final
95066         component.
95067         (make_path): Minor reformatting.
95068
95069         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95070         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95071         HAVE_MALLOC/HAVE_REALLOC.
95072
95073         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95074         dummy ones.  At least on GNU/Linux systems, `auto' means something
95075         else.
95076         From Michael Stone.
95077
95078 2002-11-21  Bruno Haible  <bruno@clisp.org>
95079
95080         Remove case insensitive option matching.
95081         * lib/argmatch.h (argcasematch): Remove declaration.
95082         (ARGCASEMATCH): Remove macro.
95083         (__xargmatch_internal): Remove case_sensitive argument.
95084         (XARGMATCH): Update.
95085         (XARGCASEMATCH): Remove macro.
95086         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95087         case_sensitive argument.
95088         (argcasematch): Remove function.
95089         (__xargmatch_internal): Remove case_sensitive argument.
95090         (main): Use XARGMATCH instead of XARGCASEMATCH.
95091
95092         * lib/xmalloc.c: Change compile-time error message. Add comment about
95093         required autoconf version.
95094
95095 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95096
95097         Merge argmatch cleanups from Bison.  Assume C89.
95098
95099         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95100         Include stdlib.h, for EXIT_FAILURE.
95101         Always include <string.h>, since we assume C89.
95102         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95103         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95104         Include <stddef.h> instead, since it's all we need for size_t.
95105         (PARAMS): Remove.  All uses removed.
95106         (ARRAY_CARDINALITY): Do not bother to #undef.
95107         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95108         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95109         Remove unnecessary parentheses.
95110         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95111         Insert necessary parentheses.
95112         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95113         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95114
95115 2002-11-19  Bruno Haible  <bruno@clisp.org>
95116
95117         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95118         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95119
95120         * lib/mbswidth.h (PARAMS): Remove macro.
95121         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95122         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95123
95124         * lib/gcd.h (PARAMS): Remove macro.
95125         (gcd): Use ANSI C function declarations.
95126         * lib/gcd.c (gcd): Likewise.
95127
95128 2002-11-15  Bruno Haible  <bruno@clisp.org>
95129
95130         * lib/strcspn.c: Include <stddef.h>.
95131         (strcspn): Use ANSI C function declaration. Change return type to
95132         size_t. Use NULL.
95133         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95134         (strpbrk): Use NULL.
95135         * lib/strpbrk.h (PARAMS): Remove macro.
95136         (strpbrk): Use ANSI C function declaration.
95137         * lib/strstr.c: Don't include <sys/types.h>.
95138         * lib/strstr.h (PARAMS): Remove macro.
95139         (strstr): Use ANSI C function declarations.
95140
95141 2002-11-14  Karl Berry  <karl@gnu.org>
95142
95143         * config/mkinstalldirs: `do' on separate line, instead of
95144         `for var; do'.
95145
95146 2002-11-06  Bruno Haible  <bruno@clisp.org>
95147
95148         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95149         * lib/gcd.c (gcd): Likewise.
95150
95151 2002-11-05  Bruno Haible  <bruno@clisp.org>
95152
95153         * lib/gcd.h: New file, from gettext-0.11.5.
95154         * lib/gcd.c: New file, from gettext-0.11.5.
95155
95156 2002-11-05  Bruno Haible  <bruno@clisp.org>
95157
95158         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95159         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95160         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95161         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95162
95163         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95164         <libintl.h>.
95165         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95166         <libintl.h>.
95167
95168         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95169         * lib/human.c: Include gettext.h instead of <libintl.h>.
95170         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95171         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95172         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95173         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95174         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95175         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95176         (textdomain): Remove definition.
95177         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95178
95179         * lib/long-options.c: Remove include of <libintl.h> and definition of
95180         _.
95181         * lib/same.c: Remove include of <libintl.h> and definition of _.
95182
95183 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95184
95185         * lib/config.charset: A few additions for Solaris.
95186
95187 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95188
95189         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95190         * lib/localcharset.c (locale_charset): Declare as extern "C".
95191
95192 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95193
95194         * lib/config.charset: msdos in uk_UA uses CP1125.
95195
95196 2002-11-04  Bruno Haible  <bruno@clisp.org>
95197
95198         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95199         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95200         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95201         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95202         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95203
95204 2002-11-04  Bruno Haible  <bruno@clisp.org>
95205
95206         * lib/localcharset.c (locale_charset): Don't return an empty string.
95207
95208 2002-11-04  Bruno Haible  <bruno@clisp.org>
95209
95210         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95211         aliases.
95212
95213 2002-11-04  Bruno Haible  <bruno@clisp.org>
95214
95215         * lib/config.charset: Update for newest glibc. Add canonical names
95216         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95217
95218 2002-11-04  Bruno Haible  <bruno@clisp.org>
95219
95220         * lib/config.charset: Add support for NetBSD.
95221
95222 2002-11-04  Bruno Haible  <bruno@clisp.org>
95223
95224         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95225
95226 2002-11-01  Bruno Haible  <bruno@clisp.org>
95227
95228         * configure.in: Add AC_CONFIG_AUX_DIR call.
95229         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95230         test/Makefile.
95231         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95232
95233 2002-09-28  Karl Berry  <karl@gnu.org>
95234
95235         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95236         installed automake until the next release, since changes have been
95237         made.
95238
95239 2002-09-25  Karl Berry  <karl@gnu.org>
95240
95241         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95242         * lib/getopt*: copy from libc/posix.
95243         * lib/gettext.h: copy from gettext.
95244         * lib/.cppi-disable: add strdup.c, gettext.h.
95245
95246 2002-09-25  Karl Berry  <karl@gnu.org>
95247
95248         * config/srclist.txt: enable gettext.h check.
95249         * config/config.{guess,sub}: update from prep.
95250         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95251                 from automake 1.6.3.
95252         See srclist*.
95253
95254 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95255
95256         * regex.c (PATFETCH): Remove the translating fetch.
95257         (PATFETCH_RAW): Rename to PATFETCH.
95258         (set_image_of_range): New fun.
95259         (SET_RANGE_TABLE_WORK_AREA): Use it.
95260         (regex_compile): Don't translate the pattern chars so eagerly.
95261         Only do it when inserting an `exactn' bytecode or when handling
95262         a char-range.
95263         (mutually_exclusive_p): Avoid empty statement.
95264
95265 2002-07-06  Jim Meyering  <meyering@lucent.com>
95266
95267         * m4/README: Don't mention Makefile.am.in.
95268         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95269
95270 2002-07-01  Jim Meyering  <meyering@lucent.com>
95271
95272         * lib/c-stack.c: Include sys/time.h.
95273         From Volker Borchert.
95274
95275 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95276
95277         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95278
95279 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95280
95281         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95282         New macro.  Use it uniformly instead of
95283         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95284         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95285         reported by Vin Shelton.
95286
95287 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95288
95289         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95290         Do not assume SA_SIGINFO behavior.
95291         Bug reported by Jim Meyering on NetBSD 1.5.2.
95292
95293 2002-06-22  Jim Meyering  <meyering@lucent.com>
95294
95295         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95296         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95297
95298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95299         now that configure.ac uses AC_GNU_SOURCE.
95300         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95301         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95302
95303         Update to latest tools.  Suggestions from Paul Eggert.
95304         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95305         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95306         * m4/fnmatch.m4: Likewise.
95307         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95308         to AC_HEADER_STDBOOL
95309
95310 2002-06-22  Jim Meyering  <meyering@lucent.com>
95311
95312         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95313         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95314
95315 2002-06-22  Jim Meyering  <meyering@lucent.com>
95316
95317         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95318
95319         * lib/exitfail.c, exitfail.h: Likewise.
95320         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95321
95322         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95323         of fnmatch.h.
95324         (EXTRA_DIST): Add fnmatch_loop.c.
95325         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95326
95327         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95328         * lib/fnmatch.c: Update from diffutils-2.8.2.
95329         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95330         * lib/fnmatch.h: Remove file.
95331
95332 2002-06-21  Jim Meyering  <meyering@lucent.com>
95333
95334         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95335         * m4/mbrtowc.m4: Likewise.
95336
95337         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95338         * m4/mbswidth.m4: Reflect name change:
95339         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95340         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95341
95342         * m4/lib-link.m4: Update from gettext-0.11.2.
95343         * m4/gettext.m4: Likewise.
95344
95345         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95346         From Alfred M. Szmidt.
95347
95348 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95349
95350         * lib/file-type.h: Report an error if neither S_ISREG nor
95351         S_IFREG is defined, instead of using a test specific to glibc
95352         2.2.  This should be safe, since POSIX requires S_ISREG and
95353         Unix Version 7 had S_IFREG.  We don't need to check for
95354         <sys/types.h> since we don't use any symbols that it defines.
95355
95356 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95357
95358         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95359         $@-t, so that each temporary file name is unique and valid in the first
95360         8 characters, for operation under DOS.
95361
95362 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95363
95364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95365
95366 2002-06-15  Jim Meyering  <meyering@lucent.com>
95367
95368         Work even with DJGPP 2.03, which lacks support for symlinks.
95369         From Richard Dawe.
95370         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95371         is defined.
95372         * lib/lchown.c (S_ISLNK): Likewise.
95373
95374 2002-06-15  Jim Meyering  <meyering@lucent.com>
95375
95376         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95377         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95378         have been included before this file.
95379
95380 2002-06-14  Jim Meyering  <meyering@lucent.com>
95381
95382         * lib/file-type.h: Use the version from diffutils-2.8.2.
95383         * lib/file-type.c: Likewise.
95384
95385 2002-06-07  Jim Meyering  <meyering@lucent.com>
95386
95387         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95388         They're needed at least for NetBSD 1.5.2.
95389         ($statxfs_includes): Include those same headers.
95390         ($statxfs_includes): Include sys/vfs.h if available.
95391         ($statxfs_includes): Likewise for sys/statvfs.h.
95392         Check for the following members in both structs statfs and statvfs:
95393         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95394
95395 2002-06-01  Jim Meyering  <meyering@lucent.com>
95396
95397         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95398         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95399
95400 2002-05-28  Jim Meyering  <meyering@lucent.com>
95401
95402         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95403         Reported by Volker Borchert.
95404
95405 2002-05-27  Jim Meyering  <meyering@lucent.com>
95406
95407         Fix a problem seen only on nonconforming systems whereby ls.c's
95408         use of localtime, and then of gettimeofday would cause trouble:
95409         the localtime call used to initialize rpl_gettimeofday's save
95410         mechanism would clobber ls's current local time information so
95411         that in any long listing the first file would always be listed
95412         with date 1970-01-01.  Analysis by Volker Borchert.
95413
95414         * lib/gettimeofday.c (localtime): Undefine.
95415         (rpl_localtime): New function.
95416
95417 2002-05-27  Jim Meyering  <meyering@lucent.com>
95418
95419         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95420         localtime.
95421
95422         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95423         use the replacement function; it wouldn't resolve at link time.
95424         Reported by Volker Borchert.
95425
95426 2002-05-22  Jim Meyering  <meyering@lucent.com>
95427
95428         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95429         file-type.h.
95430         * lib/file-type.h: New file.
95431         * lib/file-type.c (file_type): New file/function.  Extracted from
95432         diffutils.
95433
95434 2002-04-30  Jim Meyering  <meyering@lucent.com>
95435
95436         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95437
95438 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95439
95440         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95441
95442 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95443
95444         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95445         Do not check for alloca.h (no longer used) or stdbool.h (was never
95446         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95447
95448 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95449
95450         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95451
95452 2002-04-29  Jim Meyering  <meyering@lucent.com>
95453
95454         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95455         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95456         Use AC_FUNC_STRNLEN here instead.
95457
95458         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95459         With autoconf-2.53a, it's part of AC_PROG_CC.
95460
95461 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95462
95463         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95464         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95465
95466 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95467
95468         * lib/sig2str.h, lib/sig2str.c: New files.
95469         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95470
95471 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95472
95473         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95474         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95475         of 127, since 64 is the largest conceivable number for ancient
95476         nonstandard hosts.
95477         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95478
95479 2002-04-28  Jim Meyering  <meyering@lucent.com>
95480
95481         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95482
95483 2002-04-24  Jim Meyering  <meyering@lucent.com>
95484
95485         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95486         (jm_PREREQ): Use it.
95487
95488         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95489         mach/mach.h fcntl.h.
95490         Check for this function: setlocale.
95491
95492 2002-04-24  Jim Meyering  <meyering@lucent.com>
95493
95494         * lib/gettext.h: New file, from Gettext.
95495         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95496         (libfetish_a_SOURCES): Add gettext.h.
95497
95498 2002-04-16  Jim Meyering  <meyering@lucent.com>
95499
95500         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95501         ut_pid, ut_id, ut_exit.
95502
95503 2002-04-16  Jim Meyering  <meyering@lucent.com>
95504
95505         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95506         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95507         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95508
95509 2002-04-12  Jim Meyering  <meyering@lucent.com>
95510
95511         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95512         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95513         existence of the getmntinfo function.  Needed for Darwin 5.3.
95514
95515         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95516         This is necessary at least on Darwin 5.3.
95517
95518         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95519         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95520         strnlen.o in the library, and that makes some versions of ranlib
95521         object.
95522
95523 2002-04-12  Jim Meyering  <meyering@lucent.com>
95524
95525         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95526
95527 2002-04-09  Jim Meyering  <meyering@lucent.com>
95528
95529         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95530         to be more precise.  Rather than saying we're checking whether the
95531         function `works', say what we're testing.
95532         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95533         Reported by Bruno Haible.
95534
95535 2002-03-10  Jim Meyering  <meyering@lucent.com>
95536
95537         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95538         Suggestion from Santiago Vila.
95539
95540 2002-03-08  Jim Meyering  <meyering@lucent.com>
95541
95542         * lib/rename.c: Mention that this wrapper is needed also on
95543         mips-dec-ultrix4.4 systems.
95544
95545 2002-03-02  Jim Meyering  <meyering@lucent.com>
95546
95547         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95548         not HAVE_CLOCK_SETTIME.
95549
95550 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95551
95552         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95553         Check for clock_settime.
95554
95555 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95556
95557         * lib/nanosleep.h: Rename to....
95558         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95559
95560         * lib/gettime.c: New file.
95561         * lib/settime.c: New file.
95562         * lib/stime.c: Remove.
95563
95564         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95565         timespec.h.  Remove nanosleep.h.
95566
95567 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95568
95569         * m4/acl.m4: New file.
95570         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95571         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95572
95573 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95574
95575         * lib/acl.c, lib/acl.h: New files.
95576         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95577
95578 2002-02-24  Jim Meyering  <meyering@lucent.com>
95579
95580         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95581         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95582         cause trouble.  Reported by Nelson Beebe.
95583
95584 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95585
95586         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95587         compilers that don't know that xalloc_die never returns.
95588
95589 2002-02-20  Jim Meyering  <meyering@lucent.com>
95590
95591         * lib/getdate.c: Regenerate using bison-1.33.
95592
95593 2002-02-17  Jim Meyering  <meyering@lucent.com>
95594
95595         * config/config.guess (main): Don't use `head -1'; it's no longer
95596         portable. Use `sed 1q' instead.
95597
95598 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95599
95600         * m4/codeset.m4: Upgrade to gettext-0.11.
95601         * m4/gettext.m4: Upgrade to gettext-0.11.
95602         * m4/glibc21.m4: Upgrade to gettext-0.11.
95603         * m4/iconv.m4: Upgrade to gettext-0.11.
95604         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95605         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95606         * m4/lib-ld.m4: New file, from gettext-0.11.
95607         * m4/lib-link.m4: New file, from gettext-0.11.
95608         * m4/lib-prefix.m4: New file, from gettext-0.11.
95609         * m4/progtest.m4: Upgrade to gettext-0.11.
95610
95611 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95612
95613         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95614         (jm_PREREQ): Use it.
95615
95616 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95617
95618         * lib/posixver.c, lib/posixver.h: New files.
95619         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95620
95621 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95622             Bruno Haible  <bruno@clisp.org>
95623
95624         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95625         (fwrite_success_callback): New declaration.
95626         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95627         print_unicode_char. Call failure callback instead of error.
95628         (fwrite_success_callback): New function.
95629         (exit_failure_callback): New function.
95630         (fallback_failure_callback): New function.
95631         (print_unicode_char): Call unicode_to_mb.
95632
95633 2002-01-26  Jim Meyering  <meyering@lucent.com>
95634
95635         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95636         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95637
95638 2002-01-26  Jim Meyering  <meyering@lucent.com>
95639
95640         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95641
95642 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95643
95644         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95645
95646 2002-01-22  Jim Meyering  <meyering@lucent.com>
95647
95648         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95649         Otherwise, some versions of automake would omit the rule that makes
95650         Makefile from Makefile.in.
95651
95652 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95653
95654         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95655         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95656         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95657         (memcoll): Set errno to zero if there is no error.
95658
95659         * lib/quotearg.c (quotearg_buffer_restyled):
95660         Fix bug with quoting buffers containing NUL when backslashing escapes.
95661         This bug was exposed by the other changes in this patch.
95662         (quotearg_n_options): New arg ARGSIZE.
95663         All callers changed.
95664         (quoting_options_from_style): New function.
95665         (quotearg_n_style): Use it.
95666         (quotearg_n_style_mem): New function.
95667
95668         * lib/quotearg.h (quotearg_n_style_mem): New function.
95669
95670 2002-01-19  Jim Meyering  <meyering@lucent.com>
95671
95672         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95673         Remove useless quotes: DF_PROG="df".
95674         * m4/strnlen.m4: New file.
95675
95676 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95677
95678         * lib/backupfile.c (ISDIGIT): Comment fix.
95679         * lib/getdate.y (ISDIGIT): Likewise.
95680         * lib/posixtm.c (ISDIGIT, year): Likewise.
95681         * lib/strverscmp.c (ISDIGIT): Likewise.
95682         * lib/userspec.c (ISDIGIT): Likewise.
95683
95684 2002-01-16  Jim Meyering  <meyering@lucent.com>
95685
95686         * lib/getdate.y: Add three semicolons, each just before a closing
95687         brace. Bison (as of version 1.31) no longer papers over that mistake.
95688
95689 2002-01-05  Jim Meyering  <meyering@lucent.com>
95690
95691         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95692
95693 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95694
95695         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95696         not silently exit merely because the output buffer happens to
95697         have nothing pending.
95698
95699 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95700
95701         See the big note in ../ChangeLog.
95702         * lib/human.c (suffixes): Prefer K to k for 1024.
95703         (generate_suffix_backwards): New function.
95704         (human_readable_inexact): Use it.
95705         * lib/xstrtol.c (__xstrtol): If there is no number but there
95706         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95707         Accept 'K' as well as 'k'.
95708
95709 2001-12-15  Jim Meyering  <meyering@lucent.com>
95710
95711         * lib/regex.h (__restrict_arr): Update from libc.
95712
95713         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95714         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95715         (STREQ): Define.
95716
95717 2001-12-14  Jim Meyering  <meyering@lucent.com>
95718
95719         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95720         Suggestion from Bruno Haible.
95721
95722 2001-12-10  Jim Meyering  <meyering@lucent.com>
95723
95724         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95725         xrealloc, Instead, include "xalloc.h".
95726         (initbuffer): Don't cast xmalloc return value to char*.
95727         (readline): Reword comment.
95728         Don't cast xrealloc return value to char*
95729         Return NULL, not 0.
95730
95731 2001-12-09  Jim Meyering  <meyering@lucent.com>
95732
95733         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95734         about `signed and unsigned type in conditional expression'.
95735         * lib/posixtm.c (posix_time_parse): Likewise.
95736
95737         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95738
95739         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95740         to avoid a pedantic warning.
95741
95742         * lib/getstr.c: Don't include assert.h.
95743         (getstr): Remove warning-evoking assertions.
95744         Return -1 if offset parameter is out of bounds.
95745         Change the type of a local from int to size_t.
95746
95747         * lib/strftime.c (my_strftime_localtime_r): Include this function
95748         definition in the `#if ! HAVE_TM_GMTOFF' block.
95749
95750         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95751         Include xalloc.h instead.
95752
95753 2001-12-02  Jim Meyering  <meyering@lucent.com>
95754
95755         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95756         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95757         included.
95758
95759         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95760         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95761
95762 2001-11-30  Akim Demaille  <akim@epita.fr>
95763
95764         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95765         before being defined.
95766
95767 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95768
95769         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95770         First arg is int, not unsigned.
95771         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95772         (SIZE_MAX, UINT_MAX): New macros.
95773         (quotearg_n_options): Abort if N is negative.
95774         Avoid overflow check on hosts where size_t is 64 bits and int
95775         is 32 bits, as overflow is impossible there.
95776         Fix off-by-one typo that caused unnecessary reallocation.
95777
95778 2001-11-27  Jim Meyering  <meyering@lucent.com>
95779
95780         * lib/tempname.c: Merge with version from libc.
95781         * lib/regex.c: Likewise.
95782
95783         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95784         systems for which STDC_HEADERS is 0, it was not included, resulting in
95785         a warning about an integer-to-pointer conversion problem with getenv.
95786         Reported by Volker Borchert.
95787
95788 2001-11-26  Jim Meyering  <meyering@lucent.com>
95789
95790         * lib/gtod.h: Remove file.
95791         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95792         * lib/gettimeofday.c: Don't include gtod.h.
95793         (GTOD_init): Remove function.
95794         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95795         Suggestion from Volker Borchert.
95796
95797 2001-11-23  Jim Meyering  <meyering@lucent.com>
95798
95799         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95800         it.
95801         * lib/hash.c (struct hash_table): Define it here instead.
95802
95803 2001-11-22  Jim Meyering  <meyering@lucent.com>
95804
95805         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95806
95807 2001-11-20  Jim Meyering  <meyering@lucent.com>
95808
95809         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95810         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95811
95812 2001-11-19  Jim Meyering  <meyering@lucent.com>
95813
95814         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95815         directory.  Use "conftestXXXXXX" as the template.
95816         Suggestion from Paul Eggert.
95817
95818         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95819         immediately, so the test doesn't mistakenly hit the max-open-files
95820         limit.
95821
95822 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95823
95824         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95825         (TEMPORARIES): New macro.
95826         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95827         removes an artificial limitation (e.g. HP-UX 10.20, where
95828         TMP_MAX is 17576).
95829
95830 2001-11-18  Jim Meyering  <meyering@lucent.com>
95831
95832         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95833
95834 2001-11-18  Jim Meyering  <meyering@lucent.com>
95835
95836         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95837         on SunOS 4.
95838
95839         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95840         files will be created before anything else.
95841
95842 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95843
95844         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95845         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95846
95847 2001-11-17  Jim Meyering  <meyering@lucent.com>
95848
95849         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95850         Prompted by a report from Bob Proulx.
95851
95852         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95853         Instead, require UTILS_FUNC_MKSTEMP.
95854
95855 2001-11-17  Jim Meyering  <meyering@lucent.com>
95856
95857         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95858         Now, that's done as part of AC_FUNC_STRTOD.
95859
95860 2001-11-17  Jim Meyering  <meyering@lucent.com>
95861
95862         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95863         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95864         rather than group writable.  Patch by Juan F. Codagnone.
95865
95866         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95867         xrealloc, Instead, include "xalloc.h".
95868
95869         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95870         Remove explicit declarations of xmalloc, xrealloc,
95871         and xstrdup.  Instead, include "xalloc.h".
95872
95873         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95874         unlocked-io.h.
95875         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95876         Likewise.
95877         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95878
95879         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95880         Reported by Padraig Brady.
95881
95882         * lib/mkstemp.c: #undef mkstemp.
95883         Include config.h.
95884         (rpl_mkstemp): Rename from mkstemp.
95885         Protoize.
95886
95887 2001-11-16  Jim Meyering  <meyering@lucent.com>
95888
95889         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95890         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95891         determine the amount of total physical memory, use pstat_getstatic.
95892         HPUX-11 doesn't define _SC_PHYS_PAGES.
95893         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95894         If sysconf couldn't be used to determine the amount of available
95895         physical memory, use both pstat_getstatic and pstat_getdynamic.
95896         Based on a patch from Bob Proulx.
95897
95898 2001-11-10  Jim Meyering  <meyering@lucent.com>
95899
95900         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95901         (jm_PREREQ): Use it.
95902
95903 2001-11-09  Jim Meyering  <meyering@lucent.com>
95904
95905         * m4/jm-macros.m4: Require autoconf-2.52f.
95906         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95907         Use these AC_-prefixed names, not the AM_-prefixed ones.
95908
95909         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95910
95911 2001-11-05  Jim Meyering  <meyering@lucent.com>
95912
95913         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95914
95915 2001-11-04  Jim Meyering  <meyering@lucent.com>
95916
95917         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95918         $DEFS.
95919
95920 2001-11-03  Jim Meyering  <meyering@lucent.com>
95921
95922         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95923         of AC_DEFUN.
95924
95925         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95926         know the name of the variable in the macro definition.
95927
95928 2001-11-03  Jim Meyering  <meyering@lucent.com>
95929
95930         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95931         in argmatch_to_argument call.
95932
95933         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95934         argument.
95935
95936         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95937         e.g., a fault due to an attempt to free a NULL pointer.
95938
95939 2001-11-01  Jim Meyering  <meyering@lucent.com>
95940
95941         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95942         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95943
95944 2001-11-01  Jim Meyering  <meyering@lucent.com>
95945
95946         * lib/dirfd.c, lib/dirfd.h: New files.
95947         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95948
95949         * lib/hash.c (hash_print) [TESTING]: Clean up.
95950
95951 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95952
95953         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95954         to avoid a warning if -Wall.
95955
95956 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95957
95958         * README: New file
95959         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95960         (per RMS's instructions, this is now the canonical source)
95961         * lgpl/, gpl/: New directories.
95962
95963 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95964
95965         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95966
95967 2001-10-21  Jim Meyering  <meyering@lucent.com>
95968
95969         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95970         this code would end up calling gettext even in packages built
95971         with --disable-nls.
95972         * lib/getopt.c (_): Likewise.
95973         * lib/regex.c (_): Likewise.
95974
95975 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95976
95977         * m4/error.m4 (jm_PREREQ_ERROR):
95978         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95979         AC_FUNC_STRERROR_R does that.
95980         Check for strerror declaration.
95981
95982         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95983         are supposed to have them these days.
95984         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95985         Merge changes from latest Autoconf CVS.
95986         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95987         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95988         POSIX decided to standardize on the int flavor of strerror_r.
95989
95990 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95991
95992         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95993         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95994         Use strerror_r that is only a macro, even if it is not a function.
95995         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95996         (private_strerror): Use prototypes, not old-style function definition.
95997         (print_errno_message): New function.
95998         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95999         char*-flavored one.
96000         (error_tail, error, error_at_line): Use it.
96001
96002 2001-10-11  Jim Meyering  <meyering@lucent.com>
96003
96004         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96005         and quote_n (1, ... to avoid clobbering a buffer.
96006
96007 2001-10-05  Jim Meyering  <meyering@lucent.com>
96008
96009         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96010         hash-pjw.h.
96011         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96012         * lib/hash-pjw.h: New file.
96013
96014 2001-09-30  Jim Meyering  <meyering@lucent.com>
96015
96016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96017         `struct fsstat' has the `f_fstypename' member.
96018         Use that to define FS_TYPE, which is now used to make
96019         the getfsstat link test tighter.
96020
96021 2001-09-30  Jim Meyering  <meyering@lucent.com>
96022
96023         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96024         Include <sys/ucred.h>, for Apple Darwin.
96025         Include sys/mount.h and sys/fs_types.h only if available.
96026         (FS_TYPE): Define.
96027         (read_filesystem_list): Use FS_TYPE.
96028
96029 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96030
96031         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96032         a boolean context.
96033
96034 2001-09-29  Jim Meyering  <meyering@lucent.com>
96035
96036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96037         [one-argument getmntent function]): Include stdio.h before mntent.h.
96038         SunOS 4.1.x needs it for the declaration of `FILE'.
96039         Patch by Volker Borchert.
96040
96041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96042         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96043         sys/fs_types.h, and make the link-test for getfsstat guard #include
96044         directives with appropriate #if HAVE_*_H tests so that we can
96045         detect getfsstat on Apple Darwin1.3.7 systems.
96046         Reported by Nelson Beebe.
96047         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96048
96049 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96050
96051         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96052         #defines strtoimax.  Also treat the other strto* functions
96053         like strtoimax.
96054
96055         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96056         Check for strtoul and strtoumax,
96057         as those declarations are made even in the signed case.
96058         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96059         Likewise, for strtol and strtoimax.
96060
96061 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96062
96063         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96064         #defines strtoimax.  Also treat the other strto* functions
96065         like strtoimax.
96066
96067         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96068         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96069         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96070
96071 2001-09-26  Jim Meyering  <meyering@lucent.com>
96072
96073         Most macros in unlocked-io.h had the wrong number of arguments.
96074         * lib/gen-uio: New script.
96075         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96076         * lib/unlocked-io.hin: Remove file.
96077         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96078         rather than trying to embed it here.
96079         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96080         Reported by Padraig Brady.
96081
96082 2001-09-25  Volker Borchert  <bt@teknon.de>
96083
96084         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96085         `result'.
96086
96087 2001-09-24  Jim Meyering  <meyering@lucent.com>
96088
96089         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96090
96091 2001-09-23  Jim Meyering  <meyering@lucent.com>
96092
96093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96094         instead of the mere test for existence of mntent.h.  The latter
96095         would get a false-positive on AIX 3.4 systems.
96096         In the outer getmntent if-block, don't die if neither of the getmntent
96097         tests succeeds.  Instead, just fall through and continue with the
96098         remaining tests.
96099
96100 2001-09-23  Jim Meyering  <meyering@lucent.com>
96101
96102         * lib/mountlist.c: Remove useless parentheses in #if directives.
96103         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96104         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96105
96106 2001-09-22  Jim Meyering  <meyering@lucent.com>
96107
96108         * m4/gettext.m4: New file.  From gettext.
96109         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96110         * m4/progtest.m4: Likewise
96111         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96112         * m4/glibc21.m4: Likewise.
96113
96114         * m4/libintl.m4: Remove.  No longer used.
96115
96116 2001-09-22  Jim Meyering  <meyering@lucent.com>
96117
96118         * lib/localcharset.c: Update from latest gettext.
96119         * lib/config.charset: Likewise.
96120
96121 2001-09-20  Jim Meyering  <meyering@lucent.com>
96122
96123         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96124         strtoimax.
96125         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96126         strtoumax.
96127
96128 2001-09-20  Jim Meyering  <meyering@lucent.com>
96129
96130         * lib/xstrtol.c (strtoimax): Guard declaration with
96131         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96132         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96133         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96134         (strtoumax): Likewise, for completeness (it wasn't necessary).
96135
96136 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96137
96138         * lib/strtoimax.c (HAVE_LONG_LONG):
96139         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96140         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96141         to work around bug in IBM C compiler.
96142
96143 2001-09-17  Jim Meyering  <meyering@lucent.com>
96144
96145         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96146         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96147         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96148         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96149         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96150         whenever the right hand side need not be expanded by the shell.
96151
96152 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96153
96154         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96155         library.  It's not correct, as some older glibcs are buggy.
96156         fnmatch wasn't fixed until glibc 2.2.
96157
96158         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96159         special shell magic here.
96160
96161 2001-09-16  Jim Meyering  <meyering@lucent.com>
96162
96163         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96164         * m4/jm-macros.m4: Require it.
96165
96166 2001-09-16  Jim Meyering  <meyering@lucent.com>
96167
96168         * lib/mkdir.c: New file.
96169
96170 2001-09-15  Jim Meyering  <meyering@lucent.com>
96171
96172         * m4/jm-macros.m4: Check for help2man.
96173
96174 2001-09-11  Jim Meyering  <meyering@lucent.com>
96175
96176         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96177         The body, by Paul Eggert, was moved here from configure.in.
96178         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96179
96180 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96181
96182         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96183         (jm_PREREQ): Use it.
96184
96185 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96186
96187         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96188         Use ssize_t, not int, to store result of readlink.
96189         Check for ssize_t overflow as well as size_t overflow,
96190         as POSIX says the result of readlink is implementation-defined
96191         when ssize_t overflows.
96192         Remove unnecessary cast to char*.
96193         Use free+malloc instead of realloc, as the storage doesn't need
96194         to be preserved and it's clearer and can be more efficient that way.
96195         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96196         * lib/xreadlink.h (xreadlink): Update prototype.
96197
96198 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96199
96200         * lib/xgetcwd.c: Revert some of the previous change; intead,
96201         fix the HAVE_GETCWD_NULL code to behave more like the
96202         !HAVE_GETCWD_NULL code used to.
96203
96204         Include "xalloc.h".
96205         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96206         invoke xalloc_die.
96207
96208 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96209
96210         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96211         sys/param.h, as pathmax.h includes them.
96212
96213 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96214
96215         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96216         (jm_PREREQ_XGETCWD): New macro.
96217
96218         * m4/getcwd.m4: New file.
96219
96220 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96221
96222         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96223         like the HAVE_GETCWD_NULL code.
96224         Include pathmax.h if not HAVE_GETCWD.
96225         Do not include xalloc.h.
96226         (INITIAL_BUFFER_SIZE): New symbol.
96227         Do not use xmalloc / xrealloc, since the caller is responsible for
96228         handling errors.  Preserve errno around `free' during failure.
96229         Do not overrun buffer when using getwd.
96230
96231 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96232
96233         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96234         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96235         getcwd (NULL, 0).
96236
96237 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96238
96239         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96240         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96241         spotted by Jim Meyering.
96242
96243 2001-09-03  Jim Meyering  <meyering@lucent.com>
96244
96245         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96246         failure.
96247
96248 2001-09-02  Jim Meyering  <meyering@lucent.com>
96249
96250         * lib/error.c: Update from GNU libc.
96251
96252 2001-09-01  Jim Meyering  <meyering@lucent.com>
96253
96254         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96255         Used by df.
96256
96257 2001-09-01  Jim Meyering  <meyering@lucent.com>
96258
96259         * lib/xreadlink.c: New file.
96260         * lib/xreadlink.h: New file.
96261         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96262         xreadlink.h.
96263
96264         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96265         doesn't conflict with sparc Solaris 7's definition in
96266         /usr/include/sys/int_types.h.
96267
96268         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96269         files.
96270         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96271         and strncasecmp as r-values.  Unixware didn't have declarations.
96272
96273 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96274
96275         * lib/xstrtol.h: Add copyright notice.
96276         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96277         LONGINT_INVALID_SUFFIX_CHAR.
96278
96279 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96280
96281         * lib/xstrtol.c (strtoimax): New decl.
96282
96283 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96284
96285         * lib/xgetcwd.c: Don't include pathmax.h.
96286         Include stdlib.h and unistd.h if available.
96287         Include xalloc.h.
96288         (xmalloc, xstrdup, free): Remove decls.
96289         (xgetcwd): Don't assume sizes fit in unsigned.
96290         Check for overflow when computing sizes.
96291         Simplify reallocation code.
96292
96293 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96294
96295         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96296         a directory's st_size can have an arbitrary value, so the old
96297         usage could waste an arbitrary amount of memory.  All uses
96298         changed.
96299         * lib/savedir.h: Update prototype.
96300
96301 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96302
96303         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96304
96305         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96306         old strtoimax.c.
96307
96308         Also, make the following further changes to make this file's
96309         configuration more similar to that of strtol.c:
96310         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96311         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96312         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96313         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96314         changed to signed values.
96315
96316         And make the following changes as well:
96317         Fix copyright notice, as 1999 was missing.
96318         (verify): New macro.
96319         (strtoimax): Check sizes at compile-time, not run-time.
96320         Prefer strtol to strtoll if both work.
96321         (main): Remove; it was not that useful and was a pain to maintain.
96322
96323         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96324
96325 2001-08-31  Jim Meyering  <meyering@lucent.com>
96326
96327         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96328         Use an initial, malloc'd, buffer of length 128 rather than
96329         a statically allocated one of length 1024.
96330
96331 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96332
96333         Simplify code, partly by assuming autoconf 2.52 semantics.
96334
96335         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96336
96337         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96338         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96339         All uses removed.
96340         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96341         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96342         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96343         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96344         jm_AC_HEADER_INTTYPES_H.
96345         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96346
96347         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96348
96349         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96350         Quote first arg of AC_DEFUN.
96351         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96352         since they are needed to parse the include file even if we need
96353         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96355         but with opposite signedness.
96356
96357 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96358
96359         Merge 'exclude' changes from tar 1.13.22.
96360         This fixes one or two unlikely storage allocation overflow bugs,
96361         but doesn't change user-visible behavior otherwise.
96362
96363 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96364
96365         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96366         (jm_PREREQ_EXCLUDE): New macro.
96367
96368 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96369
96370         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96371         tm to be declared.
96372
96373 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96374
96375         * lib/hash.c: Remove '2001' from copyright notice.
96376
96377 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96378
96379         * lib/full-write.h: New file.
96380         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96381         * lib/full-write.c: Correct credits, as cccp.c no longer
96382         exists and anyway it was so heavily changed from the old cccp
96383         code as to be unrecognizable.  Include full-write.h.
96384         (full_write): Return size_t, with short writes meaning failure.
96385         All callers changed.  This fixes a bug with large buffers
96386         on 64-bit hosts.
96387         * lib/utime.c: Include full-write.h.
96388
96389 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96390
96391         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96392         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96393         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96394         Include if available.
96395         (<xalloc.h>): Include
96396         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96397         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96398         collide with FNM macros.
96399         (struct patopts): New struct.
96400         (struct exclude): Use it, as exclude patterns now come with options.
96401         (new_exclude): Support above changes.
96402         (new_exclude, add_exclude_file):
96403         Initial size must now be a power of two to simplify overflow checking.
96404         (free_exclude, fnmatch_no_wildcards): New function.
96405         (excluded_filename): No longer requires options arg, as the options
96406         are determined by add_exclude.  Now returns bool, not int.
96407         (excluded_filename, add_exclude):
96408         Add support for the fancy new exclusion options.
96409         (add_exclude, add_exclude_file): Now takes int options arg.
96410         Check for arithmetic overflow when computing sizes.
96411         (add_exclude_file): xrealloc might modify errno, so don't
96412         realloc until after errno might be used.
96413
96414         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96415         New macros.
96416         (free_exclude): New decl.
96417         (add_exclude, add_exclude_file): Now takes int options arg.
96418         (excluded_filename): No longer requires options arg, as the options
96419         are determined by add_exclude.  Now returns bool, not int.
96420
96421 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96422
96423         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96424
96425 2001-08-27  Jim Meyering  <meyering@lucent.com>
96426
96427         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96428
96429         * lib/version-etc.c (N_): Remove definition.
96430         Revert most of last change.
96431         Instead, simply don't mark the `Copyright...' string for translation.
96432         Based on advice from Paul Eggert.
96433
96434         * lib/strtoxmax.c: Tweak comment.
96435
96436 2001-08-26  Jim Meyering  <meyering@lucent.com>
96437
96438         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96439
96440         * m4/xstrtoimax.m4: New file.
96441         * m4/xstrtoumax.m4: Add comments explaining why we
96442         AC_REPLACE_FUNCS(strtol).
96443
96444 2001-08-26  Jim Meyering  <meyering@lucent.com>
96445
96446         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96447         of copyright with `%s' so translators don't get an untranslated
96448         message in 2002.
96449         (COPYRIGHT_YEAR): Define.
96450         (version_etc): Use fprintf rather than fputs.
96451         Suggestion from Ulrich Drepper.
96452
96453         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96454
96455         * lib/strtoll.c: New file, from GNU libc.
96456         * lib/xstrtoimax.c: New file.
96457
96458         * lib/xstrtol.h: Add xstrtoimax.
96459         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96460         * lib/strtoimax.c: New file.  Likewise, but first define
96461         STRTOUXMAX_SIGNED.
96462
96463         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96464         ...
96465         * lib/strtoxmax.c: ... then renamed to this.
96466
96467 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96468
96469         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96470         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96471         (jm_AC_TYPE_INTMAX_T): New macro.
96472         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96473
96474         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96475
96476         * m4/longlong.m4: Renamed from ulonglong.m4.
96477         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96478         * m4/uintmax_t.m4: Removed.
96479
96480 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96481
96482         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96483         Port to Solaris 8, where 'sed' requires a space after the 'r'
96484         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96485         Redirect output to $tmp just once.
96486
96487 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96488
96489         * lib/addext.c (<errno.h>): Include.
96490         (errno): Declare if not defined.
96491         (addext): Work correctly when pathconf returns -1 and leaves
96492         errno alone because there is no limit.  Also, work even if
96493         pathconf returns a value greater than SIZE_MAX.
96494
96495 2001-08-12  Jim Meyering  <meyering@lucent.com>
96496
96497         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96498         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96499         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96500         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96501         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96502         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96503         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96504         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96505         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96506         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96507         utime.m4, utimes.m4, xstrtoumax.m4:
96508         Quote the first argument in each use of AC_DEFUN.
96509
96510 2001-08-12  Jim Meyering  <meyering@lucent.com>
96511
96512         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96513         Simply `return getcwd (NULL, 0);'.
96514         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96515         Use 1300 as initial value for length, not PATH_MAX.
96516
96517         * lib/pathmax.h: Clean up cpp syntax.
96518
96519 2001-08-12  Jim Meyering  <meyering@lucent.com>
96520
96521         * lib/gettimeofday.c: New file.
96522         * lib/gtod.h: New file.
96523         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96524
96525 2001-08-05  Jim Meyering  <meyering@lucent.com>
96526
96527         * m4/jm-macros.m4: Require autoconf-2.52.
96528
96529 2001-08-04  Jim Meyering  <meyering@lucent.com>
96530
96531         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96532         stmt, to get in sync with glibc.
96533
96534 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96535
96536         The following changes are from gettext 0.10.39 as maintained by
96537         Bruno Haible.
96538
96539         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96540         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96541         with inverted sense.  All uses changed.
96542
96543         * lib/mbswidth.c: Don't include <limits.h>.
96544         Include <stdlib.h> and <string.h> unconditionally.
96545         (iswcntrl, mbsinit, ISCNTRL): New macros.
96546         (mbsnwidth): Use K&R style function declarations.
96547         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96548         can optimize it when MB_CUR_MAX == 1.
96549         The width of control characters is zero, not 1.
96550
96551 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96552
96553         The following changes are from gettext 0.10.39 as maintained by
96554         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96555
96556         * m4/codeset.m4: Upgrade to serial AM1.
96557         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96558         all uses changed.  Quote first arg of AC_DEFUN.
96559         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96560
96561         * m4/iconv.m4: Upgrade to serial AM2.
96562         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96563         Add --with-libconv-prefix.
96564         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96565         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96566         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96567         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96568         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96569
96570         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96571         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96572         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96573         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96574         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96575         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96576         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96577         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96578         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96579
96580         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96581         string.h any more.
96582
96583         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96584         not the default value.
96585
96586         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96587         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96588         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96589         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96590         Also check for iswcntrl, used for wcwidth fallback.
96591         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96592         to Autoconf 2.13.
96593
96594 2001-08-03  Jim Meyering  <meyering@lucent.com>
96595
96596         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96597         as it was in the original.  Reported by Paul Eggert.
96598
96599 2001-07-16  Jim Meyering  <meyering@lucent.com>
96600
96601         * m4/gettimeofday.m4: New file.
96602         Prompted by a report from Bernhard Baehr.
96603
96604 2001-07-15  Jim Meyering  <meyering@lucent.com>
96605
96606         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96607         stuff. Now it's in ../Makefile.cfg.
96608
96609 2001-07-15  Jim Meyering  <meyering@lucent.com>
96610
96611         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96612         (BUILT_SOURCES): Add unlocked-io.h.
96613         (io_functions): Define.
96614         (unlocked-io.h): New rule.
96615         (DISTCLEANFILES): Add unlocked-io.h.
96616         (all-local): Depend on unlocked-io.h, to ensure it is created.
96617
96618         * lib/unlocked-io.hin: New file
96619
96620         * lib/regex.c: Update from glibc.
96621
96622 2001-07-05  Jim Meyering  <meyering@lucent.com>
96623
96624         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96625         recommendation.
96626         (libfetish_a_SOURCES): Put all .h files here instead.
96627         Remove a thus-exposed (better checks in automake) duplicate and
96628         two unnecessary .h files.
96629
96630 2001-07-04  Jim Meyering  <meyering@lucent.com>
96631
96632         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96633         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96634         distcheck failure.
96635
96636 2001-07-02  Jim Meyering  <meyering@lucent.com>
96637
96638         The following changes were prompted by suggestions from Bruno Haible.
96639
96640         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96641         is now generated.
96642         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96643         definition of EXTRA_DIST.
96644         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96645         ensure that the generated file is created/updated whenever the list
96646         of $(unlocked_functions) is changed.
96647         (jm-glibc-io.m4): New rule.
96648         (unlocked-io.h): New rule -- currently unused.
96649
96650 2001-06-24  Jim Meyering  <meyering@lucent.com>
96651
96652         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96653         unmatched right bracket, rather than kludging it with an extra,
96654         falsely-matching quote in a comment.  Patch by Akim Demaille.
96655
96656 2001-06-11  Jim Meyering  <meyering@lucent.com>
96657
96658         * lib/regex.c: Update from GNU libc.
96659
96660 2001-05-27  Jim Meyering  <meyering@lucent.com>
96661
96662         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96663         Check for ut_type in struct utmp.
96664
96665 2001-05-27  Jim Meyering  <meyering@lucent.com>
96666
96667         * lib/readutmp.h (UT_TYPE): Define.
96668
96669 2001-05-24  Jim Meyering  <meyering@lucent.com>
96670
96671         * lib/argmatch.c: Include "quote.h".
96672         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96673         quote function.  Reported by Göran Uddeborg.
96674
96675 2001-05-22  Jim Meyering  <meyering@lucent.com>
96676
96677         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96678         now that we use the package-supplied version unconditionally.
96679         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96680
96681 2001-05-21  Jim Meyering  <meyering@lucent.com>
96682
96683         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96684         shell syntax errors.
96685
96686 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96687
96688         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96689
96690 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96691
96692         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96693         Don't bother to check library strftime, since
96694         we'll be using our own my_strftime function anyway.
96695         Define my_strftime instead of strftime.
96696
96697 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96698
96699         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96700         which is not yet declared.
96701
96702 2001-05-15  Jim Meyering  <meyering@lucent.com>
96703
96704         * m4/regex.m4: Use proper quoting so brackets appear in the test
96705         program.
96706         Reported by, and with help from, Bruno Haible.
96707
96708 2001-05-13  Jim Meyering  <meyering@lucent.com>
96709
96710         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96711         undefined.
96712
96713 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96714
96715         dirname code cleanup.  base_name now behaves more compatibly
96716         with POSIX basename when given file names that have trailing
96717         slashes, and similarly for dir_name.  Add new primitives
96718         base_len and dir_len.  Put the directory-name-related decls
96719         into dirname.h.
96720
96721         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96722         * lib/backupfile.c (base_name): Likewise.
96723         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96724         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96725         * lib/makepath.c (strip_trailing_slashes): Likewise.
96726         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96727         ISSLASH): Likewise.
96728         * lib/rename.c (strip_trailing_slashes): Likewise.
96729         * lib/same.c (base_name): Likewise.
96730         * lib/stripslash.c (ISSLASH): Likewise.
96731
96732         * lib/addext.c: Include <dirname.h> after size_t is defined.
96733         * lib/backupfile.c: Likewise.
96734
96735         * lib/addext.c (addext): Use base_len to trim redundant
96736         trailing slashes instead of doing it ourselves.
96737         But do not trim the last slash if it is not redundant.
96738
96739         * lib/backupfile.c (find_backup_file_name,
96740         max_backup_version): Use base_len instead of rolling it ourselves.
96741         Handle the case of "" and (on DOS) "C:" correctly.
96742
96743         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96744         needed. Include <string.h>, <dirname.h>.
96745         (base_name): Allow file names ending in slashes, other than names
96746         that are all slashes.  In this case, return the basename followed
96747         by the slashes.  This is more general, and can be used in places
96748         where the original base_name purposely had an assertion failure.
96749         (base_len): New function.
96750
96751         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96752         Do not include <assert.h>; no longer needed.
96753         Include xalloc.h.
96754         (memrchr): Remove decl.
96755         (dir_name_r): Remove.
96756         (dir_len): Renamed from dirlen.  All callers changed.
96757         Rewrite in terms of base_name, for simplicity and consistency.
96758         (dir_name): Never return NULL.  All callers changed.
96759         Do not include <stdlib.h> in test program; no longer needed.
96760         return 0; is fine for test program.
96761
96762         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96763         New macros.
96764         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96765
96766         * lib/path-concat.c (path_concat): Use base_len to compute
96767         base length, not strlen; this means we cannot rely on memcpy
96768         to null-terminate.
96769
96770         * lib/same.c (STREQ): Remove.
96771         (same_name): Handle the case where the basename ends in trailing '/'.
96772
96773         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96774         a slash was stripped.  Do not strip the last slash after a
96775         file system prefix.
96776
96777 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96778
96779         * lib/Makefile.am (libfetish_a_SOURCES):
96780         Add strftime.c, since we now compile it on all hosts.
96781
96782         * lib/strftime.c (my_strftime):
96783         Define to nstrftime if emacs, but only if my_strftime is not defined.
96784         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96785         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96786         Add one more extra argument: a nanoseconds value.
96787         All uses changed.
96788         (ns): New macro.
96789         (my_strftime function): Add %N format.
96790         (emacs_strftimeu): Renamed from emacs_strftime,
96791         with extra ut argument.
96792
96793 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96794
96795         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96796
96797 2001-04-21  Jim Meyering  <meyering@lucent.com>
96798
96799         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96800         doesn't interfere.
96801
96802 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96803
96804         * m4/ftruncate.m4: Check for chsize.
96805         Link with ftruncate.o unconditionally if ftruncate is missing.
96806         This was required when cross-compiling to i586-mingw32msvc.
96807
96808 2001-04-08  Jim Meyering  <meyering@lucent.com>
96809
96810         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96811         recomputed; that's necessary when the offset spans a DST transition.
96812         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96813
96814 2001-04-02  Jim Meyering  <meyering@lucent.com>
96815
96816         * lib/regex.h, regex.c: Update from GNU libc.
96817
96818 2001-03-24  Jim Meyering  <meyering@lucent.com>
96819
96820         * m4/jm-macros.m4: Require autoconf-2.49d.
96821
96822 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96823
96824         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96825
96826 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96827
96828         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96829
96830 2001-03-17  Jim Meyering  <meyering@lucent.com>
96831
96832         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96833         now that the version in autoconf is equivalent.
96834         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96835
96836         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96837         Suggestion from Akim Demaille.
96838
96839         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96840         (jm_PREREQ_TEMPNAME): New function.
96841
96842 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96843
96844         * lib/tempname.c (uint64_t): Define to uintmax_t if
96845         not defined, and if UINT64_MAX is not defined.
96846         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96847         Reported by John David Anglin.
96848
96849 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96850
96851         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96852         resolve alias if codeset is empty.
96853         * lib/config.charset (BeOS): Use wildcard syntax.
96854
96855 2001-03-13  Jim Meyering  <meyering@lucent.com>
96856
96857         * lib/path-concat.c (path_concat)
96858         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96859         concatenating e.g., `C:' and `foo'.
96860         From Bruno Haible.
96861
96862 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96863
96864         * lib/localcharset.c (locale_charset): Don't use
96865         setlocale(LC_CTYPE,NULL). Don't return NULL.
96866         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96867
96868 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96869
96870         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96871         support for DOS/DJGPP.
96872
96873 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96874
96875         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96876         lacks mkstemp.  Compile our own tempname.c if we compile our own
96877         mkstemp.c, as mkstemp relies on tempname.
96878
96879 2001-03-01  Jim Meyering  <meyering@lucent.com>
96880
96881         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96882         AH_VERBATIM really does output its argument verbatim.
96883
96884 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96885
96886         * lib/Makefile.am (libfetish_a_SOURCES):
96887         Add dup-safer.c, fopen-safer.c.
96888         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96889
96890         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96891         * lib/unistd-safer.h: New files.
96892
96893 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96894
96895         The mkstemp replacement is taken from glibc 2.2.2, with some
96896         portability fixes for use outside glibc, as follows:
96897
96898         * lib/tempname.c (struct_stat64): New macro.
96899         (direxists, __gen_tempname): Use it.
96900         This avoids a portability problem with Solaris 8.
96901
96902         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96903         (<stddef.h>, <stdint.h>, <string.h>):
96904         Include only if STDC_HEADERS || _LIBC.
96905         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96906         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96907         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96908         (__set_errno): Define this macro if <errno.h> doesn't.
96909         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96910         Define these macros if <stdio.h> doesn't.
96911         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96912         Define these macros if <sys/stat.h>
96913         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96914         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96915         __xstat64): Define if not _LIBC.
96916         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96917         (__gen_tempname): Invoke gettimeofday only if
96918         HAVE_GETTIMEOFDAY || _LIBC;
96919         otherwise, fall back on plain "time".
96920         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96921
96922         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96923
96924         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96925
96926 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96927
96928         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96929
96930 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96931
96932         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96933         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96934         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96935         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96936
96937 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96938
96939         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96940         Remove workaround macros for hosts that have mbrtowc but not
96941         mbstate_t, as we now insist on proper declarations for both
96942         before using mbrtowc.
96943
96944 2001-02-17  Jim Meyering  <meyering@lucent.com>
96945
96946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96947         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96948         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96949         UnixWare 7.1.1.
96950
96951         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96952         rather than AC_CACHE_VAL.
96953
96954 2001-02-17  Jim Meyering  <meyering@lucent.com>
96955
96956         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96957         around included file name.
96958
96959         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96960
96961         * lib/strftime.c: Update from GNU libc (the only changes were to
96962         comments).
96963
96964 2001-02-17  Jim Meyering  <meyering@lucent.com>
96965
96966         * lib/regex.c: Update from libc.
96967
96968 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96969
96970         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96971         clash.
96972
96973 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96974
96975         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96976         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96977         Reported by Mark Hounschell via Paul Eggert.
96978
96979 2001-02-07  Jim Meyering  <meyering@lucent.com>
96980
96981         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96982
96983 2001-02-05  Jim Meyering  <meyering@lucent.com>
96984
96985         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96986         it includes the patch required for `large file' support with at least
96987         HP-UX's 10.20 /bin/cc.
96988
96989 2001-02-03  Jim Meyering  <meyering@lucent.com>
96990
96991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96992         AS_IF, now that it works once again (mysteriously).
96993         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96994
96995 2001-01-30  Jim Meyering  <meyering@lucent.com>
96996
96997         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96998         * m4/chown.m4: Rename conftestchown to conftest.chown.
96999         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97000         s/conftestdir2/conftest.d2/.
97001         * m4/utimes.m4: s/conftestdata/conftest.data/
97002         Inspired by Pavel Roskin's change in autoconf.
97003
97004 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97005
97006         * lib/config.charset: Update for FreeBSD 4.2.
97007
97008 2001-01-27  Jim Meyering  <meyering@lucent.com>
97009
97010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97011         a use of AS_IF.
97012         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97013
97014 2001-01-26  Jim Meyering  <meyering@lucent.com>
97015
97016         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97017         quotearg.c includes it.
97018
97019 2001-01-26  Jim Meyering  <meyering@lucent.com>
97020
97021         * lib/quotearg.c: Include stddef.h.
97022         * lib/quote.c: Include stddef.h.
97023         Reported by Axel Kittenberger.
97024
97025         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97026         line in double quotes so that it evokes a better diagnostic.
97027         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97028         Reported by Axel Kittenberger.
97029
97030 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97031
97032         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97033         as if it was a `charset'.
97034
97035 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97036
97037         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97038         has const.
97039
97040 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97041
97042         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97043         to avoid a warning.  Add back 'const' to inptr.
97044
97045 2001-01-20  Jim Meyering  <meyering@lucent.com>
97046
97047         Be sure that headers are checked before used in code compiled
97048         for the type checks.
97049         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97050         In place of that, invoke jm_CHECK_ALL_TYPES.
97051         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97052         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97053         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97054         The check for ssize_t was mistakenly run before the test for unistd.h.
97055
97056         The configure-time check for stdbool.h was missing.
97057         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97058         (jm_PREREQ_HASH): New function.
97059
97060 2001-01-17  Jim Meyering  <meyering@lucent.com>
97061
97062         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97063         for autoconf-2.49c.
97064         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97065
97066 2001-01-16  Jim Meyering  <meyering@lucent.com>
97067
97068         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97069         From Bruno Haible.
97070
97071 2001-01-14  Jim Meyering  <meyering@lucent.com>
97072
97073         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97074         foo and bar.  Create conftestdir/ in the script, not in the C code.
97075         Remove directories in the script, not in the C code.
97076         Remove conftestdir{,2} before trying to create the directory.
97077         Make the entire configure script fail if the mkdir fails.
97078
97079 2001-01-14  Jim Meyering  <meyering@lucent.com>
97080
97081         * lib/rename.c: New file.  From Volker Borchert.
97082         Include stdlib.h, string.h or strings.h, and xalloc.h.
97083         Use strip_trailing_slashes rather than open-coding it.
97084
97085 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97086
97087         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97088
97089 2001-01-03  Jim Meyering  <meyering@lucent.com>
97090
97091         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97092         of local `inptr' to avoid warning with some system declarations of
97093         iconv.
97094
97095 2001-01-02  Volker Borchert  <bt@teknon.de>
97096
97097         * m4/rename.m4: New file.
97098         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97099
97100 2001-01-01  Jim Meyering  <meyering@lucent.com>
97101
97102         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97103         even on systems with utmpx.h.  It's necessary for the declaration of
97104         utmp's ut_user member.  Reported by Andreas Jaeger.
97105
97106         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97107         available. They are required for the declarations of getgrgid and
97108         getpwuid resp.
97109         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97110         Reported by Andreas Jaeger.
97111
97112 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97113
97114         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97115         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97116         so `make install' also works in VPATH builds.
97117
97118 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97119
97120         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97121         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97122         can be used in subdirectories.
97123
97124 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97125
97126         * lib/modechange.c: Do not assume that mode_t uses the
97127         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97128         the other-execute bit of FOO even if S_IXOTH != 1.
97129
97130         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97131         WOTH, XOTH, ALLM): New macros.
97132         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97133          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97134         Use them.
97135         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97136         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97137         (mode_compile):
97138         No need to use uintmax_t; unsigned long is long enough.
97139         Don't bother to get suffix since we don't use it.
97140
97141 2000-12-26  Jim Meyering  <meyering@lucent.com>
97142
97143         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97144         better with autoheader.
97145
97146 2000-12-24  Jim Meyering  <meyering@lucent.com>
97147
97148         * lib/hash.c (is_prime): Return explicit boolean values.
97149         (hash_get_first): Return NULL to appease Irix5.6's 89.
97150         Reported by Nelson Beebe.
97151
97152 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97153
97154         * lib/localcharset.c (locale_charset): Add support for Win32.
97155
97156 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97157
97158         * lib/physmem.h, lib/physmem.c: New files.
97159
97160         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97161         (noinst_HEADERS): Add physmem.h.
97162
97163         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97164         't' for compatibility with Solaris 8 sort.
97165
97166 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97167
97168         * lib/config.charset: Add support for BeOS.
97169
97170 2000-12-17  Jim Meyering  <meyering@lucent.com>
97171
97172         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97173         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97174
97175 2000-12-16  Jim Meyering  <meyering@lucent.com>
97176
97177         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97178         N and M) would have treated it like `chown N:N FILE'.
97179
97180         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97181
97182 2000-12-16  Jim Meyering  <meyering@lucent.com>
97183
97184         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97185         SHELLS_FILE to a file name that's useful on djgpp systems.
97186         Include stdlib.h.
97187         (ADDITIONAL_DEFAULT_SHELLS): Define.
97188         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97189         Based mostly on a patch from Prashant TR.
97190
97191 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97192
97193         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97194         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97195         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97196
97197 2000-12-08  Andreas Schwab  <schwab@suse.de>
97198
97199         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97200         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97201
97202 2000-12-07  Jim Meyering  <meyering@lucent.com>
97203
97204         * lib/stripslash.c (ISSLASH): Define.
97205         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97206         `/'.
97207         From Prashant TR.
97208
97209         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97210         (dir_name_r): Declare this function as static.
97211         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97212         manifest itself on a name containing a mix of slashes and
97213         backslashes.
97214         Make this function work with names starting with a DOS-style
97215         drive letter and colon prefix.
97216         (dir_name): Append `.' if necessary.
97217         Based mostly on patches from Prashant TR and Eli Zaretskii.
97218
97219         * lib/dirname.h (dir_name_r): Remove prototype.
97220
97221 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97222
97223         * m4/off_t-format.m4: Remove this file.
97224         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97225
97226 2000-12-06  Jim Meyering  <meyering@lucent.com>
97227
97228         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97229         replacement strtoull, we may well need the replacement strtoul, too.
97230         Check for declarations of strtoul and strtoull.
97231         Check for strtol.  Mainly as a cue to cause automake to include
97232         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97233         Check for limits.h -- strtol.c needs it.
97234
97235 2000-12-05  Jim Meyering  <meyering@lucent.com>
97236
97237         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97238
97239 2000-12-04  Jim Meyering  <meyering@lucent.com>
97240
97241         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97242         Also include memory.h, stdlib.h, unistd.h if appropriate.
97243         Reported by Andreas Jaeger (conflicting declaration of malloc).
97244
97245 2000-12-02  Jim Meyering  <meyering@lucent.com>
97246
97247         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97248         * m4/jm-macros.m4 (jm_MACROS): require it.
97249
97250 2000-12-02  Jim Meyering  <meyering@lucent.com>
97251
97252         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97253
97254 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97255
97256         * lib/memrchr.c: Include <config.h> before any system include file.
97257
97258 2000-11-30  Jim Meyering  <meyering@lucent.com>
97259
97260         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97261
97262 2000-11-30  Jim Meyering  <meyering@lucent.com>
97263
97264         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97265
97266 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97267
97268         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97269
97270 2000-11-26  Jim Meyering  <meyering@lucent.com>
97271
97272         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97273
97274 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97275
97276         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97277         size of (size_t) -1; it's not portable.
97278
97279 2000-11-17  Jim Meyering  <meyering@lucent.com>
97280
97281         * lib/strstr.c: Update from GNU libc.
97282
97283 2000-11-17  Akim Demaille  <akim@epita.fr>
97284
97285         * lib/obstack.h: Formatting changes.
97286         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97287         prevent type checking.
97288         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97289         cast the value to (void *): assigning a `foo *' to a `void *'
97290         variable is valid.
97291         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97292
97293 2000-11-16  Jim Meyering  <meyering@lucent.com>
97294
97295         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97296
97297 2000-11-11  Jim Meyering  <meyering@lucent.com>
97298
97299         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97300
97301 2000-11-10  Jim Meyering  <meyering@lucent.com>
97302
97303         * lib/obstack.h: Update from GNU libc.
97304         * lib/obstack.c: Likewise.
97305
97306 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97307
97308         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97309
97310 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97311
97312         * lib/getusershell.c (setusershell): Use rewind rather than
97313         fseek/fseeko, to avoid configuration hassles with fseeko.
97314         Don't bother opening SHELLS_FILE if shellstream is NULL;
97315         it's not necessary.
97316
97317 2000-11-05  Jim Meyering  <meyering@lucent.com>
97318
97319         * lib/makepath.h (make_dir): Declare.
97320         * lib/makepath.c (make_dir): Remove `static' attribute.
97321         Tweak a comment.
97322
97323 2000-11-04  Jim Meyering  <meyering@lucent.com>
97324
97325         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97326
97327 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97328
97329         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97330         last one in a bucket, advance to the next bucket.
97331
97332 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97333
97334         * lib/fnmatch.c: Do not comment out all the code if we are using
97335         the GNU C library, because in some cases we are replacing buggy
97336         code in the GNU C library itself.
97337
97338 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97339
97340         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97341         (regex_compile): Catch bogus \(\1\).
97342
97343 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97344
97345         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97346         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97347         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97348
97349 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97350
97351         * lib/error.h, getline.h, modechange.h:
97352         Remove "2000" from Copyright line, as the file hasn't been
97353         changed this year other than in the copyright notice.
97354
97355         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97356         was changed this year.
97357
97358 2000-10-29  Jim Meyering  <meyering@lucent.com>
97359
97360         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97361         renaming.
97362         * m4/ls-mntd-fs.m4: Likewise
97363
97364 2000-10-29  Jim Meyering  <meyering@lucent.com>
97365
97366         * lib/xstat.in: Fix grammar in comment.
97367
97368 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97369
97370         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97371         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97372         doesn't define __restrict_arr.
97373
97374 2000-10-28  Jim Meyering  <meyering@lucent.com>
97375
97376         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97377         (jm_PREREQ_MEMCHR): New function.
97378
97379 2000-10-28  Jim Meyering  <meyering@lucent.com>
97380
97381         * lib/memchr.c: Update from libc.
97382         Adjust for portability:
97383         [HAVE_STDLIB_H]: Include stdlib.h.
97384         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97385         Undef __memchr, too.
97386         [!weak_alias]: Define __memchr to memchr.
97387
97388         * lib/regex.c: Update from libc.
97389         * lib/regex.h: Likewise.
97390         * lib/getopt1.c: Likewise.
97391         * lib/memcmp.c: Likewise.
97392
97393         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97394         Avoid using fseek, when possible -- it's broken by design.
97395         Patch by Ulrich Drepper.
97396
97397 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97398
97399         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97400         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97401         Giving in to popular pressure to shut up the compiler with casts.
97402
97403 2000-10-26  Jim Meyering  <meyering@lucent.com>
97404
97405         * lib/strftime.c: Update from libc.
97406
97407 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97408
97409         * regex.c: More `unsigned char' -> `re_char' changes.
97410         Also change several `int' into `re_wchar_t'.
97411         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97412         (PUSH_FAILURE_POINTER): Don't cast any more.
97413         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97414         We want GCC to complain, since this piece of code makes
97415         re_match non-reentrant, which *should* be fixed.
97416         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97417         (EXTEND_BUFFER): Use RETALLOC.
97418         (SET_LIST_BIT): Don't cast.
97419         (re_wchar_t): New type.
97420         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97421         that those two functions will always properly return.
97422         (IMMEDIATE_QUIT_CHECK): Cast to void.
97423         (analyse_first): Use recursion rather than an explicit stack.
97424         (re_compile_fastmap): Can't fail anymore.
97425         (re_search_2): Don't check re_compile_fastmap for failure.
97426         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97427         Now also sets the new value (passed in a new argument).
97428         (re_match_2_internal): Use it.
97429         Also, use a new var `reg' of type size_t when looping through regs
97430         rather than reuse the inappropriate `mcnt'.
97431
97432 2000-10-25  Jim Meyering  <meyering@lucent.com>
97433
97434         * lib/obstack.c: Update from libc.
97435
97436 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97437
97438         * regex.c (regex_compile): Change the way of handling a range from
97439         a char less than 256 to a char not less than 256.
97440
97441 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97442
97443         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97444         NT-Emacs only.
97445         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97446         so that re_search functions only quit when callers expect them to.
97447
97448 2000-10-23  Jim Meyering  <meyering@lucent.com>
97449
97450         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97451         wrong.  That set_locale call must not have any side effects.
97452         From Paul Eggert.
97453
97454 2000-10-22  Jim Meyering  <meyering@lucent.com>
97455
97456         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97457         [CYCLIC]: Remove now-unused definition.
97458
97459         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97460         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97461         Suggestion from Ulrich Drepper.
97462
97463 2000-10-21  Jim Meyering  <meyering@lucent.com>
97464
97465         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97466         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97467         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97468
97469 2000-10-21  Jim Meyering  <meyering@lucent.com>
97470
97471         * lib/dirname.c (memrchr): Declare if necessary.
97472         (dir_name): Remove the restriction that there be no
97473         trailing slashes.  Now, this code skips past them, effectively
97474         ignoring them.
97475         [TEST_DIRNAME] (main): New unit tests.
97476
97477         * lib/memrchr.c: New file from GNU libc.
97478         Undef __memrchr, too.
97479         [!weak_alias]: Define __memrchr to memrchr.
97480         Guard weak_alias use with `#ifdef weak_alias'.
97481
97482 2000-10-21  Jim Meyering  <meyering@lucent.com>
97483
97484         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97485         (dir_name): Use dir_name_r.
97486         * lib/dirname.h (dir_name_r): Declare it.
97487
97488 2000-10-17  Jim Meyering  <meyering@lucent.com>
97489
97490         * lib/quote.h (PARAMS): Define and use.
97491         Reported by Akim Demaille.
97492
97493         * lib/getopt.c: Update from libc.
97494
97495 2000-10-16  Jim Meyering  <meyering@lucent.com>
97496
97497         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97498         setlocale.
97499         From Jan Fedak.
97500
97501 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97502
97503         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97504
97505 2000-09-25  Jim Meyering  <meyering@lucent.com>
97506
97507         * lib/md5.h (rol): Define (from GnuPG).
97508
97509         * lib/sha.c: Give credit (GnuPG) where due.
97510         (M): Use rol rather than open-coding it.
97511         Add a FIXME comment.
97512
97513 2000-09-21  Jim Meyering  <meyering@lucent.com>
97514
97515         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97516         Reported by Michael Stone.
97517
97518 2000-09-20  Jim Meyering  <meyering@lucent.com>
97519
97520         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97521         (noinst_HEADERS): Add sha.h.
97522         Based on code from Scott G. Miller and from GnuPG.
97523
97524 2000-09-18  Jim Meyering  <meyering@lucent.com>
97525
97526         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97527         LIBS. Otherwise, everyone ends up linking with -lelf for some
97528         configurations.
97529         Reported by Mike Stone.
97530
97531 2000-09-15  Jim Meyering  <meyering@lucent.com>
97532
97533         * lib/regex.c: Update from libc.
97534
97535 2000-09-10  Jim Meyering  <meyering@lucent.com>
97536
97537         * lib/getopt.c (_getopt_internal): Update from glibc.
97538
97539 2000-09-09  Jim Meyering  <meyering@lucent.com>
97540
97541         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97542         think it should be used as a general replacement for isascii.
97543         * lib/fnmatch.c: Likewise.
97544         * lib/mbswidth.c: Likewise
97545         * lib/regex.c: Likewise.
97546
97547         Don't use atoi.
97548         * lib/userspec.c: Include sys/param.h and limits.h.
97549         Include xstrtol.h.
97550         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97551         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97552         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97553         UID, GID.  Check range.
97554
97555 2000-09-06  Jim Meyering  <meyering@lucent.com>
97556
97557         * lib/getopt.c (_getopt_internal): Update from glibc.
97558
97559 2000-08-30  Jim Meyering  <meyering@lucent.com>
97560
97561         * lib/strftime.c: Merge in changes from GNU libc.
97562
97563 2000-08-26  Jim Meyering  <meyering@lucent.com>
97564
97565         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97566         * m4/fpending.m4: New file.
97567
97568 2000-08-26  Jim Meyering  <meyering@lucent.com>
97569
97570         * lib/closeout.c: Include "__fpending.h".
97571         (close_stdout_status): Return right away if there's nothing to flush.
97572
97573         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97574         * lib/__fpending.c: New file.
97575         * lib/__fpending.h: New file.
97576
97577 2000-08-20  Jim Meyering  <meyering@lucent.com>
97578
97579         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97580         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97581         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97582
97583 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97584
97585         Improve fileutils installation on systems where running
97586         programs (like install) can't be unlinked.
97587         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97588         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97589
97590 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97591
97592         Standardize on "memory exhausted" instead of "Memory exhausted"
97593         or "virtual memory exhausted".
97594         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97595         "virtual memory exhausted".
97596         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97597         our own message.
97598         * lib/userspec.c (parse_user_spec): Likewise.
97599         * lib/bumpalloc.h: comment fix
97600         * lib/same.c, userspec.c: Include xalloc.h.
97601
97602         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97603         not char *const and pointing to a constant array.
97604         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97605         (xrealloc): Comment fix.
97606
97607         * lib/userspec.c (parse_user_spec):
97608         Don't translate a message until just before returning,
97609         to avoid unnecessary translation.
97610
97611 2000-08-07  Jim Meyering  <meyering@lucent.com>
97612
97613         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97614         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97615         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97616         getgroups.c, gethostname.c, getopt.h, group-member.c,
97617         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97618         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97619         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97620         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97621         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97622         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97623         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97624         yesno.c: Back out Copyright date changes for each file with no change
97625         this year.  This eases coordination with other programs using the same
97626         source code modules.  From Paul Eggert.
97627
97628 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97629
97630         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97631         not char, for compatibility with glibc 2.1.3 strftime.c.
97632
97633 2000-08-03  Greg McGary  <greg@mcgary.org>
97634
97635         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97636         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97637         (EXTEND_BUFFER): Use them.
97638
97639 2000-08-01  Jim Meyering  <meyering@lucent.com>
97640
97641         * lib/dirname.c (ISSLASH): Define.
97642         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97643         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97644         both `\' and `/' may be use as path separators.
97645         Based on a patch from Prashant TR.
97646
97647 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97648
97649         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97650         slot vector a constant, since it might get modified.
97651
97652 2000-07-31  Jim Meyering  <meyering@lucent.com>
97653
97654         * lib/xmalloc.c: Use `virtual memory exhausted', not
97655         `Memory exhausted'.
97656         * lib/obstack.c (print_and_abort): Likewise.
97657
97658 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97659
97660         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97661         buffer, so that the caller can always quote one small
97662         component of a "memory exhausted" message in slot 0.
97663         From a suggestion by Jim Meyering.
97664
97665 2000-07-30  Jim Meyering  <meyering@lucent.com>
97666
97667         * lib/makepath.c (make_path): Quote the other instance, too.
97668
97669         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97670         (STATIC_BUF_SIZE): Define.
97671         (quotearg_n_options): Use only statically allocated storage when
97672         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97673         than STATIC_BUF_SIZE.
97674
97675 2000-07-29  Jim Meyering  <meyering@lucent.com>
97676
97677         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97678         * lib/dirname.c (dir_name): Likewise.
97679
97680         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97681         `/'.
97682
97683         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97684         (dir_name): Assert that there are no trailing slashes.
97685
97686 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97687
97688         * lib/mbswidth.h (mbswidth): Add a flags argument.
97689         (mbswidth): New declaration.
97690         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97691         * lib/mbswidth.c (mbswidth): Add a flags argument.
97692         (mbsnwidth): New function.
97693
97694 2000-07-24  Jim Meyering  <meyering@lucent.com>
97695
97696         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97697
97698 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97699
97700         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97701
97702 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97703
97704         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97705         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97706         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97707         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97708         invoke multibyte primitives.
97709
97710 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97711
97712         * lib/quotearg.c:
97713         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97714         so that mbstate_t is always defined.
97715
97716         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97717         be 1 in at least one GCC installation, and this configuration
97718         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97719         performance on hosts that have mbrtowc but have only unibyte
97720         locales, but I assume these hosts are rare.
97721
97722 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97723
97724         * lib/mbswidth.c (_XOPEN_SOURCE):
97725         Don't define; this causes problems on Solaris 7.
97726         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97727
97728 2000-07-23  Jim Meyering  <meyering@lucent.com>
97729
97730         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97731         too: getgrgid, getpwuid, getuid.
97732
97733 2000-07-23  Jim Meyering  <meyering@lucent.com>
97734
97735         * lib/basename.c (base_name): Add an assertion.
97736
97737 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97738
97739         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97740         shadow its mbsinit function.
97741
97742 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97743
97744         * lib/mbswidth.h: New file.
97745         * lib/mbswidth.c: New file.
97746         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97747         (noinst_HEADERS): Add mbswidth.h.
97748
97749 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97750
97751         * lib/config.charset: Add support for FreeBSD. Improve support for
97752         HP-UX and IRIX 6.
97753
97754 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97755
97756         * m4/mbswidth.m4: New file.
97757         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97758
97759 2000-07-15  Jim Meyering  <meyering@lucent.com>
97760
97761         * lib/makepath.c: Include quote.h.
97762         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97763         corresponding argument in a `quote (...)' call.
97764         Give better diagnostics.
97765
97766         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97767         (noinst_HEADERS): Add quote.h.
97768
97769         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97770         from tar's src/misc.c.
97771         * lib/quote.h: New file.  Prototypes for same.
97772
97773 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97774
97775         From a suggestion by Bruno Haible.
97776         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97777         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97778         to decide whether to define the BeOS workaround macro;
97779         this adjusts to the change to AC_MBSTATE_T.
97780
97781 2000-07-14  Jim Meyering  <meyering@lucent.com>
97782
97783         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97784         jm_AC_TYPE_UINTMAX_T.
97785
97786 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97787
97788         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97789
97790         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97791         quotearg_buffer_restyled): Add support for
97792         clocale_quoting_style.  Undo previous change to
97793         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97794         and "{RIGHT QUOTATION MARK}" msgids.
97795
97796 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97797
97798         From a suggestion by Bruno Haible.
97799         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97800         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97801         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97802         and mbstate_t, to a single-part test that simply defines mbstate_t.
97803         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97804         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97805
97806 2000-07-10  Jim Meyering  <meyering@lucent.com>
97807
97808         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97809
97810         * m4/gnu-source.m4: Output to confdefs.h directly.
97811         Suggestion from Akim Demaille.
97812
97813 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97814
97815         The old behavior of quoting `like this' doesn't look good with
97816         newer, ISO-style fonts.  See:
97817         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97818
97819         Instead, quote "like this" by default.  Let the translator
97820         tailor the locale-specific quoting behavior by providing
97821         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97822
97823         * lib/quotearg.c (N_): New macro.
97824         (gettext_default): New function.
97825         (quotearg_buffer_restyled): Use
97826         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97827         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97828
97829 2000-07-09  Jim Meyering  <meyering@lucent.com>
97830
97831         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97832         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97833
97834         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97835         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97836
97837 2000-07-09  Jim Meyering  <meyering@lucent.com>
97838
97839         * lib/Most files: Update copyright dates to include 2000.
97840
97841 2000-07-08  Jim Meyering  <meyering@lucent.com>
97842
97843         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97844         if not defined.
97845         (xgethostname): Remove now-unnecessary #ifdef.
97846         Move declaration of `err' into loop where it's used.
97847
97848 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97849         and Bruno Haible  <haible@clisp.cons.org>
97850
97851         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97852         only if the test for an object-type mbstate_t fails.  This
97853         prevents us from mistakenly reporting that mbstate_t is a
97854         system object type after we "#define mbstate_t int" to work
97855         around its lack.
97856
97857 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97858         and Bruno Haible  <haible@clisp.cons.org>
97859
97860         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97861
97862 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97863
97864         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97865         to strerror_r.
97866         Include <ctype.h> for use of isalpha.
97867
97868 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97869
97870         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97871         by allocating a larger buffer. Test the gethostname return value for
97872         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97873         returns an error and ENAMETOOLONG isn't defined.
97874
97875 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97876
97877         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97878         dimension.
97879
97880 2000-07-04  Jim Meyering  <meyering@lucent.com>
97881
97882         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97883         of the deprecated AC_CHECKING.
97884
97885 2000-07-04  Jim Meyering  <meyering@lucent.com>
97886
97887         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97888         Reported by Bruno Haible.
97889
97890 2000-07-04  Jim Meyering  <meyering@lucent.com>
97891
97892         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97893         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97894         lacks mbrtowc.
97895
97896 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97897
97898         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97899         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97900
97901 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97902         and Bruno Haible  <haible@clisp.cons.org>
97903
97904         * lib/quotearg.c (mbrtowc):
97905         Assign to *pwc, and return 1 only if result is nonzero.
97906         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97907
97908 2000-07-03  Jim Meyering  <meyering@lucent.com>
97909
97910         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97911
97912 2000-07-03  Jim Meyering  <meyering@lucent.com>
97913
97914         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97915         This is necessary to get a definition of e.g., UTMP_FILE on
97916         HP-UX 10.20.
97917         From Bob Proulx.
97918
97919 2000-07-02  Jim Meyering  <meyering@lucent.com>
97920
97921         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97922
97923         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97924         AC_LIBOBJ(function_name).
97925         * m4/chown.m4: Likewise.
97926         * m4/fnmatch.m4: Likewise.
97927         * m4/ftruncate.m4: Likewise.
97928         * m4/getgroups.m4: Likewise.
97929         * m4/getline.m4: Likewise.
97930         * m4/group-member.m4: Likewise.
97931         * m4/jm-macros.m4: Likewise.
97932         * m4/lstat.m4: Likewise.
97933         * m4/malloc.m4: Likewise.
97934         * m4/memcmp.m4: Likewise.
97935         * m4/nanosleep.m4: Likewise.
97936         * m4/putenv.m4: Likewise.
97937         * m4/realloc.m4: Likewise.
97938         * m4/regex.m4: Likewise.
97939         * m4/stat.m4: Likewise.
97940         * m4/strftime.m4: Likewise.
97941
97942 2000-07-02  Jim Meyering  <meyering@lucent.com>
97943
97944         * lib/quotearg.c (mbstate_t): Don't define here.
97945
97946 2000-07-02  Jim Meyering  <meyering@lucent.com>
97947
97948         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97949
97950 2000-07-01  Jim Meyering  <meyering@lucent.com>
97951
97952         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97953
97954 2000-07-01  Jim Meyering  <meyering@lucent.com>
97955
97956         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97957         problem.
97958
97959 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97960
97961         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97962         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97963
97964 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97965
97966         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97967         per change in ../m4/ls-mntd-fs.m4.
97968         (read_filesystem_list): Ignore symbolic links.
97969
97970 2000-06-29  Jim Meyering  <meyering@lucent.com>
97971
97972         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97973         for declaration of strcmp.
97974
97975         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97976
97977         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97978         Avoid warning by casting result to `char *' to remove `const'.
97979
97980 2000-06-28  Jim Meyering  <meyering@lucent.com>
97981
97982         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97983         included by quotearg.c, for which we perform this test.  From
97984         Bruno Haible.
97985
97986 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97987
97988         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97990         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97991
97992 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97993
97994         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97995
97996 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97997
97998         savedir now sets errno on failure and invokes xmalloc to get memory.
97999         Fix a couple of other minor bugs while we're at it.
98000
98001         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98002         (NAMLEN): Remove macro.
98003         (malloc, realloc): Remove decls.
98004         (stpcpy): Likewise.
98005         ("xalloc.h"): Include.
98006         (NAME_SIZE_DEFAULT): New macro.
98007         (savedir): Use xmalloc / xrealloc to allocate memory.
98008         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98009         Skip "" directory entries.
98010         Use strlen to calculate directory entry length, since the old method
98011         is rarely used these days and isn't worth supporting.
98012         Don't use a pointer after freeing it.
98013         Check for integer overflow when calculating allocation size.
98014         Use memcpy to copy entries, instead of stpcpy.
98015         Set errno properly when returning NULL.
98016         Check for readdir error.
98017
98018 2000-06-26  Jim Meyering  <meyering@lucent.com>
98019
98020         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98021
98022 2000-06-25  Jim Meyering  <meyering@lucent.com>
98023
98024         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98025         Linux header bug when _XOPEN_SOURCE is defined to 500.
98026
98027 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98028
98029         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98030         deficiency.
98031
98032 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98033
98034         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98035         Include xalloc.h.
98036         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98037
98038 2000-06-24  Jim Meyering  <meyering@lucent.com>
98039
98040         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98041         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98042         for which strerror does return char*, but which lacks a conveniently
98043         accessible declaration of the function.  If the compile-test says
98044         strerror_r doesn't work, then resort to a `run'-test that works on
98045         BeOS and segfaults on DEC Unix.
98046
98047 2000-06-24  Jim Meyering  <meyering@lucent.com>
98048
98049         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98050
98051 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98052
98053         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98054         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98055
98056 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98057
98058         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98059         (mbrtowc, mbstate_t): Define substitutes if
98060         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98061         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98062         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98063
98064 2000-06-23  Jim Meyering  <meyering@lucent.com>
98065
98066         * m4/afs.m4: Add missing AC_MSG_RESULT.
98067         Reported by Bruno Haible.
98068
98069         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98070         Suggestion from Bruno Haible.
98071
98072 2000-06-23  Jim Meyering  <meyering@lucent.com>
98073
98074         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98075
98076 2000-06-21  Jim Meyering  <meyering@lucent.com>
98077
98078         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98079
98080 2000-06-21  Jim Meyering  <meyering@lucent.com>
98081
98082         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98083         (noinst_HEADERS): Add getstr.h.
98084
98085         * lib/getline.c (getstr): Move into a separate file.
98086         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98087         the following changes: new parameter, delim2; both delim[12]
98088         parameters have type `int', not `char'.  The latter would lose
98089         with 8-bit delimiters.
98090         * lib/getstr.h: New file.
98091
98092 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98093
98094         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98095         than 1024, return a memory chunk of least possible size, instead
98096         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98097         Use free/xmalloc instead of xrealloc to avoid copying for very long
98098         paths.
98099
98100 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98101
98102         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98103         the empty string.
98104
98105 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98106
98107         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98108         address, not strdup.  Include <stdlib.h> and don't declare free().
98109
98110 2000-06-19  Jim Meyering  <meyering@lucent.com>
98111
98112         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98113
98114 2000-06-18  Jim Meyering  <meyering@lucent.com>
98115
98116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98117
98118         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98119         `checking whether...' message to be consistent with that of the
98120         lstat test.
98121
98122 2000-06-18  Jim Meyering  <meyering@lucent.com>
98123
98124         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98125         Besides, these days every porting target provides a mkdir function.
98126
98127         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98128         needed. (this snippet comes from src/system.h).
98129
98130 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98131
98132         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98133
98134 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98135
98136         * lib/human.c (adjust_value): New function.
98137         (human_readable_inexact): Apply rounding style even when
98138         printing approximate values.
98139
98140 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98141
98142         * lib/human.c (human_readable_inexact): Allow an input block
98143         size that is not a multiple of the output block size, and vice versa.
98144         Reported by Piergiorgio Sartor.
98145
98146 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98147
98148         * lib/getdate.y (get_date): Apply relative times after time
98149         zone indicator, not before.  Reported by Todd A. Jacobs.
98150
98151 2000-06-13  Jim Meyering  <meyering@lucent.com>
98152
98153         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98154
98155         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98156
98157 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98158
98159         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98160
98161 2000-06-12  Jim Meyering  <meyering@lucent.com>
98162
98163         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98164         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98165         optional argument.
98166         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98167         the optional argument, `lib'.
98168
98169 2000-06-08  Jim Meyering  <meyering@lucent.com>
98170
98171         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98172
98173 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98174
98175         Rewrite largefile configuration so that we don't need to run
98176         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98177         AC_CANONICAL_HOST in configure.in -- jmm]
98178
98179         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98180         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98181         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98182         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98183         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98184         All uses changed.
98185         Instead of inspecting the output of getconf, try to compile the
98186         test program without and with the macro definition.
98187         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98188         for getconf.  Instead, check for the needed flags by compiling
98189         test programs.
98190
98191 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98192
98193         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98194
98195 2000-06-04  Jim Meyering  <meyering@lucent.com>
98196
98197         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98198         SunOS 4.1.4 for which gid_t is an unsigned type.
98199
98200 2000-06-03  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98203         now that autoconf requires that.
98204
98205         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98206         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98207         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98208
98209 2000-06-03  Jim Meyering  <meyering@lucent.com>
98210
98211         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98212
98213 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98214
98215         * m4/glibc21.m4: New file.
98216         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98217
98218 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98219
98220         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98221         newer, don't install charset.alias.
98222         * lib/config.charset: Change the Linux/glibc rules so they become empty
98223         on glibc-2.1 or newer.
98224
98225 2000-06-02  Jim Meyering  <meyering@lucent.com>
98226
98227         * lib/mountlist.c: Back out last change.  Instead, do this...
98228         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98229         me_dummy member using the same `ignore'-testing code.
98230         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98231         fs_type strings.
98232         From Mark D. Roth.
98233
98234 2000-05-29  Jim Meyering  <meyering@lucent.com>
98235
98236         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98237         mounts with the `ignore' attribute.  Based on a patch from
98238         Mark D. Roth.
98239
98240 2000-05-28  Jim Meyering  <meyering@lucent.com>
98241
98242         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98243         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98244         * m4/stat.m4: Likewise.
98245         * m4/lstat.m4: Likewise.
98246         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98247
98248         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98249         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98250
98251 2000-05-26  Jim Meyering  <meyering@lucent.com>
98252
98253         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98254
98255 2000-05-24  Jim Meyering  <meyering@lucent.com>
98256
98257         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98258         autoconf requires that.
98259         * m4/lib-check.m4: Likewise.
98260         * m4/jm-macros.m4: Likewise.
98261         * m4/strftime.m4: Likewise.
98262
98263         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98264         AC_CHECK_DECLS, now that autoconf requires that.
98265
98266 2000-05-22  Jim Meyering  <meyering@lucent.com>
98267
98268         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98269         * m4/lstat.m4: Likewise.
98270
98271 2000-05-22  Jim Meyering  <meyering@lucent.com>
98272
98273         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98274
98275 2000-05-20  Jim Meyering  <meyering@lucent.com>
98276
98277         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98278         (jm_PREREQ): Use it.
98279
98280 2000-05-18  Jim Meyering  <meyering@lucent.com>
98281
98282         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98283         back, too, since it may have been modified by allocate_entry.
98284         (hash_delete): Rewrite to use neither the assignment operator
98285         nor the comma operator in an if-expression.
98286
98287 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98288
98289         * lib/closeout.c:
98290         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98291         Remove; no longer needed.
98292         "quotearg.h": Add include.
98293         (file_name): Do not bother to explicitly initialize to NULL; it's less
98294         efficient on some hosts.
98295         (close_stdout_status): Remove test as to whether stdout was already
98296         closed; it breaks for the case "echo x | sort >&-".
98297         Quote file name colons.
98298         Do not assume that _("write error") lacks format strings.
98299
98300 2000-05-15  Jim Meyering  <meyering@lucent.com>
98301
98302         * lib/version-etc.c (version_etc_copyright): Update the copyright
98303         string used in all --version output.
98304
98305 2000-05-14  Jim Meyering  <meyering@lucent.com>
98306
98307         * lib/closeout.c (close_stdout_set_file_name): New function.
98308         (close_stdout_status): Use new file-scoped global.
98309         Return right away if fstat says the stdout file descriptor is invalid.
98310         * lib/closeout.h (close_stdout_set_file_name): Declare.
98311
98312 2000-05-10  Jim Meyering  <meyering@lucent.com>
98313
98314         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98315         (close_stdout_set_status): New function.
98316         * lib/closeout.h (close_stdout_set_status): Declare.
98317
98318 2000-05-09  Jim Meyering  <meyering@lucent.com>
98319
98320         * m4/gettext.m4: Rename this...
98321         * m4/libintl.m4: ...to this.
98322
98323 2000-05-08  Jim Meyering  <meyering@lucent.com>
98324
98325         * lib/long-options.c: Don't include closeout.h.
98326         (parse_long_options): Don't call close_stdout for --version.
98327
98328 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98329
98330         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98331         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98332         2.1.3 bug.  This avoids a clash when files like regex.c define
98333         _GNU_SOURCE.
98334
98335 2000-05-06  Jim Meyering  <meyering@lucent.com>
98336
98337         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98338         (AC_REPLACE_FUNCS): Add strnlen.
98339
98340         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98341         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98342
98343         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98344         AC_SEARCH_LIBS call for nanosleep.
98345         (LIB_NANOSLEEP): Set and AC_SUBST.
98346
98347 2000-05-06  Jim Meyering  <meyering@lucent.com>
98348
98349         * lib/strnlen.c: Undefine __strnlen and strnlen.
98350         [!weak_alias]: Define __strnlen to strnlen.
98351
98352         * lib/atexit.c: New file, from libiberty.
98353
98354 2000-05-06  Jim Meyering  <meyering@lucent.com>
98355
98356         * lib/closeout.c (close_stdout_status): Also check for errors on the
98357         stderr stream.
98358
98359 2000-05-05  Jim Meyering  <meyering@lucent.com>
98360
98361         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98362         AC_SEARCH_LIBS call for clock_gettime.
98363         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98364
98365         * m4/search-libs.m4: Update from autoconf.
98366
98367         su doesn't work on Solaris 2.6.
98368         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98369         <shadow.h>.  Reported by Dragos Harabor.
98370
98371 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98372
98373         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98374         memcpy instead of xmalloc, xrealloc, path_concat.
98375         (locale_charset): Treat empty environment variables as absent.
98376         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98377
98378 2000-05-04  Jim Meyering  <meyering@lucent.com>
98379
98380         * lib/getopt.c: Update from glibc.
98381         * lib/obstack.c: Likewise.
98382         * lib/obstack.h: Likewise.
98383         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98384         file
98385
98386         * lib/regex.h: Likewise.
98387         * lib/strndup.c: Likewise.
98388         * lib/strnlen.c: New file, from glibc.
98389
98390 2000-05-03  Jim Meyering  <meyering@lucent.com>
98391
98392         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98393
98394 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98395
98396         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98397         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98398         compile-time test, rather than inspecting host and OS, to
98399         decide whether to define _LARGEFILE_SOURCE.
98400
98401 2000-05-01  Jim Meyering  <meyering@lucent.com>
98402
98403         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98404
98405         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98406         Based on a patch from Bruno Haible.
98407
98408 2000-05-01  Jim Meyering  <meyering@lucent.com>
98409
98410         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98411
98412 2000-04-29  Jim Meyering  <meyering@lucent.com>
98413
98414         * lib/path-concat.c: Declare strdup only if it's not defined.
98415         * lib/canon-host.c: Likewise.
98416
98417 2000-04-28  Jim Meyering  <meyering@lucent.com>
98418
98419         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98420         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98421         is included first, then limits.h is included by locale.h by libintl.h.
98422         From John David Anglin.
98423
98424 2000-04-25  Jim Meyering  <meyering@lucent.com>
98425
98426         * lib/makepath.c (S_IRWXUGO): Define.
98427         (make_path): Always perform explicit chmod if MODE specifies any
98428         of the `special' permission bits.  Prompted by a bug report against
98429         install from Mate Wierdl and Joost van Baal.
98430
98431 2000-04-18  Jim Meyering  <meyering@lucent.com>
98432
98433         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98434         (jm_PREREQ): Use it.
98435
98436 2000-04-18  Jim Meyering  <meyering@lucent.com>
98437
98438         * lib/README: New file.
98439
98440         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98441         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98442
98443 2000-04-17  Jim Meyering  <meyering@lucent.com>
98444
98445         Get it right :-)
98446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98447         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98448         Suggestion from Akim Demaille.
98449
98450 2000-04-17  Jim Meyering  <meyering@lucent.com>
98451
98452         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98453         the definition of it to rpl_strftime also defined-away the system's
98454         declaration.
98455
98456 2000-04-15  Jim Meyering  <meyering@lucent.com>
98457
98458         Use `C' to denote so-called `contiguous' files, the same way
98459         that tar does.
98460         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98461         (ftypelet): Use S_ISCTG.
98462         From Michael Deutschmann.
98463
98464 2000-04-14  Jim Meyering  <meyering@lucent.com>
98465
98466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98467         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98468         clobbered.
98469
98470 2000-04-14  Jim Meyering  <meyering@lucent.com>
98471
98472         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98473
98474 2000-04-13  Jim Meyering  <meyering@lucent.com>
98475
98476         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98477         AH_VERBATIM to insert required #ifndef into config.h.in.
98478         Suggestion from Akim Demaille.
98479
98480 2000-04-12  Jim Meyering  <meyering@lucent.com>
98481
98482         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98483         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98484         Christian Krackowizer.
98485
98486         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98487         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98488         (AC_SYS_LARGEFILE): Require.
98489         (AM_C_PROTOTYPES): Require.
98490
98491 2000-04-08  Jim Meyering  <meyering@lucent.com>
98492
98493         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98494         names don't conflict.  Reported by Eli Zaretskii.
98495
98496 2000-04-07  Jim Meyering  <meyering@lucent.com>
98497
98498         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98499         sys/types.h, to work around system header problems on AIX 3.2.5.
98500         From Bruno Haible.
98501
98502 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98503
98504         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98505         bug.  Deal with the different error behavior of Irix iconv.
98506
98507 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98508
98509         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98510         IRIX if the installer said otherwise.
98511
98512 2000-04-05  Jim Meyering  <meyering@lucent.com>
98513
98514         Portability tweaks required for ultrix4.3.
98515         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98516         (jm_CHECK_DECLS): Add getutent to the list of functions.
98517         (_jm_DECL_HEADERS): Add utmpx.h.
98518         From John David Anglin.
98519
98520         * m4/strftime.m4: Back out the 2000-04-02 change.
98521         Instead of that change, simply undefine putenv in the test program.
98522
98523 2000-04-05  Jim Meyering  <meyering@lucent.com>
98524
98525         Portability tweaks required for ultrix4.3.
98526         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98527         getutent.
98528         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98529         * lib/canon-host.c: Declare strdup.
98530         * lib/path-concat.c: Likewise.
98531         From John David Anglin.
98532
98533 2000-04-04  Jim Meyering  <meyering@lucent.com>
98534
98535         Be more DOS 8.3-friendly.
98536         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98537         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98538         * lib/Makefile.am: Reflect renaming.
98539         Reported by Eli Zaretskii.
98540
98541         Use a temporary file name that won't clash with `charset.alias'
98542         in the DOS 8.3 name space.
98543         * lib/Makefile.am (charset_tmp): Define.
98544         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98545         (uninstall-local): Likewise.
98546         Reported by Eli Zaretskii.
98547
98548 2000-04-03  Jim Meyering  <meyering@lucent.com>
98549
98550         * m4/gettext.m4: Fix typo in comment.
98551
98552         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98553         textutils/configure.in).  Suggestion from Paul Eggert.
98554         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98555
98556 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98557
98558         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98559         variable in the shell rather than using putenv, which isn't
98560         portable.  This avoids the configure-time inter-test dependency
98561         on the potentially-renamed putenv function.
98562
98563 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98564
98565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98566         before checking struct stat.st_blksize, so that
98567         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98568
98569 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98570
98571         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98572         since strftime.c uses HAVE_STRFTIME to decide whether to use
98573         the underlying strftime.
98574
98575 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98576
98577         * lib/time/strftime.c (my_strftime): Make sure we call the system
98578         strftime, not ourselves, when invoking the underlying strftime.
98579
98580 2000-03-24  Jim Meyering  <meyering@lucent.com>
98581
98582         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98583         (charset_alias): Define.
98584         (install-exec-local): Factor out common code.
98585         (uninstall-local): Split lines longer than 80.
98586         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98587         (SUFFIXES): Define.
98588         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98589         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98590
98591 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98592
98593         * lib/config.charset: Output a line containing "Packages using this
98594         file".
98595         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98596         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98597         ref-del.sed): New rules.
98598
98599 2000-03-17  Jim Meyering  <meyering@lucent.com>
98600
98601         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98602         Otherwise, include <strings.h>
98603
98604 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98605
98606         * lib/unicodeio.c (utf8_wctomb): New function.
98607         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98608         format instead of in UCS-4 with platform dependent endianness.
98609
98610 2000-03-10  Jim Meyering  <meyering@lucent.com>
98611
98612         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98613         From Marco Franzen.
98614
98615 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98616
98617         * lib/savedir.c (savedir): Work even if directory size is
98618         negative; this can happen with some screwy NFS configurations.
98619
98620 2000-03-06  Jim Meyering  <meyering@lucent.com>
98621
98622         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98623         if it's NULL (because we ran out of memory).  From Bruno Haible.
98624
98625 2000-03-05  Jim Meyering  <meyering@lucent.com>
98626
98627         * lib/localcharset.c ("path-concat.h"): Include.
98628         (get_charset_aliases): Use path_concat instead of ANSI string
98629         concatenation.
98630
98631         * lib/unicodeio.h (PARAMS): Define.
98632         Use it to guard prototype.
98633
98634 2000-03-04  Jim Meyering  <meyering@lucent.com>
98635
98636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98637         for lib/localcharset.c.
98638
98639 2000-03-04  Jim Meyering  <meyering@lucent.com>
98640
98641         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98642         installing into it.
98643         (uninstall-local): Uncomment this rule so `make distcheck' works
98644         once again.
98645
98646         * lib/unicodeio.c (<errno.h>): Include it.
98647         (errno): Declare if not defined.
98648
98649         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98650
98651         * lib/config.charset: New version, incorporating remarks from a linux
98652         i18n mailing list.  From Bruno Haible.
98653
98654 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98655
98656         * m4/codeset.m4: New file.
98657         * m4/iconv.m4: New file.
98658         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98659
98660 2000-03-03  Jim Meyering  <meyering@lucent.com>
98661
98662         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98663
98664 2000-03-02  Jim Meyering  <meyering@lucent.com>
98665
98666         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98667         the messages come out on separate lines.
98668
98669         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98670         rather than jm_CHECK_DECLARATIONS.
98671         * m4/decl.m4: Remove now-unused file.
98672
98673         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98674         geteuid.
98675
98676 2000-03-02  Jim Meyering  <meyering@lucent.com>
98677
98678         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98679
98680 2000-03-01  Jim Meyering  <meyering@lucent.com>
98681
98682         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98683         * lib/unicodeio.c: Likewise.
98684
98685 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98686
98687         * lib/config.charset: New file.
98688         * lib/localcharset.c: New file.
98689         * lib/unicodeio.h, lib/unicodeio.c: New files.
98690         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98691         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98692         (noinst_HEADERS): Add unicodeio.h.
98693         (all-local, install-exec-local, charset.alias): New targets.
98694
98695 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98696
98697         * lib/quotearg.c (ALERT_CHAR): New macro.
98698         (quotearg_buffer_restyled): Use it.
98699
98700 2000-02-27  Jim Meyering  <meyering@lucent.com>
98701
98702         * m4/check-decl.m4: Add getenv to the list.
98703
98704 2000-02-27  Jim Meyering  <meyering@lucent.com>
98705
98706         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98707         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98708
98709         * lib/backupfile.c: Guard inclusion of stdlib.h with
98710         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98711         Declare malloc if needed.
98712
98713         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98714         `#ifndef HAVE_DECL..'
98715         now that autoconf always defines the HAVE_DECL_ symbols.
98716         * lib/human.c: Likewise.
98717         * lib/same.c: Likewise.
98718         * lib/strtoumax.c: Likewise.
98719
98720         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98721         declaration check was not run.
98722         * lib/hash.c: Likewise.
98723         * lib/human.c: Likewise.
98724         * lib/same.c: Likewise.
98725         * lib/strtoumax.c: Likewise.
98726
98727         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98728         `.', then first look up the entire `.'-containing string as a login
98729         name.
98730
98731 2000-02-23  Jim Meyering  <meyering@lucent.com>
98732
98733         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98734         in place of my hack.
98735
98736 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98737
98738         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98739         (textint): New typedef.
98740         (parser_control): Member year changed from int to textint.
98741         All uses changed.
98742         (YYSTYPE): Removed; replaced by %union with int and textint members.
98743         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98744         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98745         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98746         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98747         (date, number, to_year): Use width of number in digits, not its value,
98748         to determine whether it's a 2-digit year, or a 2-digit time.
98749         (yylex): Store number of digits of numeric tokens.
98750         Reported by John Kendall.
98751
98752         (parser_control): Changed from struct parser_control to typedef (for
98753         consistency).  All uses changed.
98754
98755         (tID): Removed; not used.
98756         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98757
98758 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98759
98760         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98761         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98762
98763 2000-02-12  Jim Meyering  <meyering@lucent.com>
98764
98765         * lib/userspec.c (ISDIGIT): Define it.
98766         (isdigit): Remove definition.
98767         (is_number): Use ISDIGIT, not isdigit.
98768         <libintl.h>: Include.
98769         (_ and N_): Define.
98770         (parse_user_spec): Mark translatable strings.
98771
98772 2000-02-10  Jim Meyering  <meyering@lucent.com>
98773
98774         With these changes, nanosleep.[ch] are finally enough like the other
98775         lib/* replacement files to compile on a few more losing systems.
98776
98777         * lib/nanosleep.h: Don't include config.h.
98778         Remove prototype from declaration of nanosleep.
98779         (PARAMS): Remove now-unneeded definition.
98780         * lib/nanosleep.c: #undef nanosleep.
98781         (rpl_nanosleep): Rename from nanosleep.
98782
98783 2000-02-10  Jim Meyering  <meyering@lucent.com>
98784
98785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98786         gnu_nanosleep to rpl_nanosleep.
98787
98788 2000-02-09  Jim Meyering  <meyering@lucent.com>
98789
98790         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98791         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98792
98793 2000-02-08  Akim Demaille  <akim@epita.fr>
98794
98795         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98796         `[' and `]' and remove uses of `changequote'.
98797         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98798         (AC_SYS_LARGEFILE): Likewise.
98799         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98800         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98801         of changequote.
98802         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98803         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98804         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98805         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98806
98807 2000-02-05  Jim Meyering  <meyering@lucent.com>
98808
98809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98810         Remove explicit use of AC_HEADER_TIME.  It is required by
98811         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98812         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98813         in autoconf whereby the expansion of the latter ended up preceding
98814         the expansion of its prerequisite, AC_HEADER_TIME.
98815         Reported by Volker Borchert.
98816
98817 2000-02-03  Jim Meyering  <meyering@lucent.com>
98818
98819         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98820
98821 2000-02-03  Jim Meyering  <meyering@lucent.com>
98822
98823         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98824         rather than with `#if HAVE_UTMPNAME'.
98825
98826 2000-02-02  Jim Meyering  <meyering@lucent.com>
98827
98828         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98829         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98830         Reported by Eli Zaretskii.
98831
98832 2000-02-01  Jim Meyering  <meyering@lucent.com>
98833
98834         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98835
98836 2000-01-31  Jim Meyering  <meyering@lucent.com>
98837
98838         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98839         functions.  Add the time.h and sys/time.h headers along with the
98840         AC_REQUIRE'ment of AC_HEADER_TIME.
98841
98842 2000-01-31  Jim Meyering  <meyering@lucent.com>
98843
98844         * lib/nanosleep.h (nanosleep): Guard declaration with
98845         `#if ! HAVE_DECL_NANOSLEEP'.
98846         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98847         the declaration in that vendor's sys/timers.h.
98848         Reported by Christian Krackowizer.
98849
98850         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98851         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98852         (ISPRINT): Likewise.
98853         Reported by Tom Tromey.
98854
98855 2000-01-30  Jim Meyering  <meyering@lucent.com>
98856
98857         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98858
98859         * m4/prereq.m4 (utmp_includes): Define.
98860         Check for ut_user and ut_name members in both struct utmpx
98861         and struct utmp.
98862
98863 2000-01-30  Jim Meyering  <meyering@lucent.com>
98864
98865         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98866         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98867         header files where only utmpx.ut_user is declared.
98868
98869         * lib/readutmp.h (UT_USER): Define.
98870
98871 2000-01-29  Jim Meyering  <meyering@lucent.com>
98872
98873         * m4/lib-check.m4: New file containing library-related checks from
98874         fileutils and sh-utils (textutils had none).
98875
98876 2000-01-28  Jim Meyering  <meyering@lucent.com>
98877
98878         * m4/perl.m4: Change format of warning message to look more like that
98879         from the missing script.  Suggestion from François Pinard.
98880
98881 2000-01-25  Jim Meyering  <meyering@lucent.com>
98882
98883         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98884         well as time.h in the compile check.
98885         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98886         Fix typo in cross-compiling case: s/yes/no/.
98887
98888 2000-01-23  Jim Meyering  <meyering@lucent.com>
98889
98890         * m4/jm-macros.m4: Move df-related tests here from
98891         fileutils/configure.in
98892
98893         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98894         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98895
98896         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98897         s/space/ac_fsusage_space/.
98898         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98899
98900         * m4/ftruncate.m4: New file (derived from part of
98901         fileutils/configure.in).
98902         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98903         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98904
98905         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98906         AC_SUBST these here, rather than just in sh-util/configure.in, so
98907         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98908         all the same.
98909         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98910         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98911         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98912         (AC_SUBST(POW_LIBM)): Likewise.
98913         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98914
98915 2000-01-23  Jim Meyering  <meyering@lucent.com>
98916
98917         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98918         obstack.c.
98919
98920 2000-01-22  Jim Meyering  <meyering@lucent.com>
98921
98922         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98923
98924         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98925
98926         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98927         configure.in
98928         (AC_CHECK_HEADERS): Likewise for sh-utils.
98929         (AC_CHECK_HEADERS): Likewise for textutils.
98930         Merge the three lists of headers.
98931
98932         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98933         from fileutils' configure.in.
98934
98935         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98936         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98937         check-decl.m4.
98938
98939         * m4/check-decl.m4: Use #if rather than #ifdef.
98940         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98941         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98942         (_jm_DECL_HEADERS): Define new function.
98943         (jm_CHECK_DECLARATIONS): Require it.
98944
98945 2000-01-22  Jim Meyering  <meyering@lucent.com>
98946
98947         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98948         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98949         Required for some AIX systems.  Reported by Christian Krackowizer.
98950         [TESTING] (main): New function.
98951
98952         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98953         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98954         letters.
98955
98956         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98957         iswprint.
98958
98959         * lib/strverscmp.c (ISDIGIT): Define.
98960         (strverscmp): Use ISDIGIT, not isdigit.
98961
98962 2000-01-19  Jim Meyering  <meyering@lucent.com>
98963
98964         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98965         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98966         defines `struct timespec' in <sys/time.h>
98967
98968         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98969         Thanks to Akim for explaining.
98970
98971 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98972
98973         * lib/nanosleep.c (nanosleep):
98974         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98975         POSIX.1 doesn't require SA_INTERRUPT and some systems
98976         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98977         it's been part of POSIX.1 since day 1 (in 1988).
98978
98979 2000-01-17  Jim Meyering  <meyering@lucent.com>
98980
98981         * lib/interlock: Remove unused file.  Reported by François Pinard.
98982
98983 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98984
98985         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98986         alert, backslash, formfeed, and vertical tab unnecessarily in
98987         shell quoting style.
98988
98989 2000-01-16  Jim Meyering  <meyering@lucent.com>
98990
98991         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98992         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98993         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98994         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98995
98996 2000-01-16  Jim Meyering  <meyering@lucent.com>
98997
98998         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98999         because the latter didn't work.
99000
99001 2000-01-15  Jim Meyering  <meyering@lucent.com>
99002
99003         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99004         (AC_REPLACE_FUNCS): Add memcpy and memset.
99005         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99006         Add strpbrk.
99007         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99008
99009 2000-01-12  Jim Meyering  <meyering@lucent.com>
99010
99011         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99012         (jm_PREREQ): Use it.
99013         (jm_PREREQ_READUTMP): New macro.
99014         (jm_PREREQ): Use it.
99015
99016 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99017
99018         Quote multibyte characters correctly.
99019         * m4/c-bs-a.m4: New file.
99020         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99021         (jm_PREREQ): Use it.
99022
99023 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99024
99025         * m4/uintmax_t.m4: Port to autoconf 2.13.
99026
99027 2000-01-08  Jim Meyering  <meyering@ascend.com>
99028
99029         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99030         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99031
99032 2000-01-04  Jim Meyering  <meyering@ascend.com>
99033
99034         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99035         jm_STRUCT_DIRENT_D_TYPE.
99036         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99037         jm_STRUCT_DIRENT_D_INO.
99038         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99039         jm_STRUCT_UTIMBUF.
99040         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99041         renamings.
99042         * m4/utime.m4: Likewise.
99043
99044         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99045         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99046
99047 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99048
99049         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99050         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99051
99052 2000-01-02  Jim Meyering  <meyering@ascend.com>
99053
99054         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99055         remember if this is necessary.
99056
99057 1999-12-26  Jim Meyering  <meyering@ascend.com>
99058
99059         * m4/jm-macros.m4: Use it here.
99060         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99061
99062 1999-12-23  Jim Meyering  <meyering@ascend.com>
99063
99064         * m4/jm-macros.m4: Check for clock_gettime (moved from
99065         fileutils/configure.in)
99066         Check for gettimeofday.
99067
99068 1999-12-20  Jim Meyering  <meyering@ascend.com>
99069
99070         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99071         autoconf-2.14a-1999-12-20.
99072
99073 1999-12-19  Jim Meyering  <meyering@ascend.com>
99074
99075         * m4/lstat-slash.m4: New file.
99076         * m4/jm-macros.m4: Use the new macro:
99077         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99078
99079 1999-12-07  Jim Meyering  <meyering@ascend.com>
99080
99081         * m4/perl.m4: Require that File::Compare be available, too.
99082         Too many systems seem to lack it.
99083
99084         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99085         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99086
99087 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99088
99089         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99090         problem with the QNX 4.25 shell, which doesn't propagate exit
99091         status of failed commands inside shell assignments.
99092
99093 1999-11-17  Jim Meyering  <meyering@ascend.com>
99094
99095         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99096
99097 1999-11-07  Jim Meyering  <meyering@ascend.com>
99098
99099         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99100
99101 1999-11-06  Jim Meyering  <meyering@ascend.com>
99102
99103         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99104         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99105
99106 1999-11-05  Jim Meyering  <meyering@ascend.com>
99107
99108         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99109         configure.in of textutils, fileutils, and sh-utils into this one
99110         (shared between those packages) file.
99111         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99112         AC_STRUCT_ST_BLKSIZE.
99113
99114 1999-11-03  Jim Meyering  <meyering@ascend.com>
99115
99116         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99117         of AC_CHECK_TYPE checks includes unistd.h.
99118         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99119         Suggestion from Akim Demaille.
99120
99121 1999-10-30  Jim Meyering  <meyering@ascend.com>
99122
99123         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99124         m4-quoted string.
99125         * m4/ls-mntd-fs.m4: Likewise.
99126         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99127         * m4/jm-winsz1.m4: Likewise.
99128
99129         * m4/const.m4: Remove file, since the fix made it into the experimental
99130         version of autoconf.
99131         * m4/mktime.m4: Likewise.
99132
99133         * m4/check-type.m4: Remove file, now that the latest version of
99134         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99135
99136         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99137         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99138         AC_CHECK_TYPE.
99139
99140 1999-10-04  Jim Meyering  <meyering@ascend.com>
99141
99142         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99143
99144 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99145
99146         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99147         2.95.1 bug with HP-UX 10.20.
99148
99149 1999-09-17  Jim Meyering  <meyering@ascend.com>
99150
99151         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99152         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99153         due to missing strdup (against sh-utils-2.0).
99154
99155 1999-08-29  Jim Meyering  <meyering@ascend.com>
99156
99157         * m4/jm-macros.m4: Require jm_BISON.
99158         * m4/bison.m4: New file.
99159
99160 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99161
99162         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99163         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99164
99165 1999-08-05  Jim Meyering  <meyering@ascend.com>
99166
99167         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99168         to avoid conflicts with `conftest' on 8+3 filesystems.
99169         Suggestion from Eli Zaretskii.
99170
99171 1999-08-04  Jim Meyering  <meyering@ascend.com>
99172
99173         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99174         fileutils and sh-utils (textutils's getline test was inadequate).
99175         (AM_FUNC_GETLINE): Run this test.
99176         (AC_CHECK_FUNCS): Check for getdelim.
99177         Reported by Bob Proulx.
99178
99179 1999-08-02  Jim Meyering  <meyering@ascend.com>
99180
99181         * m4/jm-macros.m4: Add a comment.
99182
99183 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99184
99185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99186         <inttypes.h> defines strtoumax as a macro (and not as a
99187         function).
99188
99189 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99190
99191         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99192         that we can shift, multiply and divide unsigned long long
99193         values; Ultrix cc can't do it.
99194
99195 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99196
99197         * m4/mktime.m4: New file, which is a preview of what should appear
99198         in the next public autoconf release.
99199
99200 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99201
99202         * m4/lfs.m4: Remove this file.
99203         * m4/largefile.m4: New file.  It contains the old contents of
99204         lfs.m4, except that all names with prefix AC_LFS have been
99205         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99206         compatible with future autoconf versions.  Also, some minor m4
99207         quoting problems have been fixed.
99208
99209 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99210
99211         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99212         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99213         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99214         and simplify the shell code.
99215
99216 1999-08-01  Jim Meyering  <meyering@ascend.com>
99217
99218         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99219         m4.
99220
99221 1999-07-20  Jim Meyering  <meyering@ascend.com>
99222
99223         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99224
99225 1999-07-15  Jim Meyering  <meyering@ascend.com>
99226
99227         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99228
99229 1999-05-22  Jim Meyering  <meyering@ascend.com>
99230
99231         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99232
99233 1999-05-20  Jim Meyering  <meyering@ascend.com>
99234
99235         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99236         Add a colon after each `then' in case $4 is empty.
99237
99238 1999-05-16  Jim Meyering  <meyering@ascend.com>
99239
99240         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99241
99242 1999-05-10  Jim Meyering  <meyering@ascend.com>
99243
99244         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99245
99246         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99247         AC_FUNC_MKTIME.
99248
99249 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99250
99251         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99252
99253 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99254
99255         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99256         not CPPFLAGS, so that linking works correctly in IRIX.
99257
99258 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99259
99260         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99261
99262 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99263
99264         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99265         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99267         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99268         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99269
99270         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99271
99272 1999-04-20  Jim Meyering  <meyering@ascend.com>
99273
99274         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99275         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99276         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99277
99278 1999-04-18  Jim Meyering  <meyering@ascend.com>
99279
99280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99281         * m4/jm-macros.m4: Use it.
99282
99283 1999-04-06  Jim Meyering  <meyering@ascend.com>
99284
99285         * m4/strftime.m4: Remove test for %f.
99286
99287 1999-03-29  Jim Meyering  <meyering@ascend.com>
99288
99289         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99290         superset of the AC_TYPE_* checks in the textutils, fileutils,
99291         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99292         AC_TYPE_PID_T.
99293
99294 1999-03-28  Jim Meyering  <meyering@ascend.com>
99295
99296         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99297         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99298         replaced e.g., in the *.sh files of the sh-utils.
99299
99300 1999-03-20  Jim Meyering  <meyering@ascend.com>
99301
99302         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99303         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99304         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99305
99306 1999-03-19  Jim Meyering  <meyering@ascend.com>
99307
99308         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99309
99310 1999-03-12  Jim Meyering  <meyering@ascend.com>
99311
99312         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99313
99314 1999-03-07  Jim Meyering  <meyering@ascend.com>
99315
99316         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99317         declared.
99318
99319 1999-02-17  Jim Meyering  <meyering@ascend.com>
99320
99321         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99322         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99323
99324 1999-02-07  Jim Meyering  <meyering@ascend.com>
99325
99326         * m4/group-member.m4: New file -- extracted from sh-utils'
99327         configure.in.
99328
99329         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99330         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99331
99332 1999-02-06  Jim Meyering  <meyering@ascend.com>
99333
99334         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99335         * m4/fnmatch.m4: Likewise.
99336         * m4/getgroups.m4: Likewise.
99337         * m4/lstat.m4: Likewise.
99338         * m4/malloc.m4: Likewise.
99339         * m4/putenv.m4: Likewise.
99340         * m4/realloc.m4: Likewise.
99341         * m4/regex.m4: Likewise.
99342         * m4/stat.m4: Likewise.
99343         * m4/strftime.m4: Likewise.
99344         Suggestion from Alain Magloire.
99345
99346         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99347         * m4/fnmatch.m4: Likewise.
99348         * m4/getgroups.m4: Likewise.
99349         * m4/getline.m4: Likewise.
99350         * m4/lstat.m4: Likewise.
99351         * m4/malloc.m4: Likewise.
99352         * m4/memcmp.m4: Likewise.
99353         * m4/putenv.m4: Likewise.
99354         * m4/realloc.m4: Likewise.
99355         * m4/regex.m4: Likewise.
99356         * m4/stat.m4: Likewise.
99357         * m4/strftime.m4: Likewise.
99358         Suggestion from Alain Magloire.
99359
99360         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99361         an argument.
99362
99363         * m4/regex.m4: Add a run-time Test for proper operation of
99364         re_compile_pattern.
99365
99366 1999-01-31  Jim Meyering  <meyering@ascend.com>
99367
99368         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99369
99370 1999-01-30  Jim Meyering  <meyering@ascend.com>
99371
99372         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99373
99374         * m4/jm-mktime.m4: Make this a wrapper around the official
99375         AM_FUNC_MKTIME rather than my private copy, now that the official one
99376         is up to date.
99377         * m4/mktime.m4: Remove file.
99378
99379         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99380         * m4/uptime.m4: Likewise.
99381         * m4/uintmax_t.m4: Likewise.
99382
99383 1999-01-28  Jim Meyering  <meyering@ascend.com>
99384
99385         * m4/jm-macros.m4: Use jm_AFS.
99386         * m4/afs.m4: New file (from fileutils' configure.in).
99387
99388         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99389         * m4/chown.m4: Likewise.
99390         * m4/d-ino.m4: Likewise.
99391         * m4/d-type.m4: Likewise.
99392         * m4/fnmatch.m4: Likewise.
99393         * m4/getgroups.m4: Likewise.
99394         * m4/gettext.m4: Likewise.
99395         * m4/jm-mktime.m4: Likewise.
99396         * m4/jm-winsz2.m4: Likewise.
99397         * m4/lcmessage.m4: Likewise.
99398         * m4/ls-mntd-fs.m4: Likewise.
99399         * m4/malloc.m4: Likewise.
99400         * m4/memcmp.m4: Likewise.
99401         * m4/putenv.m4: Likewise.
99402         * m4/realloc.m4: Likewise.
99403         * m4/st_mtim.m4: Likewise.
99404         * m4/strftime.m4: Likewise.
99405
99406 1999-01-16  Jim Meyering  <meyering@ascend.com>
99407
99408         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99409         (ARGMATCH_DIE_DECL): Define.
99410
99411 1999-01-12  Jim Meyering  <meyering@ascend.com>
99412
99413         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99414         Reported by Lars Hecking.
99415
99416 1999-01-10  Jim Meyering  <meyering@ascend.com>
99417
99418         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99419         gross kludge.
99420         * m4/inttypes_h.m4: Likewise.
99421         * m4/lstat.m4: Likewise.
99422         * m4/malloc.m4: Likewise.
99423         * m4/readdir.m4: Likewise.
99424         * m4/realloc.m4: Likewise.
99425         * m4/st_dm_mode.m4: Likewise.
99426         * m4/stat.m4: Likewise.
99427         * m4/utimbuf.m4: Likewise.
99428         * m4/utimes.m4: Likewise.
99429
99430         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99431         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99432         comments in config.h.in are meaningful.
99433
99434         * m4/jm-macros.m4: Require autoconf-2.13 here.
99435
99436         * m4/regex.m4: By default, don't use the included regex.c on systems
99437         with glibc 2.  Suggestion from Uli Drepper.
99438
99439 1999-01-02  Jim Meyering  <meyering@ascend.com>
99440
99441         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99442
99443 1998-12-18  Jim Meyering  <meyering@ascend.com>
99444
99445         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99446         Based on a suggestion from Lars Hecking.
99447
99448 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99449
99450         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99451
99452 1998-11-16  Jim Meyering  <meyering@ascend.com>
99453
99454         * m4/lfs.m4: Double-quote the `uname...` expression.
99455
99456 1998-11-14  Jim Meyering  <meyering@ascend.com>
99457
99458         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99459         * m4/stat.m4: Likewise.
99460
99461 1998-11-03  Jim Meyering  <meyering@ascend.com>
99462
99463         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99464         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99465
99466 1998-10-18  Jim Meyering  <meyering@ascend.com>
99467
99468         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99469
99470 1998-10-17  Jim Meyering  <meyering@ascend.com>
99471
99472         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99473         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99474         calls for those previously hard-coded headers.  Instead, take a new
99475         parameter.
99476         (jm_CHECK_DECLARATIONS): Reflect interface change.
99477         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99478         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99479
99480         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99481
99482 1998-10-14  Jim Meyering  <meyering@ascend.com>
99483
99484         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99485         instead of "TZ=America/Vancouver".  From Paul Eggert.
99486
99487 1998-10-11  Jim Meyering  <meyering@ascend.com>
99488
99489         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99490         This adds a test for a recently added compatibility fix for mktime.c.
99491         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99492
99493 1998-09-27  Jim Meyering  <meyering@ascend.com>
99494
99495         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99496
99497         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99498         ../configure.in, including a change from Gordon Matzigkeit to allow
99499         cross-compiling for the Hurd.
99500
99501         * m4/glibc.m4: New file/macro to test for the GNU C Library
99502         versions 1 and 2.  From Gordon Matzigkeit.
99503         Indent.
99504
99505 1998-09-21  Jim Meyering  <meyering@ascend.com>
99506
99507         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99508
99509 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99510
99511         Port nanosecond-resolution times to UnixWare 2.1.2 and
99512         pedantic Solaris 2.6.
99513
99514         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99515         AC_STRUCT_ST_MTIM.
99516         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99517         Generate name of ns member, instead of just 1 or undef.
99518         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99519
99520 1998-08-15  Jim Meyering  <meyering@ascend.com>
99521
99522         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99523         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99524         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99525         instead of jm_TYPE_SSIZE_T.
99526
99527 1998-08-12  Jim Meyering  <meyering@ascend.com>
99528
99529         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99530
99531 1998-08-02  Jim Meyering  <meyering@ascend.com>
99532
99533         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99534         in acconfig.h manually.
99535
99536 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99537
99538         * m4/st_mtim.m4: New file.
99539
99540 1998-07-28  Jim Meyering  <meyering@ascend.com>
99541
99542         * m4/utimes.m4: Undef stat.
99543
99544 1998-07-25  Jim Meyering  <meyering@ascend.com>
99545
99546         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99547         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99548
99549 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99550
99551         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99552         uid and gid actually remain unchanged.
99553
99554 1998-07-07  Jim Meyering  <meyering@ascend.com>
99555
99556         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99557
99558 1998-07-04  Jim Meyering  <meyering@ascend.com>
99559
99560         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99561         to prove that this macro can be used in packages without regex.c.
99562
99563 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99564
99565         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99566         is to be used.
99567
99568 1998-07-03  Jim Meyering  <meyering@ascend.com>
99569
99570         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99571
99572         * m4/gettext.m4: New file -- from gettext-0.10.35.
99573         * m4/lcmessage.m4: Likewise.
99574         * m4/progtest.m4: Likewise.
99575
99576         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99577         * m4/jm-macros.m4: Require the new macro.
99578
99579 1998-06-29  Jim Meyering  <meyering@ascend.com>
99580
99581         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99582         for the definition of NGROUPS (used in a system header included
99583         by sys/mount.h).
99584
99585 1998-06-28  Jim Meyering  <meyering@ascend.com>
99586
99587         * m4/ls-mntd-fs.m4: New file.
99588         * m4/fstypename.m4: New file.
99589
99590         * m4/jm-macros.m4: Require the new macro.
99591         * m4/jm-glibc-io.m4: New file.
99592
99593 1998-05-19  Jim Meyering  <meyering@ascend.com>
99594
99595         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99596         * m4/lchown.m4: New file.
99597
99598         * m4/Makefile.am.in: New file.
99599         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99600
99601 1998-05-14  Jim Meyering  <meyering@ascend.com>
99602
99603         * m4/Makefile.am (EXTRA_DIST): Add them.
99604         * m4/jm-macros.m4: New file.
99605         * m4/utimbuf.m4: New file.
99606
99607 1998-05-12  Jim Meyering  <meyering@ascend.com>
99608
99609         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99610
99611 1998-05-11  Jim Meyering  <meyering@ascend.com>
99612
99613         * m4/isc-posix.m4: New file.
99614
99615 1998-05-10  Jim Meyering  <meyering@ascend.com>
99616
99617         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99618
99619 1998-05-09  Jim Meyering  <meyering@ascend.com>
99620
99621         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99622         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99623         with automake.
99624
99625         * m4/ssize_t.m4: New file.
99626         * m4/mktime.m4: Remove file -- the new automake has this now.
99627
99628 1998-04-26  Jim Meyering  <meyering@ascend.com>
99629
99630         * m4/assert.m4: New file.
99631         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99632
99633 1998-04-05  Jim Meyering  <meyering@ascend.com>
99634
99635         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99636         (jm_PREREQ): Use it here.
99637
99638 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99639
99640         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99641         in acconfig.h.
99642
99643 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99644
99645         * m4/prereq.m4: New file.
99646         * m4/error.m4: New file.
99647         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99648
99649 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99650
99651         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99652         cache-check for the same variable -- that defeated the purpose of
99653         the test; the test program was never run.  This was a problem only
99654         on systems with losing getline functions -- HP-UX 10.20 is one.
99655         Reported by Bjorn Helgaas.
99656
99657 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99658
99659         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99660
99661 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99662
99663         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99664
99665         * m4/const.m4: New file.  Use an initializer in this declaration
99666         typedef int charset[2]; const charset x;
99667         Reported by Bob Glickstein.
99668
99669 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99670
99671         * m4/chown.m4: Fix reversed types on -1 args to chown.
99672         From Kaveh Ghazi.
99673
99674 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99675
99676         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99677         Add lseek and memchr.
99678
99679         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99680         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99681         have a 20-character limit on names.
99682
99683 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99684
99685         * m4/inttypes_h.m4: New file.
99686         * m4/uintmax_t.m4: New file.
99687         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99688
99689
99690         -----
99691
99692         Local Variables:
99693         coding: utf-8
99694         End:
99695
99696         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99697
99698         Copying and distribution of this file, with or without
99699         modification, are permitted provided the copyright notice
99700         and this notice are preserved.